LM058 Bluetooth Serial Adapter with external antenna The LM058 Bluetooth Serial Adapter eliminates your conventional RS232 serial cables, providing an easy-to-use, invisible connection with freedom of movement. This adapter allows any device with a standard 9-pin serial port to communicate wirelessly. You can communicate with another Bluetooth serial adapter or other Bluetooth-enabled devices such as a laptop computer, PDA or mobile phone. Contents CONTENTS 1 FEATURES 2 PACKAGE 2 SPECIFICATIONS 2 GENERAL 2 RS232 INTERFACE 3 Pin-out 3 FACTORY SETTINGS 3 INSTALLATION 3 HARDWARE STRUCTURE 3 Reset Button 3 Slide Switch 4 Power Supply 4 LED Status 4 INSTALLATION PROCEDURE 4 USAGE 4 HYPERTERMINAL SETTINGS 4 CONFIGURATION 5 Configuration Start-up 5 Master role configuration and getting started 5 AT COMMAND SET 6 1 (9)
Features Supports Bluetooth Serial Port Profile and Generic Access Profile No need of external host and software Easy of installation and use True cable replacement Supports configuration of the local device Range up to 100 meters (line of sight) Package 1 Bluetooth serial adapter 1 Antenna 1 DB9 gender changer 1 USB cable for power supply 1 user s manual Specifications General Specification Baud Rate Supports 1.2/ 2.4 / 4.8 / 9.6 / 19.2 / 38.4 / 57.6 / 115.2 / 230.4 / 460.8 kbps Coverage Up to 100m Connection Point-to-point (pico net) Signal TxD, RxD, GND, CTS, and RTS RS232 Interface D-SUB 9-pin female Standard Bluetooth specification version 2.0 + EDR Frequency 2.400 to 2.4835 GHz Hopping 1,600/sec, 1 MHz channel space Modulation GFSK-1 Mbps, DQPSK-2 Mbps and 8-DPSK-3 Mbps Tx. Power Max. 18dBm (Class 1) Rx. Sensitivity -86 dbm typical Antenna Chip antenna or SMA female + external antenna Antenna Gain Chip antenna max. 1 to 2 dbi Power Supply +5 to +9 VDC Current Consumption Max. 90 ma Operation Temperature -20 C to +75 C Dimensions 35 mm (W) x 65 mm (D) x 16 mm (H) 2 (9)
RS232 Interface Pin-out Pin Signal DTE Direction DCE Direction 1 CD Input Output Not connected 2 TxD Output Input Transmitted data 3 RxD Input Output Received data 4 DSR Input Output Not connected 5 GND N/A N/A Signal ground 6 DTR Output Input Not connected 7 CTS Input Output Clear to send * 8 RTS Output Input Request to send * 9 Vcc Input Input Power Supply Factory Settings Baud rate: 19 200 bps Data bit: 8 Parity: None Stop bit: 1 Flow control: HW Others: See section AT Command Set Installation Hardware Structure 1. Power LED (red) 2. Data LED 3. Link LED (blue) 4. RS232 connector 5. Slide switch, DTE/DCE 6. Mini USB connector 7. Reset button 8. Antenna connector Reset Button By pressing the Reset button you can disconnect and reconnect a wireless connection (short press) restore the default Baud Rate, 19 200 bps (> 3 s press) 3 (9)
Slide Switch The slide switch is used to swap TXD/RXD and CTS/RTS signals. You can set the adapter as a Data Terminal Equipment (towards the antenna connector) or a Data Communications Equipment (towards the RS232 connector). Power Supply The adapter can be powered via an AC/DC converter (output power: +5 to +9 VDC / 300 ma), a USB cable or pin 9 of the D-SUB connector. LED Status Status Power LED (red) off Power LED (red) on Link LED (blue) off Link LED (blue) very fast (0.1 sec) blinking Link LED (blue) fast (0.3 sec) blinking Link LED (blue) slow (0.9 sec) blinking Link LED (blue) very slow (1.2 sec) blinking Link LED (blue) steadily on Data LED on or blinking Installation Procedure 1. Assemble the external antenna to the adapter body. 2. Plug the adapter into the COM port of device. No power supply Firmware is running OK No pairing established Pairing (slave or master mode) Discoverable and waiting for a connection (slave mode) Inquiring (master mode) Connecting (master mode) Connection established Sending or receiving data 3. Adjust the slide switch, depending on whether the device is a DTE or DCE. 4. Power the adapter on. 5. Configure the adapter if necessary. Usage You can reprogram the default settings on the adapter using HyperTerminal (shown below) or the Wireless Bluetooth Configuration Utility firmware (LM049). HyperTerminal Settings Baud rate: 19200 bps Data bit: 8 Parity: None Stop bit: 1 Flow control: HW 4 (9)
Configuration Configuration Start-up 1. Plug the adapter into a COM port of PC. 2. Power the adapter on. 3. Create a HyperTerminal file. 4. On the interface of the new HyperTerminal file, click PROPERTIES button. 5. Select the COM port where the adapter is attached to your PC and set the port properties as described above (HyperTerminal Settings). 6. Input "AT", and then press <Enter>. "OK" is displayed. If no echo, it indicates that the baud rate is probably incorrect, or the slide switch is in faulty position. Ensure that the baud rate is 19 200 bps and the slide switch position. If necessary, reprogram the configuration of adapter using AT commands. For related commands, please see the section below (AT Command Set). Master role configuration and getting started To establish a cable replacement, one of the adapters must be in the master role. You can set the adapter in the master role using ATR0. With the adapter in the master role, you can use ATO1 to manually set up a connection and ATF? to find the device you want to connect to. At any time you can disconnect/reconnect a wireless connection or restore the default baudrate (19200 bps) by pressing the reset button on the adapter. To restore all the default settings, use ATZ0 in command mode (disconnected state). 5 (9)
AT Command Set The following is the AT command set for the local adapter in the command mode (that is, when the local adapter is in the disconnection state). The commands will be preceded by AT to be executed. (Ex: To execute the address inquiry, B?, use ATB? ) All the commands and parameters are case insensitive. Command +++ A B A A1-A8 Escape sequence with guard time. When the device is in Data mode, it can be forced back into Command mode while maintaining the connection to the remote device. The characters should then be sent 1 second apart. This command is used to establish a connection. Available only when the adapter is in the master role. Connect the adapter to a specified Bluetooth device. Available only when ATD=xxxxxxxxxxxx is executed. Connect the adapter to a Bluetooth device in the neighborhood found through ATF? This command is used to display the Bluetooth address of the local adapter. B? Inquire the Bluetooth address of the local adapter. C This command enable or disable flow control signals (CTS/RTS) of the UART port. C0 Disable flow control. (default) C1 Enable flow control. D E C? Inquiry of current setting. For security purpose, this command is used to specify a unique remote Bluetooth device to be connected. In the master role, the adapter pairs and connects with the designated remote slave address. If the adapter is in the slave mode, this command is a filter condition to accept the inquiry of the master device. D=xxxxxxxxxxxx "xxxx-xx-xxxxxx" is a string of 12 hexadecimal digits. D0 Restore the status in which the adapter can connect with any remote address. D? Inquiry the designated address that can be paired and connected. This command is used to specify whether the adapter echoes characters received from the UART back to the DTE/DCE. E0 Command characters received from the UART are not echoed back to the DTE/DCE. (default) E1 Command characters received from the UART are echoed back to the DTE/DCE. E? Inquire the current setting. 6 (9)
Command F H I K L M This command is used to search for any Bluetooth device in the neighborhood within one minute. If any device is found, its name and address will be listed. The search ends with a message Inquiry ends. Xx device(s) found. Available only when the adapter is in the master role and manually connected (see command O ). F? Inquire Bluetooth devices in the neighborhood. This command can drop the connection either in master or slave role. It is also used to specify whether the adapter can be discovered or connected by remote devices. H Drop current connection. H0 The adapter enters the undiscoverable mode. If a pair has been made, the original connection can be resumed. But other remote master device cannot discover this adapter. Reboots when set. (default) H1 The adapter enters the discoverable mode. Reboots when set. H? Inquire the current setting. This command is used to inquire the firmware version and other settings. I0 Inquire the version codes. I1 Inquire all current settings. I2 Inquire status on RSSI at Online Command Mode. (default) K0 One stop bit. This command is used to specify number stop bits of COM port. K1 Two stop bits. K? Inquire the current setting. This command is used to specify the baud rate of COM port. L* 1200 bps L# 2400 bps L0 L1 (default) L2 L3 L4 L5 L6 L7 4800 bps 9600 bps 19200 bps 38400 bps 57600 bps 115.2 kbps 230.4 kbps 460.8 kbps L? Inquire the current baud rate. This command is used to specify parity bit setting of COM port. (default) M0 None parity bit. M1 Odd parity. M2 Even parity. M? Inquire the current setting. 7 (9)
Command N This command is used to specify a name for the adapter. You can specify a friendly name using 0 to 9, A to Z, a to z, space and -, which are all valid characters. Note that space and - are not permitted first or last in the name. The default name is Serial Adaptor. N=xxxxxx "xxxxxx" is a character string with a maximal length of 16. N? Inquire the name of the local adapter. O P (default) O0 This command directs the device to switch from Command mode to Online data mode. It is also used enable/disable auto-connection feature (available only when the adapter is in the master role). O Switch from Command mode to Online Data mode. O1 Automatically connect the adapter to a device specified by ATD, or any available device if ATD is not executed. Reboots when set. Disable auto-connection feature. After it is executed, you need to execute ATA to manually connect a remote device. Reboots when set. O? Inquire the current setting. This command is used to specify a PIN. The default PIN is 1234". Paired adapters should have a same PIN. P=xxxx "xxxx" is a 4 8-digit string. P0 Cancel authentication by PIN. Q R S P? Inquire the current PIN. The command is used to set if result messages are prompted when AT commands are executed. The result messages are: OK/ERROR for command execution, or CONNECT/DISCONNECT for connection status. (default) Q0 Result messages are prompted. Q1 Result messages are not prompted. Q? Inquire the current setting. This command is used to specify whether the adapter is in the master or slave role. If the device role is changed, the adapter will reboot and all paired addresses will be cleared. R0 Set the adapter to the master role. (default) R1 Set the adapter to the slave role. R? Inquire the current role of the adapter. This command is used to enable/disable auto-power saving feature of RS232 driver. S0 Disable RS232 force on (auto power down) mode. (default) S1 Enable RS232 force on (auto power down) mode. S? Inquiry of current setting. 8 (9)
Command X Disable/Enable escape sequence (+++). X0 Disable escape sequence. (default) X1 Enable escape sequence. Z X? Inquiry of current setting. This command is used to restore the default settings and originate a warm start. Z0 Restore the default settings. 9 (9)