bluebee user's manual (recovered)

36
ROBOT . HEAD to TOE Product User’s Manual – BlueBee Cytron Bluetooth Module BlueBee User's Manual V1.0 July 2012 Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 1

Upload: saniy-bin-hj-ahmad

Post on 25-Dec-2015

6 views

Category:

Documents


2 download

DESCRIPTION

BlueBee User's Manual (Recovered)

TRANSCRIPT

Page 1: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

Cytron Bluetooth ModuleBlueBee

User's Manual

V1.0

July 2012

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 1

Page 2: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

Index

1. Introduction and Overview 3

2. P acking List 4

3. Dimension 5

4. Product Layout 6

5. Product Specification and Limitations 9

6. Hardware Interface 10

6.1 Using SKXBEE-BOARD 10

6.2 Using UC00A/B 11

7. AT Command 13

8. Getting Started 16

8.1 Communication between 2 computers 16

8.2 Communication between microcontroller and computer 23

9. Warranty 24

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 2

Page 3: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

1. INTRODUCTION AND OVERVIEW

BlueBee is Bluetooth wireless module from Cytron Technologies which is design to adapt the from factor of XBee module. The pinout of BlueBee is compatible with XBEE which is suitable for all kinds of microcontroller systems that have 3.3V power out. There are 2 modes on BlueBee which is Transparent mode and AT mode. The baudrate of module may be set using AT commands/mode.

The BlueBee module comes with an on-board antenna, the antenna provides better signal quality. It acts like a transparent serial port, which works with a variety of Bluetooth adapter and Bluetooth phone. BlueBee is compatible with XBEE starter kit, so you may use SKXBEE-BOARD or Arduino-XBee shield for BlueBee communication. The BlueBee is only slave module. Communication among two BlueBee is not possible.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 3

Page 4: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

2. PACKING LIST

Please check the parts and components according to the packing lists. If there are any parts missing, please contact us at [email protected] immediately.

1. 1 x BlueBee module

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 4

Page 5: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

3. DIMENSION

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 5

Page 6: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

4. PRODUCT LAYOUT

1. Status LEDWhen the module is power on, LED will start blinking. The blinking style will indicate which work mode is it in . The different modes has different blinking time interval.

AT Mode Slow blinking (0.25Hz)

Trans Mode Fast blinking (2Hz)

Paired Mode Slow blinking (1Hz)

Connection Mode

LED will blink twice and stop for long time (~2 seconds), and repeat itself.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 6

Page 7: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

2. BlueBee Working ModesThere are default 2 modes for BlueBee module which are AT mode and Trans mode. User need to select either AT mode or Trans mode using the jumper provided.

AT modeSelect AT mode to set or to inquire control parameter. Baud rate for AT mode is 38400 bps. Others baud rate will not working.

Trans modeSelect Trans mode to transmit or receiver data from other Bluetooth device.

Pin Function

Pin Name Description

1 3V3 3.3V (+) supply for BlueBee module

2 TXD UART Data output

3 RXD UART Data input

4 NA NA

5 RESET Reset for BlueBee module

6 P9 Connection Indicator, High = Connected, Low = No connection

7 NA NA

8 P8 LED, Mode indicator, connected to BlueBee status LED

9 NA NA

10 GND Ground port

11 NA NA

12 CTS UART clear to send, active low

13 NA NA

14 NA NA

15 NA NA

16 RTS UART requesr to send, active low

17 NA NA

18 NA NA

19 NA NA

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 7

Page 8: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

20 NA NA

* Please do not make any connection to those NA pin.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 8

Page 9: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

5. PRODUCT SPECIFICATION AND LIMITATIONS

Absolute Maximum Rating

Symbol Parameter Min Max Unit

3.3 Operating voltage 3.0 3.6 V

RX Receiver pin of BlueBee module 0 3.3 V

TX Transmit pin of BlueBee module 0 3.3 V

Reset Reset pin of BlueBee module 0 3.3 V

GND Ground 0 0 V

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 9

Page 10: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

6. HARDWARE INTERFACE

