FSC BT6XX Programming User Guide
FSC BT6XX Programming User Guide
1
Copyright © 2013-2017 Feasycom Technology Co., Ltd. All Rights Reserved.
Revision History
Version Data Notes Author
1.0 2016/05/12 First Release Eric
2.0 2016/10/13 Add Commands Eric
3.0 2017/03/10 Add GPIO Indications Navy
深
圳
市
飞
易
通
科
技
有
限
公
司
Contact Us:
Shenzhen Feasycom Technology Co., Ltd
Web: www.feasycom.com
Email:[email protected]
Tel: +86-755-27924639,+86-755-23062695
Address: Room 2004-2005,20th Floor, Huichao Technology Building,
Jinhai Road, Xixiang, Baoan District, Shenzhen,518100, China.
2
Contents
1. Introduction ......................................................................................................................................................... 4
1.1 Terms ............................................................................................................................................................... 4
1.2 Hardware Interface .................................................................................................................................. 4
1.3 Supported Bluetooth Profile ............................................................................................................... 4
1.4 Command Format ..................................................................................................................................... 4
1.5 Indication Format ..................................................................................................................................... 5
1.6 Module Default Settings ........................................................................................................................ 5
2. Command Table .................................................................................................................................................. 6
2.1 General Commands .................................................................................................................................. 6
2.1.1 UART Communication Test .................................................................................................... 6
深
3
1. Introduction
This specification presents design guidelines for software engineers that use FSC-BT6XX
series modules for Bluetooth requirements.
1.1 Terms
Throughout this specification:
<< :Content behind << represents a COMMAND sent from Host to Module
>> :Content behind >> represents a RESPONSE sent from Module to Host
圳
市
GPIO
易
PWM
通
UART
SPI Master/Slave
科
I2C Master/Slave
技
Analog Input/Output
有
4
e.g.
1. Read module’s BR/EDR local name
<< AT+NAME
>> +NAME=Feasycom
>> OK
e.g.
1. Received “1234567890” from mobile phone via GATT Server profile
科
>> +GATTDATA=10,1234567890
技
Service-UUID FFF0
Write-UUID FFF2
司
Notify-UUID FFF1
Physical UART Baudrate 115200bps/8/N/1
5
2. Command Table
Format: AT
深
Response: OK
圳
Description: Test the UART communication between HOST and Module after power on,
市
<< AT
>> OK
通
科
Format: AT+VER
限
公
Response: +VER=Param
Param: Firmware version (15 Bytes ASCII)
司
Format: AT+ADDR
Response: +ADDR=Param
Param: Module's LE MAC address (12 Bytes ASCII)
6
2.1.4 Read/Write Local Name
Response: +NAME=Param
深
Description: Write local name if parameter existence, otherwise read current local name
圳
市
>> +NAME=Feasycom
易
>> OK
Example: Change module’s local name to “ABC”
通
<< AT+NAME=ABC
科
>> OK
Example: Change module’s local name to “ABC” and enable suffix
技
<< AT+NAME=ABC,1
有
>> OK
限
Format: AT+BAUD{=Param}
Param: Baudrate (1200/2400/4800/9600/19200/38400/57600/115200/
230400, default:115200)
Response: +BAUD=Param
Description: Module’s baudrate will be changed immediately after received this command
Format: AT+TPMODE{=Param}
7
Param: Throughput mode (0/1, default:0)
(0) Turn Off
(1) Turn On
Response: +TPMODE=Param
Description: When GATT profile connected and throughput mode is on, the AT command
will be de-active, every byte received via physical UART will be sent to air, vice visa
>> +TPMODE=1
>> OK
圳
<< AT+TPMODE=0
>> OK
飞
易
Format: AT+LPM{=Param}
技
(1) Turn On
限
公
Response: +LPM=Param
司
Format: AT+FLOWCTL{=Param}
Param: Hardware Flow Control (0/1, default: 0)
(0) Turn Off
(1) Turn On
Response: +FLOWCTL=Param
8
2.1.9 Read/Write Master/Slave Mode
Format: AT+ROLE{=Param}
Param: Master/Slave mode (0/1, default: 0)
(0) Slave Mode(GATT Server)
(1) Master Mode(GATT Client)
Response: +ROLE=Param
Description: After the command is executed, the BT6XX switches to the new Mode
深
<< AT+ROLE
市
>> +ROLE=0
>> OK
飞
易
Format: AT+PIOCFG{=Param1,Param2}
技
Response: +PIOCFG=Param1,Param2
司
9
2.1.12 Release All Connections
Format: AT+DISC
Format: AT+REBOOT
深
圳
Description: Module release all Bluetooth connections with remote device then reboot
市
飞
Format: AT+RESTORE
科
Format: AT+LECCONN=Param1{,Param2,Param3,Param4}
司
Param1: MAC address of target device & MAC address type (13 Bytes ASCII)
Param2: Service-UUID, Support 16 Bit and 128 Bit (4 Bytes/32 Bytes ASCII)
Param3: Write-UUID, Support 16 Bit and 128Bit (4 Bytes/32 Bytes ASCII)
Param4: Notify-UUID, Support 16 Bit and 128Bit (4 Bytes/32 Bytes ASCII)
10
2.1.16 Send Data Via GATT
>> OK
圳
3. Indication Table
市
飞
易
11
3.1.2 GATT Received Data
PIN32 (Output)
易
PIN33 (Output)
公
12