Hi,
actually using 2 rpi 4B on board.
one for pypilot (thepilot), one for all the rest with BBN installed (thebrain).
I get data from thebrain to thepilot thru signalk webservices: the GPS , the seatalkNG (NMEA2K) with wind force and direction.
I plan to replace the pypilot (rpi 4 with pypilot hat) by a tynipilot complete set
tinypilot computer (pypilot.org)
can you tell me if signalk is installed or can be installed on tinypilot ?
thanx and regards
Tinypilot runs pypilot, and pypilot has a signalk client, so the answer is yes. Some (possibly partly outdated) background you can find here
https://github.com/pypilot/workbook/wiki...onnections. On my own boat, I use nmea sentences to the 20220 socket instead, which is robust; I've tried to go all-signalk but ran into various problems, among which the unability to follow a route with the autopilot_route plugin. General feeling at the time was that altough the native signalk client is present in pypilot, it did not seem to be used by many pypilot owners, and consequently has not been tested enough (see issues #74, #143 and #144). That might have changed ever since, but I have not incentive to retry it.
pypilot can communicate with signalk server but does not run its own signalk server. So you would still have the rpi4 with signalk reading the sensors, or have to convert them in some way.
As for route following, opencpn does not output route following messages via signalk. As I understand opencpn only reads from signalk. So although pypilot does read the signalk key "steering.autopilot.target.headingTrue" and can use it to follow routes, without any programs producing this data, there is no real testing done or verification of this.
(2024-08-21, 10:24 PM)seandepagnier Wrote: [ -> ]pypilot can communicate with signalk server but does not run its own signalk server. So you would still have the rpi4 with signalk reading the sensors, or have to convert them in some way.
As for route following, opencpn does not output route following messages via signalk. As I understand opencpn only reads from signalk. So although pypilot does read the signalk key "steering.autopilot.target.headingTrue" and can use it to follow routes, without any programs producing this data, there is no real testing done or verification of this.
OpenCPN when route is activated on it listens on port 30330 and sends NMEA 0183 routing
TCP messages there.
So if SignalK has client NMEA TCP 0183 connection to port 30330 it will receive them and forward to
Pypilot which can be connected to 10110 port NMEA 0183 of SignalK.
That’s default set up on BBN OS.
honestly it is all a bit confusing because in this case, opencpn is sending to signalk server which sends to pypilot but the signalk server is just using nmea...
You could just directly connect pypilot to opencpn. Many configurations are possible, but maybe at some point we should think about what makes sense by default.
Ideally, opencpn could either directly send to pypilot (as is possible now via nmea0183) or opencpn would emit actual signalk route following messages which pypilot would read. Having signalk server relay nmea0183 is a bit counter intuitive. Alternately maybe if opencpn sends nmea0183 to signalk-server it could convert this into actual signalk which pypilot could read, but as I understand this is not working for APB messages?
(2024-08-21, 11:22 PM)seandepagnier Wrote: [ -> ]honestly it is all a bit confusing because in this case, opencpn is sending to signalk server which sends to pypilot but the signalk server is just using nmea...
You could just directly connect pypilot to opencpn. Many configurations are possible, but maybe at some point we should think about what makes sense by default.
Ideally, opencpn could either directly send to pypilot (as is possible now via nmea0183) or opencpn would emit actual signalk route following messages which pypilot would read. Having signalk server relay nmea0183 is a bit counter intuitive. Alternately maybe if opencpn sends nmea0183 to signalk-server it could convert this into actual signalk which pypilot could read, but as I understand this is not working for APB messages?
30330 is server port of OpenCPN, it’s only listening when route is activated. And I think it only accepts a single connection. So it makes sense to connect SignalK to it and it distributes data from connections to different servers and accumulates into single NMEA port 10110 stream.
As I understand pypilot only supports single tcp NMEA 0183 connection as a client.
So it makes sense to connect pypilot to SignalK with it.
There could be other set ups possibly. (With UDP)
Share your working set ups which make pypilot to follow OpenCPN route.
Thanks
thanks all.
first, it confirmed that i will by a tinypilot, @Sean I should the command before end of week.
I forgot to mention that for now the pypilot is using openplotter. I do not filter the data from the "brain" signalK, not optimised.
then, I do not use much opencpn so far because I did not find precise maps for my area. And in New Caledonia, sailing in the lagoon you MUST have a good map. But still I would like try auto routing at some point.
my need with the pilot is
- stay face to wind , when using motor, to put the main sail
- tack . especially when sailing alone
- stay on route, using compass
- stay on route, using angle with apparent wind.
once I have received the new pypilot, I may have some questions according to your avises above.
best regards
Gildas
(2024-08-21, 11:43 PM)mgrouch Wrote: [ -> ]As I understand pypilot only supports single tcp NMEA 0183 connection as a client.
So it makes sense to connect pypilot to SignalK with it.
There could be other set ups possibly. (With UDP)
Share your working set ups which make pypilot to follow OpenCPN route.
Thanks
To be clear, pypilot listens on port 20220 for nmea tcp, and can support many clients.
There is also an option for nmea client, where pypilot is a client to another server, and for this you provide the hostname and port. This can be configured from the web interface or editing the config file.
(2024-08-22, 07:04 AM)gildas declercq Wrote: [ -> ]thanks all.
first, it confirmed that i will by a tinypilot, @Sean I should the command before end of week.
I forgot to mention that for now the pypilot is using openplotter. I do not filter the data from the "brain" signalK, not optimised.
then, I do not use much opencpn so far because I did not find precise maps for my area. And in New Caledonia, sailing in the lagoon you MUST have a good map. But still I would like try auto routing at some point.
What map are you using? I am fairly sure any chart can be used in opencpn. It can be imported.
I think one chart you might have is satellite imagery, but there are others.
yes I know I can import map but did not try yet and did not find anyone who did and share it for this region.
navionics does the job for reasonable price , I would like to have it to be able to get whatever data from NMEA. that would be great.