BC127 Broadcast Audio — Initial Configuration Error 0x001A


#1

Hello,
I have two BC127. I want to use them one’s as a receiver and the other one is broadcaster.
My verison is Melody Audio V7.2.

I tried to implement Broadcost Audio from datasheet (page 176). from examples.
I have to use “SET BA_CONFIG=1 ON” like this accordıng to my BC127.
And then I realized that

BA_CONFIG Usage:
• Format (Melody 7.1):
BA_CONFIG= <enable_auto_broadcast> <broadcaster_product_id> <broadcaster_version_id>
Purpose: Broadcast Audio configuration—Set Broadcast Audio mode and (in broadcaster mode) configure broadcaster
settings.
• Format (Melody 7.2 and later):
BA_CONFIG= <enable_auto_broadcast>
Purpose: Broadcast Audio configuration—Set Broadcast Audio mode and enable/disable auto-broadcast.
Default: (Melody 7.1)
BA_CONFIG=0 ON 0A02 0304
(Broadcast Audio enabled, auto-broadcast enabled, product id=0A02, version id = 0304)
(Melody 7.2 and later)
BA_CONFIG=0 OFF
(Broadcast Audio enabled, auto-broadcast disabled)
Reboot required: Yes

Finally, I wrote SET BA_CONFIG=1 ON because of version 7.2 , I got an error. :frowning:

SET BA_CONFIG=1 ON
ERROR 0x001A

Please Help Me?

Now, when I wrıte “RESET”, I take a message like this

For Terminate1
RESET
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Ready
OPEN_OK 11 AVRCP 20FABB01FFE5
ABS_VOL 11 84
ABS_VOL 11 84
OPEN_OK 10 A2DP 20FABB01FFE5

For Terminate 2

RESET
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Ready
OPEN_OK 11 AVRCP 20FABB01FFE6
ABS_VOL 11 84
ABS_VOL 11 84
OPEN_OK 1A TWS 20FABB01FFE6


#2

@yesimkalkan,

The standard releases which are posted on the source do not support broadcast, you need a specific version which you will need to get through your distributor.

Regards

Matt


#3

Firstly,thank you very much for your attention. :grinning: @mlw
I want to communicate two BC127s in each other. One card has a microphone the other one has a headset. Should I use Headset Profile (HSP) to transfer the audio from one the other one?
I’m sure, I connected my devıces because I’ve heard meaningless sounds like bipp during writing code via headseat. But, I couldn’t understand where my fault is.
I gave the my version and code examples at below. Thank you very much again…!!! :slight_smile:

*For Microphone part
RESET
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Ready
OPEN_OK 10 A2DP 20FABB01FFE5
OPEN_OK 11 AVRCP 20FABB01FFE5
ABS_VOL 11 84
ABS_VOL 11 84
CLOSE_OK 11 AVRCP 20FABB01FFE5
LINK_LOSS 10 1
OPEN_OK 11 AVRCP 20FABB01FFE5
ABS_VOL 11 84
ABS_VOL 11 84
LINK_LOSS 10 0
WRTIE
ERROR 0x0012
WRITE
OK
VERSION
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Bluetooth addresses: 20FABB01FFE6 6683A6AC1161
Profiles: A2DP AVRCP HFP BLE SPP PBAP MAP TWS
Codecs: SBC
OK

