BTLink - Bluetooth to RS

Add to my manuals
13 Pages

advertisement

BTLink - Bluetooth to RS | Manualzz

BTLink - Bluetooth to RS-232 Adapters

©

User Manual

`

Bluetooth to RS-232 Serial Adapter

Model: BTL-577 (internal chip antenna)

Model: BTL-578 (external dipole antenna)

White Box Dimension: 10.5 x 5.5 x 5 (cm)

Total Package Weight: 114 g Total Package Weight: 124 g

1. Packing Contents

1.1 Package Contents

RS-232 adapter x 1

External Dipole Antenna (Model BTL-578 Only)

Battery power line and connector x 1

USB Cable x 1

Male to Male converter (DB9M to DB9M) for DTE option

1

BTLink - Bluetooth to RS-232 Adapters

©

User Manual

2. Before using the adapter

2.1 Applies to Model BTL-578

Connect Antenna, fasten the external antenna to the adapter before performing

Quick Guide 3.1

2.2 Power input (please choose one)

Mini USB cable (Default) or DB9 connector Pin 9 (VCC, 5VDC, 100mA) or external battery

(3~3.7 VDC Li-Polymer Battery or 3 units standard A, AA or AAA battery).

2.3 Power Rating vs Range

This Bluetooth to RS232 device is class 1 power rated. Typically built-in Bluetooth devices are class 2 power rated e.g. around the 10 meter range for a PC or Laptop. You will need to use class

1 adapters on both sides if you need to reach the free air (no obstruction) 100 meters range.

3. Quick Guide

3.1 USB power cable

Using the USB cable provided in the package, plug the mini USB connector into the Bluetooth

RS-232 adapter then connect it to the power adapter with USB or PC/Laptop.

3.2 Turn on the power from the slide switch. The red LED power is on.

S: Slave

Power LED (Red)

DIP switch

M: Master

Reset Pin Hole

DCE/DTE Switch

Status LED (Blue)

DIP switch for Group:

G: Enable

N/G: Disable

Mini USB (Power In)

Power Source Switch

Power Line Connector

2

BTLink - Bluetooth to RS-232 Adapters

©

User Manual

Notes: a) The DIP switches are disabled by default (use the DIP=Y command via the BTLink software or using a terminal program) as listed in section 9 “Setup Command set” to enable their use. If

“DIP=Y” then you can pair two BTLink models together by using the DIP switches - setting one as master, the other as slave and using the group switch to connect to each other when in close proximity. b) If powering by USB connector or battery then use the power source switch to select this option but only use one power input source i.e. do not connect USB connector if powering via the battery connector. You alternatively set the power source switch to allow power to be input from the DB9 pin 9 of the RS232 connector on this device.

3.3 Configure Serial Configuration to Match Your Equipment

Check the RS-232 setting of your equipment as it may not match the default that this Bluetooth to RS232 device is setup for as the factory defaults. The Bluetooth to RS232 device by default is configured to operate at the following:

Baud rate: 19200 bps

Data bit: 8

Parity: none

Stop bit: 1

Flow control: none

If not, please modify the setting by using the BTLink or hyper terminal software and the setup command via the serial/COM port (see section 9 for the setup commands). Please note that the

USB cable is for supplying power – you cannot communicate for re-configuration of the serial port settings of the Bluetooth to RS232 adaptor; you need to do this via the RS232 end.

3.4 Two RS-232 adapter connections in a master-slave environment (see section 3.2 for illustration).

Upon first connection, it is in slave-mode by default and can be set to master-mode using the setup command (See “ROLE” command in section 9).

3.5 If you are using PC/Laptop, please refer to the built in Bluetooth management software software / user guide for information about searching and paring with Bluetooth devices.

Your Bluetooth management software will need to support (SPP) serial port profile based devices such as this Bluetooth to RS232 unit.

3

BTLink - Bluetooth to RS-232 Adapters

©

User Manual

3.6 External battery options

Standard A, AA or AAA battery: 3 units for each model.

Li-Polymer Battery: 3~3.7 VDC. The capacity depends on the applications – use 700mAh to 2000 mAh (for reference).

CAUTION:

Do not supply external power via USB connector nor via DB9(Pin 9) when using external battery option.

4. Factory Settings for COM port and Bluetooth:

Baud rate: 19200 bps

Data bit: 8

Parity: none

Stop bit: 1

Flow control: none

Bluetooth PIN code is “1234”

Bluetooth default setting: To inquire default values, see section 9 for the setup command.

5. Reset Button (Pressed with a clip or pin into the hole)

5.1 Disconnect and reconnect a wireless connection (after a short press).

5.2 Restore the factory settings (after over three seconds’ press).

6. DCE/DTE Slide Switch

The RS-232 standard is asymmetrical as to the definitions of the two ends of the communications link so it assumes that one end is a DTE and the other is a DCE e.g. a modem.

Use the slide switch to swap between DTE (as a PC/Laptop for example) or DCE (Female) mode of the Bluetooth to RS232 adaptor. By switching, you can set the adaptor either as a DTE (switch towards antenna connector) or a DCE (towards RS232 connector).

Typically DCE mode devices connect to DTE equipment. The adaptor is setup as a DCE device as the default with the DB9 connector as a female connector which will connect to your PC/Laptop (DTE)

4

BTLink - Bluetooth to RS-232 Adapters

©

User Manual

male DB9 serial port directly or via a 1:1 serial cable. If your PC/Laptop does not have a serial port then you can use a USB to serial device assuming your PC/Laptop has a spare USB port. DTE mode

(with the help of the supplied DB9 Male to DB9 Male adaptor) will allow you to connect to DCE type equipment (which typically have a female DB9 connector on them such as a modem or GPS device).

7. Power Supply

The adaptor can be powered via (one of) the following source.

7.1 USB cable (only 5V power lines used i.e. data lines not used so will appear as a non-responding

USB device).

7.2 External Battery: Please refer to section 3.6.

7.3 DB9 connector Pin 9 (5VDC)

8. LED Status

Status

Power LED off

Power LED on

Power LED (0.5 sec) blinking

Link LED off

Link LED fast (0.1 sec) blinking

Link LED fast (0.3 sec) blinking

Link LED slow (0.9 sec) blinking

Link LED very slow (1.2 sec) blinking

Link LED steadily on

Description

No power supply.

The power input is equal or larger than 3.5

Volt (Please check the command “DETECT”)

The power input is lower than 3.5 Volt (Please check the command “DETECT”)

No pairing established.

Pairing (slave or master mode).

Discoverable and waiting for a connection (slave mode).

Inquiring (master mode).

Connecting (master mode).

Connection established.

5

BTLink - Bluetooth to RS-232 Adapters

©

User Manual

9. Setup Command Set

The setup parameters of the unit can be configured via the DB9 RS232 serial port only (not via USB or Bluetooth). The parameters are configured through the serial port on your PC or Laptop by typing

(sending) ASCII text based commands using a terminal application such as Hyperterminal or BTLink software. You can use a USB to serial convertor if your PC/Laptop does not have a serial port but does have a spare USB port.

The BTLink software has preset configuration commands and is a free download with registration keys provided on request. It is recommended for configuring the parameters using the command set tabulated below.

Note 1: Manually typed commands should be typed in either all CAPITAL or all lowercase letters.

Note 2: Commands cannot be received by the adapters if they are paired/linked so only power one adaptor at a time for configuration.

Setup Command Set

Command

<<<

<<<

<<<=

(Default)

>>>

>>>

>>>=

(Default)

ADDRESS=

Value

?

Y

N

?

Y

N

?

Description

Set the local adapter change the data mode into command mode. The command will be unavailable if the data passes through within 1 second after setting the command.

Switch the data mode to the command.

The time interval between each character will be more than the time:

[500ms] “<” [500ms] “<” [500ms] “<” [1500ms]

Inquire the current setting.

Turn on the “<<<” command

Turn off the “<<<” command

Set the remote adapter change the data mode into command mode from the local adapter in connecting status. The command is available after 500 ms when data transferring finished.

Switch the remote adapter from the data mode to the command.

The time interval between each character will be more than the time:

[1 sec] “<” [1 sec] “<” [1 sec] “<” [2 sec]

Inquire the setting status of the “>>>” command.

Turn on the “>>>” command

Turn off the “>>>” command

This command is used to display the Bluetooth address of the local adaptor.

Inquire the Bluetooth address of the local adaptor.

6

(Default)

BAUD=

(Default)

CONNECT=

BTLink - Bluetooth to RS-232 Adapters

©

User Manual

AT

AT

AUTO=

N

?

1200

2400

4800

9600

19200

38400

57600

115200

230400

460800

921600

R

?

Y

DEVICE

1~8

Xxxxxxxxx xxx

Check the connection status between control terminal and the RS-232 adapter. Response: “OK” when the connection is ok. Response:

“ERROR” when the connection is not ok.

Test the RS-232 status when first connect the adapter with the controller.

This command is used to enable/disable auto-connection feature. It is available only when the adaptor is in the master role.

The command is available when DIP=N. The system will not re-start after change.

The Master role adapter will connect the latest paired Bluetooth device automatically.

The user will connect the Bluetooth device manually.

Inquire the current setting.

This command is used to specify the baud rate of COM port.

The command will need 200 ms delay to action.

1200 bps

2400 bps

4800 bps

9600 bps

19200 bps

38400 bps

57600 bps

115200 bps

230400 bps

460800 bps

921600 bps

Restore the default settings. (Baud rate =19200 bps)

Inquire the current baud rate.

This command is used to establish a connection manually. It is available only when the adaptor is in the master role.

Connect the adaptor to a specified Bluetooth device manually.

It is available only when “DEVICE=xxxxxxxxxxxx” is executed.

Connect the adaptor to a Bluetooth device in the neighborhood found through “SEARCH=?”

Connect the remote adapter by type the MAC address directly without searching.

7

BTLink - Bluetooth to RS-232 Adapters

©

User Manual

DEFAULT=

DETECT=

(Default)

DEVICE=

DFU=

DIP=

(Default)

DISCOVER=

Y

?

?

Y

?

N

Y

R x.x

?

Y

N

P

Y

Xxxxxxxxx xxx

R

Display the MAC address of the latest paired device.

Recover the latest connection in the command mode.

Disconnect the two adapters in the command mode

Connect the previous connected adapter.

This command is used to restore the default settings and originate a warm start.

Restore the default settings (e.g. 19200 bps).

The command will re-start the system for 1 second.

The command is used to detect the voltage of the power supply and set the alert value of low power.

Disable the voltage detection

Enable the voltage detection

Restore the default value (3.5 Volt)

Setup the range of voltage detection from 3.0 to 3.7 Volt. The “x” indicate the number.

Inquire the setting ststus

For security purpose, this command is used to specify a unique remote

Bluetooth serial adaptor to be connected.

In the master role, the adaptor pairs and connects with the designated remote slave address. If the adaptor is in the slave mode, this command is a filter condition to accept the inquiry of the master device.

“xxxxxxxxxxxx” is a string of 12 hexadecimal digits.

N

Restore the status in which the adaptor can connect with any remote address.

Inquiry the designated address that can be paired and connected.

Device Firmware Upgrade

Set the DIP switch function.

Inquire the setting status of the DIP switch function.

Turn on the function of the DIP switch. The “ROLE” and “AUTO” command are not available to set the “Master” or “Slave”.

Turn off the function of the DIP switch. The “ROLE” and “AUTO” command are available when the DIP=N.

This command is used to specify whether the adaptor can be discovered or connected by remote devices.

This command is available only when the adaptor is in the slave role.

8

(Default)

PARITY=

(Default)

PIN=

BTLink - Bluetooth to RS-232 Adapters

©

User Manual

(Default)

ECHO=

(Default)

FLOW=

(Default)

NAME=

?

Y

?

?

N

Y

N

N

Y

E

?

N

O

The adaptor enters the undiscoverable mode. If a pair has been made, the original connection can be resumed. But other remote master device cannot discover this adaptor.

The adaptor enters the discoverable mode.

Inquire the current setting.

This command is used to specify whether the adaptor echoes characters received from the UART back to the DTE/DCE.

Command characters received from the UART are not echoed back to the DTE/DCE.

Command characters received from the UART are echoed back to the

DTE/DCE.

Inquire the current setting.

This command enable or disable flow control signals (CTS/RTS) of the

UART port. Note, the setting is not affected by DEFAULT.

The command will need 1 second delay.

Disable flow control.

Enable flow control.

Inquire the current setting

This command is used to specify a name for the adaptor.

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 “first space or -, last space or – isn’t permitted”. The default name is “Serial Adaptor”.

Default device name

R

?

Serial

Adaptor xx….xx “xx….xx” is a character string with the length from 2 to 30.

Restore the default settings name=“Serial Adaptor”.

Inquire the name of the local adaptor.

This command is used to specify parity bit setting of COM port.

The command will need 200 ms delay.

None parity bit

Odd parity

Even parity

Inquire the current setting.

This command is used to specify a PIN. The default PIN is “1234”. Paired adaptors should have a same PIN. This command is used to specify a

PIN. The default PIN is “1234” and the length is not smaller than 4.

Paired adaptors should have a same PIN. The PIN code includes the

9

BTLink - Bluetooth to RS-232 Adapters

©

User Manual

(Default)

PROMPT=

(Default)

RECONNECT=

(Default)

ROLE=

?

Y

N

Y

N

?

(Default)

RSSI=

SEARCH=

?

M

S

?

1234 xx….xx

?

N

R

? numeral and English characters.

“xx….xx” is a 4~16 digit string or English character (in capital or lower case)

Cancel authentication by PIN.

Restore the default settings PIN=“1234”.

Inquire the current PIN.

The command is used to decide whether result messages are prompted when Setup commands are executed. The result messages are:

OK/ERROR for command execution, or CONNECT/DISCONNECT/Try

Connect Device for connection status.

Prompt result messages.

Not prompt result messages.

Inquire the current setting.

The command is used to re-connect the lost link for the Master adapter.

Inquire the current setting.

Re-connect is disable

Re-connect is Enable

This command is used to specify whether the adaptor is in the master or slave role. If the device role is changed, the adaptor will reboot and all paired addresses will be cleared. The command is available when the adapter is in DIP=N status. The command will need 1 second delay.

Set the adaptor to the master role.

Set the adaptor to the slave role.

Inquire the current role of the adaptor.

Received signal strength indication

Display the Received signal strength indication in command mode when connected.

Strong: RSSI>-9

Medium: -9>RSSI>-20

Weak: RSSI<-20

This command is used to search for any Bluetooth device in the neighborhood within one minute. If any device is found, its name and its 12-digit-address will be listed. The search ends with a message

“Inquiry ends. xx device(s) found.” This command is available only when the adaptor is in the master role by manual.

Inquire Bluetooth devices in the neighborhood, listing 8 devices the

10

BTLink - Bluetooth to RS-232 Adapters

©

User Manual

STATUS=

STOP=

(Default)

VERSION=

T

?

1

2

?

? maximum

Inquire all the current setting of the adapter.

Inquire the inner temperature of the IC in centigrade

Display the current setting of the adapter

This command is used to specify one or two stop bits of COM port.

The command will need 200ms delay.

One stop bit.

Two stop bits.

Inquire the current setting.

This command is used to inquiry the firmware version.

Inquire the version codes.

Remark: If you need to customize the commands for a volume application, please email us.

9.1 Commands not available in the following status

No Command Not available command in the conditions

1 ROLE=S SEARCH=? , CONNECT=?, CONNECT=P , CONNECT=xxxxxxxxxxxx ,

CONNECT=DEVICE

2 AUTO=Y

3

4

DIP=Y

<<<

SEARCH=? , CONNECT=? , CONNECT=P , CONNECT=xxxxxxxxxxxx ,

CONNECT=DEVICE

ROLE=M, ROLE=S , AUTO=Y , AUTO=N ,DISCOVER=Y,DISCOVER=N

SEARCH=? , CONNECT=? , CONNECT=P , CONNECT=xxxxxxxxxxxx ,

CONNECT=DEVICE , DFU=Y

5 >>>

6 Not connection

SEARCH=? , CONNECT=? , CONNECT=P , CONNECT=xxxxxxxxxxxx ,

CONNECT=DEVICE , DFU=Y

RSSI=? , CONNECT=Y , CONNECT=N

10. RS232 Interface

10.1 Pin-out

11

BTLink - Bluetooth to RS-232 Adapters

©

User Manual

6

7

8

9

2

3

4

5

10.2 RS232 Signals

Pin Signal DTE Direction

1 CD Input

TxD

RxD

DSR

GND

DTR

CTS

RTS

Vcc

Output

Input

Input

N/A

Output

Input

Output

Input

DCE Direction

Output

Input

Output

Output

N/A

Input

Output

Input

Input

Description

Not connected

Transmitted data

Received data

Contact manufacturer to set this

Signal ground

Contact manufacturer to set this

Clear to send

Request to send (Default)

Power supply (5VDC, 100mA Max.)

11. Example - Procedures for auto link and in group which will be undiscoverable

STEP1: Set slave part, PIN= “your password for pairing”

STEP2: Set master part, ROLE=M, PIN= “your password for pairing”, RECONNECT=Y, AUTO=Y

STEP3: Search the neighboring Bluetooth devices and wait for link after pairing

STEP4: Set slave part, DISCOVER=N

If you need more than two sets in the same space, please set the different PIN code for each pairs.

They will connect the paired units when the power on.

12. BTLink Configuration Software

Configure the BTLink Bluetooth to RS-232 adapters with ease.

Select the options or type your own custom data within the drop down and then click the button to program the settings. The terminal window displays the results.

12

BTLink - Bluetooth to RS-232 Adapters

©

User Manual

Federal Communications Commission (FCC) Statement

RADIO FREQUENCY INTERFERENCE STATEMENT

This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to

Part 15 of the FCC rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try correcting the interference by one or more of the following measures:

Reorient the receiving antenna.

Increase the separation between the equipment and receiver.

Connect the equipment into and outlet on a circuit different from that to which the receiver is connected.

Consult the dealer or an experienced radio/TV technician for help.

Warning : A shielded-type power cord is required in order to meet FCC emission limits and also to prevent interference to the nearby radio and television reception. It is essential that only the supplied power cord be used. You are cautioned that changes or modifications not expressly approved by the party responsible for compliance could void your authority to operate the equipment.

Declaration:

The information contained in this document is subject to change without notice.

Document Release V2.7.2, Date: 17/12/2012

Firmware Version: V4.6.1

FCC

CCAB09LP2610T2

1177

13

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

Download PDF

advertisement