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.
设计经验 发布时间 : 2023-09-13
FEASYCOM分享POP音问题解决方案,保证通话音频质量
POP音在蓝牙应用中有很多出现场景,比如开关蓝牙,接听挂断电话,播放暂停音乐,以及播放音乐中或通话过程中产生。在平时自驾或日常生活和工作中也比较常见。本文中FEASYCOM来给大家分享POP音问题解决方案。
设计经验 发布时间 : 2024-05-24
简析蓝牙在对讲机的运用
由于传统的对讲机都是通过有线来传输的,用起来很不方便,现在更多的人想用无线的对讲机传输,本文中FEASYCOM给大家介绍一下蓝牙在对讲机中的运用。
设计经验 发布时间 : 2024-05-16
飞易通(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模块选型指南
描述- 飞易通产品涵盖蓝牙,Wi-Fi,4G等IOT无线模组,并可根据客户要求深度定制,提供一站式整体方案服务(包括软件 开发,硬件设计,APP技术支持等)。目前飞易通产品主要应用于工业物联,健康医疗,汽车电子,智能家居,移动互联等领域。
型号- FSC-BT986,FSC-BW236,FSC-BW104,FSC-WF210,FSC-BW246,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蓝牙模块提供完善的无线技术集成方案,为打造车载蓝牙环境的理想选择
车载蓝牙是指一种安装在汽车内部的无线通信技术,它能够使得车载电话与汽车的免提系统相连接,从而实现免提通话的功能。这项技术不仅大大提升了驾驶者和乘客的通话体验,更重要的是,它极大地增强了驾驶的安全性。通过车载蓝牙,驾驶员可以在不手持手机的情况下接听或拨打电话,降低了因分散注意力而导致交通事故的风险。
应用方案 发布时间 : 2024-11-18
蓝牙电动车仪表盘方案
蓝牙在电动车上功能简概:电动车可以通过蓝牙进行本地音乐播放,仪表显示歌曲名称、时间轴、歌词,来电显示,通讯录,地图导航,信息显示,手机电量和手机信号,同时可以分别连接两个蓝牙头盔或者耳机,把相应的声音发送到蓝牙耳机或者头盔。
应用方案 发布时间 : 2024-03-22
汽车DSP技术解析:蓝牙功能的重要性与蓝牙模块推荐
汽车DSP不仅实现数字信号处理与电子分频,还通过蓝牙高效传输数字信号提升音源质量。DSP工作分高电平、低电平、光纤同轴输入三种方式,蓝牙因其稳定传输与音质优化受青睐。推荐飞易通FSC-BT806A与FSC-BT1026C两款蓝牙模块,性能稳定,性价比高,广泛应用于汽车DSP产品中。
技术探讨 发布时间 : 2024-09-24
FSC-BT1006A高通蓝牙音频5.0 TWS蓝牙立体声方案
TWS蓝牙耳机非常流行,人们对TWS解决方案的音频质量要求很高,包括蓝牙耳机和蓝牙扬声器。如今,飞易通拥有带有高通QCC3007芯片组的高质量TWS音频解决方案模块FSC-BT1006。
应用方案 发布时间 : 2024-09-27
Shenzhen Feasycom’s FSC-BT631D Employs NRF5340 SoC To Deliver LE Audio Connectivity Solution For Headphone and Audio Equipment
An advanced module for wireless audio product design based on Nordic Semiconductor‘s nRF5340 high-end multiprotocol SoC, has been launched by Feasycom. It‘s the world‘s first Bluetooth® module that can support both LE Audio and Bluetooth Classic.
产品 发布时间 : 2023-10-28
飞易通提供基于蓝牙5.1双模音频模块的TWS蓝牙音频方案,支持A2DP、AVRCP、HFP等配置文件
本文中FEASYCOM与大家分享基于蓝牙5.1双模音频模块的TWS蓝牙音频方案。FSC-BT1026C是一款采用QCC3024芯片组的蓝牙5.1双模音频模块。作为蓝牙音频模块,它支持A2DP、AVRCP、HFP、HSP、SPP、GATT、HOGP、PBAP配置文件。它提供了TWS功能,客户可以将此模块应用到他们的产品中来开发TWS扬声器。(FSC-BT1026C蓝牙音频模块支持音频+数据传输)
应用方案 发布时间 : 2024-05-25
便携式会议无线蓝牙全向麦克风:重塑会议体验,高效解决远距离拾音难题
便携式会议无线蓝牙麦克风通过其无位置限制、高兼容性特点,有效解决远距离会议拾音难题,提升会议质量。FSC-BT1026C与FSC-BT936B等高性能蓝牙模块,以其先进的技术支持,为蓝牙声音无线传输提供可靠保障,满足不同会议需求。
应用方案 发布时间 : 2024-09-21
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.
器件选型 发布时间 : 2023-09-01
CSR8675无线蓝牙会议盒子实现一对一或一对多连接方案
飞易通科技有限公司针对无线蓝牙会议盒子市场的特殊需求,分别开发出系列蓝牙音频模块:主从一体和从端接收模块;主端音频作为盒子主端发射、接收一体方案,采用CSR8670/8675强大的高性能蓝牙处理芯片、其高保真、低延迟、智能降噪、消回音处理、认证齐全等特点,非常适合蓝牙会议盒子麦克风项目开发的群体客户。
应用方案 发布时间 : 2024-09-19
飞易通提供工业级/汽车级Wi-Fi模块,适用于中控、OBD、T-BOX、PKE等汽车应用
FEASYCOM提供工业级Wi-Fi模块和汽车级Wi-Fi模块,它可以在Android或Linux系统上运行。这些模块特别适用于汽车中央控制、OBD、T-BOX、PKE和汽车游戏盒应用。飞易通的蓝牙Wi-Fi组合模块几乎可以在所有平台上使用,例如高通、MTK、RK。以下是汽车应用中的一些建议。
器件选型 发布时间 : 2024-05-14
电子商城
服务
Ignion可支持多协议、宽频段的物联网天线方案设计,协议:Wi-Fi、Bluetooth、UWB、Lora、Zigbee、2G、3G、4G、5G、CBRS、GNSS、GSM、LTE-M、NB-IoT等,频段范围:400MHz~10600MHz。
最小起订量: 2500 提交需求>
根据用户的蓝牙模块,使用Bluetooth 蓝牙测试装置MT8852B,测试蓝牙1.0至5.1,包括传输速率、功率、频率、调制和接收机灵敏度,生成测试报告。支持到场/视频直播测试,资深专家全程指导。
实验室地址: 深圳 提交需求>
登录 | 立即注册
提交评论