RESET
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Ready
BT_STATE ON ON
ERROR 0x0013
BT_STATE ON ON
OK
INQUIRY
PENDING
INQU_OK
INQUIRY
PENDING
INQUIRY 20FABB01FFE5 “BC-01FFE5” 240404 -51dBm
INQUIRY 20FABB01FFE5 “BC-01FFE5” 240404 -52dBm
INQUIRY 20FABB01FFE5 “BC-01FFE5” 240404 -54dBm
INQUIRY 20FABB01FFE5 “BC-01FFE5” 240404 -51dBm
INQUIRY 20FABB01FFE5 “BC-01FFE5” 240404 -51dBm
INQUIRY 20FABB01FFE5 “BC-01FFE5” 240404 -50dBm
INQUIRY 20FABB01FFE5 “BC-01FFE5” 240404 -50dBm
INQUIRY 20FABB01FFE5 “BC-01FFE5” 240404 -49dBm
INQUIRY 20FABB01FFE5 “BC-01FFE5” 240404 -51dBm
INQUIRY 20FABB01FFE5 “BC-01FFE5” 240404 -49dBm
INQUIRY 20FABB01FFE5 “BC-01FFE5” 240404 -49dBm
INQUIRY 20FABB01FFE5 “BC-01FFE5” 240404 -49dBm
INQUIRY 20FABB01FFE5 “BC-01FFE5” 240404 -50dBm
INQU_OK
OPEN 20FABB01FFE5 HSP
ERROR 0x0013
OPEN 20FABB01FFE6 AGHFP
ERROR 0x0011
OPEN 20FABB01FFE5
ERROR 0x0013
OPEN_OK 15 SPP 20FABB01FFE5
CALL_ACTIVE 12
ERROR 0x0012
CALL_ACTIVE 13
ERROR 0x0012
CALL INCOMING 12
ERROR 0x0013
CALL 12 ACTIVE
ERROR 0x0017
CALL 12 INCOMING
ERROR 0x0017
CALL 13 INCOMING
ERROR 0x0017
CALL 12 INCOMING
ERROR 0x0017
CALL 12 OUTGOING
ERROR 0x0017
CALL 12 INCOMING “123456”
ERROR 0x0017
SET PROFILE HFP ON
ERROR 0x001A
SET BT CLASS 200404
ERROR 0x001A
RESET
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Ready
SET PROFILE HFP-AG ON
ERROR 0x001A

***********For Headset Part *********
OPEN_OK 1A TWS 20FABB01FFE6
OPEN_OK 11 AVRCP 20FABB01FFE6
ABS_VOL 11 84
ABS_VOL 11 84
RESET
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Ready
OPEN_OK 11 AVRCP 20FABB01FFE6
ABS_VOL 11 84
ABS_VOL 11 84
OPEN_OK 1A TWS 20FABB01FFE6
WRITE
OK
VERSION
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Bluetooth addresses: 20FABB01FFE5 6ECF2A826639
Profiles: A2DP AVRCP HFP BLE SPP PBAP MAP TWS
Codecs: SBC
OK
VERSION
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Bluetooth addresses: 20FABB01FFE5 6ECF2A826639
Profiles: A2DP AVRCP HFP BLE SPP PBAP MAP TWS
Codecs: SBC
OK
RESET
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Ready
INQUIRY
PENDING
INQUIRY 20FABB01FFE6 “BC-01FFE6” 240404 -47dBm
INQUIRY 20FABB01FFE6 “BC-01FFE6” 240404 -46dBm
INQUIRY 20FABB01FFE6 “BC-01FFE6” 240404 -47dBm
INQUIRY 20FABB01FFE6 “BC-01FFE6” 240404 -46dBm
INQUIRY 20FABB01FFE6 “BC-01FFE6” 240404 -48dBm
INQUIRY 20FABB01FFE6 “BC-01FFE6” 240404 -46dBm
INQUIRY 20FABB01FFE6 “BC-01FFE6” 240404 -46dBm
INQUIRY 20FABB01FFE6 “BC-01FFE6” 240404 -47dBm
INQUIRY 20FABB01FFE6 “BC-01FFE6” 240404 -47dBm
INQUIRY 20FABB01FFE6 “BC-01FFE6” 240404 -48dBm
INQUIRY 20FABB01FFE6 “BC-01FFE6” 240404 -47dBm
INQU_OK
OPEN 20FABB01FFE6 AGHFP
ERROR 0x0011
BT_STATE ON ON
OK
OPEN 20FABB01FFE5 HSP
ERROR 0x0013
OPEN 20FABB01FFE6
ERROR 0x0013
OPEN 20FABB01FFE6 SPP
PENDING
OPEN_OK 15 SPP 20FABB01FFE6
CALL_ACTIVE 12
ERROR 0x0012
CALL_ACTIVE 13
ERROR 0x0012
CALL_INCOMING 12
ERROR 0x0012
CALL 13 ACTIVE
ERROR 0x0017
CALL 12 INCOMING
ERROR 0x0017
CALL 13 INCOMING
ERROR 0x0017
CALL 13 ANSWER
ERROR 0x0017
CALL 13 REDIAL
ERROR 0x0017
SET PROFILE HFP ON
ERROR 0x001A
SET BT CLASS 200404
ERROR 0x001A
RESET
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Ready
SET PROFILE HFP-AG ON
ERROR 0x001A


#4

