Hi,
I’ve been working with the BC127 for a few months now and for the life of me can’t figure out how to ask the BC127 module to exit data mode. I have an SPP connection established and want to make sure I can regain control over the module and change parameters/get data using command mode. The scenario I’m trying to account for is if a user renames the BC127 module from the mobile app I’m working on.
- Some command is sent to the microcontroller (a Teensy 3.6 in my case), ex:
changeName:<name-here>
using the BC127 module’s data mode. - the microcontroller sends the exit-data-mode sequence
$$$$
to the BC127 module - the microcontroller waits for the
OK
response - when received, changes the BC127 device name
- and finally asks the BC127 to re-enter data mode with the previous spp connection once the name is changed
Does this command flow sound ok?
My command currently looks like delay(500); _serialPort->print("$$$$"); delay(500);
, and my CMD_TO value is at it’s default value of 20.
I’ve tried all sort of carriage return/newline combinations and flushing the serial port before and after. I’ve also tried disabling GPIO control and driving GPIO_5 LOW to exit data mode, which also didn’t work? All I should have to do is drive GPIO_5 LOW to exit, right? After disabling GPIO control of course. Is there something I’m missing there? Ideally I’d be able to exit data mode with this pin.
I’m currently rocking Melody Audio v6.1.5 HD w/ build # 1496941831.
Any help would be appreciated!!
Best,
Drew