background image

  

                            

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 

  

[email protected]

 

~ 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 

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 

Содержание FIREFLY RN-240

Страница 1: ...Adapter Install Guide and User Manual Version 1 0 Copyright 2010 Roving Networks Inc All Rights Reserved The contents of this document can be changed by Roving networks without prior notice and do not constitute any binding undertakings from Roving networks Roving Networks is not responsible under any circumstances for direct indirect unexpected or consequent damage that is caused by this document...

Страница 2: ...B to Bluetooth RN USB X has pairing switches and can be used with the FireFly BP to create a wireless connection to a PC without using the PC s Bluetooth stack For more information on cable replacement please refer to our Cable Replacement Application Note on the website Status LEDs The GREEN LED shows the Bluetooth connection status and the adapter operational mode Upon boot up it blinks two time...

Страница 3: ...ld be blinking On your PC open the Bluetooth device manager and click on Add a new device The Bluetooth device manager is located in the bottom right corner of your screen in the taskbar The Bluetooth device manager will display a list of all the Bluetooth devices that are discoverable The FireFly will be displayed as FireFly XXXX where XXX is the last 4 digits of the MAC address Pairing Next you ...

Страница 4: ...skey is required This is a series of numbers or characters 1234 is the default for the Roving Networks Bluetooth devices and modules 2 Once this is entered the remote Bluetooth device and local device compare their passkeys and if they match a link key is generated and stored Usually but not always this is stored by the remote device 3 Upon subsequent connections the devices will first compare lin...

Страница 5: ... for a moment and then continues to blink at about once per second In slave mode sets a special class of device that is used the master to auto connect If Switch 3 also ON the h stores and connects to a remote Roving Networks Bluetooth Device that connects to a stored remote address First set the Bluetooth address of and or through instant cable replacement settings OFF 115K will be overridden by ...

Страница 6: ...ection is lost This mode can also be enabled by setting Dip Switch 2 This is the high speed connect mode and cannot be broken by software break characters In all master modes the device will not be discoverable or allow configuration remotely over pecification RN 240F Female DB9 RN 422M Male DB9 NC NC TXD NC RXD RXD NC TXD GND GND NC 5 VDC input CTS RXD RTS TXD 12VDC NC NOTE The RS422 interface us...

Страница 7: ... 1 stop bit Remote Configuration over Bluetooth NOTE Remote configuration can only occur if the bootup configuration timer default 60 seconds has not expired This timer is set to 0 remote config disabled for master mode and auto connect slave mode so that data can immediately flow between the 2 devices in cable replacement fashion You must first pair the Bluetooth device with your computer Click o...

Страница 8: ... only reads the configuration from flash when powering up or after a reboot Some examples of common configuration commands 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 R 1 reboots the module Set commands S7 1 0 7 bit data mode 1 to enable 0 to disa...

Страница 9: ...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 E...

Страница 10: ...ld be held HIGH before sending this command as lowering PIO6 will cause a disconnect CFI Connect and immediately go into FAST data mode using the LAST address found from the Inquiry command NOTE you will not be able to enter command mode while connected PIO6 can still be used to disconnect CFR Connect and immediately go into FAST data mode using the REMOTE address Similar to the C command but bypa...

Страница 11: ...nt Using two Roving Networks Bluetooth serial adapters or FirePlug RN USB X USB dongle with the power OFF set each device as shown below Slave Auto discovery on Power up both devices and the master will discover the slave device store its Bluetooth address and connect The devices are now paired and the green LED on each device should be on solid After pairing set switch 2 on both devices to OFF so...

Отзывы: