페이지 선택
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in pages

General AT Command Bluetooth, BLE, GATT, High Speed Data and Audio

 

 

General Description
B3101 AT UART Communication Test
B3102 AT+PROFILE Bluetooth Profile Selection <auto reboot>
B3103 AT+VER Read firmware version
B3104 AT+ADDR Read BR/EDR MAC Address
B3105 AT+LEADDR Read BLE MAC Address
B3106 AT+NAME Read/Write BR/EDR Local Name
B3107 AT+LENAME Read/Write BLE Local Name
B3108 AT+LECFG Read/Write BLE Random Address Configuration <need reboot>
B3109 AT+BAUD Read/Write Baud Rate
B3110 AT+PIN Read/Write PIN Code
B3111 AT+SSP Turn On/Off Secure Simple Pairing <need reboot>
B3112 AT+COD Read/Write Class Of Device <need reboot>
B3113 AT+PLIST Read/Clear Paired Record
B3114 AT+TPMODE Turn On/Off Throughput Mode
B3115 AT+STAT Read Module States
B3116 AT+AUTOCONN Turn On/Off Power On Auto Reconnect <need reboot>
B3117 AT+SCAN Scan Nearby Devices
B3118 AT+SPKVOL Speaker Volume Setting
B3119 AT+I2SCFG I2S/PCM Format Configuration <need reboot>
B3120 AT+I2SCHAN I2S Channel Setting < need reboot>
B3121 AT+DSCA Release All Connections
B3122 AT+REBOOT Soft Reboot
B3123 AT+RESTORE Restore Factory Settings
B3124 AT+BTEN Enable BT Module
B3125 AT+PAIR Entering Pairing Mode
B3126 AT+PRINT Enable Print Log
B3127 AT+MUTEDELAY Audio Active PIO Delay Time Configuration
B3128 AT+LINECFG Line-In Configuration
B3129 AT+AUDROUTE Audio Route Manager
B3130 AT+TXPOWER TX Power Configuration

 

 

 

B3101   AT     UART Communication Test

Test the UART communication between HOST and Module after power-on.

E) AT OK  

 

Example

 AT

 OK 

 

 

 

 

B3102   AT+PROFILE     Bluetooth Profile Selection <Auto Reboot>

Bluetooth Audio Module may support SPP, GATT Server, GATT Client, HFP Sink, A2DP Sink, AVRCP Controller, HID Keyboard, and PBAP Server.

The default program does not support PBAP and HID Keyboard.

 

Q) AT+PROFILE{=Param} +PROFILE=Param

Param: A base-10 representation of a bit field, default:171, for each bit:

BIT[0]     SPP (Serial Port Profile)

BIT[1]     GATT Server (Generic Attribute Profile)

BIT[2]     GATT Client (Generic Attribute Profile)

BIT[3]     HFP Sink (Hands-Free Profile)

BIT[4]     HFP Source (Hands-Free Profile)

BIT[5]     A2DP Sink (Advanced Audio Distribution Profile)

BIT[6]     A2DP Source (Advanced Audio Distribution Profile)

BIT[7]     AVRCP Controller (Audio/Video remote controller Profile)

BIT[8]     AVRCP Target (Audio/Video remote controller Profile)

BIT[9]     HID Keyboard (Human Interface Profile)

BIT[10]   PBAP Server (Phonebook Access Profile)

 

십진수 B10 B09 B08 B07 B06 B05 B04 B03 B02 B01 B00

PBAP

 

HID

 

AVRCP

TRGT

AVRCP

CTRL

A2DP

SRC

A2DP

SNK

HFP

AG

HFP

HF

GATT

CLNT

GATT

SVR

SPP

 

117 0 0 0 1 0 1 0 1 0 1 1
339 0 0 1 0 1 0 1 0 0 1 1

 

Example

AT+PROFILE

+PROFILE=171

OK

 

Read current profile selection

 

AT+PROFILE=16

OK

Only Enable A2DP SINK,AVRCP Controller

 

 

 

B3103   AT+VER     Read firmware version

