BlueSnap
Commands Version 4.81SIO, 1/20/2016 Page 11 of
27
Cedar Park, TX, USA
•
(512) 994-3630
•
www.serialio.com
Example :
“GS”
will return 1 or 0 depending on the value of security.
In addition to the above, there are a few other useful commands available
.
B
Returns Battery Power information (See below)
GB
Returns the Bluetooth Address of the device.
GK
Returns the current connection status: 1=connected, 0 = not connected.
G&
Return a hex byte containing the value of the PIO Pins
V
Return the software release version
Example of result from “B” Battery Power command:
UP=62,PWR=1731,Batt=2FE,2298 mv
UP= seconds since being powered up.
PWR= charger reading. has to be > 1000 (this is hex) if < 1000 no charger running.
Batt= battery reading in HEX (this is the actually battery voltage / 3 referenced to 3.3V ).
2298 this is the actual battery voltage in millivolts.
CHANGE COMMANDS
U,<rate>,<E,O,N>
Temporary Uart Change, will change the serial parameters immediately, but not
store them. Command will return “AOK” at current settings, then automatically exit
command mode, and switch to new baudrate until device is powered off.
Example :
“U,9600,E”
Sets baudrate to 9600, parity even.
ACTION COMMANDS
$$$
Enter command mode.
Characters are PASSED until this exact sequence is seen. If any bytes are
seen before these chars, or after these chars, in a 1 second window, command mode will not be
entered and these bytes will be passed on to other side.
NOTE:
this char is configurable, use the S$,<char> command to change the char.
---
Exit command mode.
Exit command mode. “END” will be displayed. If connected
over BT, data will now pass in both directions.
+
Local echo. Toggle local echo of RX characters in command mode. (default is off)
C{,<address>}
Connect to the remote stored BT address, or an optional address can be entered directly.
CF{,<address>}
Connect and immediately go into FAST data mode. NOTE: You will not be able to enter
command mode while Connected. PIO6 can still be use to disconnect. Thus PIO6 should he held
HIGH before sending this command, as lowering PIO6 will cause a disconnect.