FSC-BT2064 General AT Command Set
Description
This Guide is intended for engineers developing the FSC-BT2064 series of Bluetooth modules.
Module default configuration
Name |
FSC-BT2064 |
LE-Name |
FSC-BT2064-LE |
PIN Code |
0000 |
Secure Simple Pairing Mode |
Off |
Service UUID |
FFF0 |
Write UUID |
FFF2 |
Notify UUID |
FFF1 |
UART Baudrate |
115200/8/N/1 |
AT Command Description
Description
Applicable to the entire document
{} : Including content in {…} is optional
<< : COMMAND sent by the host to the module
>> : Module responds to the host’s RESPONSE/EVENT
Command Format
AT+Command{=Param1{,Param2{,Param3...}}}<CR><LF>
All instructions start with AT,and end with <CR><LF>
<CR> represents carriage return, corresponding to HEX as 0x0D
<LF> represents a line break, corresponding to HEX as 0x0A
If the instruction contains parameters, the parameters should be separated by =
If the instruction contains multiple parameters, the parameters should be separated by ,
If the instruction returns a response, the response starts with <CR><LF>, ends with <CR><LF>
The module should always return the result of instruction execution (success returns OK,failure returns ERROR)
Example:Read module Bluetooth name
Send: <<AT+NAME<CR><LF>
Response: >><CR><LF>+NAME=FSC-BT2064<CR><LF>
Response:>><CR><LF>OK<CR><LF>
Write unsupported Baud rate
Send: <<AT+BAUD=0<CR><LF>
Response: >><CR><LF>ERROR<CR><LF>
Event Format
<CR><LF>+Indication{=Param1{,Param2{,Param3...}}}<CR><LF>
All events start with <CR><LF> and end with <CR><LF>
If an event contains parameters, they shall follow the “=” sign
If an event contains multiple parameters, they shall be separated by “,”
Example: Returns current SPP connection status in command mode
Response: >><CR><LF>+SPPSTAT=3<CR><LF>
Commands Table
General Commands
AT+HELP - Query firmware functions and command descriptions
Command |
AT+HELP |
Response |
<MODULE DEFAULT PARAMETER>
<COMMAND SUMMARY: DESCRIPTION: PROFILE CATEGORY>
|
Description |
Use the help command to get basic summary information |
AT - UART Communication Test
Command |
AT |
Response |
OK |
Description |
Test UART communication between host and module upon power-up or Baud rate change |
AT+REBOOT - Software Reset
Command |
AT+REBOOT |
Response |
OK |
Description |
The module will perform a reset |
AT+RESTORE - Restore Factory Settings
Command |
AT+RESTORE |
Response |
OK |
Description |
The module will restore to factory default settings |
AT+BTEN - Read/Write Current Bluetooth Operation Mode
Command |
AT+BTEN{=Param} |
|
Enable Bluetooth (0/1, default: 0)
0: Disconnect all connections, disable discoverable/connectable mode
1: Enable discoverable/connectable mode
|
Response |
+BTEN=Param |
Description |
Read/write current Bluetooth operation mode |
AT+NAME - Read/Write BR/EDR Bluetooth Name
Command |
AT+NAME{=Param{,Param1}} |
|
BR/EDR Bluetooth name (1~29 Bytes ASCII) |
|
Enable MAC address suffix (0~2, default: 0)
0: Disable suffix
1: Enable suffix “XXXX” (last 4 bytes of MAC address)
2: Enable suffix “XXXXXX” (last 6 bytes of MAC address)
|
Response |
+NAME=Param |
|
Bluetooth name |
Description |
Set the BR/EDR Bluetooth name; use sub-parameters to display the address suffix |
AT+LENAME - Read/Write BLE Bluetooth Name
Command |
AT+LENAME{=Param{,Param1}} |
|
BLE Bluetooth name (1~29 Bytes ASCII) |
|
Enable MAC address suffix (0~2, default: 0)
0: Disable suffix
1: Enable suffix “-XXXX” (last 4 bytes of MAC address)
2: Enable suffix “-XXXXXX” (last 6 bytes of MAC address)
|
Response |
+LENAME=Param |
|
Bluetooth name |
Description |
Set the BLE Bluetooth name, use sub-parameters to display the address suffix |
AT+PIN - Read/Write Pairing PIN Code
Command |
AT+PIN{=Param} |
|
Pairing PIN code (4~15 Bytes ASCII, default: 0000) |
Response |
+PIN=Param |
Description |
The pairing PIN code is valid when +SSP=0 |
AT+PLIST - Read/Clear Pairing Records
Command |
AT+PLIST{=Param} |
|
(0 / 1~8)
(0) Clear all pairing records
(1~8) Clear pairing record at specified index
|
Response1 |
+PLIST=Param, Param1 |
|
(1~8) Pairing device index |
|
(MAC) MAC address of paired device |
Response2 |
+PLIST= Pairing record query completed |
Description |
If a parameter is provided, delete the corresponding pairing information; otherwise, only read the pairing list |
AT+BAUD - Read/Write UART Baud Rate
Command |
AT+BAUD{=Param} |
|
Baud rate (9600/19200/38400/57600/115200/
230400/460800/921600/256000/512000/1000000, default: 115200)
|
Response |
+BAUD=Param |
|
Baud rate |
Description |
The module will switch the Baud rate after receiving this command |
Note |
After sending the Baud rate setting command, please switch to the set UART Baud rate before communicating with the module |
AT+VER - Read Firmware Version
Command |
AT+VER |
Response |
+VER{=Param,Param1} |
|
Firmware version |
|
Module model |
AT+ADDR - Read BR/EDR Bluetooth MAC Address
Command |
AT+ADDR |
Response |
+ADDR=Param |
|
Module’s BR/EDR Bluetooth MAC address (12 Bytes ASCII) |
AT+LEADDR - Read BLE Bluetooth MAC Address
Command |
AT+LEADDR |
Response |
+LEADDR=Param |
|
Module’s BLE Bluetooth MAC address (12 Bytes ASCII) |
AT+COD - Read/Write Device Class of Device (COD)
Command |
AT+COD=Param |
|
Device class (6 bytes ASCII, default: 240404 Handsfree device) |
Response |
+COD=Param |
Note |
After modifying COD, the module needs to be restarted to reset the COD |
For related configuration, refer to COD.
AT+TPMODE - Enable/Disable Transparent Transmission Mode
Command |
AT+TPMODE{=Param} |
|
Mode (0~1, default: 0) 0: Command mode 1: Transparent transmission mode |
Response |
+TPMODE=Param |
Description |
When connected under SPP/GATT protocol and transparent transmission mode is enabled, AT commands will be disabled,
and every byte received through UART will be sent to the remote end
|
AT+FLOWCTL - Enable/Disable UART Flow Control
Command |
AT+FLOWCTL{=Param} |
|
Param (0~1, default: 0) 0: Disable flow control 1: Enable flow control |
Response |
+FLOWCTL=Param |
Description |
Enable/disable UART flow control |
AT+SSP - Enable/Disable Simple Pairing
Command |
AT+SSP{=Param} |
|
Mode (0~1, default: 0) 0: Disable SSP 1: Enable SSP
|
Response |
+SSP=Param |
Note |
Takes effect after restart |
AT+MODE - Read/Write Bluetooth PROFILE
Command |
AT+MODE{=Param} |
|
Pairing mode (0~4, default: 4)
(0) NONE PROFILE
(1) SPP PROFILE
(2) HID PROFILE
(3) BLE PROFILE
(4) ALL PROFILE
|
Response |
+MODE=Param |
AT+AUTOCONN - Set Bluetooth Power-On Reconnection
Command |
AT+AUTOCONN{=Param} |
|
0: Disable automatic reconnection
1: Enable automatic reconnection
|
Response |
+AUTOCONN=Param |
Description |
After power-on, the module will attempt to establish connections with devices in the pairing list according to the set PROFILE |
AT+PIOCFG - Enable/Disable IO Port Control Module
Command |
AT+PIOCFG{=Param,Param1} |
|
0: Disable command/transmission mode switching function
1: Enable command/transmission mode switching function
|
|
0: Disable Bluetooth disconnection function
1: Enable Bluetooth disconnection function
|
Response |
+PIOCFG=Param |
Description |
Use pins to control transmission mode and connection status |
Note |
Changes take effect after restart |
AT+DSCA - Disconnect All Connections
Command |
AT+DSCA |
Description |
The module disconnects all Bluetooth connections with remote devices and is used in command mode |
AT+SCAN - Search for Nearby Devices
Command |
AT+SCAN{=Param{,Param1}} |
|
Scanning mode (0~2)
0: Stop scanning
1: Scan for nearby BR/EDR devices
2: Scan for nearby BLE devices
|
|
(1~48) Scanning time. Unit: 1.28s, default: 12.8s |
Description |
For format description, refer to: +SCAN - Scan Results |
AT+SECURITY - Enable/Disable Security Verification
Command |
AT+SECURITY{=Param} |
|
Mode (0~1, default: 0) 0: Security verification not enabled 1: Enable security verification |
Response |
+SECURITY=Param |
Description |
Enable/disable security verification |
Note |
Takes effect after restart |
AT+TXPOWER - Read/Write Transmit Power
Command |
AT+TXPOWER{=Param} |
|
Transmit power (0~6, default: 3)
0: -12dBm
1: -8dBm
2: -4dBm
3: 0dBm
4: 4dBm
5: 8dBm
6: 10dBm
|
Response |
+TXPOWER=Param |
|
Transmit power |
Description |
Modify the transmit power; the setting takes effect after restart |
AT+UARTCFG - Read/Write UART Configuration
Command |
AT+UARTCFG{=Param} |
|
Configuration (0~5, default: 0)
bit0:
0 - 1 stop bit
1 - 2 stop bits
bit2~bit1:
00 - None
01 - Odd
10 - Even
|
Response |
+UARTCFG=Param |
|
Configuration (0~5) |
Description |
Modify UART configuration (stop bit and parity bit) |
AT+LINKCFG - Auto Search Link Configuration
Command |
AT+LINKCFG{=Param} |
|
Configuration (0~2, default: 0)
0: Disable auto search link
1: SPP auto search link
2: BLE auto search link
|
Description |
If this command is configured, the module will automatically search for links according to the configuration |
AT+RSSICFG - Read/Write RSSI Configuration
Command |
AT+RSSICFG{=Param{,Param1}} |
|
High RSSI value |
|
Low RSSI value |
Description |
When the signal strength is greater than
Param, PIN34 is set lowWhen the signal strength is less than
Param1, PIN34 is set highWhen the signal strength is between
Param and Param1, the level remains unchanged |
SPP Commands
AT+SPPSTAT - Read SPP Status
Command |
AT+SPPSTAT |
Response |
+SPPATAT=Param |
Description |
For format description, refer to: +SPPSTAT - SPP Status |
AT+SPPCFG - Read/Write SPP Configuration
Command |
AT+SPPCFG{=Param} |
|
Configuration (0~1, default: 0)
0: Disable SPP dynamic registration
0: Enable SPP dynamic registration
|
Response |
+SPPCFG=Param |
Description |
After enabling dynamic registration, the module will register the SPP service during connection
Deregister the SPP service when disconnected
|
AT+SPPCONN - Establish SPP Connection
Command |
AT+SPPCONN{=Param} |
|
Target device MAC address (12 Bytes ASCII) |
AT+SPPDISC - Disconnect SPP Connection
Command |
AT+SPPDISC |
Description |
Disconnect the current SPP connection with the remote device |
AT+SPPSEND - Send Data via SPP
Command |
AT+SPPSEND{=Param{,Param1}} |
|
Payload length (1~236) |
|
Payload (1~236 Bytes UTF8) |
Description |
This command will be disabled if transparent transmission mode is enabled |
GATT Commands
AT+GATTSTAT - Read GATT Status
Command |
AT+GATTSTAT |
Response |
+GATTSTAT=Param |
Description |
For format description, refer to: +GATTSTAT - Connection Status Report |
AT+ADVADDR - Enable/Disable Broadcast Address
Command |
AT+ADVADDR{=Param} |
|
Mode (0~1, default: 1) 0: Disable Broadcast address 1: Enable Broadcast address |
Response |
+ADVADDR=Param |
Description |
Enable/disable Broadcast address |
AT+IBEACON - Enable/Disable iBeacon Broadcast
Command |
AT+IBEACON{=Param} |
|
Mode (0~1, default: 0) 0: Disable iBeacon Broadcast 1: Enable iBeacon Broadcast |
Response |
+IBEACON=Param |
Description |
Enable/disable iBeacon Broadcast |
AT+ADVDATA - Read/Write BLE Broadcast Data with Tag 0xFF
Command |
AT+ADVDATA{=Param} |
|
Vendor-customized Broadcast data (data length not exceeding 26) |
Response |
+ADVDATA=Param |
|
Broadcast data with tag 0xFF |
Description |
The tag of vendor-customized Broadcast data is 0xFF |
Note |
To enable the module to broadcast customized data, set AT+IBEACON=1 first, then configure the customized Broadcast data
|
AT+ADBLE - Enable/Disable AndroidBLE
Command |
AT+ADBLE{=Param} |
|
Mode (0~1, default: 1) 0: Disable AndroidBLE 1: Enable AndroidBLE |
Response |
+ADBLE=Param |
Description |
When enabled, SPP and BLE will have two different addresses | When disabled, SPP and BLE will share one address |
AT+UUIDCFG - Read/Write UUID
Command |
AT+UUIDCFG{=Param{,Param1}{,Param2}} |
|
Service UUID (default: 0000) |
|
Write UUID (default: 0000) |
|
Notify UUID (default: 0000) |
Response |
+UUIDCFG=Param,Param1,Param2 |
Description |
Customize the UUID for data transmission; supports 32-bit/128-bit UUID.
When using default parameters:
service UUID = 0xFFF0
write UUID = 0xFFF2
notify UUID = 0xFFF1
|
AT+GATTSEND - Send Data via GATT
Command |
AT+GATTSEND{=Param{,Param1}} |
|
Payload length (1~236) |
|
Payload (1~236 Bytes UTF8) |
Description |
This command will be disabled if transparent transmission mode is enabled |
AT+LESTAT - Read LE Status
Command |
AT+LESTAT |
Response |
+LEATAT=Param |
Description |
For format description, refer to: +LESTAT - Connection Status Report |
AT+LECCONN - Initiate Connection to Specified Address
Command |
AT+LECCONN{=Param{,Param1}{,Param2}{,Param3}} |
|
12-byte device address + 1-byte address type |
|
Communication service UUID |
|
Communication write permission characteristic UUID |
|
Communication notification permission characteristic UUID |
Response |
OK |
Description |
Initiate a connection to the specified device. The parameter consists of 12 bytes (device address) and 1 byte
(address type). Generally, the address type is “0” or “1”. How to obtain the address type:
Use the second parameter returned by AT+SCAN, for example:
+SCAN=0,0,DC0D30001ED4,-65,10,FSC-BT946
Connection command:
AT+LECCONN=DC0D30001ED40
|
AT+LESEND - Send Data to Remote Device
Command |
AT+LESEND=Param1,Param2 |
|
Payload length (1~236) |
|
Payload (1~236 Bytes UTF8) |
Response |
OK |
Description |
This command will be disabled if transparent transmission mode is enabled |
HID Commands
AT+HIDSTAT - Read HID Status
Command |
AT+HIDSTAT |
Response |
+HIDATAT=Param |
Description |
For format description, refer to: +HIDSTAT - HID Status |
AT+HIDCONN - Establish HID Connection
Command |
AT+HIDCONN{=Param} |
|
Target device MAC address (12 Bytes ASCII) |
AT+HIDDISC - Disconnect HID Connection
Command |
AT+HIDDISC |
Description |
Disconnect the current HID connection with the remote device |
AT+HIDOSK - Show/Hide Keyboard
Command |
AT+HIDOSK |
Description |
Show/hide keyboard (iOS only) |
AT+HIDMODE - Read/Write HID Mode
Command |
AT+HIDMODE{=Param} |
|
HID keyboard input mode (0~1), default 1
(0) HEX key code
(1) ASCII key code (English)
|
Note |
The module can support various keyboard languages through specific firmware, such as:
TURKEY SPAIN PORTUGAL FRANCE GERMANY ITALY CZECH JAPAN
|
AT+HIDDLY - Read/Write HID Transmission Interval
Command |
AT+HIDDLY{=Param} |
|
HID report period in millisecond, default 10 ms |
AT+HIDSEND - Send Data via HID
Command |
AT+HIDSEND{=Param{,Param1}} |
|
Report length |
|
Report payload |
Note |
For special key code:
0x0D -> ENTER
0x08 -> BACKSPACE
0x09 -> TAB
0x20 -> SPACE
|
Description |
This command will be disabled if transparent transmission mode is enabled |
Notification List
+SPPSTAT - SPP Status
Format |
+SPPSTAT=Param |
|
(0) Unsupported
(1) Standby
(2) Connecting
(3) Connected
|
+SCAN - Scan Results
Format1 |
+SCAN={ : Start scanning |
Format2 |
+SCAN =Param,Param1,Param2,Param3,Param4,Param5 |
|
List index |
|
Address type (1 byte) |
|
Address (12 bytes) |
|
RSSI |
|
Device name length |
|
Device name |
Format3 |
+SCAN=} : Stop scanning |
+GATTSTAT - Connection Status Report
Indication |
+GATTSTAT=Param |
|
(0) Unsupported
(1) Standby
(2) Connecting
(3) Connected
|
Description |
In command mode, when the module’s connection status changes, it is actively reported via +GATTSTAT |
+LESTAT - Connection Status Report
Indication |
+LESTAT=Param |
|
(0) Unsupported
(1) Standby
(2) Connecting
(3) Connected
|
Description |
In command mode, when the module’s connection status changes, it is actively reported via +LESTAT |
+HIDSTAT - HID Status
Format |
+HIDSTAT=Param |
|
(0) Unsupported
(1) Standby
(2) Connecting
(3) Connected
|
Contact Information
Shenzhen Feasycom Co.,Ltd.
Address : Rm 508, Building, Fenghuang Zhigu, NO.50, Tiezai Road, Xixiang, Baoan Dist, Shenzhen, 518100, China.
Telphone : 86-755-23062695
Sales Service : sales@feasycom.com
Support : support@feasycom.com
Home Page : www.feasycom.com
Support Forum : forum.feasycom.com