Q) AT+VER

+VER=Param

OK

Param: Firmware version (26 Bytes ASCII)

 

Example

AT+VER

+VER=FSC-BT100X,V1.0.0,20160120

OK

Read module’s firmware version

 

 

 

B3104   AT+ADDR     Read ER/BDR MAC Address

Q) AT+ADDR

+ADDR=Param

OK

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

 

Example

AT+ADDR

+ADDR=DC0D30123456

OK

Read Module’s BR/EDR MAC address

 

 

 

B3105   AT+LEADDR     Read BLE MAC Address

Q) AT+LEADDR

+LEADDR=Param

OK

Param: Module’s BLE MAC address (12 Bytes ASCII)

 

 

 

B3106   AT+NAME     Read/Write BR/EDR Local Name

Write local name if parameter existence, otherwise read the current local name.

Q) AT+NAME

+NAME=Param

OK

 
E) AT+NAME {=Param1{, Param2}} OK

Param1:BR/EDR local name (1~31 Bytes ASCII, default: FSC-BT1006A-0002)

Param2: MAC address suffix (0/1, default:1)

(0)     Disable suffix

(1)     Enable suffix “-XXXX” (lower 4 bytes of MAC address) after local name

 

 

Example

AT+NAME

NAME=Feasycom

OK

Read current local name
Example

AT+NAME=ABC

OK

Change module’s local name to “ABC”
Example

AT+NAME=ABC,1

OK

Change module’s local name to “ABC” and enable suffix

 

 

 

B3107   AT+LENAME     Read/Write BLE Local Name

Write the local name if the parameter exists, otherwise read the current local name.

Q) AT+LENAME

+LENAME=Param

OK

 
E) AT+LENAME {=Param1{, Param2}} OK

Param1: BLE local name (1~25 Bytes ASCII, default: FSC-BT1006A-LE-0002)

Param2: MAC address suffix (0/1, default:1)

(0) Disable suffix

(1)     Enable suffix “-XXXX” (lower 4 bytes of MAC address) after local name

 

 

 

B3108   AT+LECFG     Read/Write BLE Random Address Configuration <need reboot>

Q) AT+BAUD

+LECFG=Param

OK

 
E) AT+LECFG {=Param}  

Param1: BLE Random address enable(0/1, default:1)

(0)     Disable

(1)     Enable

 

 

 

B3109   AT+BAUD     Read/Write Baud Rate

The module’s baud rate will be changed immediately after receiving this command

 

Q) AT+BAUD

+BAUD=Param

OK

 
E) AT+BAUD{=Param}  

Param: 1200/2400/4800/9600/19200/38400/57600/115200/

230400/460800/921600, default:115200)

 

 

 

B3110   AT+PIN     Read/Write PIN Code

Q) AT+PIN

+PIN=Param

OK

 
E) AT+PIN{=Param}   Param: Pin code (4~15 Bytes ASCII, default:0000)

 

Example


AT+PIN

+PIN=0000

OK

Read module’s pin code

AT+PIN=12345678

OK

Change module’s pin code to “12345678”
아래에 있는 AT+SSP 명령으로 PIN 코드와 관련된 Pairing 절차를 설정할  수 있다.

 

 

 

 

B3111   AT+SSP     Turn On/Off Secure Simple Pairing  <need reboot>

PIN code input will be by passed if simple pairing is on in paring procedure.

 

Q) AT+SSP

+SSP=Param

OK

 
E) AT+SSP{=Param}  

Param: Simple pairing (0/1, default:1)

(0)     Turn Off

(1)     Turn On

 

 

 

B3112   AT+COD     Read/Write Class Of Device <need reboot>

 

Q) AT+COD

+COD=Param

OK

 
E) AT+COD{=Param}  

Param: Class of the device (6 bytes ASCII, default:240404 Handsfree device)

 

 

 

B3113   AT+PLIST      Read/Clear Paired Record

 

Q) AT+PLIST

Response1:

+PLIST=Param1, Param2{, Param3}

Response2:

+PLIST=E: End of the paired record

 

