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
How to feed calypso wind measure from Signalk to Open CPN?
#1
Hello,

I am trying to feed the wind data from Calypso Ultrasonic ULP to Open CPN.

The current setup: Calypso is connected to MacArthur HAT's NMEA 2000. I used the CANBus app to connect the Calypso NMEA 2000 to SignalK. Then I am stuck at how to bring the SignalK message of the wind measure to OpenCPN to display the apparent wind speed and angle. At the moment, the app. wind and angle don't show anything.

Any idea how to proceed? Many thanks!
Reply
#2
Actual OpenCPN Versions are able to connect direct to the CAN Bus. Maybe you are able to use the PGN Numbers.
And for some Versions you could use the OpenCPN PlugIn TWOCAN to configure the PGN Data.

Good Luck and tell us your Results.

Holger
Reply
#3
You can connect OpenCpn to Signal K with
1. Signalk K connection
2. Convert SK data to NMEA0183 with signalk-to-nmea0183 plugin and connect O to tcp port 10110 of SK server
Reply
#4
(2023-11-21, 02:13 AM)holgerw Wrote: Actual OpenCPN Versions are able to connect direct to the CAN Bus. Maybe you are able to use the PGN Numbers.
And for some Versions you could use the OpenCPN PlugIn TWOCAN to configure the PGN Data.

Good Luck and tell us your Results.

Holger

Thanks for the hint. It seems that there is no NMEA2000 data from Calypso going into SignalK, even though the NMEA2000 lights on MacArthur HAT are present. 

Do you know actually how to feed Calypso sensor data to SignalK? And how to verify SignalK is receiving the NMEA2000 data? Many thanks!
Reply
#5
(2023-11-21, 08:29 AM)Thanks for the hint. It seems that there is no NMEA2000 data from Calypso going into SignalK, even though the NMEA2000 lights on MacArthur HAT are present. Wrote: Do you know actually how to feed Calypso sensor data to SignalK? And how to verify SignalK is receiving the NMEA2000 data? Many thanks!


Try to sample your N2K data with this terminal string: "candump can0 | candump2analyzer | analyzer"
or only "candump can0" and post it here.


PS: 3. Direct connection for socketCAN:
   
Reply
#6
(2023-11-21, 10:37 AM)holgerw Wrote:
(2023-11-21, 08:29 AM)Thanks for the hint. It seems that there is no NMEA2000 data from Calypso going into SignalK, even though the NMEA2000 lights on MacArthur HAT are present. Wrote: Do you know actually how to feed Calypso sensor data to SignalK? And how to verify SignalK is receiving the NMEA2000 data? Many thanks!


Try to sample your N2K data with this terminal string: "candump can0 | candump2analyzer | analyzer"
or only "candump can0" and post it here.


PS: 3. Direct connection for socketCAN:

pi@openplotter:~ $ candump can0
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF
  can0  09FD0200  [8]  FF 00 00 00 00 FA FF FF

pi@openplotter:~ candump can0 | candump2analyzer | analyzerer
INFO 2023-11-21T17:34:58.960Z [analyzer] N2K packet analyzer
CANboat version v2.0.0

© 2009-2021, Kees Verruijt, Harlingen, The Netherlands.
For more information see https://github.com/canboat/canboat

This file is part of CANboat.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

