Without the floor, HC-06 Bluetooth serial module, single-chip
wireless Bluetooth connection 51
HC-06 is a master-slave integrated Bluetooth serial module, the
main switching from a command, the command is less than HC-05, easy
to use. (Supply voltage 3.3V ~ 3.6V)
Host: used to search from the device, other devices can not be
searched. (With white spots Bluetooth module)
Slave: the device used to being searched, you can not take the
initiative to search for other devices.
After connecting the master and slave is equivalent to a serial
line to use, regardless of the Lord from this time on, that is,
pass-through mode.
[Note: HC-06 host not paired HC-05 from the machine, but the host
HC-05 HC-06 can be paired slave, master-slave model can be paired
with each other]
[Note: shipment: 06 Slave not marked; 06 hosts hit the white point.
The module of master and slave, the master and slave pair can
communicate, can not communicate with the slave from between the
host and the host machine or from a Bluetooth function and
computers, mobile phones and other communication pairing, the
default time of purchase from the machine, requires the host needs
to specify]
1, using mainstream CSR Bluetooth chip, Bluetooth V2.0 protocol
standards.
2, the module supply voltage: 3.3V ~ 3.6V.
3, the default parameters: 9600 baud, pairing code 1234 slave mode.
4, the size of the core module: 27mm x 13 mm x 2mm.
5, the working current: pairing: 30 ~ 40mA paired not
communicating: 2 ~ 8Ma communication: 8mA no sleep.
6, the communication distance: under open conditions 10M, normally
about environmental 8M.
7 for GPS navigation systems, utility meter reading systems,
industrial control systems mining site can be seamlessly connected
with the Bluetooth laptop computer plus a Bluetooth adapter, PDA
and other devices.
8, can STC microcontroller wireless upgrade and download the
program.
33-7
SCM and SCM data transmission
33-6
Product Features
33-2
1, led pin indicates the status of the Bluetooth connection,
Bluetooth connection means no output pulse output high indicates
that Bluetooth is connected and turned on the port
2, the power supply voltage 3.3V, when unpaired current of about
30mA, paired about 10mA, the absolute prohibition of reverse power!
Power absolute prohibition exceeds 3.6V!
3, the interface level 3.3V, you can connect a variety of SCM (51,
AVR, PIC, ARM, MSP430, etc.), 5V microcontroller best 1K resistor
in series with a direct connection to the module and then,
according to specifications published by the bottom diagram
conversion, can not pass without MAX232 MAX232!
4, open to 10 meters effective distance of over 10 meters are
possible, but do not make this connection to ensure the quality of
distance
5, after the pairing is complete, the same as when using a serial
cable, supports 8 digits, 1 stop bit, parity or no parity (with
specification shall prevail)
6, establish a Bluetooth connection when not support setting the
baud rate, the name by AT commands, matching password, power-down
save parameter settings. After Bluetooth connection is
automatically switched to transparent mode
7, small size (2.7cm * 1.3cm), chip production plant to ensure the
quality of the patch.
8, the link from the machine, computer, Bluetooth with Bluetooth
from a host with a variety of functions, most Bluetooth phones,
PDA, PSP and other intelligent terminal pairing between slaves can
not be paired.
Flexible use:
Baud rate conversion, because the receiver and the sender can
choose their own baud rate, in a small amount of data when you can
use as a device baud rate conversion.
Please observe the following modules and microcontroller connection
(Bluetooth module voltage of 3.3V):
34-1
First, the factory default parameters:
Slave, baud rate: 9600, N, 8,1. Passcode: 1234; If you want to
require host mode, please indicate when the next one.
Two, AT command set as follows:
1, test communications
Send: AT (return OK, one second left and right once)
Returns: OK
2, change the Bluetooth serial port baud rate
Send: AT + BAUD1
Returns: OK1200
Send: AT + BAUD2
Returns: OK2400
......
1 --------- 1200
2 --------- 2400
3 --------- 4800
4 --------- 9600
5 --------- 19200
6 --------- 38400
7 --------- 57600
8 --------- 115200
9 --------- 230400
A --------- 460800
B --------- 921600
C --------- 1382400
Not recommended for use in more than 115,200 baud rate, signal
interference make the system unstable.
Set over 115,200 after computer unusable, use microcontroller
programming in order to use this above 115200 baud rate and
re-issue the AT command set low baud
After the baud rate with AT command set, the next power use without
re-established, you can power down to save the baud rate.
3, change the Bluetooth name
Send: AT + NAMEname
Returns: OKname
The current name to be set, that Bluetooth is the name of the
search: parameter name. 20 characters or less.
Example: Sending AT + NAMEbill_gates
Return OKname
Then the Bluetooth name changed bill_gates
Parameters can be powered down to save, simply modify
once. PDA Bluetooth client refresh services can be seen after the
name change.
4, change the Bluetooth passkey
Send: AT + PINxxxx
Returns: OKsetpin
Parameter xxxx: pairing password to be set, 4 bytes, this command
can be used slave or master. The slave is the adapter or cell phone
when asked to enter a passcode pop up window, then manually enter
this parameter can connect from the machine. Host is in the main a
Bluetooth module connected with a digital camera, a digital camera
from the machine, find the camera pairing password, and then set up
the White Bluetooth module, the master Bluetooth module can
automatically connect your camera.
Example: Sending AT + PIN8888
Return OKsetpin
Then the Bluetooth passkey to 8888, the module at the
factory default passkey is 1234.
Parameters can be powered down to save, simply modify
once.