SH-H4 Bluetooth 4.0 CC2564
Bluetooth
Overview
Feature
- Fully qualified Bluetooth 4.0/3.0/2.1/2.0/1.2/1.1
- Postage stamp sized form factor, 13mm x 27mm x 2mm
- Low power
- Class 1.5 support(high output power)
- The default UART Baud rate is 115.2Kbps and can support from 1200bps up to 921Kbps, UART, I2C , PCM data connection interfaces.
- Embedded Bluetooth stack profiles support(requires no host stack): SPP, HFP/HSP, A2DP, AVRCP, MAP, and all BLE protocols.
- VCC: input power supply 3.3~6V, Prohibit more than 7V
- GND: Ground
- TX: transport
- RX: receive
- State: when bluetooth is connected , output "High level", "no conntected" output "low level"
- en:when module is connected, give a high level to "EN",the module will disconnected.
AT Command
The way to the AT command mode: supply power to the module, it will enter to the AT mode if it needn’t pair. The interval of command is about 1 second.
Default parameter: Baud rate:9600N81
Format:
AT+Command[=Parameter]<CR><LF>
Description:
Command always start with AT+ and end with <CR><LF>.
<CR> means "carriage return" and corresponds to the hexadecimal value 0x0D. <LF> means "line feed" and corresponds to the hexadecimal value 0x0A.
Parameter between [ ] may not exist.
Parameter always start with =if exist.
Example :
AT+BDNAME=? <CR><LF> :Query current device's name.
AT+BDPIN=8888 <CR><LF> :Modify current device's pin code to '8888'.
Command 1 ,
Testing Connection Commands
Command |
Answer |
Parameter |
AT |
OK |
None |
Command 2 ,
Query/Set —— Bluetooth Name
Command |
Answer |
Parameter |
Query:AT+BDNAME=? |
+BDNAME=[para1] |
Para1:the name of device |
Set:AT+BDNAME= [para1] |
+BDNAME=[para1] |
Example: Send: AT+BDNAME=?
Return: +BDNAME=SH-H4
Send: AT+BDNAME=ABC
Return : +BDNAME=ABC
Command 3, Query module bluetooth address
Command |
Answer |
Parameter |
AT+BDADDR=? |
+BDADDR=[MAC] |
MAC: |
Command 4 ,
Query/Set —— Baud Rate
Command |
Answer |
Parameter |
Query:AT+BDBAUD=? |
+BDBAUD=[para1] |
Para1: |
Set:AT+BDBAUD =[para1] |
+BDBAUD=[para1] |
Query device baudrate
Send:AT+BDBAUD=?
Return: +BDBAUD=9600
Modify device baudrate
Send:AT+BDBAUD=115200
Return: +BDBAUD=115200
Command 5 ,
Query/Set ——PIN Code
Command |
Answer |
Parameter |
Query:AT+BDPIN=? |
+BDPIN=[para1] |
Para1 is PIN Code: |
Set:AT+BDPIN= [para1] |
+BDPIN=[para1] |
e.g.
Query Pin Code
Send: AT+BDPIN=?
Return: +BDPIN=0000
Setup Pin Code 1234
Send: AT+BDPIN=1234
Return : +BDPIN=1234
- Type:
- Module of off-wire connection of Bluetooth
- Microcontroller:
- TI CC2564
- Size:
- 13mm x 27mm x 2mm
- Communication modes:
- BLE and SPP
- Features:
- Fully qualified Bluetooth 4.0/3.0/2.1/2.0/1.2/1.1