Param1: (1~8) Paired device’s index

Param2: (MAC) Paired device’s MAC address

Param3: (UTF8) Paired device’s name

E) AT+PLIST{=Param}  

Param: (0/(1~8)/12 Bytes MAC Address 

(0)    Clear all paired record

(1~8)     Clear specific paired record  with index

(MAC) Clear specific paired record with MAC address

 

Example

AT+PLIST

+PLIST=1,1C5CF226D773, iPhone

+PLIST=2, A0BC30075421, Samsung S8

+PLIST=E

OK

Read module’s paired record
Example

AT+PLIST=0

OK

Clear module’s paired record

 

 

 

B3114   AT+TPMODE      Turn On/Off Throughput Mode <Need Reboot>

When SPP/GATT profile is connected and throughput mode is on, the AT command will be de-active,

every byte received via physical UART will be sent to air, and vice visa.

 

Q) AT+TPMODE

+TPMODE=Param

OK

 
E) AT+TPMODE{=Param}  

Param: Throughput Mode

(0)      Turn Off,  Default is 0

(1)      Turn On

 

Example

AT+TPMODE

+TPMODE=1

OK 

Read current throughput mode
Example

AT+TPMODE=0

OK

Turn off throughput mode

 

 

 

B3115   AT+STAT      Read Module States

Refer to chapter 3 for state description, state may have different meanings according to profile selection

Q) AT+STAT +STAT=Param1, Param2, Param3, Param4, Param5, Param6, Param7, Param8, Param9

Param1: DEVSTAT

Param2: SPPSTAT

Param3: GATTSTAT

Param4: HFPSTAT

Param5: A2DPSTAT

Param6: PEERSTAT

Param7: AVRCPSTAT

Param8: HIDSTAT

Param9: PBSTAT

 

 

 

B3116   AT+AUTOCONN      Turn On/Off Power On Auto Reconnect <need reboot>

The module will attempt to connect the last device after power-on if set

Q) AT+AUTOCONN +AUTOCONN=Param  
E) AT+AUTOCONN{=Param}  

Param: Option (0~15, default:3)

(0)    Turn Off

(1-15)     Turn on and reconnect times

 

 

 

B3117   AT+SCAN     Scan Nearby Devices

Refer to the “Indication Table” page for a format description of scan results when in A2DP Slave mode.

Q) AT+SCAN    
E) AT+SCAN {=Param}  

Param

(0)      Stop scan

(1)      Scan nearby BLE devices

 

Example

AT+SCAN=1

+DEVSTAT=13

+SCAN=1�2�DC0D30000F7D�-51�14�FSC-BT955-0F7D

+SCAN=2�2�AC8995D9D1C4�-81�19�BeoSound 1_27168461

+DEVSTAT=5

 

SCAN 중에 AT+SCAN=0으로 Scan 동작을 멈출 수 있다.

Read current throughput mode

 

 

 

 

B3118   AT+SPKVOL      Speaker Volume Setting

Q) AT+SPKVOL    
E) AT+SPKVOL{=Param} +SPKVOL =Param

Param: (‘+’/’-’)

 

Example

AT+SPKVOL

+SPKVOL=14

Read current speaker volume
Example

AT+SPKVOL=+

OK

Increase audio speaker volume

 

 

 

B3119   AT+I2SCFG      I2S/PCM Format Configuration <need reboot>

Q) AT+I2SCFG    
E) AT+I2SCFG{=Param}  

Param: A base-10 representation of a bit field, default:0, for each bit:

BIT[0]         0: Disable I2S/PCM for audio input/output
1: Enable I2S/PCM for audio input/output

BIT[1]         0: I2S/PCM master role
1: I2S/PCM slave role

BIT[2]         0: 48000Hz sample rate
1: 44100Hz sample rate

BIT[3-4]     00: I2S Philips standard format

BIT[5-6]     00: 16-bit resolution
01: 24-bit resolution
10: 32-bit resolution

 

Example

AT+I2SCFG

+I2SCFG=0

Read current I2S/PCM configuration
Example