SKXBEE-Board or UC00A/B may use to enabling bluetooth wireless control. This section will show BlueBee installation with SKXBEE-BOARD and UC00A/B for bluetooth wireless communication.

6.1 Using SKXBEE-BOARD

This board is basically a USB to UART breakout board for XBee module. The 2mm female header soldered on board allows user to plug in the XBEE module without soldering. Since BlueBee is compatible with XBEE, user may use this board for Bluetooth wireless communication.

■ Plug BlueBee module onto SKXBEE-BOARD.

■ Connect USB B Type to SKXBEE-BOARD and the other end to USB port of computer or laptop. Computer/laptop will detect COM port for the 1st time using. You may check the COM port at hardware device. For this example, the COM port for BlueBee USB Serial port is COM50. Now you can start communicating with BlueBee module, in AT mode or Trans mode.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 10

Page 11: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

6.2 Using UC00A/UC00B

UC00A/B is USB to UART converter. It used as computer standard interface, USB to connect a device to a PC/laptop via UART/COM. The driver for UC00A/B need to install before we can use it.

■ Plug the BlueBee module onto XBEE Breakout board.

■ Using female to female jumper wires, connect pin from XBEE Breakout board to UC00A/B. The pins used are VCC, GND, Tx and Rx pin. Tx and Rx pins should be cross connected between them. In other words, Tx pin of BlueBee should be

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 11

Page 12: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

connected to Rx pin of UC00A/B and Rx pin of BlueBee should be connected to Tx pin of UC00A/B.

■ Ensure 3.3V is select on UC00B. *Please ensure to select the corrent voltage, else BlueBee will be damaged, same apply if UC00A is used.

■ Connect USB of UC00B into USB port of computer/laptop. Wait a minute for driver devices detect the COM port. The COM port should be different with SKXBEE-BOARD COM port.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 12

Page 13: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 13

Page 14: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

7.0 AT COMMAND

BlueBee has 2 modes of operation which is AT mode and Transmit mode. User may send the AT command to the module to set the control parameters and sent control order. AT commands should end with “\r\n”. It means when programming is finish, user should add terminator (“ENTER” or “\r\n”). The default baudrate in AT mode is 38400bps.

1.Test

Command Response Parameter

AT OK None

2. Reset

Command Response Parameter

AT+ RESET OK None

3.Get module bluetooth module address

Command Response Parameter

AT+ADDR? +ADDR:<Param>OK

Param: Bluetooth address

Bluetooth address will show as this way: NAP:UAP:LAP (Hexadecimal)

Example:

Module Bluetooth address: 12: 34: 56: ab: cd: ef

at+addr?\r\n+ADDR: 1234:56:abcdefOK

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 14

Page 15: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

4.Set/Inquire-Serial Parameter

Command Response Parameter

AT+UART=<Param1>, <Param2>, <Param3>

AT+UART?

OK

+UART=<Param1>, <Param2>, <Param3>

OK

Param1: baud rate(bits/s)The value (Decimal) should be one of following:480096001920038400576001152002304004608009216001382400

Param2: Stop bit0 ----1 bit1----- 2 bits

Param3: Parity bit0 ---- None1 ---- Odd parity2 ---- Even parity

Default: 9600,0,0

Example:Set baud rate to be 115200, stop bit to be 2 bits, parity bit to be even parity.

AT+UART=15200,1,2,\r\nOKAT+UART?+UART:115200,1,2OK

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 15

Page 16: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

To set or inquire control parameter, user need to set up hardware interface refer to Section 6 “Hardware Interface”. User may use either SKXBEE-BOARD or UC00A/B and hypertrminal application to set/inquire the control parameter.

BlueBee module need to set to AT mode shown as figure below. Status LED will blink with slow blinking when BlueBee in AT mode.

Open and set up HyperTerminal. Bare in mind that the baud rate for AT mode is 38400 bps. Figure below is an example to send AT command using HyperTerminal.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 16

Page 17: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 17

Page 18: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

8.0 GETTING STARTED

