BC04
BC04
BC04
From ElectroDragon
Share
Contents
1 Basic
1.1 About this module
1.2 Features
1.3 Application
1.4 Mechanical Features
1.5 Electric Features
1.6 Power Consumption
1.7 Function Diagram
1.8 Schemetic
1.9 Dimension
2 BC04-A
2.1 Basic Connection
2.1.1 To computer
2.1.2 To other devices
2.2 Module into the AT test methods
2.3 Application Circuit
2.4 Pin Functions
2.5 ATcommands
2.5.1 Detailed command lists
2.5.1.1 Command 1Testing connection
2.5.1.2 Command 2set name
2.5.1.3 command 3Set - Match code
2.5.1.4 command 4set - baud rate
2.6 Master/Slave Settings and other settings
3 BC04-B
3.1 Change Master/Slave Mode
3.2 Application Circuit
3.3 Pin Configuration
3.4 Command list
PDFmyURL.com
Basic
advantages, just with a few external components will be able to achieve its powerful.
Features
Bluetooth V2.1 + EDR
Bluetooth Class 2
Built-in PCB RF antenna
Built-in 8Mbit Flash
Support for SPI programming interface
Support UART, USB, SPI, PCM interface
3.3V power supply
REACH, ROHS certification
Application
The module is mainly used for short-range wireless data transmission field. Convenient and connected to the PC, Bluetooth devices can also
data exchange between the two modules. Avoid cumbersome cable connections, direct replacement for the serial line.
Bluetooth wireless data transmission;
industrial remote control, telemetry;
POS system, wireless keyboard, mouse;
traffic, underground positioning, alarm;
automated data acquisition system;
wireless data transmission; banking system;
wireless data acquisition;
building automation, security, wireless monitoring room equipment, access control systems;
smart home, industrial control;
automotive testing equipment;
television the interactive program vote Equipment;
government street light energy saving equipment
wireless LED display system
Bluetooth joystick, Bluetooth gamepad
Bluetooth printer
Bluetooth remote control toy
Mechanical Features
Operating Frequency Band 2.4GHz -2.48GHz unlicensed ISM band
PDFmyURL.com
Electric Features
Absolute Maximum Ratings
Rating Min Max
Storage temperature -40 +150
Supply voltage: VBAT -0.4V 5.6V
Other terminal voltages VSS-0.4V VDD+0.4V
Power Consumption
Operation Mode Connection Type UART Rate(kbps) Average Unit
Page scan - 115.2 0.42 mA
ACL No traffic Master 115.2 4.60 mA
ACL With file transfer Master 115.2 10.3 mA
ACL 1.28s sniff Master 38.4 0.37 mA
ACL 1.28s sniff Slave 38.4 0.42 mA
SCO HV3 30ms sniff Master 38.4 19.8 mA
SCO HV3 30ms sniff Slave 38.4 19.0 mA
Standby Host connection - 38.4 40 A
Function Diagram
PDFmyURL.com
Schemetic
File:BLK-MD-BC04-B DEMO schematic.pdf
PDFmyURL.com
Dimension
PDFmyURL.com
BC04-A
Basic Connection
To comput er
1. Convert TTL level RS232
2. Module power supply 3.3 V
3. TX and RX connected to RX and TX
To ot her devices
1. TX and RX connected to RX and TX
2. Module supply 3.3V
Application Circuit
PDFmyURL.com
Pin Functions
PDFmyURL.com
Pin Number
Name
Type
Decript ion
Programmed f or BC04-B
UART-TX
UART-RX
CMOS input
PCM-CLK
PCM-IN
CMOS input
AIO(0)
double way
10
AIO(1)
double way
11
RESETB
CMOS input
12
3.3V
Power Input
Power 3.3V
13
GND
14
NC
output
Please NC it
15
USB-DN
double way
16
SPI-CSB
CMOS input
17
SPI-MOSI
CMOS input
18
SPI-MISO
19
SPI-CLK
CMOS input
SPI clock
20
USB-DP
double way
21
GND
GND
GND
22
GND
GND
GND
23
PIO(0)
double way
24
PIO(1)
output
25
PIO(2)
double way
26
PIO(3)
double way
Memory clear key (short press) Restore Defaults button (long press 3s)
Double way
PCM clock
27
PIO(4)
double way
28
PIO(5)
double way
29
PIO(6)
double way
30
PIO(7)
double way
31
PIO(8)
double way
32
PIO(9)
double way
33
PIO(10)
double way
34
PIO(11)
double way
ATcommands
Users can use UART port to communicate with BC04-A IC, UART port use Tx and Rx this two signal lines, baud rate supports
1200,2400,4800,9600,14400,19200,38400,57600,115200,230400,460800 and 921600bpsDefault Baud rate is 9600bps.
Det ailed command list s
BC04-A use AT commands listPS: AT must be capitor, and AT commands can only write when the module is not connected, once the module
connected the devices enter into data communication mode)
Command 1Test ing connect ion
OK
None
PDFmyURL.com
Downward Command
AT+NAME< Para1>
Response
Paramet ers
Downward Command
AT+PIN< Para1>
Response
Paramet ers
e.g.send AT+PIN8888 return: OKsetPIN Now the module match code is 8888, and the module default match code is 1234
Downward
Command
Response
Paramet ers
<Para1>baud rate
AT+BAUD<
Para1>
1.OK< Para1>
success
1---1200 2---2400 3---4800 4---9600 5---19200 6---38400 7---57600 8---115200 9---230400 A--460800 B---921600 C---1382400 default4---9600
e.g.sendAT+BAUD8 returnOK115200
P.S: when the baud rate changed, if it's not default 9600, you need to set correct baud rate for further settings or data communication. It's
recommended to use over 115200 Baud rate, system will be not stable due to the interference. If you fail to use when the baud rate set to
over 115200, please use MCU which has frequency over 115200 to re-programme it and reset AT commands, etc.
Header t ext
Header t ext
BC04-B
Change Master/Slave Mode
Hardware settings: Master mode:
PI0 (4) - the hardware / software, from settings port: to low TTL (or vacant) for hardware setup master-slave mode
PIO (5) - Hardware main from settings mouth: set 3.3V high TTL
Module to enter AT command response status.
Open HyperTerminal or other serial debugging tools to set the baud rate of 9600, 8 data bits, 1 stop bit, no parity, no flow control.
Serial port to send characters "AT \ r \ n", a successful return to the "OK \ r \ n", where \ r \ n carriage return line feed
Slave mode:
PI0 (4) - the hardware / software, from settings mouth: to low TTL (or vacant) for hardware setup master-slave mode
PIO (5) - Hardware master from the set of the mouth: set 3.3V low TTL
Module to enter AT command response status.
Open HyperTerminal or other serial debugging tools to set the baud rate of 9600, 8 data bits, 1 stop bit, no parity, no flow control.
Serial port to send characters "AT \ r \ n", a successful return to the "OK \ r \ n", where \ r \ n carriage return line feed
Software settings: Master mode:
PI0 (4) - soft / hardware master and slave settings the mouth: set 3.3V high level
Open HyperTerminal or other serial debugging tools to set the baud rate of 9600, 8 data bits, 1 stop bit, no parity, no flow control.
The the serial send characters "AT ROLE1 \ r \ n", the successful return of the "ROLE = 1 \ r \ n OK \ r \ n", where \ r \ n carriage return line
feed
Slave mode:
PI0 (4) - soft / hardware master and slave settings the mouth: set 3.3V high level
PDFmyURL.com
Open HyperTerminal or other serial debugging tools to set the baud rate of 9600, 8 data bits, 1 stop bit, no parity, no flow control.
The the serial send characters "AT ROLE0 \ r \ n", the successful return of the "ROLE = 0 \ r \ n OK \ r \ n", where \ r \ n carriage return line
feed
Application Circuit
PDFmyURL.com
Pin Configuration
See the basic pins of BC04-A and extra pins for BC04-B
Command list
BC04-B Bluetooth serial module instruction is divided into Command (downlink command) and Indication (reporting instructions). (NOTE: AT
commands are not case-sensitive, are carriage return, newline character at the end: \ r \ n AT instruction only in the state of the module is not
connected to take effect once the Bluetooth module connected to the device, the Bluetooth module that entering data pass-through mode)
Downlink Command
PDFmyURL.com
Command Name
testing connection
Command
AT
Response
Paramet er
OK
Null
<Para1>: Firmware version number,
the Bluetooth version number,
the local HCI version, HCI
amendments,
LMP version number, LMP subversion number
Check version
AT+VERSION
+VERSION=<Para1>
check help
AT+HELP
...
check/set name
AT+NAME
AT+NAME< Para1>
OK or error
<Para1>device name
Reset to default
AT+DEFAULT
OK
null
reset
AT+ RESET
OK
null
check/set pins
AT+PIN
AT+PIN< Para1>
OK or error
<Para1>: pins
OK or error
1---1200
2---2400
3---4800
4---9600
5---19200
6---38400
7---57600
8---115200
9---230400
A---460800
B---921600
C---1382400
Default 4---9600
check/set device
type
AT+BAUD
AT+BAUD< Para1>
AT+COD
AT+COD< Para1>,<Para2>
OK or error
AT+ROLE
AT+ROLE< Para1>
OK or error
check/set GIAC
AT+IAC< Para1>
OK or Error
check/set remote
bluetooth device
name
AT+RNAME< Para1>
OK or Error
OK or Error
check/set inquiry
mode
check/set
connection mode
AT+INQM<Para1>,<Para2>,<Para3>
<Para1>:
0: specified Bluetooth address
connected mode
(specified Bluetooth address set by
the BIND command)
AT+CMODE< Para1>
OK or Error
check/set bluetooth
PDFmyURL.com
check/set bluetooth
AT+BIND<Para1>
address
OK or Error
clear memory
address
OK
AT+CLEAR
format: 11,22,33,44,55,66
Reply the Bluetooth address format:
11:22:33:44:55:66
Default: 00:00:00:00:00:00
Null
<Para1>: Stop bit: 0:1 stop bit, 1:2
stop bit
check/set UART
MODE
AT+ UARTMODE<Para1>,<Para2>
OK or Error
check local BT
address
AT+LADDR
+LADDR=<Para1>
checkt BT module
working status
AT+STATE
+STATE=<Para1>
Example
check/set Remote
Bluetooth device
AT+ AUTOINQ<Para1>
automatically search
Ok or Error
0=no, 1=yes
check remote
bluetooth device
Ok
null
Ok
null
check/set Whether
to automatically
AT+ AUTOCONN<Para1>
connect to a remote
Bluetooth device
OK or Error
AT+INQ
<Para1>:
Connect to remote
bluetooth device
AT+CONNECT<Para1>
OK or Error
check/set Encrypt
mode
AT+SENM<Para1>,<Para2>
OK or Error
Check/set low
power Mode
AT+ LOWPOWER<Para1>
ok or error
ok or error
check/set indication
AT+ENABLEIND<Para1>
upward command
ok or error
check Bluetooth
pairing list
<Para1>number0-7
LSP=<Para1>,<Para2>,<Para3>
<Para2>bluetooth address code
<Para3>name
LSP=E
check/set sniff
energy save mode
AT+SNIFF<Para1>,<Para2>,<Para3>,<Para4>
AT+LSP
PDFmyURL.com
LSP=E
default feedbackLSP=E
AT+RESETPDL
Ok
clear selected
bluetooth pairing
record
AT+REMOVEPDL<Para1>
OK
<Para1>number0-7
check/set linkloss
checking time
AT+SUPERVISION<Para1>
Ok or error
PDFmyURL.com
Command
Name
Command
Response
Paramet er
ready
+READY
inquiry status
+INQUIRING
inquiry pairing
status
+PAIRABLE
connecting
+CONNECTING<Para1>
connected
+CONNECTED
connection fail
+CONNECTION FAILED
report remote
bluettoth device +RNAME=<Para1>
name
<Para1>bluetooth address
format11:22:33:44:55:66
<Para2>device type
<Para3>RSSI signal strength (normal is decimal) signal strengthness
(default in decimal return 7fff when is not available)
+INQS start inquiry
report inquiry
result
Other points
+INQ=<Para1>,<Para2>,<Para3>
Layout design points
device information
+INQE inquiry completed
BC04 Bluetooth module TTL level required to 3.3V, and for 5V TTL
you will need 3.3-5V TTL conversion circuit.
Bluetooth signal by around a great impact, such as trees, metal, walls
and other obstacles will Bluetooth signal absorption or shielding, so
is not recommended being installed in a metal enclosure.
the metal will weaken the antenna, it is recommended that you
should not paving and traces below the antenna in the layout design,
preferably hollowed.
Category: Bluetooth
This page was last modified on 2 November 2012, at 06:42.
This page has been accessed 525 times.
PDFmyURL.com