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

General AT Command Bluetooth Dual-mode Modules for the Data and Audio

 

 

General Description Modules
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  

 

 

 

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>

BT1006X supports SPP, GATT Server, GATT Client, HFP Sink, A2DP Sink, AVRCP Controller, HID Keyboard, 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)

 

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”

 

 

 

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

Pin code input will be bypassed if simple pairing is on in pairing 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/Clear Paired Record

Pin code input will be bypassed if the simple pairing is on in the pairing procedure

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

When 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, vice visa

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

 

 

 

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

 

 

 

 

 

Adsense

EMW3070

Viewed Page List