FSC-BT2064 Printer Multi-link 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 |
PIN Code |
0000 |
Secure Simple Pairing Mode |
OFF |
Service UUID |
18F0 |
Write UUID |
2AF1 |
Notify UUID |
2AF0 |
UART Baudrate |
115200/8/N/1 |
AT Command Description
Specification 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
The command is a control instruction actively sent by the host to the module. After receiving the command, the module needs to reply with <CR><LF>OK<CR><LF> as an acknowledgment.
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>
Command Table
General Commands
AT+HELP - Query firmware functions and command descriptions
Command |
AT+HELP |
Response |
[General]:Main commands.
[Misc]:Reset command.
|
Description |
Use the help command to get all instructions |
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+NAME - Read/Write BR/EDR Bluetooth Name
Command |
AT+NAME{=Param{,Param1}} |
|
BR/EDR Bluetooth name (1~31 Bytes ASCII) |
|
Enable MAC address suffix (0~1, default: 0)
0: Disable suffix
1: Enable suffix “XXXX” (last 4 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~31 Bytes ASCII) |
|
Enable MAC address suffix (0~1, default: 0)
0: Disable suffix
1: Enable suffix “XXXX” (last 4 Bytes of MAC address)
|
Response |
+LENAME=Param |
|
BLE Bluetooth name |
Note |
This command temporarily cannot be used to set the BLE local name independently.
If you need to enable this function, please contact FEASYCOM: Contact Information
|
AT+PIN - Read/Write Pairing Password
Command |
AT+PIN{=Param} |
|
Pairing password (4~15 Bytes ASCII, default: 0000) |
Response |
+PIN=Param |
Note |
When +SSP=1, Simple Secure Pairing (SSP) is performed without using a pairing code.
Refer to the AT+SSP command.
|
AT+ADDR - Read BR/EDR Bluetooth MAC Address
Command |
AT+ADDR |
Response |
+ADDR=Param |
|
BR/EDR Bluetooth MAC address of the module (12 Bytes ASCII) |
AT+LEADDR - Read BLE Bluetooth MAC Address
Command |
AT+LEADDR |
Response |
+LEADDR=Param |
|
BLE Bluetooth MAC address of the module (12 Bytes ASCII). |
Note |
By default, it is the same as the BR/EDR Bluetooth address.
For the reason, refer to the AT+SAMEADDR command.
|
AT+PLIST - Read/Clear Pairing Records
Command |
AT+PLIST{=Param} |
|
(0 / 1~8) Parameter 0 or 1~8
(0) Clear all pairing records
(1~8) Clear the pairing record of the specified index
|
Response |
+PLIST=Param, Param1 |
|
(1~8) Paired device sequence number |
|
(MAC) MAC address of the paired device |
Description |
If a parameter exists, 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/128000/256000/512000, 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+SAMEADDR - Set/Query Whether SPP·BLE Use the Same Address
Command |
AT+SAMEADDR{=Param} |
|
Mode (0/1, default: 1)
0: Different addresses
1: Same address
|
Response |
+SAMEADDR=Param |
|
Setting of whether to use the same address |
Description |
Set/query whether SPP·BLE use the same address |
AT+VER - Read Firmware Version
Command |
AT+VER |
Response |
+VER{=Param,Param1} |
|
Firmware version |
|
Module model |
Description |
Read the version number and module model |
AT+COD - Read/Write Device Class
Command |
AT+COD=Param |
|
Device class (6 bytes ASCII, default: 040680 printer device) |
Response |
+COD=Param |
Note |
After modifying the COD, the module needs to be restarted to reset the COD |
Related configuration reference COD.
AT+INITDLY - Initialization Delay After Bluetooth Device Power-On
Command |
AT+INITDLY{=Param} |
|
Initialization delay after power-on (default: 0)
|
Response |
+INITDLY=Param |
|
Delay time after power-on
|
Description |
This command can set and query the delay time; the default is no delay. |
AT+FLOWCTL - Enable/Disable UART Flow Control
Command |
AT+FLOWCTL{=Param1} |
|
Parameter (0~1, default: 1) 0: Disable flow control 1: Enable flow control |
Response |
+FLOWCTL=Param |
Description |
Enable/disable UART flow control |
AT+SSP - Read/Write BR/EDR Pairing Mode
Command |
AT+SSP{=Param} |
|
Mode (0~1, default: 0) 0: Disable SSP 1: Enable SSP |
Response |
+SSP=Param |
Description |
Simple Secure Pairing (SSP) is disabled by default |
Note |
Takes effect after restart |
AT+MODE - Read/Write Bluetooth PROFILE
Command |
AT+MODE{=Param} |
|
Mode (1~3, default: 3)
(1) EDR PROFILE
(2) BLE PROFILE
(3) EDR/BLE PROFILE
|
Response |
+MODE=Param |
Note |
Takes effect after restart |
AT+SECURITY - Enable/Disable Security Authentication
Command |
AT+SECURITY{=Param} |
|
Mode (0~3, default: 0)
0: Disable security authentication
1: Enable EDR security authentication
2: Enable BLE security authentication
3: Enable EDR/BLE security authentication
|
Response |
+SECURITY=Param |
Description |
Enable or disable security authentication to improve the security level during pairing and connection |
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; takes effect after restart |
AT+ADVADDR - Enable/Disable Broadcast Address
Command |
AT+ADVADDR{=Param} |
|
Mode (0~1, default: 0) 0: Disable broadcast address 1: Enable broadcast address |
Response |
+ADVADDR=Param |
Description |
Enable/disable broadcasting the module address |
Note |
Takes effect after restart |
AT+HSM - Enable/Disable High-Speed Mode
Command |
AT+HSM{=Param} |
|
Mode (0~1, default: 0)
0: Bluetooth communication uses standard speed 1: Bluetooth communication uses higher speed
|
Response |
+HSM=Param |
Description |
Enable/disable high-speed mode |
Note |
High-speed mode supports 1 BLE and 1 SPP connection |
AT+SCM - Enable/Disable Short Connection Mode
Command |
AT+SCM{=Param} |
|
Mode (0~1, default: 0) 0: Disable short connection 1: Enable short connection |
Response |
+SCM=Param |
Description |
Enable/disable short connection mode |
Note |
Short connection mode supports 1 SPP connection |
AT+CONNMODE - Set/Query Connection Mode
Command |
AT+CONNMODE{=Param} |
|
Mode (0~1, default: 0) |
Response |
+CONNMODE=Param |
Description |
0: Enable multi-phone connection and support multiple applications connecting within one phone
1: Only enable multi-phone connection; do not support multiple applications connecting within one phone
|
AT+STATE - Set/Query Bluetooth Device State
Command |
AT+STATE{=Param} |
|
Mode (0~3, default: 3) |
Response |
+STATE=Param |
Description |
0: The device is not discoverable and not connectable by other devices.
1: The device is not discoverable but connectable by other devices.
2: The device is discoverable but not connectable by other devices.
3: The device is discoverable and connectable by other devices.
|
AT+MSC - Set/Query Maximum SPP Connections
Command |
AT+MSC{=Param} |
|
Parameter (1~7, default: 7) |
Response |
+MSC=Param |
Description |
Set/query the maximum number of SPP connections; the maximum shall not exceed 7, and the minimum is 1 |
AT+PIOCFG - Enable/Disable IO Port Control Module
Command |
AT+PIOCFG{=Param,Param1} |
|
Mode (0/1, default: 1) Pin for switching between command and transparent transmission data |
|
Parameter (0/1, default: 1) Disconnection pin |
Response |
+PIOCFG=Param,Param1 |
Description |
Enable related pin functions |
AT+CLOSEAT - Disable Over-the-Air (OTA) Command Mode
Command |
AT+CLOSEAT |
Response |
NULL |
Description |
Disable OTA command mode; return error if not in OTA command mode |
AT+IBEACON - Enable/Disable iBeacon Broadcasting
Command |
AT+IBEACON{=Param} |
|
Mode (0~1, default: 0)
0: Disable iBeacon broadcasting
1: Enable iBeacon broadcasting
|
Response |
+IBEACON=Param |
Description |
Enable/disable iBeacon broadcasting |
Note |
Broadcast length limit; other broadcasts are invisible after enabling iBeacon broadcasting |
AT+ADVDATA - Read/Write BLE Broadcast Data with Tag 0xFF
Command |
AT+ADVDATA{=Param} |
|
Manufacturer-defined broadcast data (data length not exceeding 26 bytes) |
Response |
+ADVDATA=Param |
|
Broadcast data with tag 0xFF |
Description |
Manufacturer-defined broadcast data with tag 0xFF |
Note |
To enable the module to broadcast custom data, set AT+IBEACON=1 first, then configure the custom broadcast data
|
AT+PCPT - Query/Modify Printer Channel Unlock Time
Command |
AT+PCPT{=Param} |
|
Unlock time (default: 1500, unit: ms) |
Response |
+PCPT=Param |
Description |
When multiple phones are connected, it refers to the interval time for the module to receive data sent by the phones
|
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