I have tried the below and it did not reset. I did not change the volume before hand but it should not have made a difference.
SET HFP_CONFIG=OFF ON OFF OFF ON OFF
OK
write
OK
reset
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Ready
PAIR_PENDING
PAIR_OK EC107BFCB572
OPEN_OK 10 A2DP EC107BFCB572
ROLE_OK EC107BFCB572 S
OPEN_OK 13 HFP EC107BFCB572
AT 13 2 OK
ROLE_OK EC107BFCB572 S
AT 13 5 ERROR
AT 13 2 OK
AT 13 2 OK
AT 13 5 ERROR
AT 13 2 OK
AT 13 2 OK
OPEN_OK 11 AVRCP EC107BFCB572
AT 13 10 +CIEV: 2,2
AT 13 7 +BCS: 2
CALL_OUTGOING 13
AT 13 2 OK
SCO_OPEN 13
AT 13 10 +CIEV: 2,3
AT 13 10 +CIEV: 1,1
AT 13 10 +CIEV: 2,0
CALL_ACTIVE 13
SCO_CLOSE 13
AT 13 10 +CIEV: 1,0
CALL_END 13
What phone did you have connected to the BC127 (iOS or Android)?
I ran others tests and it seems that forcing ROUTE causes the RESET.
Can you double confirm this behavior ?
I use ROUTE command because when pairing with two devices (in that order :1st is Laptop and 2nd is Andoird phone) and streaming music from the Laptop then there is NO switch to the phone for outgoing call !!
So just to be clear of the sequence so I am not chasing around trying to find it.
Pair A2DP with a PC.
Start streaming music from the PC to the unit so you can hear the audio coming out of the analog audio output.
Pair with a phone which pairs the A2DP/AVRCP/HFP.
Make a call with the phone (using AT commands through the BC127 or on the handset itself?).
When the call is opened the SCO_OPEN 13 response is seen and the unit does not close down the streaming audio from the PC so the ROUTE command needs to be sent to be able to hear the call?
When call is outgoing the module resets inopportunely as show in the following sequence:
[UART RX] SCO_OPEN 13
[UART TX] VOLUME 13 9 [UART TX] ROUTE 13
[UART RX] AT 13 10 +CIEV: 2,2
[UART RX] CALL_OUTGOING 13
[UART RX] OK
[UART RX] Sierra Wireless Copyright 2018
[UART RX] Melody Audio V7.2
[UART RX] Build: 1534785311
[UART RX] Ready
Please note that I force the “ROUTE” command when I receive “SCO_OPEN link_id”
It seems that forcing “ROUTE” in that cases causes the reset.
I didn’t have this issue with Melody 6.1.5: is there a change towards the use of the ROUTE command ?
B) On the other hand : I force the ROUTE command for couple reasons but the most important is because I get bad behavior with the following sequence:
Pair with a PC (A2DP and HFP are open).
Start streaming music (A2DP) from the PC to the unit so you can hear the audio coming out of the analog audio output.
Pair with a phone which pairs the A2DP/AVRCP/HFP.
Make a call with the phone (on the handset itself).
The music continue streaming and I cannot hear the outgoing tone.
When the call is opened the SCO_OPEN 13 response is seen (CALL_ACTIVE also) the unit doesn’t close the streaming audio from the PC but switch to the phone call. When CALL_END is received then I am unable to switch back to the PC audio stream (even when pushing PLAY/PAUSE on youtube) so the ROUTE command needs to be sent to be able to switch back.
Cannot repeat the same behaviour on either 6.1.5 or 7.2 as per the below annotated log file.
version
Sierra Wireless Copyright 2018
Melody Audio V7.2
Build: 1534785311
Bluetooth addresses: 20FABB075D0B 667440E3390C
Profiles: A2DP AVRCP HFP BLE SPP PBAP MAP TWS
Codecs: SBC
OK
status
STATE CONNECTED[0] CONNECTABLE[ON] DISCOVERABLE[ON] BLE[IDLE]
OK
PAIR_PENDING
PAIR_OK 7014A6692F9F
OPEN_OK 11 AVRCP 7014A6692F9F
OPEN_OK 10 A2DP 7014A6692F9F
ROLE_OK 7014A6692F9F S
OPEN_OK 13 HFP 7014A6692F9F
ROLE_OK 7014A6692F9F S
ABS_VOL 11 38
AVRCP_PAUSE 11
AVRCP_STOP 11
CLOSE_OK 11 AVRCP 7014A6692F9F
CLOSE_OK 10 A2DP 7014A6692F9F
LINK_LOSS 13 1
LINK_LOSS 13 0
OPEN_OK 10 A2DP 7014A6692F9F
ROLE_OK 7014A6692F9F S
OPEN_OK 11 AVRCP 7014A6692F9F
AVRCP_PAUSE 11
ABS_VOL 11 38
config
AUDIO=0 0
AUDIO_ANALOG=15 15 1 OFF
AUDIO_DIGITAL=0 44100 64 100A00 OFF
AUTOCONN=0
AUTO_DATA=OFF OFF
BALANCE=100 100
BATT_CONFIG=OFF 145 4250 1500 150
BC_SMART_CONFIG=68E3 28F0 89F7 D93C ON
BEACON_DATA=0 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF 04 D2 16 2E EE
BLE_CONFIG=0 OFF 80 ON
BLE_CONN_PARAMS=128 12 24 40 0 400 100 400 400 64 400 400
BT_STATE_CONFIG=0 0
BT_VOL_CONFIG=A 60 10 1
CLASS_1=OFF
CMD_TO=20
COD=240404
CODEC=0 OFF
DEEP_SLEEP=OFF
DEVICE_ID=0001 0002 0003 0004 0005 0006 0007 0008
ENABLE_BATT_IND=ON
ENABLE_LED=ON
ENABLE_SPP_SNIFF=OFF 0 0 0 0 0
GPIO_CONFIG=ON 0
HFP_CONFIG=OFF ON OFF OFF OFF OFF
HIGH_SPEED=OFF OFF
LOCAL_ADDR=20FABB075D0B 667440E3390C
MAX_REC=2
MM=OFF OFF 0 OFF OFF OFF OFF OFF
MUSIC_META_DATA=OFF
MUSIC_OLD_AVRCP=OFF
NAME=BC-075D0B
NAME_SHORT=BC075D0B
PIN=0000
PROFILES=2 0 2 0 2 3 2 1 0 0 2 0
REMOTE_ADDR=000000000000
SPP_UUID=00 00 11 01 00 00 10 00 80 00 00 80 5F 9B 34 FB
SSP_CAPS=3
TWS_CONFIG=OFF 1 2
UART_CONFIG=9600 OFF 0
USB_HOST=OFF
VREG_ROLE=1
OK
set hfp_config=off on off off on off
OK
ABS_VOL 11 38
A2DP_STREAM_START 10
AVRCP_PLAY 11
status
STATE CONNECTED[1] CONNECTABLE[ON] DISCOVERABLE[ON] BLE[IDLE]
LINK 10 CONNECTED A2DP 7014A6692F9F STREAMING SBC SNK 44100 //Streaming music to unit from iPhone
LINK 11 CONNECTED AVRCP 7014A6692F9F PLAYING
LINK 13 CONNECTED HFP 7014A6692F9F IDLE NB
OK
PAIR_PENDING
PAIR_OK 04C23E048A70 //Pairing HTC one to make calls with
OPEN_OK 23 HFP 04C23E048A70
ROLE_OK 7014A6692F9F S
AT 23 2 OK
ROLE_OK 04C23E048A70 M
ROLE_NOT_ALLOWED 7014A6692F9F S
AT 23 5 ERROR
AT 13 14 +XAPL=iPhone,7
AT 13 2 OK
AT 23 2 OK
AT 23 2 OK
OPEN_OK 20 A2DP 04C23E048A70
ROLE_OK 7014A6692F9F S
ROLE_OK 04C23E048A70 M
AT 23 5 ERROR
ROLE_NOT_ALLOWED 7014A6692F9F S
AT 23 2 OK
AT 23 2 OK
OPEN_OK 21 AVRCP 04C23E048A70
AVRCP_PAUSE 21
AT 23 10 +CIEV: 2,2
CALL_OUTGOING 23
AT 23 7 +BCS: 2
AT 23 10 +CIEV: 2,3
AT 23 2 OK
SCO_OPEN 23
AT 23 10 +CIEV: 1,1
AT 23 10 +CIEV: 2,0
CALL_ACTIVE 23 //made call with HTC one and call connected, audio still streaming out of analog audio jack
route 23 //Route call audio to audio jack
OK
ABS_VOL 11 38
AT 23 10 +CIEV: 1,0
CALL_END 23
SCO_CLOSE 23
route 10 //Route streaming audio to jack
OK
AT 23 10 +CIEV: 2,2
CALL_OUTGOING 23
SCO_OPEN 23
AT 23 10 +CIEV: 2,3
AT 23 10 +CIEV: 1,1
AT 23 10 +CIEV: 2,0
CALL_ACTIVE 23 //made call with HTC one and call connected, audio still streaming out of analog audio jack
route 23 //Route call audio to audio jack
OK
AT 23 10 +CIEV: 1,0
CALL_END 23
SCO_CLOSE 23
route 10 //Route streaming audio to jack
OK
AT 23 10 +CIEV: 2,2
CALL_OUTGOING 23
AT 23 10 +CIEV: 2,3
SCO_OPEN 23
AT 23 10 +CIEV: 1,1
AT 23 10 +CIEV: 2,0
CALL_ACTIVE 23 //made call with HTC one and call connected, audio still streaming out of analog audio jack
route 23 //Route call audio to audio jack
OK
AT 23 10 +CIEV: 1,0
CALL_END 23
SCO_CLOSE 23
route 0
OK
AT 23 10 +CIEV: 2,2
CALL_OUTGOING 23
AT 23 10 +CIEV: 2,3
SCO_OPEN 23
AT 23 10 +CIEV: 1,1
AT 23 10 +CIEV: 2,0
CALL_ACTIVE 23 //made call with HTC one and call connected, audio still streaming out of analog audio jack
route 0 //Route call audio to audio jack using auto route, no reset
OK
AT 23 10 +CIEV: 1,0
CALL_END 23 //Ended the call
SCO_CLOSE 23