BC127 (with the newest Melody 7.2) is unable to quit the data-mode


#1

By the moment I’ve been working on a project with BC127 based device.
After sending the command “ENTER_DATA_MODE <BT_device>”, BC127 transfers to the data mode. It is supposed to quit it after the command “$$$$” but, surprisingly, BC127 treats it as a message and sends to the connected Bluetooth device.
Is it a common bug for Melody 7.2 and how to fix it?


#2

@sanaj

While the $'s are sent over the link it does exit data mode for you doesn’t it as per below (there is very little difference with regards 7.2 and the RC2 BA version)?

version
Sierra Wireless Copyright 2018
Melody Audio V7.2 RC2 BA
Build: 1533230344
        Bluetooth addresses: 20FABB075D0B 618DE65CCAA5
        Profiles: A2DP AVRCP HFP BLE SPP PBAP MAP TWS
        Codecs: SBC
OK
PAIR_PENDING
PAIR_OK 04C23E048A70
OPEN_OK 13 HFP 04C23E048A70
ROLE_OK 04C23E048A70 S
OPEN_OK 10 A2DP 04C23E048A70
ROLE_OK 04C23E048A70 S
OPEN_OK 11 AVRCP 04C23E048A70
AVRCP_PAUSE 11
OPEN_OK 15 SPP 04C23E048A70
enter_data_mode
ERROR 0x0013
ENTER_DATA_MODE 15
OK
ngghgfhngghgfhngghgfhrhsthrthsrhsrth$$$$OK
version
Sierra Wireless Copyright 2018
Melody Audio V7.2 RC2 BA
Build: 1533230344
        Bluetooth addresses: 20FABB075D0B 618DE65CCAA5
        Profiles: A2DP AVRCP HFP BLE SPP PBAP MAP TWS
        Codecs: SBC
OK

Regards

Matt


#3

No, it doesn’t exit. On the second device I see the whole sequence of symbols including $$$$


#4

@sanaj,

So the characters going over the link is normal, I would recommend leaving a time space (say 1 second) either side of the $$$$ going over the link to allow it to exit properly, if you do not then it will consider the $'s to be part of the data stream.

Regards

Matt


#5

Even if I send just line

$$$$

I see “$$$$” on the connected device and nothing happens. $'s are considered as data anyway…


#6

@sanaj,

Can you do a log file like I did but also stick in the commands at the beginning and the status command just before you enter data mode.

version
status
config

Regards

Matt


#7

—> BT:VERSION

[UART TX] VERSION

[UART] Sierra Wireless Copyright 2018

[UART] Melody Audio V7.2

[UART] Build: 1534785311

[UART] Bluetooth addresses: 20FABB000150 5ED2409735D4

[UART] Profiles: A2DP AVRCP HFP BLE SPP TWS

[UART] Codecs: SBC AAC

[UART] OK

—> BT:STATUS

[UART TX] STATUS

[UART] STATE CONNECTED[0] CONNECTABLE[ON] DISCOVERABLE[OFF] BLE[CONNECTED]

[UART] LINK 14 CONNECTED BLE 58576380EE23 40

[UART] OK

—> BT:CONFIG

[UART TX] CONFIG

[UART] AUDIO=1 1

[UART] AUDIO_ANALOG=0 0 0 OFF

[UART] AUDIO_DIGITAL=0 48000 64 100300 OFF

[UART] AUTOCONN=1

[UART] AUTO_DATA=OFF OFF

[UART] BALANCE=100 100

[UART] BATT_CONFIG=OFF 145 4250 1500 150

[UART] BC_SMART_CONFIG=68E3 28F0 89F7 D93C ON

[UART] BEACON_DATA=0 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF 04 D2 16 2E EE

[UART] BLE_CONFIG=0 OFF 40 ON

[UART] BLE_CONN_PARAMS=128 12 24 40 0 400 100 400 400 64 400 400

[UART] BT_STATE_CONFIG=0 0

[UART] BT_VOL_CONFIG=9 8 A 1

[UART] CLASS_1=OFF

[UART] CMD_TO=20

[UART] COD=240404

[UART] CODEC=1 OFF

[UART] DEEP_SLEEP=OFF

[UART] DEVICE_ID=0000 0000 0000 0000 0000 0000 0000 0000

[UART] ENABLE_BATT_IND=OFF

[UART] ENABLE_LED=OFF

[UART] ENABLE_SPP_SNIFF=OFF 0 0 0 0 0

[UART] GPIO_CONFIG=ON 0

[UART] HFP_CONFIG=OFF ON OFF OFF OFF OFF

[UART] HIGH_SPEED=OFF OFF

[UART] LOCAL_ADDR=20FABB000150 5ED2409735D4

[UART] MAX_REC=2

[UART] MM=OFF OFF 0 OFF OFF OFF OFF OFF

[UART] MUSIC_META_DATA=OFF

[UART] MUSIC_OLD_AVRCP=OFF

[UART] NAME=BC-000150

[UART] NAME_SHORT=BC000150

[UART] PIN=0000

[UART] PROFILES=2 0 2 0 2 1 1 0 0 0 0 0

[UART] REMOTE_ADDR=000000000000

[UART] SPP_UUID=00 00 11 01 00 00 10 00 80 00 00 80 5F 9B 34 FB

[UART] SSP_CAPS=3

[UART] TWS_CONFIG=OFF 1 2

[UART] UART_CONFIG=115200 OFF 0

[UART] USB_HOST=OFF

[UART] VREG_ROLE=1

[UART] OK

—> BT:ENTER_DATA_MODE 14

[UART TX] ENTER_DATA_MODE 14

[UART] OK

—> BT:Hello world

[UART TX] Hello world

—> BT:Bluetooth test is on

[UART TX] Bluetooth test is on

—> BT:$$$$

[UART TX] $$$$

—> BT:I want to quit

[UART TX] I want to quit

—> BT:I want to quit$$$$

[UART TX] I want to quit$$$$

—> BT:I want to quit $$$$

[UART TX] I want to quit $$$$

—> BT:I really$$$$want to exit

[UART TX] I really$$$$want to exit

Regards,
Alex