FireFly
User Manual
www.rovingnetworks.com
RN-240-um Version 1.0 2/22/2010
809 University Avenue
•
Los Gatos, CA 95032
•
Tel (408) 395-6539
•
~ 9 ~
S-,<name>
Serialized Friendly Name of the device, 15 characters maximum. This command will
automatically append the last 2 bytes of the BT MAC address to the name. Example:
S-
,MyDevice
will set the name to “MyDevice-ABCD”
SC,<hex word>
Service Class (four hex values, 11 bits used) this is used with Device Class command below
to create the 24 bit Class of Device number.
SD,<hex word>
Device Class (four hex values, major and minor in a 16 bit word, used with service class
above)
To set the Class of Device (COD) to 0x1F0123 use the commands
SC,001F
SD,0123
SM,<5,4,3,2,1,0>
Mode (0=slave, 1=master,2=trigger, 3=auto, 4=DTR, 5=ANY)
SR,<address>
Store remote address, 12 hex digits, (6 bytes) no spaces or characters between digits
Example:
SR,00A053112233
sets the remote Bluetooth address to
00A053112233
NOTE
there are two special characters that can be used for the address parameter:
SR,Z will erase any stored address.
SR,I will write the last address seen using the inquiry command.
This can be helpful when you just have only one other device in range.
S?,<0,1>
Role Switch. Enables and disables Role Switch. If set, when an incoming connection is
occurs to a slave mode device, an attempt will be made to force a role switch, allowing the
slave to become the master. This is useful in situations where high speed data is being sent
from the local device up to the remote host, and can result in better performance. However
this may create a situation whereby the connecting host will not be able to make additional
outbound connections (multipoint) while connected to this device. Default is DISABLED.
SE,<1,0>
Encryption 1 to enable, 0 to disable.
SP,<text>
Security pin code, 20 character maximum. Each time the device success pairs, the BT address
will be saved. Up to eight addresses can be stored on a first in first out bases. To erase all
stored pairings, reset the passkey command. You can use the same value that is already set.
ST,<number>
Configuration timer, number of seconds (range= 0 to 255 decimal) to allow remote
configuration over Bluetooth after power up in Slave Mode. In all Master modes, the remote
configuration timer is set to 0 (no remote configuration). In Trigger Master Mode, the
configuration timer is used as an idle timer to break the connection after time expires with no
characters being received.
SW,<hex word>
Enable low power SNIFF mode. See Low Power section
S|,<value>
Low power connect mode.
S$,<char>
Configuration detect character. This allows a change from the default $$$ to some other
character.
VALUE
(decimal)
DESCRIPTION
0
No remote config, No local config when
connected
1-252
Time in seconds from power up to allow
config
253
Continous config LOCAL only
254
Contiuous config, REMOTE only
255
Continous config, both LOCAL and REMOTE