Page 1
Firefly User Guide Revision D June 21, 2007 Part Number GC-800-314...
Page 3
Connect, Inc. All other product names, company names, logos or other designations mentioned herein are trademarks of their respective owners. Grid Connect 1841 Centre Point Circle, Suite 143 Naperville, IL 60563, USA Phone: 630.245.1445 Technical Support Phone: 630.245.1445 Fax: 630.245.1717 On-line: www.gridconnect.com Firefly User Guide...
Page 4
Date Rev. Author Comments 06/07/06 Preliminary Release 06/22/06 Firefly now available with FEMALE DB-9 07/27/06 Removed BluePlug section. 06/21/07 Add firmware code 4.22 for 7 data bit mode Firefly User Guide...
Page 5
The contents of this document shall not become part of or modify any prior or existing agreement, commitment or relationship. Firefly User Guide...
This manual contains a summary of RS232 common connection practices and cable pin descriptions. See Guide to RS-232 on page 5-8. The Firefly is NOT a Plug-and-Play device. When used in pairs, these devices consist of a radio link that connects two different RS232 devices. Therefore, you should understand basic radio transmission principals and more importantly, the methods and practices used to connect RS232 devices.
Please read these sections before calling for technical support. The Firefly has an RS-232 DB-9 Male or Female connector. Firefly is a Class1 Bluetooth device with high power transceiver (100meters/330 feet). Actual range may vary due to environment or type of client device used to connect to Firefly.
3.2 Overview The following drawings show the top and bottom views of the Firefly. Note that the standard DB-9 Male connector is shown. An optional DB-9 Female is available. POWER JACK RS232 DB9 Male GREEN STATUS LED YELLOW RX/TX LED...
Straight Cable A Firefly wireless radio set will allow you to remove the straight cable and replace it with a wireless Firefly connection. The connection looks something like the drawing below. Please note that the Firefly does NOT use all the signals from the PC or the Modem. The Firefly uses only RX, TX, RTS and CTS.
An important point to consider in the drawing is that the Firefly connected to the Modem (DCE) has been configured as a DTE device. This is done so that the signals from the Modem to the Firefly will match. You can also match the signals by using a Modem crossover or Null Modem cable as shown below.
3.2.4 Status LEDs The Firefly comes equipped with two status LEDs. The Green LED provides Bluetooth Device status, while the Yellow LED provides status of the transmit/receive lines. The Bluetooth Device status is indicated by the Green LED as shown in Table 2 - Status LEDs.
3- AUTO MASTER MODE- Firefly will act as master and auto-connect to a stored remote address. You first set the Firefly address of the device to connect to using the SR command or have Firefly auto discover and connect by setting this switch AND Switch 2 ON.
The device connected to the PC will be referenced as the SLAVE (Modem). The PC is a DTE device, so the Firefly radio attached to it must be a DCE device. The Modem is a DCE device, so the Firefly radio attached to it must be a DTE device.
Connect the MASTER unit to the PC with a straight cable. See Figure 3 - RS232 Straight Cable. 3. Assign one of the Firefly radios as the SLAVE and set the switches as shown below. The settings are for 115K. Put Switch 4 in the ON position for 9600.
In the drawing below, the slave device has a loop-back Use a program like Hyperterminal to connect to the serial port of one of the Firefly radios, then you will see a character displayed on the screen each time you send a character. See Hyperterminal Setup on page 6-18 for instructions.
DTE Factor y Default, RX=2, TX=3, RTS=7, CTS=8 Note: The table is for a Firefly with a DB9 MALE connector. See section Firefly with Female DB9 for information about units with FEMALE DB9 connectors.
Figure 6 - DCE Configuration, Male DB9, 3-Wire 3.5.1 Firefly with Female DB9 Note: The jumper settings for a Firefly with a FEMALE DB9 connector are different than a unit with a MALE DB9. The following drawings show the jumper settings for units with FEMALE connectors.
Once you change these parameters, they will be stored permanently. Note: If the Firefly is jumpered as a DCE device, then use a straight thru cable. If jumpered as a DTE device, then use a cross-over or NULL Modem cable between the Firefly and your PC.
BREAK character is seen. Auto-connect Master Mode- This mode can be set by command or by Switch 3 on the Firefly. If auto- connect mode is set, the device will initiate a connection to the pre-stored remote address immediately upon power up.
Baud Rate = 115200bps, Parity=None, Data bits = 8 bits(fixed), Stop bits 1 (fixed). • Power Mode = Auto low power discoverable mode. • Name of Device (local name) = Firefly-XXXX last 2 bytes of BT address • Service Name = SPP •...
Sent : SR,00A096112233 <cr> Reply:<cr>AOK 3) Connect. Sent : C <cr> // Places Radio in Connect Reply:AOK<cr> Device will attempt connection to remote slave. Reply:CONNECT<cr> // this will be displayed once connection is made. 4) Send /Receive data. 3-16 Firefly User Guide...
4. Firefly Command Reference The commands are all single or 2 character commands, generally comma delimited. Commands and hex input data can be upper or lower case. Text data, such as Bluetooth name, and pin code, are case sensitive. Commands fall into 4 general categories: SET COMMANDS - store information permanently and take effect after power cycle or software reset.
Page 26
Example : “ST,255” enables remote configuration forever SU,<rate> Baudrate, {1200, 2400, 4800, 9600, 19.2, 38.4, 57.6, 115K, 230K, 460K, 921K }, only the first 2 characters are needed. Example : “SU,96” sets the baudrate to 9600 baud. Firefly User Guide...
Page 28
Forces a complete reboot of the device (similar to a power cycle) & - Returns the value of the switches on Firefly, or value of PIO3,4,6,7 on other modules. Enters low power deep sleep mode (100ua) can only be exited by toggling the RESET pin on the module or power cycling the device.
Bonding (locks to a single remote address) Raw Baudrate DESCRIPTION Basic Settings Extended Settings Other Settings G<X> A single setting matching the commands above Help Bluetooth Address of this device (00A0961D97D6) Connection Status G& I/O Ports Firmware Revision (Ver 4.00 06/02/06) Firefly User Guide...
Page 30
Device Scan Inquiry, Fixed cod=0x0055AA to find instant cable pairs Kill (disconnect) from current connection Turn off Discovery and Connectability Reboot device immediate (R,1) <rate> <E,O,N> Temporary UART Change, immediate, not stored (U,9600,E) & Return the value of the DIP switches Enter low power Sleep mode Firefly User Guide...
ASCII characters. A quick way to test a remote Firefly device is to use a loop-back plug. This is just a DB9 Female plug with two jumpers: Pin 2 tied to Pin 3 and Pin 7 tied to Pin 8. This ties the receive line back to the transmit line so that any character received by the remote device is instantly sent back.
5. Guide to RS-232 Confused about how to connect your device to a Firefly? Don’t feel bad because RS-232 signal names are very confusing. You would think that the data coming out of a device would be called Transmit Data and data going into a device is Receive Data.
Page 33
You need to add some additional wires to the cable so that the master side thinks it is receiving the right signals. Here is an example of how to modify the cables to make the connection work. Since the connected Firefly User Guide...
Here is an example of how to modify a cable to add the CD signal. DTE Devic e (Computer) DCE Device 5.1.2 Firefly Signals The Firefly does not use all the 9-pin cable signals. This simplifies the connection to a Firefly. The table below shows the provided signals. 5-10 Firefly User Guide...
Cable The link on the left side has the Firefly shown as a DCE device and the link on the right shows the Firefly as a DTE device. Why? When a single cable was used, the PC is a DTE device connected to the Modem which is a DCE device.
Page 36
3. Let’s take a look at the connection to see how it works. In the following drawing, the Firefly is configured as a DTE device because the Modem on the other end of the cable is a DCE device. Since the Computer is sending out Transmit Data on pin 3, you expect to see Transmit Data on pin 3 on the other side of the link.
There are a lot of devices that can handle simple RS-232 communications but do not use any control signals like Clear To Send (CTS) and Request To Send (RTS). The Firefly needs to see the control signals for proper operation. The simple solution is to jumper the RTS and CTS pins on the cable.
Straight Cable Figure 10 - PC to Modem A pair (2 ) of Firefly wireless radios will allow you to remove the straight cable and replace it with a wireless connection. The connection looks something like Figure 11. Firefly Firefly...
DTE or DCE device for the RS232 signals. 6.1.2 Opening a Firefly To open a Firefly, remove the screw on the back of the case. The circuit board is attached to the DB9 connector.
Set the Master with Switch 2 and Switch 3 ON. 4 - OFF=115K ON=9600 3 - AU TO MASTER 2 - AU TO DISCOVER 1 - FACTORY DEFAU LTS Figure 17 - Switch 3 to Auto Master 6-16 Firefly User Guide...
First make sure the units are linked by observing the steady green LED on both units. When you type a character on the PC side, the yellow LED on the Firefly attached to it will blink. If the other Firefly is configured properly, the yellow LED on it should also blink, indicating data is being received and transmitted.
Page 42
COM port. Set to 9600, 8, None (parity), 1 None (Flow Control). Verify the settings and click 4. Select the Settings tab. Change the Emulation from Auto detect to VT100. The status should show VT100 and 9600 8-N-1. 5. Click the Call icon to complete the setup. 6-18 Firefly User Guide...
Need help?
Do you have a question about the Firefly and is the answer not in the manual?
Questions and answers