Development Examples
Data Throughput Mode Application
What is Throughput Mode?
FSC-BT826x series dual-mode Bluetooth data transmission modules have two data transmission modes: Throughput Mode and Command Mode.
The generic data throughput firmware for the FSC-BT826x series modules default to throughput mode. To switch modes, refer to the FSC-BT826x General Dual-Mode Data AT Command Set and use the AT+TPMODE command.
The operation and differences between the two modes are as follows:
Throughput Mode:
Bluetooth Not Connected: Data received via UART is parsed as AT commands.
Bluetooth Connected: All data received via UART is sent as-is to the remote Bluetooth device. It does not contain any data headers or framing and does not require AT commands to send data.
Command Mode:
Bluetooth Not Connected: Data received via UART is parsed as AT commands.
Bluetooth Connected: Data received via UART is still parsed as AT commands. It will contain specific response indication headers and framing. Data must be sent to the remote device using AT commands, such as AT+SPPSEND or AT+LESEND .
Module to Phone Application
Module : After power-on, the module will continuously send broadcast packet data.
Phone : Open the FeasyBlue APP , scan for nearby Bluetooth device advertisements, find the target Bluetooth module, and establish a connection.
Connection Success : After successful connection, the status pin of the module will pull up the level, indicating that the connection has been established.
Data Transmission : After successful connection, in the througput mode, the module will automatically transmit the serial port data it receives to the remote end (mobile phone side) via air.
Module to Module Application
Demonstration of SPP communication and data throughput transmission between an FSC-BT826x and an FSC-BT9101 Bluetooth module, as follows:
1.Scan for nearby SPP devices
FSC-BT826x scans for nearby Bluetooth SPP devices, as follows:
1Send: <<AT+SCAN=1 // Scan for nearby Bluetooth SPP devices
2Response: >>OK
3Response: >>+SCAN={ // Scan started
4Response: >>+SCAN=1,2,70CD0D311A59,-48,13,FEASYCOM-WILL
5Response: >>+SCAN=2,2,1063C8585846,-68,15,DESKTOP-BVPUURD
6Response: >>+SCAN=3,2,DC0D3000012F,-45,10,FSC-BT9101
7Response: >>+SCAN=4,2,1418C3B28AC1,-52,15,DESKTOP-U13VRNN
8Response: >>+SCAN=5,2,C03E15D0166F,-82,2,K2
9Response: >>+SCAN=6,2,DC0D3100015E,-73,10,FSC-BT986
10Response: >>+SCAN=7,2,DC0D30001AF3,-51,14,FSC-BT955-1AF3
11Response: >>+SCAN=8,2,C02E25D07080,-58,7,OPPO K3
12Response: >>+SCAN=} // Scan ended
2.Establish SPP connection request
FSC-BT826x establishes an SPP connection with the FSC-BT9101 using the AT+SPPCONN command, as follows:
1Send: <<AT+SPPCONN=DC0D3000012F // Initiate an SPP connection request to the remote FSC-BT9101
2Response: >>OK
3.SPP Connected
In throughput mode, after a successful Bluetooth connection, the UART will not receive event response indicators. The connection status can be determined by the level state of the status pin (e.g., Pin 10) on the FSC-BT826x, as follows:
High Level (H): Indicates Bluetooth is successfully connected.
Low Level (L): Indicates Bluetooth is not connected or the connection has been disconnected.
4.Send data
Throughput mode is enabled by default in the generic data transmission firmware. After SPP connected, data can be sent directly without using AT commands, as follow:
Read/Write Module Default Parameters
When Bluetooth is not connected, the module parses UART data as AT commands. The host can query and modify the module’s default parameters. As follow:
Write the device name to ABC
Read the device name
Read the Bluetooth address
Data Transmission Flow
Upon power-up, the module continuously transmits advertisement data. A remote Bluetooth device (e.g., phone) can discover these advertisement packets via scanning and initiate a connection request to the module.
Upon successful connection, the module pulls its connection status pin HIGH to notify the host of the successful Bluetooth connection.
The host can send data to the remote Bluetooth device via the Bluetooth module, and the remote Bluetooth device can also send data to the host.
Module Acts as Master to Connect to Remote Device
The module can act as a master device to connect to a slave device. The host can send commands to control the module to perform scanning, connection, and disconnection.