Skip to content
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

Unknown sentence type GPPWR #56

Open
stuporglue opened this issue Nov 4, 2016 · 3 comments
Open

Unknown sentence type GPPWR #56

stuporglue opened this issue Nov 4, 2016 · 3 comments

Comments

@stuporglue
Copy link

I'm using a Dual XGPS160 and getting the following issue

Traceback (most recent call last):
  File "./test.py", line 14, in <module>
    msg = pynmea2.parse( data )
  File "/Library/Python/2.7/site-packages/pynmea2/nmea.py", line 130, in parse
    raise SentenceTypeError('Unknown sentence type %s' % sentence_type)
pynmea2.nmea.SentenceTypeError: Unknown sentence type GPPWR,

The sentence is:

$GPPWR,0922,1,0,0,0,00,0,S,97, 1 5 ,000*1F

Thanks,
Michael

@jmwooten
Copy link
Contributor

jmwooten commented Nov 4, 2016

The 'PWR' sentence type is new to me. Do you have any field information?

@stuporglue
Copy link
Author

Sorry,

I'm new to parsing NMEA and am still getting up to speed.

It looks like PWR is a proprietary addition to the XGPS160 (and other models from Dual? Other brands? No idea.).

Their docs say:

The PPWR sentence contains device specific information and looks like this:
$GPPWR,0876,0,0,0,0,00,F,0,97,1,3,000,00190108EEEE,0017E9B92122*74
• Element #1, 0876, is the battery voltage. Battery voltage is not valid while the device is charging.
• Element #5 is the charging status: 1 = charging, 0 = not charging.

That comes from the SDK documentation which isn't on their site, we had to request it.

@kamiccolo
Copy link
Contributor

Yet, another proprietary extension $PPWR:

$PPWR,vv.vv,i,tt*hh
vv.vv is the modem supply voltage in volts.
i is the ignition status: 0 = off; 1 = on.
tt is the modem’s internal temperature in degrees Celsius.
hh is the message checksum

Example:
$PPWR,14.12,1,43*37

http://www.cypress.bc.ca/documents/Report_Messages/CTM200/msg_116_PPWR.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants