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

Example:
<< AT
>> OK

AT+REBOOT - Software Reset

Command

AT+REBOOT

Response

OK

Description

The module will perform a reset

Example:
<< AT+REBOOT
>> OK

AT+RESTORE - Restore Factory Settings

Command

AT+RESTORE

Response

OK

Description

The module will restore to factory default settings

Example:
<< AT+RESTORE
>> OK

AT+BTEN - Read/Write Current Bluetooth Operation Mode

Command

AT+BTEN{=Param}

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}}

Param

BR/EDR Bluetooth name (1~29 Bytes ASCII)

Param1

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

Param

Bluetooth name

Description

Set the BR/EDR Bluetooth name; use sub-parameters to display the address suffix

Example:
Set BR/EDR Bluetooth name and disable suffix
<< AT+NAME=ABC,0
>> OK

Set BR/EDR Bluetooth name to “ABC” and automatically add address suffix
<< AT+NAME=ABC-,1
>> OK

Read BR/EDR Bluetooth name
<< AT+NAME
>> +NAME=ABC-XXXX
>> OK

AT+LENAME - Read/Write BLE Bluetooth Name

Command

AT+LENAME{=Param{,Param1}}

Param

BLE Bluetooth name (1~29 Bytes ASCII)

Param1

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

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}

Param

Pairing PIN code (4~15 Bytes ASCII, default: 0000)

Response

+PIN=Param

Description

The pairing PIN code is valid when +SSP=0

Example:
Query pairing PIN code
<< AT+PIN
>> +PIN=0000
>> OK

Modify pairing PIN code to 1234
<< AT+PIN=1234
>> OK

AT+PLIST - Read/Clear Pairing Records

Command

AT+PLIST{=Param}

Param

(0 / 1~8)
(0) Clear all pairing records
(1~8) Clear pairing record at specified index

Response1

+PLIST=Param, Param1

Param

(1~8) Pairing device index

Param1

(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

Example: Read module pairing records
<< AT+PLIST
>> +PLIST=1,1C5CF226D773
+PLIST=2,A0BC30075421
>> OK

Example: Clear all module pairing records
<< AT+PLIST=0
>> OK

AT+BAUD - Read/Write UART Baud Rate

Command

AT+BAUD{=Param}

Param

Baud rate (9600/19200/38400/57600/115200/
230400/460800/921600/256000/512000/1000000, default: 115200)

Response

+BAUD=Param

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

Example:
Read Baud rate
<< AT+BAUD
>> +BAUD=115200
>> OK

Set Baud rate
<< AT+BAUD=230400
>> OK

AT+VER - Read Firmware Version

Command

AT+VER

Response

+VER{=Param,Param1}

Param

Firmware version

Param1

Module model

Example:
<< AT+VER
>> +VER=8.0.0,FSC-BT2064
>> OK

AT+ADDR - Read BR/EDR Bluetooth MAC Address

Command

AT+ADDR

Response

+ADDR=Param

Param

Module’s BR/EDR Bluetooth MAC address (12 Bytes ASCII)

Example:
<< AT+ADDR
>> +ADDR=DC0D30010203
>> OK

AT+LEADDR - Read BLE Bluetooth MAC Address

Command

AT+LEADDR

Response

+LEADDR=Param

Param

Module’s BLE Bluetooth MAC address (12 Bytes ASCII)

AT+COD - Read/Write Device Class of Device (COD)

Command

AT+COD=Param

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}

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

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}

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}

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}

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}

Param

0: Disable command/transmission mode switching function
1: Enable command/transmission mode switching function

Param1

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}}

Param

Scanning mode (0~2)
0: Stop scanning
1: Scan for nearby BR/EDR devices
2: Scan for nearby BLE devices

Param1

(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}

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

Example:
Set to enable security verification
<< AT+SECURITY=1
>> OK

Get security verification information
<< AT+SECURITY
>> +SECURITY=1
OK

AT+TXPOWER - Read/Write Transmit Power

Command

AT+TXPOWER{=Param}

Param

Transmit power (0~6, default: 3)
0: -12dBm
1: -8dBm
2: -4dBm
3: 0dBm
4: 4dBm
5: 8dBm
6: 10dBm

Response

+TXPOWER=Param

Param

Transmit power

Description

Modify the transmit power; the setting takes effect after restart

Example:
Read transmit power
<< AT+TXPOWER
>> +TXPOWER=3
>> OK

Set transmit power to 10dBm
<< AT+TXPOWER=6
>> OK

AT+UARTCFG - Read/Write UART Configuration

Command

AT+UARTCFG{=Param}

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

Param

Configuration (0~5)

Description

Modify UART configuration (stop bit and parity bit)

Example:
Get current UART configuration
<< AT+UARTCFG=0
>> OK

