pynmea2 icon indicating copy to clipboard operation
pynmea2 copied to clipboard

Unknown sentence type GPPWR

Open stuporglue opened this issue 8 years ago • 3 comments

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

stuporglue avatar Nov 04 '16 17:11 stuporglue

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

jmwooten avatar Nov 04 '16 17:11 jmwooten

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.

stuporglue avatar Nov 04 '16 18:11 stuporglue

Yet, another proprietary extension $PPWR:

$PPWR,vv.vv,i,tt*hh<CR><LF> 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

kamiccolo avatar Oct 11 '17 13:10 kamiccolo