BlueBee is a slave module, so communication among two BlueBee is not possible. It can create Bluetooth wireless link other host/master device such as Bluetooth handphone, SKKCA , computer with built-in Bluetooth, and others Bluetooth devices. This section will show example communication of BlueBee between 2 computers and between computer and microcontroller.

8.1 Communication between 2 computers For this example, 2 computers named computer A and computer B will be used. Computer A as a host to BlueBee and computer B as a host to Bluetooth USB dongle. BlueBee is using SKXBEE -BOARD or UC00A/B to communicate with computer A and bluetooth dongle will use BlueSoleil software to communicate with computer B.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 18

Page 19: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 19

Page 20: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

Setup for computer A:■ Set BlueBee to Trans mode . Status LED will blink with faster rate. In Trans mode,

the default baudrate is 9600 bps.

■ Setup hardware installation refer to section 6. User may use either SKXBEE-BOARD or UC00A/B.

■ Open and setup HyperTerminal for Computer A. For this example, the COM Port for BlueBee is COM50 and baud rate is 9600. The COM port may different with other computer/laptop.

Setup for computer B:User need Bluetooth USB dongle and BlueSoleil software to allow computer A communicate with computer B via Bluetooth link. Install BlueSoleil software into PC/laptop

● Connect Bluetooth USB dongle into USB port.

● Turn on Bluetooth with display classic view . Bluetooth icon can be found at icon and notification taskbar (right and bottom of computer).

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 20

Page 21: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

● Press “F5” to start searching for Bluetooth device near by. If BlueBee is working properly, it will appear as a Bluetooth node in BlueSoleil window as shown in following figure.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 21

Page 22: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

● Right click on BlueBee con and click pair device. The software will appear a window to Enter Bluetooth Passkey. Enter the passkey and click OK. The passkey should be “1234″. When the bluetooth serial is paired, status LED blinking is change from fast blinking to slow blinking.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 22

Page 23: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 23

Page 24: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

● Now, double click on the Bluesoleil will start inquiring for available service or profile offered by BlueBee. After some time (around 1 to 3 seconds) Bluetooth Serial Port Service should be highlighted as shown in below figure.

● Double click on Bluetooth Serial Port Service. If everything is working perfectly, a window will pop up showing the virtual COM port which is connected to computer B. In this case, a COM49 has been created.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 24

Page 25: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 25

Page 26: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

● BlueSoleil will try to create Bluetooth Wireless link with BlueBee and offer serial port service.

● Status LED on BlueBee will blinking 2 times in 1 second (2Hz) if the Bluetooth Wireless link is successfully created.

● Open and setup HyperTerminal for computer B. For this example port setting for Bluetooth is COM49 and the baudrate is 9600.

● Type any words at HyperTerminal computer A. User may see, the words types on HyperTerminal computer A will be received by HyperTerminal computer B and displayed. Then, type any words at HyperTerminal computer B and those words also received and displayed on HyperTerminal computer A. That means that Bluetooth link is created and data is able to communicate (transmit and receive) between computer A and computer B.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 26

Page 27: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

Computer A (COM50)

Computer B(COM49)

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 27

Page 28: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

8.2 Communication between micronctroller and computer

Besides communication between 2 computers, BlueBee also may use with microcontroller to communicate with computer. User may refer tutorial link for BlueBee for example communication between microcontroller and computer.

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 28

Page 29: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

9. WARRANTY

● Product warranty is valid for 6 months.● Warranty only applies to manufacturing defect.● Damaged caused by miss-use is not covered under warranty● Warranty does not cover freight cost for both ways.

Prepared byCytron Technologies Sdn. Bhd.

19, Jalan Kebudayaan 1A, Taman Universiti,

81300 Skudai, Johor, Malaysia.

Tel: +607-521 3178Fax: +607-521 1861

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 29

Page 30: BlueBee User's Manual (Recovered)

ROBOT . HEAD to TOE Product User’s Manual – BlueBee

URL: www.cytron.com.myEmail: [email protected]

[email protected]

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 30