@yesimkalkan,

So you want to set up unidirectional audio or bi directional? If its uni directional then I would suggest using A2DP as this will open up the audio interfaces. If it is bi directional then you will have an issue as the HFP/HSP are designed around interfacing to a phone which handles call control, you cannot place a ‘call’ between two BT modules and have bi directional audio like a private radio.

Regards

Matt


#5

Dear @mlw
Thanks for the interest you have shown.:pray: My communication type is bidirectional. For this reason, I have to use HFP profile, I understood this thanks to you. Thank you again.:raised_hands::grinning: I tryied to below codes but I got an error during connection request. I thought that my profıle must be “2 0 0 0 0 0 0 0 0 0 0 0” or “1 1 0 0 0 0 0 0 0 0 0 0”. Maybe my error is here or not?

***** Mıcrophone Side ******
RESET
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Ready
VERSION
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Bluetooth addresses: 20FABB0789A0 000000000000
Profiles: A2DP AVRCP TWS
Codecs: SBC
OK
BT_STATE ON ON
OK
INQUIRY
PENDING
INQUIRY 20FABB07899B “BC127_MODULE2” 240404 -43dBm
INQUIRY 20FABB07899B “BC127_MODULE2” 240404 -45dBm
INQUIRY 20FABB07899B “BC127_MODULE2” 240404 -44dBm
INQUIRY 20FABB07899B “BC127_MODULE2” 240404 -43dBm
INQUIRY 20FABB07899B “BC127_MODULE2” 240404 -44dBm
INQUIRY 20FABB07899B “BC127_MODULE2” 240404 -44dBm
INQUIRY 20FABB07899B “BC127_MODULE2” 240404 -43dBm
INQUIRY 20FABB07899B “BC127_MODULE2” 240404 -45dBm
INQUIRY 20FABB07899B “BC127_MODULE2” 240404 -43dBm
INQUIRY 20FABB07899B “BC127_MODULE2” 240404 -44dBm
INQUIRY 20FABB07899B “BC127_MODULE2” 240404 -44dBm
INQUIRY 20FABB07899B “BC127_MODULE2” 240404 -44dBm
INQUIRY 20FABB07899B “BC127_MODULE2” 240404 -43dBm
INQUIRY 20FABB07899B “BC127_MODULE2” 240404 -43dBm
INQUIRY 20FABB07899B “BC127_MODULE2” 240404 -42dBm
INQUIRY 20FABB07899B “BC127_MODULE2” 240404 -42dBm
INQU_OK

LIST
LIST 20FABB01FFE5 AVRCP TWS
OK
GET AUDIO
AUDIO=0 0
OK
GET BT_VOL_CONFIG
BT_VOL_CONFIG=A 60 10 1
OK
GET BALANCE
BALANCE=100 100
OK
GET DEVICE_ID
DEVICE_ID=0001 0002 0003 0004 0005 0006 0007 0008
OK
GET HFP_CONFIG
HFP_CONFIG=OFF ON OFF OFF OFF OFF
OK

SET PROFILES=2 0 0 0 0 0 0 0 0 0 0 0
OK
GET PROFILES
PROFILES=2 0 0 0 0 0 0 0 0 0 0 0
OK
WRITE
OK
OPEN 20FABB07899B HFP
PENDING
OPEN_ERROR HFP
RESET
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Ready
OPEN 20FABB07899B HFP
PENDING
OPEN_ERROR HFP
SET PROFILES=1 0 0 0 0 0 0 0 0 0 0 0
OK
OPEN 20FABB07899B HFP
PENDING
OPEN_ERROR HFP
SET PROFILES=1 1 0 0 0 0 0 0 0 0 0 0
OK
OPEN 20FABB07899B HFP
PENDING
OPEN_ERROR HFP
OPEN 20FABB07899B AGHFP
ERROR 0x0011

SET PROFILES=2 0 0 0 0 0 0 0 0 0 0 0
OK
ROUTE
ROUTE 0
OK
ROUTE 23
ERROR 0x0011
ROUTE 21
ERROR 0x0011

***** Headset Side ******

