This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pypilot GPS and Windvane
#7
(2018-06-22, 11:05 AM)quetzal Wrote: I've digged a little more into the problem.

If i connect gps + wind directly to pypilot (attribution in "serial" tab of openplotter), Pypilot forward nmea gps to 20220 but not wind. But in pypilot client, gps source is set to none (and wind too), and i was unable to activate gps.
Try running gpsd and connect the gps to that. pypilot should automatically detect gpsd
Quote:If I connect only gps on serial, it's not forwarded.
It sounds like an issue with the serial port setup. What is in the file "~/.pypilot/serial_ports" ?

You should try pulling the latest git of pypilot. I just rewrote the serial detection, it should work better now.

Quote:If I try to forward nmea (output) on kplex on port 20220, pypilot doesn't seem to receive data (even if wind has added checksum).

If I forward from node-red wind packet adding checksum to pypilot (on 20220), it work, i've the wind data on pypilot and I can use it !
So i do a node-red configuration outputing both on pypilot and on kplex (so I can debug easily).
I add gps on node-red.

I know opencpn can forward both gps and wind just fine. You need $GPRMC sentence for gps. If node-red can do it, but kplex cannot, then there is probably something wrong with kplex, or it isn't connecting.
Quote:Finally, i get this configuration:


[Image: node_red.png]


I listen on 40440 for kplex output and I connect to 127.0.0.1 20220 for pypilot output.

On kplex, i see that i've all my data (gps + wind).

On pypilot, wind.source is tcp, but gps.source still to none.

Since it's an usb gps mouse, and i've a lowrance elite 5 ti, i will try with the lowrance as source to see if it's the same.
I would ensure you have $GPRMC with proper checksum going in. Try using opencpn (output to 20220), and/or gpsd. This is what I use. I don't use kplex, but it should work and I intend for it to work.
Quote:Moreover, i don't know if it's important or not, but i've found somewhere in your code a typo (not sure but i think), MVW insead of MWV:

[Image: mvw.png]
an old typo, this file isn't used, so it doesn't make a difference


I will be away from internet for 2-3 weeks, so I won't be able to answer much until after
Reply


Messages In This Thread
Pypilot GPS and Windvane - by quetzal - 2018-06-21, 01:46 PM
RE: Pypilot GPS and Windvane - by Sailoog - 2018-06-21, 05:40 PM
RE: Pypilot GPS and Windvane - by quetzal - 2018-06-21, 05:44 PM
RE: Pypilot GPS and Windvane - by Sailoog - 2018-06-21, 05:48 PM
RE: Pypilot GPS and Windvane - by seandepagnier - 2018-06-21, 10:21 PM
RE: Pypilot GPS and Windvane - by quetzal - 2018-06-22, 11:05 AM
RE: Pypilot GPS and Windvane - by seandepagnier - 2018-06-22, 01:59 PM
RE: Pypilot GPS and Windvane - by quetzal - 2018-06-22, 03:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)