FSC-BT1026 TWS Fast Start

Description

The purpose of this design guide is to introduce the TWS functions of the FSC-BT1026 series. Before developing the TWS functions, it is recommended to understand the basic functions and general instructions of the FSC-BT1026 series:

[General function]

Fast start

  1. To test the | ModuleName | series of TWS function, at least need two development board, carrying | ModuleName | series of modules, and make sure the module running in TWS process rather than a general program.

  2. Long press the ON/OFF button on the development board to start up, and LED0 starts blinking, indicating successful startup. At this point the module starts broadcasting and can be searched by the phone. At this time, do not connect. If the module is connected by the mobile phone, the module will enter the normal mode, and the TWS mode cannot be entered by pressing the button.

  3. Short press the ON/OFF button of one module (this module will be used as the main module, please do not press the ON/OFF button of two development boards at the same time), and LED1 starts to blink. Indicates that the master module begins searching for the slave module and will begin trying to pair.

  4. If the LED1 of both modules is steady on, it indicates that the TWS are successfully paired. In this case, you can search and connect the main module with your mobile phone. Once the connection is successful. Both LED0 and LED1 in the main module will be steady on, and LED1 in the slave module will be steady on. At this point, all operations are completed, and the audio of the phone will be synchronously sent to the two modules.

Instruction specification

Specification

Applies to the entire document

  • {} :Including {… } is optional

  • << : COMMAND sent by the host to the module

  • >> : The module replies to the host’s RESPONSE/EVENT

Instruction format

AT+Command{=Param1{,Param2{,Param3…}}}<CR><LF>
  • All instructions begin with AT and end with <CR><LF>

  • <CR> stands for “carriage return”, corresponding hex is 0x0D

  • <LF> stands for “line feed”, corresponding hex is 0x0A

  • If command has parameter, parameter keep behind =

  • If command has multiple parameters, parameter must be separated by ,

  • If command has response, response start with**<CR><LF>**, end with <CR><LF>

  • Module will always report command’s execution result using**OK** for success or ERROR for failure

Example:
Read the Bluetooth name of the module
<< AT+NAME
>> +NAME=FSC-BT1026-XXXX
>> OK

Pick up an incoming call when no call incoming actually
<< AT+HFPANSW
>> ERROR

Event format

<CR><LF>+Indication{=Param1{,Param2{,Param3…}}}<CR><LF>
  • All indications start with <CR><LF>, end with <CR><LF>

  • If indication has parameter, parameter keep behind “=”

  • If indication has multiple parameters, parameter must be separated by “,”

Example:
Received “1234567890” from mobile phone via SPP profile
>> +SPPDATA=10,1234567890

Call number 10086
>> +HFPSTAT=4
>> +HFPAUDIO=1
>> +HFPCID=10086
>> +HFPSTAT=6

Instruction table

The TWS firmware supports most of the general instructions. Please refer to the following links for the general instructions section

[General function]

TWS instruction

Command

AT+PEERSTAT

Response

+PEERSTAT=Param

Description

Format description reference: :ref:` REF100`

Command

AT+PEERCFG{=Param}

Param

(0) Disable the TWS function. If the TWS is connected, the TWS is disconnected. Restart still in effect
(1) The TWS function is enabled

Command

AT+PEERDISC

Description

Disconnect the current TWS connection

Command

AT+PEERINQ=Param

Param

(0) The search for TWS devices is stopped
(1) Start to search for and connect TWS devices

Description

This function can also be triggered by the power button

Command

AT+PEERDEV={Param}

Param

(0) Delete TWS pairing records

Description

Format description reference: :ref:` REF101`

Command

AT+PEERCONN

TWS indication

Format

+PEERSTAT=Param

Param

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

Format

+PEERDEV=Param1,Param2

Param1

(0) Indicates that the current module is the secondary TWS device
(1) Indicates that the current module is the primary TWS device

Param2

Address of the remote TWS device

Download PDF version

Download PDF version