RESET
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Ready
VERSION
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Bluetooth addresses: 20FABB07899B 000000000000
Profiles: A2DP AVRCP TWS
Codecs: SBC
OK
INQUIRY
PENDING
BT_STATE ON ON
OK
INQU_OK
INQUIRY
PENDING
INQUIRY 20FABB0789A0 “BC127_MODULE4” 240404 -46dBm
INQUIRY 20FABB0789A0 “BC127_MODULE4” 240404 -43dBm
INQUIRY 20FABB0789A0 “BC127_MODULE4” 240404 -44dBm
INQUIRY 20FABB0789A0 “BC127_MODULE4” 240404 -43dBm
INQUIRY 20FABB0789A0 “BC127_MODULE4” 240404 -43dBm
INQUIRY 20FABB0789A0 “BC127_MODULE4” 240404 -44dBm
INQUIRY 20FABB0789A0 “BC127_MODULE4” 240404 -44dBm
INQUIRY 20FABB0789A0 “BC127_MODULE4” 240404 -43dBm
INQUIRY 20FABB0789A0 “BC127_MODULE4” 240404 -42dBm
INQUIRY 20FABB0789A0 “BC127_MODULE4” 240404 -43dBm
INQUIRY 20FABB0789A0 “BC127_MODULE4” 240404 -43dBm
INQUIRY 20FABB0789A0 “BC127_MODULE4” 240404 -42dBm
INQU_OK
GET AUDIO
AUDIO=0 0
OK
GET BT_VOL_CONFIG
BT_VOL_CONFIG=A 60 10 1
OK
GET BALANCE
BALANCE=100 100
OK
GET DEVICE=ID
ERROR 0x0013
GET DEVICE_ID
DEVICE_ID=0001 0002 0003 0004 0005 0006 0007 0008
OK
GET HFP_CONFIG
HFP_CONFIG=OFF ON OFF OFF OFF OFF
OK
GET PROFILES
SET PROFILES=2 0 0 0 0 0 0 0 0 0 0 0
OK
GET PROFILES
PROFILES=2 0 0 0 0 0 0 0 0 0 0 0
OK
WRITE
OK
OPEN 20FABB0789A0 HFP
PENDING
OPEN_ERROR HFP
SET PROFILES=1 0 0 0 0 0 0 0 0 0 0 0
OK
OPEN 20FABB0789A0 HFP
PENDING
OPEN_ERROR HFP
SET PROFILES=1 1 0 0 0 0 0 0 0 0 0 0
OK
OPEN 20FABB0789A0 AGHFP
ERROR 0x0013

SET PROFILES=2 0 0 0 0 0 0 0 0 0 0 0
OK
ROUTE
ROUTE 0
OK
ROUTE 23
ERROR 0x0011
ROUTE
ROUTE 0
OK


#6

@yesimkalkan,

So the issue you have here is that you cannot just send some commands to the unit and have a bi directional audio link running between them, the profiles are built around working with devices that have call control on them (like phones), the BC127 does not have this capability.

Regards

Matt


#7

Hello Matt,
I appreciate you helping to me @mlw :raised_hands: . Thank you very much again :smiley::pray:. How can I transfer audio without sending any commands during bidirectional communication? Now, I’m so confused.I couldn’t understand this. Could you explain this issue detailed, please?

Best Regards,
Yesim


#8

@yesimkalkan,

You cannot just connect two BT units (like the BC127) with HFP/HSP together and they then open up a bi directional audio channel. The channel is only opened up when something which has call control implemented (which BT devices, generically speaking, do not have) such as a phone initiates or receives a call.

Regards

Matt


#9

Hello @mlw

Thank you very much for your answers and help :grinning:.
If I couldn’t two bc127 modules together with HSP/HFP, I had to change profiles.
I think that one of them is AGHFP which is source of sound via microphone, the other one is HFP from that listening sound via headset. I assumed I connected them in each other. I gave my code below my message. I used ROUTE 0 (default), ROUTE and ROUTE 2 (bidirectional). But, I couldn’t hear any voice from microphone with headset. And then, I tried A2DP and HFP configuration. Unfortunately, result is unsuccessful.

So my 1st Configuration: Speak to microphone->AGHFP mode(BC127_Module1)->Bluetooth connection in eachother ->HFP mode(BC127_Module2)->Hear Sound from Headset

My 2nd Configuration: Speak to Microphone->A2DP mode (bc127_moule_1)->Bluetooth connection in eachother->HFP mode(BC_127_Module2)->Hear Sound from Headset

For A2DP and HFP Profıle was1 0 0 1 1 0 0 0 0 0 0 0. But I couldn’t hear any voice comes from microphone.