AT+I2SCFG=65

OK

Set

I2S/PCM configuration to: I2S master, 32-bit resolution,48kHz.

I2S LRCLK: 48000Hz

I2S BCLK: 3.072MHz (48000Hz * 32bit * 2Stereo)

 

 

 

B3120   AT+I2SCHAN   I2S Channel Setting < need reboot>

I2S2 only supports output

Q) AT+I2SCHAN    
E) AT+I2SCHAN{=Param} + I2SCHAN =Param

Param: (0/1, default:0)

(0) I2S Channel to Hardware I2S1

(1) I2S Channel to Hardware I2S2

 

 

 

B3121   AT+DSCA     Release All Connections

Module release all Bluetooth connections with remote device

Q) AT+DSCA    

 

 

 

B3122   AT+REBOOT     Soft Reboot

Module release all Bluetooth connections with the remote device then reboot

E) AT+REBOOT    

 

 

 

B3123   AT+RESTORE      Restore Factory Settings

Module restore all factory settings then reboot

E) AT+RESTORE    

 

 

 

B3124   AT+BTEN      Establish GATT Connection (GATT Client only)

Disconnect all devices connected and put module enter unconnectable and undiscoverable state.

Always effective even reboot

E)  AT+BTEN{=Param}  

Param: (0~1)

(0)   Bluetooth disable

(1)   Bluetooth enable

 

 

 

 

B3125   AT+PAIR      Enter Pairing Mode

Put module enter or quit connectable and discoverable state.

     
E) AT+PAIR{=Param}  

Param: (0~1)

(0)   Exit Paring Mode

(1)   Enter Paring Mode

 

 

 

B3126   AT+PRINT      Enable Print Log

Enable module print the log(including states of profiles) to uart.

     
E) AT+PRINT{=Param}  

Param: (0~1)

(0)   Disable

(1)   Eable

 

 

 

B3127   AT+MUTEDELAY      Audio Active PIO Delay Time Configuration

The param is used to eliminate the “pop” noise when the audio just established.

E) AT+MUTEDELAY{=Param}  

Param: (0~60)

Delay time = (Param * 50)ms

 

 

 

B3128   AT+LINECFG      LineIn Configuration <need reboot>

Bluetooth input source from linein

E) AT+LINECFG{=Param}  

Param: (0~1)

(0)     Disable LineIn
(1)     Enable LineIn

 

 

 

 

B3129   AT+AUDROUTE     Audio Route Manager

Some route modes require a specific firmware version.

E) AT+AUDROUTE{=Param}  

Param: Audio route

Note: HF1 & HF2 means peer Bluetooth headphones

(0)    Stop audio routing

(1)    Route music (A2DP streaming) from Module to HP1/HP2 simultaneously

(2)   Route voice call (HFP SCO) between Module and HP1

(3)    Route voice call (HFP SCO) between Module and HP2

(4)    Route voice call (HFP SCO) between HP1 and HP2 (intercom mode)

(5)    Route voice call (HFP SCO) from Module to HP1/HP2 simultaneously

(6)   Route music (A2DP streaming) from Module to HP1 only

(7)    Route music (A2DP streaming) from Module to HP2 only

 

 

 

 

B3130   AT+TXPOWER     TX Power Configuration

Setting the maximum wireless output power of the Bluetooth module.

E) AT+TXPOWER{=Param}  

Param: (0~15, Default 15)

Note: HF1 & HF2 means peer Bluetooth headphones

(0)    -36.1 

(1)    -8.2

(2)   -2.9

(3)   0.5

(4)   2.3

(5)    4.1

(6)  5.4

(7)   6.5

(8) 7.2

(9) 8.0

(10) 8.6

(11) 9.1

(12) 9.4

(13) 9.8

(14) 10.0

(15) 10.2

 

 

 

 

 

Adsense

 

 WiFi IoT Module

 

www.mxchip.com

 

 

 Bluetooth Module

www.feasycom.com

 

 

 5G/LTE/CAT-M1/NB-IoT

 

www.simcom.com

 

Viewed Page List