User manual
Roving Networks RN-24 V 4.22 5/31/2007 page 4
COMMAND SUMMARY
***SET COMMANDS ***stored in flash, and only take effect AFTER reboot
*** DISPLAY COMMANDS ***
*** OTHER COMMANDS ***
Example: SU,9600 sets Uart Baudrate to 9600
SN,myname sets Bluetooth name to “myname”
SA,1 enables secure authentication
SP,secret sets security pincode to “secret”
SF,1 restores all values to factory defaults
CMD
VALUE
TYPE
DEFAULT
DESCRIPTION
SA
0,1 dec 0 Enable Authentication
SE
0,1 dec 0 Enable encryption
SF
1 dec Reset to Factory Defaults
SL
E,O,N char N Parity, Even, Odd, or None
SM
0,1,2,3 dec 0 Mode (0-slav,1=mstr, 2=trig,3=auto ,4=DTR
)
SN
string 1-16 char
Blueport-x
Bluetooth Name
SO
string 1-8 NULL Send connect/disconnect status string
SP
string 1-16 char
1234 Security Pin Code
SR
string 12 chars
NOT SET
Remote Address (123456789ABCDEF)
ST
word seconds 60 Config Timer(0=no config, 255=always on)
SU
string 2-4 char 115K Baudrate:1200,2400,4800,9600,19.2,38.4,
57.6,115k,230k,460k)
SX
0,1 dec 0 Bonding (locks to a single remote address)
CMD
DESCRIPTION
D
Basic Settings
E
Extended Settings
G<X>
A single setting matching the commands above
GB
Bluetooth Address of this device
&
I/O Ports (shows the value of the switches)
V
Firmware Revision
CMD
VAL1
VAL2
DESCRIPTION
C
<addr> Connect to Remote Address
H
Help, Show list of commands
R
1 Reboot device immediate
U
<rate> <E,O,N> Temporary UART Change, immediate, not stored
Roving Networks RN-24 V 4.22 5/31/2007 page 5
NOTE: There are many other commands available
, visit
www.rovingnetworks.com for an extensive software user manual.
*** COMMANDS to MANIPULATE GPIO ***
The GPIO command interface uses combination of 2bytes, a mask, and value, packed
into a hex word for each command. The first byte, the mask, determines which GPIO
are to be affected, and the second byte is the value to set.
15 --------- 8 7 -------- 0
<hexword> = MASK[7...0] VALUE[7..0]
There are 2 registers used to control the GPIO, the first is a direction register. This
controls whether the GPIO is an input or an output. The second register is the value to
apply to the GPIO if set to an output, or is the value of the built-in weak pull-
up resistor if
the GPIO is set to an input. These settings are immediate, and do not survive a power
cycle.
Examples: S@,8080 sets GPIO-7 to an output
S&,8080 drives GPIO-7 high
S&,8000 drives GPIO-7 low
Power-up values: These 2 registers will apply the direction and values upon each
subsequent power-up:
Examples: S%,0101 sets GPIO-0 to an output on power-up
S^,0303 drives GPIO-0 high, and pulls up GPIO-1.
Multiple bits can be set, any bits with a mask of 0 are left unaffected for the command.
Some GPIO are checked at power-up time to perform certain functions, so care must be
taken when manipulating them. GPIO3, 6, are used to automatically set master mode,
and auto discovery. If it is desired to use these GPIO for other purposes at power-up, a
special command must be used to disable their being sensed at power-up time. This
command is “SQ,4<cr>” this will set a flag in a stored register that is read at power-up.
CMD
VALUE
DESCRIPTION
@
<hexword> Set direction bits for GPIO
&
<hexword> Set values for GPIO
%
<hexword> Store powerup direction bits for GPIO
^
<hexword> Store powerup values for GPIO
*
<hexword> Set values for PIO8,9,10,11




