2021-04-01 04:45 AM
Everything works until I get the JSON from location.io via curl.
By using the first 22 bytes of the seed, eg AAQAJsX0iCbF9IgAAAAAJs, I always get the string $PSTMSTAGPSSEEDBEGINERROR*10 after sending each one of the following strings:
$PSTMSTAGPSSEEDBEGIN,1,18,,,,,,,,,,414151414A7358306943624639496741414141414A73*72
$PSTMSTAGPSSEEDBEGIN,1,18,,,,,,,,,,414151414A7358306943624639496741414141414A03*75
$PSTMSTAGPSSEEDBEGIN,1,18,,,,,,,,,,14141514A4378503963426649394761414141414A430*75
The first is a direct seed 22 byte to hex conversion. The second has the last 5 bits set to 0. The last has the hex chars flipped on each byte.
The other parameters are the 1 (gps), 18 as set in ee.body.leap.currSecs and everything else unset due to ee.body.leap.nextGpsTime is zero (AN5160, 5.3.1.1) and no other parameters were set on JSON.
Thanks.