How to Configure the Profile of Feasycom Bluetooth Audio Module by AT Commands?
FEASYCOM's Bluetooth Audio Module includes a series of profiles for data and audio transmission functions. When developers are writing and debugging programs, they often need to configure the module firmware's functionality. Therefore, Feasycom provides a set of AT commands with a specific format to facilitate developers in configuring profiles anytime, anywhere. This article will introduce how to use these AT commands to developers using Feasycom Bluetooth Audio modules.
First, the format of Feasycom's AT commands is as follows:
AT+Command{=Param1{,Param2{,Param3...}}}<CR><LF>
Note:
- All commands start with "AT" and end with "<CR><LF>"
- "<CR>" represents the carriage return, corresponding to "HEX" as "0x0D"
- "<LF>" represents the line feed, corresponding to "HEX" as "0x0A"
- If the command includes parameters, the parameters should be separated by "="
- If the command includes multiple parameters, the parameters should be separated by ","
- If the command has a response, the response starts with "<CR><LF>" and ends with "<CR><LF>"
- The module should always return the result of the command execution, returning "OK" for success and ERR<code> for failure (the figure below lists the meanings of all ERR<code>)
Error Code | Meaning
------------|--------
001 | Failed
002 | Invalid parameter
003 | Invalid state
004 | Command mismatch
005 | Busy
006 | Command not supported
007 | Profile not turned on
008 | No memory
Others | Reserved for future use
The following are two examples of AT command execution results:
1. Read the Bluetooth name of the module
<< AT+VER
>> +VER=FSC-BT1036-XXXX
>> OK
2. Answer a call when there is no incoming call
<< AT+HFPANSW
>> ERR003
Next, let's list some commonly used profiles as shown below:
- SPP (Serial Port Profile)
- GATTS (Generic Attribute Profile LE-Peripheral role)
- GATTC (Generic Attribute Profile LE-Central role)
- HFP-HF (Hands-Free Profile)
- HFP-AG (Hands-Free-AG Profile)
- A2DP-Sink (Advanced Audio Distribution Profile)
- A2DP-Source (Advanced Audio Distribution Profile)
- AVRCP-Controller (Audio/Video remote controller Profile)
- AVRCP-Target (Audio/Video remote controller Profile)
- HID-DEVICE (Human Interface Profile)
- PBAP (Phonebook Access Profile)
- iAP2 (For iOS devices)
Finally, we list the corresponding AT commands for the profiles mentioned above in the table below:
Command | AT+PROFILE{=Param}
Param | Expressed as a decimal bit field, each bit represents
BIT[0] | SPP (Serial Port Profile)
BIT[1] | GATT Server (Generic Attribute Profile)
BIT[2] | GATT Client (Generic Attribute Profile)
BIT[3] | HFP-HF (Hands-Free Profile Handsfree)
BIT[4] | HFP-AG (Hands-Free Profile Audio Gateway)
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)
BIT[15] | iAP2 (For iOS devices)
Response | +PROFILE=Param
Note | The following profiles cannot be enabled simultaneously via AT commands:
- GATT Server and GATT Client
- HFP Sink and HFP Source
- A2DP Sink and A2DP Source
- AVRCP Controller and AVRCP Target
Using AT commands to configure the Profile of Feasycom Bluetooth Audio Module is implemented in binary form in the firmware program. The parameters need to be configured by converting the corresponding BIT positions to decimal numbers. Here are three examples:
1. Read the current profile
<< AT+PROFILE
>> +PROFILE=1195
2. Enable only HFP Source and A2DP Source, disable others (i.e., both BIT[4] and BIT[6] are 1 in binary, and other BIT positions are 0, the converted decimal sum is 80)
<< AT+PROFILE=80
>> OK
3. Enable only HFP Sink and A2DP Sink, disable others (i.e., both BIT[3] and BIT[5] are 1 in binary, and other BIT positions are 0, the converted decimal sum is 40)
<< AT+PROFILE=40
>> OK
The complete AT commands can be obtained from the corresponding product's general programming manual provided by Feasycom. Below are only a few main Bluetooth Audio module general programming manual download links:
- FSC-BT1036C (Master-Slave integrated, can switch between audio master and audio slave functions through commands)
- FSC-BT1026C (Supports audio slave function and TWS function)
- FSC-BT1035 (Supports audio master function)
- |
- +1 赞 0
- 收藏
- 评论 0
本文由玄子转载自FEASYCOM Official Website,原文标题为:How to Configure the Profile of Feasycom Bluetooth Audio Module By AT Commands?,本站所有转载文章系出于传递更多信息之目的,且明确注明来源,不希望被转载的媒体或个人可与我们联系,我们将立即进行删除处理。
相关推荐
BT631D Bluetooth 5.3 Module LE Audio Code Migration
This article introduces the LE audio code migration process. The process is very complex, but the BT631D module testing results are relatively good after migration.
FEASYCOM分享POP音问题解决方案,保证通话音频质量
POP音在蓝牙应用中有很多出现场景,比如开关蓝牙,接听挂断电话,播放暂停音乐,以及播放音乐中或通话过程中产生。在平时自驾或日常生活和工作中也比较常见。本文中FEASYCOM来给大家分享POP音问题解决方案。
简析蓝牙在对讲机的运用
由于传统的对讲机都是通过有线来传输的,用起来很不方便,现在更多的人想用无线的对讲机传输,本文中FEASYCOM给大家介绍一下蓝牙在对讲机中的运用。
飞易通(FEASYCOM)蓝牙模块选型表
提供飞易通低功耗蓝牙模块、蓝牙WiFi二合一模块、音频蓝牙模块的选型参考,接口有UART/UART+SPI/USB+SIOD/PCIE/SDIO/UART+I2S+PCM多种类型,尺寸:10*11.9*2.2mm/16.5*13*1.62mm/26.9*13*2.4mm/13*26.9*2.2mm/12*12*2.4mm/22*22*2.4mm/23.4*19.4*2.6mm/17*17*2.4mm,天线有外置和默认板载,可改外置2种,持有SRRC-FCC-CE-IC-TELEC-KC/SRRC-FCC-IC-CE-KC/FCC-IC-CE-KC-BQB-NCC-SRRC-ROHS/SRRC/BQB/FCC-IC-CE-KC-TELEC-SRRC/BQB-FCC-IC-CE-TELEC-KC-NCC-SRRC多种证书
产品型号
|
品类
|
接口
|
尺寸(mm)
|
板载天线/外置天线
|
证书
|
FSC-BT691
|
低功耗蓝牙模块
|
UART
|
10*11.9*2.2mm
|
默认板载,可改外置
|
SRRC-FCC-CE-IC-TELEC-KC
|
选型表 - FEASYCOM 立即选型
FEASYCOM(飞易通)蓝牙/WIFI模块选型指南
目录- 公司简介 BLE 蓝牙 蓝牙双模/蓝牙音频 蓝牙 /Wi-Fi SOC 蓝牙 /Wi-Fi Combo
型号- FSC-BT986,FSC-BW236,FSC-BW104,FSC-BW246,FSC-WF210,FSC-BT1026C,FSC-BT1036B,FSC-BT1035,FSC-BT1057,FSC-BT691,FSC-BW121,FSC-BW256,FSC-BT805B,FSC-BW164,FSC-BT836B,FSC-BW126B,FSC-BT618,FSC-BT671C,FSC-BT816S,FSC-BT631D
FSC-BT1026C和FSC-BT1036C蓝牙模块提供完善的无线技术集成方案,为打造车载蓝牙环境的理想选择
车载蓝牙是指一种安装在汽车内部的无线通信技术,它能够使得车载电话与汽车的免提系统相连接,从而实现免提通话的功能。这项技术不仅大大提升了驾驶者和乘客的通话体验,更重要的是,它极大地增强了驾驶的安全性。通过车载蓝牙,驾驶员可以在不手持手机的情况下接听或拨打电话,降低了因分散注意力而导致交通事故的风险。
蓝牙电动车仪表盘方案
蓝牙在电动车上功能简概:电动车可以通过蓝牙进行本地音乐播放,仪表显示歌曲名称、时间轴、歌词,来电显示,通讯录,地图导航,信息显示,手机电量和手机信号,同时可以分别连接两个蓝牙头盔或者耳机,把相应的声音发送到蓝牙耳机或者头盔。
汽车DSP技术解析:蓝牙功能的重要性与蓝牙模块推荐
汽车DSP不仅实现数字信号处理与电子分频,还通过蓝牙高效传输数字信号提升音源质量。DSP工作分高电平、低电平、光纤同轴输入三种方式,蓝牙因其稳定传输与音质优化受青睐。推荐飞易通FSC-BT806A与FSC-BT1026C两款蓝牙模块,性能稳定,性价比高,广泛应用于汽车DSP产品中。
FSC-BT1006A高通蓝牙音频5.0 TWS蓝牙立体声方案
TWS蓝牙耳机非常流行,人们对TWS解决方案的音频质量要求很高,包括蓝牙耳机和蓝牙扬声器。如今,飞易通拥有带有高通QCC3007芯片组的高质量TWS音频解决方案模块FSC-BT1006。
飞易通提供工业级/汽车级Wi-Fi模块,适用于中控、OBD、T-BOX、PKE等汽车应用
FEASYCOM提供工业级Wi-Fi模块和汽车级Wi-Fi模块,它可以在Android或Linux系统上运行。这些模块特别适用于汽车中央控制、OBD、T-BOX、PKE和汽车游戏盒应用。飞易通的蓝牙Wi-Fi组合模块几乎可以在所有平台上使用,例如高通、MTK、RK。以下是汽车应用中的一些建议。
Feasycom Provides Automotive Bluetooth and Wi-Fi Modules Particularly Suitable for Automotive Central Control
Feasycom have Realtek Wi-Fi SOC modules suitable for the IOT product that with small platform such as stm32. Feasycom also provide industrial grade and automotive grade Wi-Fi modules particularly suitable for automotive central control.
便携式会议无线蓝牙全向麦克风:重塑会议体验,高效解决远距离拾音难题
便携式会议无线蓝牙麦克风通过其无位置限制、高兼容性特点,有效解决远距离会议拾音难题,提升会议质量。FSC-BT1026C与FSC-BT936B等高性能蓝牙模块,以其先进的技术支持,为蓝牙声音无线传输提供可靠保障,满足不同会议需求。
CSR8675无线蓝牙会议盒子实现一对一或一对多连接方案
飞易通科技有限公司针对无线蓝牙会议盒子市场的特殊需求,分别开发出系列蓝牙音频模块:主从一体和从端接收模块;主端音频作为盒子主端发射、接收一体方案,采用CSR8670/8675强大的高性能蓝牙处理芯片、其高保真、低延迟、智能降噪、消回音处理、认证齐全等特点,非常适合蓝牙会议盒子麦克风项目开发的群体客户。
物联网蓝牙Wi-Fi
型号- FSC-BT6038A,FSC-BT986,FSC-BW236,FSC-BW126,FSC-BT1038A,FSC-WF210,FSC-BW246,FSC-BT618V,FSC-BT1026C,FSC-BT1026E,FSC-BT691,FSC-BW121,FSC-BT805B,FSC-BW101,FSC-BT631S,FSC-BT909C,FSC-BT836B,FSC-BW256B,FSC-BT671D,FSC-BT901
FSC-BT1036x蓝牙5.2双模模块规格书
描述- FSC-BT1036x是一款支持蓝牙5.2双模的模块,适用于音频和数据通信。该模块集成了低功耗DSP和处理器、高性能立体声编解码器、电源管理子系统、I2S、LED驱动器和ADC I/O,并配备了Feasycom的强大且易于使用的固件。它支持蓝牙低功耗和经典模式,具有噪声消除、语音助手、24位音频质量、8 kHz至384 kHz音频采样率等特点。
型号- FSC-BT1036B,FSC-BT1036A,FSC-BT1036C,FSC-BT1036X
电子商城
服务
Ignion可支持多协议、宽频段的物联网天线方案设计,协议:Wi-Fi、Bluetooth、UWB、Lora、Zigbee、2G、3G、4G、5G、CBRS、GNSS、GSM、LTE-M、NB-IoT等,频段范围:400MHz~10600MHz。
最小起订量: 2500 提交需求>
提供语音芯片、MP3芯片、录音芯片、音频蓝牙芯片等IC定制,语音时长:40秒~3小时(外挂flash),可以外挂TF卡或U盘扩容。
最小起订量: 1pcs 提交需求>
登录 | 立即注册
提交评论