Set UART to odd parity
<< AT+UARTCFG=2
>> OK

AT+RSSICFG - Read/Write RSSI Configuration

Command

AT+RSSICFG{=Param{,Param1}}

Param

High RSSI value

Param1

Low RSSI value

Description

When the signal strength is greater than Param, PIN34 is set low
When the signal strength is less than Param1, PIN34 is set high
When the signal strength is between Param and Param1, the level remains unchanged
Example: Configure -30~-60 signal strength indication
<< AT+RSSICFG=30,60
>> OK

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}

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}

Param

Target device MAC address (12 Bytes ASCII)

Example: Initiate a connection to the Bluetooth device with address 112233445566
<< AT+SPPCONN=112233445566
>> OK

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}}

Param

Payload length (1~236)

Param1

Payload (1~236 Bytes UTF8)

Description

This command will be disabled if transparent transmission mode is enabled

Example: Send data “1234567890” to the remote device via SPP
<< AT+SPPSEND=10,1234567890
>> OK

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}

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}

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}

Param

Vendor-customized Broadcast data (data length not exceeding 26)

Response

+ADVDATA=Param

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
Example:
Query the content of vendor-customized Broadcast data; \x represents hexadecimal data
<< AT+ADVDATA
>> +ADVDATA=\x03\x01\x02
>> OK

Set vendor-customized Broadcast data; \x represents hexadecimal data
<< AT+ADVDATA=\x03\x01\x02
>> OK

AT+ADBLE - Enable/Disable AndroidBLE

Command

AT+ADBLE{=Param}

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}}

Param

Service UUID (default: 0000)

Param1

Write UUID (default: 0000)

Param2

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}}

Param

Payload length (1~236)

Param1

Payload (1~236 Bytes UTF8)

Description

This command will be disabled if transparent transmission mode is enabled

Example: Send data “1234567890” to the remote device via GATT
<< AT+GATTSEND=10,1234567890
>> OK

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}}

Param

12-byte device address + 1-byte address type

Param1

Communication service UUID

Param2

Communication write permission characteristic UUID

Param3

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
Example:
Connect to the specified device, 0 is the address type
<< AT+LECCONN=DC0D3000039E0
>> OK

Initiate a connection to the specified address, using FFF0, FFF2, FFF1 for communication
<< AT+LECCONN=DC0D3000039E0,FFF0,FFF2,FFF1
>> OK

AT+LESEND - Send Data to Remote Device

Command

AT+LESEND=Param1,Param2

Param1

Payload length (1~236)

Param2

Payload (1~236 Bytes UTF8)

Response

OK

Description

This command will be disabled if transparent transmission mode is enabled

Example:
Send data “1234567890” to the remote BLE device
<< AT+LESEND=10,1234567890
>> OK

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}

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}

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}

Param

HID report period in millisecond, default 10 ms

AT+HIDSEND - Send Data via HID

Command

AT+HIDSEND{=Param{,Param1}}

Param

Report length

Param1

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

Example: Send character ‘A’ to the remote device (on AT+HIDMODE=1)
>> AT+HIDSEND=1,A
<< OK
Example: Send character ‘A’ to the remote device (on AT+HIDMODE=0)
<< AT+HIDSEND=4, xA1 x01 x00 x04
>> OK
Note: Data is in hex format; the corresponding actual data is as follows:
41 54 2B 48 49 44 53 45 4E 44 3D 34 2C A1 01 00 04 0d 0a
Where:
A1 : report start
01 : page id 1
00 : modifier
04 : key code
The module will automatically send the key release signal

Notification List

+SPPSTAT - SPP Status

Format

+SPPSTAT=Param

Param

(0) Unsupported
(1) Standby
(2) Connecting
(3) Connected

+SCAN - Scan Results

Format1

+SCAN={ : Start scanning

Format2

+SCAN =Param,Param1,Param2,Param3,Param4,Param5

Param

List index

Param1

Address type (1 byte)

Param2

Address (12 bytes)

Param3

RSSI

Param4

Device name length

Param5

Device name

Format3

+SCAN=} : Stop scanning

Example:
Search for devices
<< AT+SCAN=1
>> +SCAN={
>> +SCAN=0,1,70CFC9A98840,-43,24,LE-Bose QuietControl 30
>> +SCAN=1,1,DC0D30001ED4,-65,10,WEWQ-45AE
>> +SCAN=}

+GATTSTAT - Connection Status Report

Indication

+GATTSTAT=Param

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

Example:
Connection successful
>> +GATTSTAT=3

+LESTAT - Connection Status Report

Indication

+LESTAT=Param

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

Example:
Connection successful
>> +LESTAT=3

+HIDSTAT - HID Status

Format

+HIDSTAT=Param

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

Appendix

PDF Download

PDF Download