Transcript
TABLE OF CONTENTS
Bluetooth Serial Adaptor User’s Manual
1. INTRODUCTION…………………………………………………3 1.1. Features………………………………………………………… 3 1.2. Package……………………………….…………...……………3 2. SPECIFICATIONS……………………………………….……...3 2.1. General………………………...……………………………….3 2.2. RS232 Interface………………….........................................4 2.2.1. Pin-out………………………………………………………4 2.2.2. Signals………………………….....................................4 2.3. Factory Settings………………………………………..............4 3. INSTALLATION……………………………………………………4 3.1. Hardware Structure...…………………………………………..4 3.1.1. Reset Button……………………………………………..4 3.1.2. Slide Switch ………………………………………………5 3.1.3. Power Supply …………………………………………….5 3.1.4. LED Status……………………………………………..... 5 3.2 Installation Procedure………………………………………….5 4. USAGE…………………………………………………………….5 4.1 HyperTerminal Settings………………………………………..5 4.2 Configuration…………….……………………………………..5
Wireless Solutions in Your Hand
4.2.1. Configuration Start-up…………………………………..6 4.2.2. Master Role Configuration………………………………6 4.3 AT Command Set………………………………………………6
-2-
1. Introduction
2.2. RS232 Interface
Thank you for purchasing our Bluetooth serial adaptor. The adaptor eliminates your conventional RS232 serial cables, providing an easy-to-use, invisible connection with superior freedom of movement. This tiny adaptor allows any device with a standard 9-pin serial port to communicate wirelessly. You can communicate with another Bluetooth serial adaptor or other Bluetooth-enabled devices such as a laptop computer, PDA or mobile phone.
1.1. Features z z z z z z
Supports Bluetooth Serial Port Profile and Generic Access Profile No need of external host and software Easy of installation and use Supports configuration of the local device Easy of maintenance Supports up to 100 meters (line of sight)
1.2. Package
z z z z z z
Bluetooth serial adaptor: 2 ea Antenna: 2 ea DB9 male to female converter: 2 ea USB cable for power supply: 2 ea DC adaptor: 2 ea User’s manual: 1
2. Specifications 2.1. General Specification Baud Rate Coverage Connection Signal RS-232 Interface Standard Frequency Hopping Modulation Tx. Power Rx. Sensitivity Antenna Antenna Gain Power Supply Current Consumption Operation Temperature Dimensions
Description Supports 4.8/9.6/19.2/38.4/57.6/115.2/230.4/460.8 Kbps Up to 100 m Point-to-point (pico net) TxD, RxD, GND, CTS, and RTS D_SUB 9-pin female Bluetooth specification version 2.0+EDR 2.400 to 2.4835 GHz 1,600/sec, 1MHz channel space GFSK-1 Mbps, DQPSK-2 Mbps, and 8-DPSK-3 Mbps Max. 18 dBm (Class 1) -86 dBm typical Chip antenna or SMA female + external antenna (optional) Chip antenna max. 1 to 2 dBi +5 to +9 V DC Max. 90 mA -20°C to +75°C 35 mm (W) x 65 mm (D) x 16 mm (H)
-3 -
2.2.1. Pin-out
2.2.2. Signals Pin Signal Direction Description 2 TxD Output Transmitted data 3 RxD Input Received data 5 GND N/A Signal ground 7 CTS Input Clear to send (Remarks) 8 RTS Output Request to send (Remarks) 9 Vcc Input Power supply Remarks: The default hardware configuration is for using CTS/RTS. If you want to use DSR/DTR, please contact us.
2.3. Factory Settings The factory settings of COM port are as follows: z Baud rate: 19200 bps z Data bit: 8 z Parity: none z Stop bit: 1 z Flow control: H/W or none z Others: Please refer to section 4.3 AT Command Set.
3. Installation 3.1. Hardware Structure The figure below is an outline of the adaptor.
1 Power LED 5 Slide switch
2 Data LED 6 Mini USB connector
3 Link LED 7 Reset button
4 RS232 connector 8 Antenna connector
3.1.1. Reset Button By pressing the Reset button, you can: z Disconnect and reconnect a wireless connection (after a short press). z Restore the factory settings (after over three seconds' press).
-4-
3.1.2. Slide Switch 3.1.2. 3.1.2. Slide Slide Switch Switch The slide switch is used to set the adaptor as DTE (to the side of antenna The The slide slide switch switch is is used used to to set set the the adaptor adaptor as as aa a DTE DTE (to (to the the side side of of antenna antenna connector) or DCE (to the side of RS232 connector). connector) connector) or or aa a DCE DCE (to (to the the side side of of RS232 RS232 connector). connector). 3.1.3. Power Supply 3.1.3. 3.1.3. Power Power Supply Supply The adaptor can be powered via: The adaptor can The adaptor can be be powered powered via: via: z An AC/DC converter (output power: +5 to +9 V DC/300 mA) z An z An AC/DC AC/DC converter converter (output (output power: power: +5 +5 to to +9 +9 V V DC/300 DC/300 mA) mA) z A USB cable z A z A USB USB cable cable z Pin 9 of the D SUB 9-pin connector z Pin z Pin 99 of of the the D D SUB SUB 9-pin 9-pin connector connector 3.1.4. LED Status 3.1.4. 3.1.4. LED LED Status Status The following is LED status information. The The following following is is LED LED status status information. information. Status Status Status Power LED off Power Power LED LED off off Power LED on Power Power LED LED on on Link LED off Link Link LED LED off off Link LED fast (0.1 sec) blinking Link Link LED LED fast fast (0.1 (0.1 sec) sec) blinking blinking
Description Description Description No power supply. No No power power supply. supply. Firmware is running OK. Firmware Firmware is is running running OK. OK. No pairing established. No pairing established. No pairing established. Pairing (slave or master mode). Pairing Pairing (slave (slave or or master master mode). mode). Discoverable and and waiting waiting for for aa a Discoverable Discoverable and waiting for connection (slave mode). connection connection (slave (slave mode). mode). Inquiring (master mode). Inquiring Inquiring (master (master mode). mode). Connecting (master (master mode). mode). Connecting Connecting (master mode). Connection established. Connection Connection established. established.
Link LED fast (0.3 sec) blinking Link Link LED LED fast fast (0.3 (0.3 sec) sec) blinking blinking Link LED slow (0.9 sec) blinking Link Link LED LED slow slow (0.9 (0.9 sec) sec) blinking blinking Link LED LED very slow (1.2 sec) blinking Link Link LED very very slow slow (1.2 (1.2 sec) sec) blinking blinking Link LED steadily on Link Link LED LED steadily steadily on on
3.2. Installation Procedure 3.2. 3.2. Installation Installation Procedure Procedure
Step 1: provided with an external antenna, assemble to the adaptor body. Step Step 1: 1:IfIf If provided provided with with an an external external antenna, antenna, assemble assemble ititit to to the the adaptor adaptor body. body. Step 2: Plug the adaptor into the COM port of device. Step Step 2: 2: Plug Plug the the adaptor adaptor into into the the COM COM port port of of device. device. Step 3: Adjust the slide switch, depending on whether the device is DTE or DCE. Step Step 3: 3: Adjust Adjust the the slide slide switch, switch, depending depending on on whether whether the the device device is is aa a DTE DTE or or DCE. DCE. Step 4: Power the adaptor on. Step Step 4: 4: Power Power the the adaptor adaptor on. on. Step 5: Configure the adaptor necessary. Step Step 5: 5: Configure Configure the the adaptor adaptor ififif necessary. necessary.
4. Usage 4. 4. Usage Usage You can reprogram the default settings on the adaptor using HyperTerminal. You You can can reprogram reprogram the the default default settings settings on on the the adaptor adaptor using using HyperTerminal. HyperTerminal.
4.1 HyperTerminal Settings 4.1 4.1 HyperTerminal HyperTerminal Settings Settings z z z z z z z z z z z z z z z
Bits per second: 19200 bps (baud rate) Bits Bits per per second: second: 19200 19200 bps bps (baud (baud rate) rate) Data bit: Data Data bit: bit: 88 8 Parity: None Parity: Parity: None None Stop bit: Stop Stop bit: bit: 11 1 Flow control: H/W Flow Flow control: control: H/W H/W
4.2 Configuration 4.2 4.2 Configuration Configuration 4.2.1 Configuration Start-up 4.2.1 4.2.1 Configuration Configuration Start-up Start-up Step 1: Plug the adaptor into COM port of PC. Step Step 1: 1: Plug Plug the the adaptor adaptor into into aa a COM COM port port of of PC. PC. Step 2: Power the adaptor on. Step Step 2: 2: Power Power the the adaptor adaptor on. on. Step 3: 3: Create Create aa a HyperTerminal HyperTerminal file. file. Step Step 3: Create HyperTerminal file.
Step 4: On the interface of the new HyperTerminal file, click Properties button. Step 4: On the interface of the new HyperTerminal file, click Properties button. Step 5: Select the COM port where the adaptor is attached to your PC and set the port Step 5: Select the COM port where the adaptor is attached to your PC and set the port properties as described in section 4.1 HyperTerminal Settings. properties as described in section 4.1 HyperTerminal Settings. Step 6: Input "A" in the file and then press . Step 6: Input "A" in the file and then press . If no echo, that is, nothing is displayed when you input "A", it indicates that the If no echo, that is, nothing is displayed when you input "A", it indicates that the baud rate is incorrect. Ensure that the baud rate is 19200 bps. baud rate is incorrect. Ensure that the baud rate is 19200 bps. Step 7: Input "AT", and then press . Step 7: Input "AT", and then press . "OK" is displayed. "OK" is displayed. If necessary, reprogram the configuration of adaptor using AT commands. For related If necessary, reprogram the configuration of adaptor using AT commands. For related commands, please refer to section 4.3 AT Command Set. commands, please refer to section 4.3 AT Command Set. 4.2.1 Master Role Configuration 4.2.1 Master Role Configuration You can use "ATR0" to change the adaptor to the master role. When the adaptor is in You can userole, "ATR0" to change the adaptor to the set master When the the master you can use "ATO1" to manually up arole. connection andadaptor "ATF?"istoin the role,you youwant can use "ATO1" to manually set up a connection and "ATF?" to findmaster the device to connect. find the device you want to connect.
4.4. AT Command Set 4.5. 4.3. AT Command Set
The following is the AT command set for the local adaptor in the command mode The following is the AT command set for the local adaptor in the command mode (that is, the local adaptor is in the disconnection state). All the commands and (that is, the local adaptor is in the disconnection state). All the commands and parameters are case insensitive. parameters are case insensitive. Command Description Command Description Description This command is used to establish a connection. A This commandonly is used establish It is available whentothe adaptora isconnection. in the master role. A It is available only when the adaptor is in the master role. Connect the adaptor to a specified Bluetooth device. A Connect the adaptor to a"ATD=xxxxxxxxxxxx" specified Bluetooth device. It is available only when is executed. A It is available only when "ATD=xxxxxxxxxxxx" is executed. Connect the adaptor to a Bluetooth device in the neighborhood found A1-A8 Connect the adaptor to a Bluetooth device in the neighborhood found through "ATF?". A1-A8 through "ATF?". This command is used to display the Bluetooth address of the local B This command is used to display the Bluetooth address of the local adaptor. B adaptor. B? Inquire the Bluetooth address of the local adaptor. B? Inquire the Bluetooth address of the local adaptor. For security purpose, this command is used to specify a unique remote For security purpose, thistocommand is used to specify a unique remote Bluetooth serial adaptor be connected. Bluetooth serial adaptor to be connected. In the master role, the adaptor pairs and connects with the designated D In the master role, the adaptor pairs and connects with the designated remote slave address. D remote slave address. If the adaptor is in the slave mode, this command is a filter condition to Ifaccept the adaptor is in of thethe slave mode, this command is a filter condition to the inquiry master device. accept the inquiry of the master device. D=xxxxxxxxxxxx "xxxx-xx-xxxxxx" is a string of 12 hexadecimal digits. D=xxxxxxxxxxxx "xxxx-xx-xxxxxx" is a string of 12 hexadecimal digits. Restore the status in which the adaptor can connect with any remote D0 Restore address.the status in which the adaptor can connect with any remote D0 address. D? Inquiry the designated address that can be paired and connected. D? Inquiry the designated address that can be paired and connected. -6 -6 -
-5 --5 -5 -
Command Command
Description Description This command is used to specify whether the adaptor echoes characters This command is used to specify whether the adaptor echoes characters E received from the UART back to the DTE/DCE. E received from the UART back to the DTE/DCE. Command characters received from the UART are not echoed back to the Command characters received from the UART are not echoed back to the E0 DTE/DCE. E0 DTE/DCE. Command characters received from the UART are echoed back to the characters received from the UART are echoed back to the E1 (default) Command DTE/DCE. E1 (default) DTE/DCE. Inquire the current setting. E? Inquire the current setting. E? This command is used to search for any Bluetooth device in the This command is used to search for any Bluetooth device in the neighborhood within one minute. When one minute is up, the names and neighborhood within one minute. If any device is found, its name and F addresses of devices if found will be listed with an ending message. address will be listed. The search ends with a message "Inquiry ends. xx F This command is available only when the adaptor is in the master role. device(s) found." This command is available the adaptor is in the master role. F? Inquire Bluetooth devices inonly the when neighborhood.
N N N=xxxxxx N=xxxxxx
H1 H? (default)
The adaptor enters setting. the discoverable mode. Inquire the current
I
H?
Inquire the current setting. This command is used to inquiry the firmware version.
I
I?
This command is used to inquiry the firmware version. Inquire the version codes.
Description Description This command is used to specify a This command is used to specify a name name for for the the adaptor. adaptor. You You can can specify specify aa friendly friendly name name using using 00 to to 9, 9, A A to to Z, Z, aa to to z, z, space space and and –, –, which which are are all valid valid characters. characters. Note Note that that "first "first space space or or -,-, last last space space or or –– isn’t isn’t permitted". permitted". The The all default name is “Serial Adaptor”. default name is “Serial Adaptor”. "xxxxxx" is is aa character character string string with with aa maximal maximal length length of of 16. 16. "xxxxxx"
N? N? O O
F?
Inquire Bluetooth in the neighborhood. This command is devices used to specify whether the adaptor can be discovered or connected by remote devices. This command is used to specify whether the adaptor can be discovered H or The connected adaptor enters by remote the undiscoverable devices. mode. If a pair has been made, the original connection can be resumed. But other remote master device H0 The adaptor enters the undiscoverable mode. If a pair has been made, cannot discover this adaptor. the original connection can be resumed. But other remote master device H0 cannot discover enters thisthe adaptor. discoverable mode. H1 (default) The adaptor H
Command Command
P P
Inquire Inquire the the name name of of the the local local adaptor. adaptor. This command command is is used used to to enable/disable enable/disable auto-connection auto-connection feature. feature. This ItIt is is available available only only when when the the adaptor adaptor is is in in the the master master role. role. Automatically Automatically connect connect the the adaptor adaptor to to aa device device specified specified by by "ATD" "ATD" or or any any available available O0 O0 (Default) (Default) device device ifif "ATD=xxxxxxxxxxxx" "ATD=xxxxxxxxxxxx" is is not not executed. executed. Disable auto-connection auto-connection feature. feature. After After itit is is executed, executed, you you need need to to execute execute "ATA" "ATA" to to Disable O1 O1 manually manually connect connect aa remote remote device. device. O? Inquire the the current current setting. setting. O? Inquire This command is used This command is used to to specify specify aa PIN. PIN. The The default default PIN PIN is is "1234". "1234". Paired Paired adaptors adaptors should have have aa same same PIN. PIN. should P=xxxx P=xxxx
"xxxx" "xxxx" is is aa 4-digit 4-digit string. string.
P0 P0 P? P?
Cancel authentication authentication by by PIN. PIN. Cancel Inquire the current PIN. Inquire the current PIN.
L I?
Inquire the version codes. This command is used to specify the baud rate of COM port.
Q0 Q0 (default) (default)
The command command is is used used to to decide decide whether whether result result messages messages are are sent sent back back to to the the The DTE/DCE DTE/DCE when when AT AT commands commands are are executed. executed. The result messages are: OK/ERROR for command execution, or The result messages are: OK/ERROR for command execution, or CONNECT/DISCONNECT CONNECT/DISCONNECT for for connection connection status. status. Result messages are back to the Result messages are back to the DTE/DCE. DTE/DCE.
L
L0
This is used to specify the baud rate of COM port. 4800command bps
Q1 Q1
Result Result messages messages are are not not back back to to the the DTE/DCE. DTE/DCE.
L0 L1
4800 9600 bps 9600 19200bps bps
Q? Q?
L1 L2 (default) L2 (default) L3
19200 38400 bps
L3 L4
38400 57600 bps
L4 L5
57600 115200bps bps
R0 R0
Inquire Inquire the the current current setting. setting. This command This command is is used used to to specify specify whether whether the the adaptor adaptor is is in in the the master master or or slave slave role. role. IfIf the the device device role role is is changed, changed, the the adaptor adaptor will will reboot reboot and and all all paired paired addresses addresses will will be be cleared. cleared. Set Set the the adaptor adaptor to to the the master master role. role.
L5 L6
115200 bps 230.4 Kbps
R1 R1 (default) (default)
Set Set the the adaptor adaptor to to the the slave slave role. role.
L6 L7
230.4 460.8 Kbps
R? R?
Inquire Inquire the the current current role role of of the the adaptor. adaptor.
L7 L?
460.8 InquireKbps the current baud rate.
L?
Inquire the current baud rate.
Q Q
R R
Z Z
This command is is used used to to restore restore the the default default settings settings and and originate originate aa warm warm start. start. This command Z0 Z0
-- 77 --
Restore Restore the the default default settings settings (e.g. (e.g. 19200 19200 bps). bps). - 8- 8-