I wonder that, are all my steps right/enough or not for audio transfer?Are my configuration true or not? What do I need to do to achieve success? Could you help me, please?

Best Regards,
Yesim

***************** MICROPHONE PART ***************************

RESET
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Ready

STATUS
STATE CONNECTED[0] CONNECTABLE[ON] DISCOVERABLE[OFF] BLE[OFF]
OK

VERSION
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Bluetooth addresses: 20FABB0789A0 000000000000
Profiles: A2DP AVRCP TWS
Codecs: SBC
OK

SET PROFILES=1 1 0 0 0 0 0 0 0 0 0 0
OK
WRITE
OK
RESET
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Ready

GET PROFILES
PROFILES=1 1 0 0 0 0 0 0 0 0 0 0
OK

BT_STATE ON ON
ERROR 0x0013
BT_STATE ON ON
ERROR 0x0013
BT_STATE ON ON
OK
STATUS
STATE CONNECTED[0] CONNECTABLE[ON] DISCOVERABLE[ON] BLE[OFF]
OK

OPEN 20FABB07899B HFP
PENDING
OPEN_ERROR HFP
OPEN 20FABB07899B HFP
PENDING
OPEN_OK 13 HFP 20FABB07899B
OPEN 20FABB07899B HFP
ERROR 0x0011

RESET
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Ready

OPEN 20FABB07899B HFP
PENDING
OPEN_OK 13 HFP 20FABB07899B

ROUTE 0
OK

ROUTE
ROUTE 0
OK

VERSION
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Bluetooth addresses: 20FABB0789A0 000000000000
Profiles: AGHFP HFP
OK

LIST
LIST 20FABB07899B HFP
LIST 8C1ABF5C4363 A2DP AVRCP
LIST 20FABB01FFE5 AVRCP TWS
OK

ROUTE 2
OK

SET AUDIO_ANALOG=15 15 1 OFF
OK
SET AUDIO=0 1
OK
ROUTE
ROUTE 2
OK

******************* HEADSET PART *****************

RESET
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Ready

STATUS
STATE CONNECTED[0] CONNECTABLE[ON] DISCOVERABLE[OFF] BLE[OFF]
OK

VERSION
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Bluetooth addresses: 20FABB07899B 000000000000
Profiles: A2DP AVRCP TWS
Codecs: SBC
OK

SET PROFILES=1 1 0 0 0 0 0 0 0 0 0 0
OK
WRITE
OK

RESET
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Ready

GET PROFILES
PROFILES=1 1 0 0 0 0 0 0 0 0 0 0
OK

BT_STATE ON ON
ERROR 0x0013
BT_STATE ON ON
OK

STATUS
STATE CONNECTED[0] CONNECTABLE[ON] DISCOVERABLE[ON] BLE[OFF]
OK

OPEN 20FABB0789A0 AGHFP
PENDING
OPEN_ERROR AGHFP
OPEN_OK 12 AGHFP 20FABB0789A0
REMOTE_VOLUME 12 A
OPEN 20FABB0789A0 AGHFP
ERROR 0x0011
OPEN 20FABB0789A0 AGHFP
ERROR 0x0011
OPEN 20FABB0789A0 AGHFP
ERROR 0x0011

RESET
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Ready

OPEN 20FABB0789A0 AGHFP
PENDING
OPEN_OK 12 AGHFP 20FABB0789A0
REMOTE_VOLUME 12 A

VERSION
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Bluetooth addresses: 20FABB07899B 000000000000
Profiles: AGHFP HFP
OK

LIST
LIST 8C1ABF5C4363 A2DP AVRCP BLE
LIST 20FABB0789A0 AGHFP
LIST 149F3CA0E2D8 BLE
OK

ROUTE 2
OK
SET AUDIO_ANALOG=15 15 1 OFF
OK
SET AUDIO=1 1
OK


#10

Dear @mlw
Could yo help me, please? I need your help.

Best Regards,
Yesim


#11

@yesimkalkan,

Let me be clear, you cannot do what you want to do, period, you cannot create a BT link between two BC127’s and have an audio link between them with no other device (such as a phone) controlling the call.

Regards

Matt


#12

Dear @mlw
Thank you very muh for your answer. I just wanted to use this configuration like page 8 of the link. Have a nice day. Thank you.

Best Regards,
Yesim

Link: