OlivierLD / node.pi

Node sample scripts for NodeJS on the RaspberryPI (aka PI.js)
MIT License
3 stars 1 forks source link

Error messages in parser #1

Open 1Map opened 7 years ago

1Map commented 7 years ago

Hi,

When I run your demo in demo.gps.js, I get a lot of:

Error: { err: 'No parser found for unknown sentence $GNGBS,120900.00,7.3,4.1,15.5,,,,65]' } Error: { err: 'No parser found for unknown sentence [$PORZD,A,008.531]' }

Please note that I am using a GNSS module (NV08C-CSM)

See the Proprietry Messages under:

http://nvs-gnss.com/support/documentation/item/download/51.html

OlivierLD commented 7 years ago

Look in NMEAParser.js, function autoparse, line 851. String GBS and RZD do not have a parser, this is what the message means. You can write your own parsers, and register them in the matcher. Or you can also ignore the message, if you do not need those strings to be parsed.

OlivierLD commented 7 years ago

I just added dummy parsers. If you refresh your branch, you should not see the errors mentioned above anymore (the sentences are not parsed though).

1Map commented 7 years ago

@OlivierLD Thanks, now working 100%. Just getting this message the moment I start the demo.gps.js service:

Port open Argh! { desc: 'Invalid key length', nmea: '$\u0000GPGGA,230659.00,3352.6283,S,01840.6001,E,1,08,01.0,091.1,M,32.6,M,,*4F' }

OlivierLD commented 7 years ago

Hi @1Map , the message happens because the feed is not initialized yet. I would say you can ignore it. Let me know if you need any further help.