Yuav Ua Li Cas Kho Qhov Profile ntawm Feasycom Bluetooth Audio Module Los Ntawm AT Commands?

Table of Contents

Feasycom's Bluetooth Audio module suav nrog ntau cov ntaub ntawv rau cov ntaub ntawv thiab lub suab xa mus. Thaum cov neeg tsim tawm sau thiab debugging cov kev pab cuam, lawv feem ntau yuav tsum tau teeb tsa lub module firmware kev ua haujlwm. Yog li ntawd, Feasycom muab ib txheej ntawm AT cov lus txib nrog ib hom ntawv tshwj xeeb los pab cov neeg tsim khoom hauv kev teeb tsa cov ntaub ntawv txhua lub sijhawm, nyob qhov twg. Kab lus no yuav qhia txog yuav ua li cas siv AT cov lus txib rau cov neeg tsim khoom siv Feasycom Bluetooth Audio modules.

Ua ntej, hom Feasycom's AT commands yog raws li nram no:

AT+Command{=Param1{,Param2{,Param3...}}}

Nco ntsoov:

- Tag nrho cov lus txib pib nrog "AT" thiab xaus nrog " "

-" " sawv cev rau lub tsheb thauj mus los, sib xws rau "HEX" li "0x0D"

-" " sawv cev rau kab noj, sib xws rau "HEX" li "0x0A"

- Yog hais tias cov lus txib suav nrog cov kev txwv, cov kev txwv yuav tsum tau muab cais los ntawm "="

- Yog tias cov lus txib suav nrog ntau qhov tsis sib xws, cov ntsuas yuav tsum tau muab cais los ntawm ","

- Yog hais tias cov lus txib muaj lus teb, cov lus teb pib nrog " "thiab xaus nrog" "

- Lub module yuav tsum ib txwm xa rov qab cov txiaj ntsig ntawm kev ua tiav, rov qab "OK" rau kev ua tiav thiab ERR for failure (the figure below lists the meanings of all ERR )

yuam kev Code | Lub ntsiab lus

---------------------- |

001 | Ua tsis tiav

002 | Qhov ntsuas tsis raug

003 | Lub xeev tsis raug

004 | Hais kom tsis sib haum

005 | Tsis khoom

006 | Hais kom tsis txaus siab

007 | Profile tsis qhib

008 | Tsis nco

Lwm tus | Khaws cia rau yav tom ntej siv

Hauv qab no yog ob qho piv txwv ntawm AT hais kom ua tiav cov txiaj ntsig:

  1. Nyeem lub npe Bluetooth ntawm lub module

<< AT+VER

>> +VER=FSC-BT1036-XXXX

> > OK

  1. Teb tus xov tooj thaum tsis muaj kev hu tuaj

<< AT+HFPANSW

>> ERR003

Tom ntej no, cia peb sau qee qhov kev siv feem ntau raws li qhia hauv qab no:

- SPP (Serial Port Profile)

- GATTS (Generic Attribute Profile LE-Peripheral luag hauj lwm)

- GATTC (Generic Attribute Profile LE-Central luag hauj lwm)

- 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 (Rau cov khoom siv iOS no)

Thaum kawg, peb sau cov lus txib AT sib raug rau cov profiles hais saum toj no hauv cov lus hauv qab no:

Hais kom | AT+PROFILE{=Param}

Param | Qhia ua tus lej lej me me, txhua qhov me me sawv cev

IB[0] | SPP (Serial Port Profile)

IB[1] | GATT Server (Generic Attribute Profile)

IB[2] | GATT Client (Generic Attribute Profile)

IB[3] | HFP-HF (Hands-Dawb Profile Handsfree)

IB[4] | HFP-AG (Hands-Free Profile Audio Gateway)

IB[5] | A2DP Sink (Advanced Audio Distribution Profile)

IB[6] | A2DP Source (Advanced Audio Distribution Profile)

IB[7] | AVRCP Controller (Audio/Video remote controller Profile)

TSI[8] | AVRCP Lub Hom Phiaj (Suab / Video chaw taws teeb tswj Profile)

IB[9] | HID Keyboard (Human Interface Profile)

IB[10] | PBAP Server (Phonebook Access Profile)

IB[15] | iAP2 (Rau cov khoom siv iOS no)

Teb | + PROFILE = Param

Nco tseg | Cov ntaub ntawv hauv qab no tsis tuaj yeem qhib ib txhij ntawm AT cov lus txib:

- GATT Server thiab GATT Client

- HFP Sink thiab HFP Source

- A2DP Sink thiab A2DP Source

- AVRCP Controller thiab AVRCP Lub Hom Phiaj

Siv AT cov lus txib los teeb tsa Profile ntawm Feasycom Bluetooth Audio Module yog siv rau hauv daim ntawv binary hauv qhov kev pab cuam firmware. Cov kev txwv yuav tsum tau teeb tsa los ntawm kev hloov pauv cov haujlwm BIT sib raug mus rau tus lej lej. Nov yog peb qhov piv txwv:

1. Nyeem qhov profile tam sim no

<< AT+PROFILE

>> + PROFILE = 1195

2. Pab kom tsuas yog HFP Source thiab A2DP Source, lov tes taw lwm tus (piv txwv li, ob qho tib si BIT[4] thiab BIT[6] yog 1 hauv binary, thiab lwm yam BIT txoj haujlwm yog 0, cov lej hloov pauv yog 80)

<< AT+PROFILE=80

> > OK

3. Ua kom tsuas yog HFP Sink thiab A2DP Sink, lov tes taw lwm tus (piv txwv li, ob qho tib si BIT[3] thiab BIT[5] yog 1 hauv binary, thiab lwm txoj haujlwm BIT yog 0, cov lej hloov pauv yog 40)

<< AT+PROFILE=40

> > OK

Qhov ua tiav AT cov lus txib tuaj yeem tau txais los ntawm cov khoom lag luam sib txuas cov lus qhia dav dav muab los ntawm Feasycom. Hauv qab no tsuas yog ob peb lub ntsiab Bluetooth Suab module dav dav programming phau ntawv rub tawm txuas:

- FSC-BT1036C (Master-Slave kev koom ua ke, tuaj yeem hloov pauv ntawm tus tswv suab thiab suab qhev ua haujlwm los ntawm cov lus txib)

- FSC-BT1026C (Supports audio slave function and TWS function)

- FSC-BT1035 (Supports audio master function)

Scroll rau saum