INFO 2023-11-21T17:34:59.019Z [analyzer] Assuming normal format with one line per packet
INFO 2023-11-21T17:34:59.019Z [analyzer] New PGN 130306 for device 0 (heap 11183 bytes)
2023-11-21-17:34:59.019 2  0 255 130306 Wind Data:  SID = Unknown; Wind Speed = 0.00 m/s; Wind Angle = 0.0 deg; Reference = Apparent
2023-11-21-17:34:59.172 2  0 255 130306 Wind Data:  SID = Unknown; Wind Speed = 0.00 m/s; Wind Angle = 0.0 deg; Reference = Apparent
2023-11-21-17:34:59.300 2  0 255 130306 Wind Data:  SID = Unknown; Wind Speed = 0.00 m/s; Wind Angle = 0.0 deg; Reference = Apparent
2023-11-21-17:34:59.451 2  0 255 130306 Wind Data:  SID = Unknown; Wind Speed = 0.00 m/s; Wind Angle = 0.0 deg; Reference = Apparent
2023-11-21-17:34:59.554 2  0 255 130306 Wind Data:  SID = Unknown; Wind Speed = 0.00 m/s; Wind Angle = 0.0 deg; Reference = Apparent
2023-11-21-17:34:59.661 2  0 255 130306 Wind Data:  SID = Unknown; Wind Speed = 0.00 m/s; Wind Angle = 0.0 deg; Reference = Apparent
2023-11-21-17:34:59.809 2  0 255 130306 Wind Data:  SID = Unknown; Wind Speed = 0.00 m/s; Wind Angle = 0.0 deg; Reference = Apparent
2023-11-21-17:34:59.929 2  0 255 130306 Wind Data:  SID = Unknown; Wind Speed = 0.00 m/s; Wind Angle = 0.0 deg; Reference = Apparent
2023-11-21-17:35:00.066 2  0 255 130306 Wind Data:  SID = Unknown; Wind Speed = 0.00 m/s; Wind Angle = 0.0 deg; Reference = Apparent
2023-11-21-17:35:00.171 2  0 255 130306 Wind Data:  SID = Unknown; Wind Speed = 0.00 m/s; Wind Angle = 0.0 deg; Reference = Apparent
2023-11-21-17:35:00.319 2  0 255 130306 Wind Data:  SID = Unknown; Wind Speed = 0.00 m/s; Wind Angle = 0.0 deg; Reference = Apparent
2023-11-21-17:35:00.439 2  0 255 130306 Wind Data:  SID = Unknown; Wind Speed = 0.00 m/s; Wind Angle = 0.0 deg; Reference = Apparent
2023-11-21-17:35:00.572 2  0 255 130306 Wind Data:  SID = Unknown; Wind Speed = 0.00 m/s; Wind Angle = 0.0 deg; Reference = Apparent

I don't have the socketCAN option as you showed (my opencpn version is 5.6.2):
   

Thanks in advance for further hints.
Reply
#7
As i see in your Logs, the WIND Data Source is sending its id correctly to the CAN-Bus. The Wind Data is 0.0 but this may be okay if it is not outside.

So the problem is somewhere in SignalK (PGN 130306) look for it in the "Signal K to NMEA 2000", this could be disabled in its config.

Maybe the OpenCPN does only look for the older NMEA0183 Datastrings for Wind. 
If so, there is an Chance that the "Convert Signal K to NMEA0183" Plugin is able to translate your Data to the older NMEA0183 Dataformat.

But this Conversion is better an Question to TKURKI or someone from the SignalK Team.

PS: I used OpenCPN V5.8.4 on Openplotter 3 for the Screenshot. You get the CAN-Source only after hitting "Add Connection" and on older Versions there is an CAN option beyond "serial".

Good Winds - Holger


ADDITION:
Just looked into SignalK again: The Plugin "Signal K to NMEA 2000" has an Option at the far End to enable PGN 130306. But i think you need it the other Way around - N2K to SignalK.
Reply
#8
(2023-11-21, 07:48 AM)tkurki Wrote: You can connect OpenCpn to Signal K with
1. Signalk K connection
2. Convert SK data to NMEA0183 with signalk-to-nmea0183 plugin and connect O to tcp port 10110 of SK server

Hello tkurki,

Thanks for your hints. 
Can you clarify "connect O to tcp port 10110 of SK server"? Do I add such a connection under 'Options - Connections' in OpenCPN? Or do I add such a connection under "Data Connections" on SingalK server?

(2023-11-22, 03:10 PM)holgerw Wrote: As i see in your Logs, the WIND Data Source is sending its id correctly to the CAN-Bus. The Wind Data is 0.0 but this may be okay if it is not outside.

So the problem is somewhere in SignalK (PGN 130306) look for it in the "Signal K to NMEA 2000", this could be disabled in its config.

Maybe the OpenCPN does only look for the older NMEA0183 Datastrings for Wind. 
If so, there is an Chance that the "Convert Signal K to NMEA0183" Plugin is able to translate your Data to the older NMEA0183 Dataformat.

But this Conversion is better an Question to TKURKI or someone from the SignalK Team.

PS: I used OpenCPN V5.8.4 on Openplotter 3 for the Screenshot. You get the CAN-Source only after hitting "Add Connection" and on older Versions there is an CAN option beyond "serial".

Good Winds - Holger


ADDITION:
Just looked into SignalK again: The Plugin "Signal K to NMEA 2000" has an Option at the far End to enable PGN 130306. But i think you need it the other Way around - N2K to SignalK.

Thanks for the detailed information, Holger! 

Following your description, I updated OpenCPN to 5.8.4. Now I can choose socketCAN - can0. But when clicking "show NMEA debug window", I still don't see any data coming in. I also tried TKURI's advice to install the NMEA0183 plugin. But I don't know how to further connect OpenCPN to SignalK to get the NMEA0183 messages (I thought it would pick the messages up automatically).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)