HC-08 USER MANUAL
HC-08 BLUETOOTH UART COMMUNICATION MODULE USER MANUAL Date 2017-07-07 Product introduction HC-08 Bluetooth UART communication module is a new generation of Bluetooth specification V4.0 BLE Bluetooth protocol based on the transmission module. Wireless working frequency is 2.4GHz ISM, modulation is GFSK. The maximum transmit power module 4dBm, the receiving sensitivity is -93dBm, and iphone4s can achieve 80 meters of super long distance communication under open environment.
HC-08 BLUETOOTH UART COMMUNICATION MODULE USER MANUAL The HC-08 module has 30 pins, on board PCB antenna, pin specific definitions are listed in the following table: pin definition I/O explain 1 TXD output UART output, 3.3V TTL level 2 RXD input, weak pull up UART input, 3.3V TTL level 3 NC 4 NC 5 NC 6 DC input Debug clock 7 DD Input/output Debug data 8 P2.0 input, weak pull up NC 9 P1.7 input, weak pull down NC 10 P1.
HC-08 BLUETOOTH UART COMMUNICATION MODULE USER MANUAL Note①: Module indicating LED output pin, high level output, please use the resistance and LED connection. The connection before, From the slave module address the master module does not record, bright 100ms per second; From the slave module address master module records, bright 900ms per second; The slave module, LED light 1second very 2 seconds. After connection, LED lights always. Note②: Link indicating output pin.
HC-08 BLUETOOTH UART COMMUNICATION MODULE USER MANUAL AT COMMAND The AT command to setting module parameter. Connection before, module can operating AT command. Connection after entering serial transparent transmission mode. Module start is about 150ms, so the best after power on 200ms AT command operation. Unless otherwise indicated, the parameter setting of AT command is effective immediately. At the same time, parameters and functions of modification, the power down will not be lost.
HC-08 BLUETOOTH UART COMMUNICATION MODULE USER MANUAL 21 AT+TUUID=xxxx 22 AT+AUST=x Characteristic UUID FFE1 M/S Set the time for automatic sleep 20 S Note: 1. The AT command behind no newline; if no special instructions, all AT commands are not transmitted using newline. 2. 11~14 this 4 is advanced instruction and must be used in combination, can play its due role BLE Bluetooth low energy.
HC-08 BLUETOOTH UART COMMUNICATION MODULE USER MANUAL ⑥ Change master/slave role Set command: AT+ROLE=x Query command :AT+ROLE=? X: role(M or S), M: master, S: slave。 Default setting is S(slave)。 Send: AT+ROLE=M Return: OK Set master role, the module will automatically restart! Send: AT+ROLE=? Return: Master You can view the role is the master module.
HC-08 BLUETOOTH UART COMMUNICATION MODULE USER MANUAL ⑨ Revise RF power Set command: AT+RFPM=x Query command: AT+RFPM=? X:RF power, as shown in the following table: Parameter RF power ? View the current RF power 0 4dBm(default) 1 0dBm 2 -6dBm 3 -23dBm Example: Send: AT+RFPM=2 Return: OK RF power modified -6dBm. Send: AT+RFPM=? Return:-6dBm RF power is -6dBm. The peak current is more than 30mA (when RF power is 4dBm).
HC-08 BLUETOOTH UART COMMUNICATION MODULE USER MANUAL Send: AT+BAUD=4800,E Return: OK4800,EVEN UART baud rate modified for 4800bps, and even parity. Send: AT+BAUD=? Return: 4800,EVEN View UART baud rate and parity bit. 9600bps baud rate following each packet please do not exceed the maximum number of bytes to 500 bytes, 19200bps baud rate above each packet please refer to the following table, have a certain time interval between data packets.
HC-08 BLUETOOTH UART COMMUNICATION MODULE USER MANUAL Example: Send: AT+CONT=1 Return: OK Setup is complete, effective after module automatically reset! Send: AT+CONT=? Return: Non-Connectable The command please with "AT+MODE", "AT+AVDA" and "AT+AINT" command with the use of. Note: 1. The master/slave module “CONT=1” is masterly used for transmitting broadcast data. From the slave role to send broadcast data, broadcast master module will receive the corresponding data, and through the serial port output. 2.
HC-08 BLUETOOTH UART COMMUNICATION MODULE USER MANUAL Note: 1. Mode 1 is mainly used for: A. Used to reduce the power consumption. B. The slave module send the broadcast data to the master module, can be achieve one to many one-way communication (theory can be from a slave module to infinite master module). C. As anti-lost alarm, attendance card, heart rate meter or other wireless device. 2.
HC-08 BLUETOOTH UART COMMUNICATION MODULE USER MANUAL ⑮ Change the connection interval Set command:AT+CINT=xx,yy Query command:AT+CINT=? Connection intervals affect the power loss of connection, the master needs to be set at the same time. In this command, xx is minimum connection interval, yy is maximum connection interval. xx≤actual connection interval≤yy. A single parameter xx can be entered separately, if the yy < xx is recorded, at this time, yy will be replaced by xx.
HC-08 BLUETOOTH UART COMMUNICATION MODULE USER MANUAL The master module as long as the connection from the slave module, will remember the last time the connection from the slave module MAC address. If you want to connect to the other slave module, you must remove the current memory. The first way is put the module 18 pin to high level of 200mS, the other way is used the “AT+CLEAR” command. ⑱ SET LED ON/OFF Set command: AT+LED=x Query command: AT+LED=? In this command, x is 0 or 1.
HC-08 BLUETOOTH UART COMMUNICATION MODULE USER MANUAL 21 SET Characteristic UUID Set command: AT+ TUUID=xxxx Query command: AT+ TUUID=? The parameters xxxx must be within the range of 0~F. The module only one characteristic UUID. The characteristic UUID properties: read, notify, write_without_response. Example: Send: AT+TUUID= FFE1 Return: OK+TUUID=FFE1 Characteristic UUID modified FFE1 (0xFFE1). Send: AT+ TUUID =? Return: OK+TUUID=FFE1 Characteristic UUID is FFE0 (0xFFE1).
HC-08 BLUETOOTH UART COMMUNICATION MODULE USER MANUAL Reference schematic This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) this device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation. Changes or modifications to this unit not expressly approved by the party responsible for compliance could void the user’s authority to operate the equipment.