-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pps.py example seems to send incorrect commands #14
Comments
Ok, found
Which what I think pps.py was meant to be modifying, but was sending PMTK255, rather than PMTK285 - a typo? .. I can confirm that PMTK285 works (using cmd.py*) on the Pimoroni Breakout. At least being able to turn PPS on/off, and vary the pulsewidth, a short pulsewidth is nice to get a much less bright flash. Tried setting to mode 2, and and left it in a metal box, the PPS output stops.
Not made a pull request yet, might have further improvements, but a start.. |
A pull-request would be very welcome. Thank you. I wonder if it's worth adding some of these more common commands into the API so we can just call |
ok, will do when get a chance. This is just a fun side project. For reference, did find PMTK255 mentioned for setting on PPS on a different GPS Chipset (MT3337(e) rather than MT3333), so that's possible how the mistake got there. Nots sure if the breakout used to use a different chipset. There is of course of bunch of other commands that can be setting, eg setting position interval, or setting the power management 'mode' all that could have dedicated wrapper commands. Somewhere I have compiled a reference of all the available commands, needed to be compiled from various different datasheets. Particularly interesting would to hook up the AlwaysLocate(TM) mode, with functions for extracting the recorded tracklog. (records tracks into internal Flash, without intervention from the MCU) |
It seems that the pps.py example, sends "PMTK255,1" for on.
But this seems to be to send the device into periodic backup mode
Quote from:
https://cdn.shopify.com/s/files/1/0174/1800/files/CD_PA1010D_Datasheet_v.03.pdf?v=1602073146
And sends "PMTK255,0" for off
But
$PMTK225,0*2B (the module will wakes up from its previous sleep cycle).
... this seems to match what I see on my PA1010D GPS Breakout
by Pimoroni
It kinda does shut off the PPS LED, as the Standby mode means the LED is off. And sending 'off' then wakes it back up, so the LED starts again.
Found a dataset for the MT3339 Chipset (used by PA1010D), which has a much fuller definition for the commands. Hopefully will try to compile a better cmd file. Thought would note it here, that the current file seems incorrect.
The text was updated successfully, but these errors were encountered: