-
Its the firmware thats causing the responses to be chucked away !
That's why I was suggesting switching GPS output to Serial2 as a quick workaround to test CASIC commands.
something like this should work once gps is enabled
Serial1.setup(9600,{tx:D31}); Serial2.setup(9600,{rx:D30});
then the data will arrive to Serial2 instead where you can handle it yourself
-
@fanoush. Great! This redirection to Serial2 works!
I am going to try some CASIC now.
Yes! After CASIC call GPS spits out some binary output. Most likely NACK.D29.write(1); // turn GPS on // pause Serial2.write(0xBA,0xCE,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00); //short pause D29.write(0); =undefined ser: ºÎ
Got it ! Bingo - thats the bug. The firmware assumes the Bangle 2 GPS talks UBLOX and throws the responses away if not. There should be a more generic way of doing this in the future.
Thats why we get no apparent response when we send CASIC commands.
We need @Gordon to do a firmware update.
If you agree I will log an issue and reference this thread.
Its the firmware thats causing the responses to be chucked away !