Development Examples
Profile Initialization
Module Profile initialization, response event examples are as follows:
Parameter Modification
Modify Bluetooth Name
Before the MCU modifies any parameters, it is recommended to first query, then modify, and finally verify. For the MCU to modify the device name to CARKIT, the reference code example is as follows:
void change_name(void)
{
uart_send("AT+NAME\r\n");
if(uart_read("+NAME",name_buf))
{
if(memcmp(name_buf,"CARKIT",6))
{
uart_send("AT+NAME=CARKIT,0\r\n"); //defalut disable MAC address suffix
uart_send("AT+NAME\r\n"); // read bt name
if(uart_read("+NAME",name_buf))
{
if(memcmp(name_buf,"CARKIT",6))
{
//change name fail
}
else
{
//change name success
}
}
}
}
}
Auido Sink Mode Application
Application Scenarios
Application Examples
Note
If the factory firmware of the module is transceiver-in-one program, the default +PROFILE=339. You need to send the AT command AT+PROFILE=1195 to configure it to audio sink mode (enabling SPP, GATT Server, HFP Sink, A2DP Sink, AVRCP-Controller, and PBAP).
Profile connect, take and Hang up Call
Music Play, Stop, and Track Switching
Source Mode Application
Application Scenarios
Application Examples
Note
The default profile for FSC-BT1036C is 339, which enables both the classic Bluetooth audio transmission function and SPP, GATT_Server.
The module is set to analog input by default. If you need to use I2S input, please refer to the instruction AT+I2SCFG. After configuring I2S, you need to restart the device for the settings to take effect.
Phonebook Download
Note
For some firmware versions of SOC audio modules, automatic connection to PBAP (Phone Book Access Profile) is not supported when downloading contacts. You need to first send the AT command AT+PBCONN to establish a PBAP connection before proceeding with the download.