You are reading a single comment by @HughB and its replies.
Click here to read the full conversation.
-
Why does nobody just take me at my word? :)
Line 74-85 - downloads the AGPS data (hosted on Espruino server and pre-encoded)
Line 157-160 - adds JS to the watch upload which writes the AGPS data to the chipsetIf you're expecting to see code which interprets/builds binary CASIC commands, there isn't any - the download is already formatted for being written directly to the GPS serial port.
At the moment thats correct for Bangle 1 only.
https://github.com/hughbarney/BangleApps/blob/master/apps/assistedgps/custom.html
Lines 137-141 handle Bangle 1 and send UBLOX AGPS data.
Lines 142-155 handle Bangle 2 and only send a CAS04 NMEA command to select the type of GPS service. The code is incorrectly saying CASIC when these commands are NMEA protocol.
The CASIC checksum is a lot more complex than the code at 122-129 which is only doing a simple XOR checksum for NMEA commands.
The comments in lines 151-154, show that the author knows that to send AGPS to the Bangle 2 GPS chip you need to use the CASIC AID-INI (0x0B 0x01) message and this is not implemented yet.