Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 23-09-2022, 09:33   #16
Registered User

Join Date: Mar 2011
Posts: 651
Re: OpenCPN Version 5.7 Alpha Test

Hi Hakan,

To the best of my knowledge most speed sensors transmit PGN 128259 whereas I think PGN130577 is synthesised/generated by chart plotters as it includes COG, SOG, Heading and also calculates Set & Drift. PossIbly more akin to VMG calculations?

I haven't heard any TwoCan users mentioning that their speed sendors emit anything but PGN 128259.

Are you going to help with the DSC parsing?

Regards.
stevead is offline   Reply With Quote
Old 23-09-2022, 12:50   #17
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,150
Re: OpenCPN Version 5.7 Alpha Test

Steven..
Sounds fair with MFD. So we better change to 128259 speed through water.


DSC: Would that be a part of N2K handling?
Hakan is offline   Reply With Quote
Old 23-09-2022, 13:00   #18
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,150
Re: OpenCPN Version 5.7 Alpha Test

Does anyone happens to have a candump -L for a moving ship including speed trough water and if possible distance log data?
Thanks
Håkan
Hakan is offline   Reply With Quote
Old 23-09-2022, 15:05   #19
Registered User

Join Date: Jan 2010
Location: Harlingen, NL
Boat: KMY Stadtship 56
Posts: 516
Re: OpenCPN Version 5.7 Alpha Test

Quote:
Originally Posted by Hakan View Post
Does anyone happens to have a candump -L for a moving ship including speed trough water and if possible distance log data?
Thanks
Håkan
Is this what you are looking for?

https://github.com/canboat/canboat/b...umpSample3.txt
merrimac is offline   Reply With Quote
Old 23-09-2022, 15:37   #20
Registered User

Join Date: Mar 2016
Location: San Francisco
Boat: Morgan 382
Posts: 2,936
Re: OpenCPN Version 5.7 Alpha Test

Quote:
Originally Posted by bdbcat View Post
wholybee..
As far as we can tell, there are no "standard" definitions for this function. There are some proprietary product out there, with various functions.


Someday, there will be NMEA OneNET, which seems to be something like N2K over ipv6 network. We do not plan to implement this in O58


But maybe we are missing something. Do you have any more info? Any particular hardware solution interests you?



Thanks
Dave
I currently use a Yacht Devices YDWG-02 which supports n2k and also will convert to NMEA0183. I experimented with its n2k output with SignalK, but didn't like the SignalK solution.

Antisense also supports n2k. And both also support a "RAW" mode. They might both be proprietary formats, but both are supported by SignalK, and canboatjs.

Of course, there might not be anything proprietary at all. It might be the same serial stream just sent via IP socket instead of a com port. If that is easy to "hook up" I would be happy to test it for you. Or, I could mail someone my YDWG-02 for a couple weeks to test with.

I am certainly not going to go backwards and connect a wire again. For now 0183 works fine, but I would like to look forward to more functionally in the (not immediate) future.
__________________
-Warren
wholybee is offline   Reply With Quote
Old 23-09-2022, 16:37   #21
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: OpenCPN Version 5.7 Alpha Test

Wholybee...
Not clear from the documentation what is the format of the data on the wire, exactly.
Anyone else using or contemplating the YDWG-02 device?


Thanks
Dave
bdbcat is offline   Reply With Quote
Old 24-09-2022, 00:25   #22
Registered User

Join Date: Jan 2010
Location: Harlingen, NL
Boat: KMY Stadtship 56
Posts: 516
Re: OpenCPN Version 5.7 Alpha Test

Quote:
Originally Posted by bdbcat View Post
Wholybee...
Not clear from the documentation what is the format of the data on the wire, exactly.
Anyone else using or contemplating the YDWG-02 device?


Thanks
Dave
I tried it for a while but it was unreliable for me, dropping the TCP/UDP connection to such a point that it did not come back up. I had to power cycle the device to get it back up. So out with the YDWG-02 and back to something with a wire (which is OK in my use). I switched to an iKonvert which is easier on the open source programmer as DY have an open API description on GitHub.

The canboat samples directory contains many different format examples, there is a sample-YDWG02.txt file there which is what you get when you connect to the N2K stream. It is pretty simple:

21:55:37.922 R 0DF50B23 FF FF FF FF FF 00 00 FF
21:55:37.932 R 09F50323 FF 00 00 FF FF 00 FF FF
21:55:37.934 R 19F51323 60 0E FF FF FF FF FF FF
21:55:37.936 R 15FD0723 FF C0 D9 6F FF 7F FF FF
21:55:37.937 R 19F51323 61 F6 94 07 00 F6 94 07
21:55:37.940 R 19F51323 62 00 FF FF FF FF FF FF
21:55:38.439 R 15FD0723 FF C0 D9 6F FF 7F FF FF
21:55:38.927 R 0DF50B23 FF FF FF FF FF 00 00 FF
21:55:38.937 R 09F50323 FF 00 00 FF FF 00 FF FF
21:55:38.939 R 19F51323 80 0E FF FF FF FF FF FF
21:55:38.941 R 15FD0723 FF C0 D9 6F FF 7F FF FF
21:55:38.942 R 19F51323 81 F6 94 07 00 F6 94 07
21:55:38.945 R 19F51323 82 00 FF FF FF FF FF FF

CANboat analyzer knows how to parse this, so feel free to learn from there.
merrimac is offline   Reply With Quote
Old 24-09-2022, 07:49   #23
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,150
Re: OpenCPN Version 5.7 Alpha Test

Quote:
Originally Posted by merrimac View Post
Yes both STW and logs are there.

Thanks
Håkan
Hakan is offline   Reply With Quote
Old 24-09-2022, 14:27   #24
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,106
Re: OpenCPN Version 5.7 Alpha Test

Did the first test with the small and cheap Canable board at 250000.

Use the inialisation string to get canO. System is an AM64 Linux Mint.

I can report it works here at home with my NMEA2K Garmin GPS.

Tomorow will test the NGT-1.


Bram
Attached Thumbnails
Click image for larger version

Name:	Schermafdruk van 2022-09-24 23-06-35.jpg
Views:	43
Size:	423.8 KB
ID:	264902  
verkerkbr is offline   Reply With Quote
Old 24-09-2022, 14:51   #25
Registered User

Join Date: Mar 2016
Location: San Francisco
Boat: Morgan 382
Posts: 2,936
Re: OpenCPN Version 5.7 Alpha Test

Quote:
Originally Posted by merrimac View Post
I tried it for a while but it was unreliable for me, dropping the TCP/UDP connection to such a point that it did not come back up. I had to power cycle the device to get it back up. So out with the YDWG-02 and back to something with a wire (which is OK in my use). I switched to an iKonvert which is easier on the open source programmer as DY have an open API description on GitHub.

The canboat samples directory contains many different format examples, there is a sample-YDWG02.txt file there which is what you get when you connect to the N2K stream. It is pretty simple:

21:55:37.922 R 0DF50B23 FF FF FF FF FF 00 00 FF
21:55:37.932 R 09F50323 FF 00 00 FF FF 00 FF FF
21:55:37.934 R 19F51323 60 0E FF FF FF FF FF FF
21:55:37.936 R 15FD0723 FF C0 D9 6F FF 7F FF FF
21:55:37.937 R 19F51323 61 F6 94 07 00 F6 94 07
21:55:37.940 R 19F51323 62 00 FF FF FF FF FF FF
21:55:38.439 R 15FD0723 FF C0 D9 6F FF 7F FF FF
21:55:38.927 R 0DF50B23 FF FF FF FF FF 00 00 FF
21:55:38.937 R 09F50323 FF 00 00 FF FF 00 FF FF
21:55:38.939 R 19F51323 80 0E FF FF FF FF FF FF
21:55:38.941 R 15FD0723 FF C0 D9 6F FF 7F FF FF
21:55:38.942 R 19F51323 81 F6 94 07 00 F6 94 07
21:55:38.945 R 19F51323 82 00 FF FF FF FF FF FF

CANboat analyzer knows how to parse this, so feel free to learn from there.
I expect (without looking) that the above capture is very close to what would be read directly from the CANBUS. Perhaps just with a timestamp and some whitespace added.

My wire is still there as a backup. Interesting that you have that problem with it needing an occasional power cycle. I actually had that issue also, but with some fiddling managed to get it stable. But I still can't deal with a wire. To me that's a reason to switch to an antisense, not a wire. All of the USB ports on my laptop quickly rusted, as did the plug on my converter. So I bought the YDWG to fix that problem. Plus the wire doesn't let me connect from the cockpit, or anywhere other than the desk.
__________________
-Warren
wholybee is offline   Reply With Quote
Old 25-09-2022, 01:40   #26
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,106
Re: OpenCPN Version 5.7 Alpha Test

Quote:
Originally Posted by verkerkbr View Post
Did the first test with the small and cheap Canable board at 250000.

Use the inialisation string to get canO. System is an AM64 Linux Mint.

I can report it works here at home with my NMEA2K Garmin GPS.

Tomorow will test the NGT-1.


Bram

The NGT-1 on 115 and the on at 250 do not yet work. Perhaps is a configuration needed.


Tte Canable (lighthouse firmware) also need a configuration string to get can0.
verkerkbr is offline   Reply With Quote
Old 25-09-2022, 07:26   #27
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,106
Re: OpenCPN Version 5.7 Alpha Test

Quote:
Originally Posted by verkerkbr View Post
The NGT-1 on 115 and the on at 250 do not yet work. Perhaps is a configuration needed.

Tte Canable (lighthouse firmware) also need a configuration string to get can0.
I was looking for CanX input. But the NGT-1 uses serial input.

After setting the right parameters, now the Actisense NGT-1 also works with direct input in version 5.7.1.

However the Canable uses can0 as input.

Bram
verkerkbr is offline   Reply With Quote
Old 25-09-2022, 08:25   #28
Registered User

Join Date: Mar 2011
Posts: 651
Re: OpenCPN Version 5.7 Alpha Test

Quote:
However the Canable uses can0 as input.
With the Candlelight firmware, the Canable should appear as a native interface can0.
If the Canable has not been flashed with the Candlelight firmware, it should appear as a Serial Line CAN interface slcan0

Depending on the platform, as long as udev rules, etc/network/interfaces or /etc/systemd/system have been configured correctly, there should be no need for additional commands to bring up the interface.

But I digress.
Dave, Alec,you may want to double check with Timo and your N2K libraries, in particular the N2KIsNA functions.
To the best of my knowledge if a value is set to:
max value, it means data not available
max value -1, it means error (or out of range ?)
max value -2, it is NMEA reserved

That means for something like PGN 129025, Position Rapid Update, where latitude & longitude are transmitted as a signed integer, invalid values are INT_MAX, INT_MAX-1, INT_MAX-2.

The following screenshots illustrate the problem.
Attached Thumbnails
Click image for larger version

Name:	error-max.png
Views:	32
Size:	50.2 KB
ID:	264927   Click image for larger version

Name:	error-range.png
Views:	32
Size:	67.9 KB
ID:	264928  

stevead is offline   Reply With Quote
Old 25-09-2022, 18:16   #29
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: OpenCPN Version 5.7 Alpha Test

Steve...
In the "error-max" image, I assume you are referring to the Hdg value of 374 degrees (true). Bogus, for sure.
In certain cases, OCPN calculates HDT from HDM and MagVariation. This could be happening here, with some logic error. Or it could be a legitimate N2K error-max detection problem.

Can you produce a candump -L record of this situation for analysis?


Thanks
Dave
bdbcat is offline   Reply With Quote
Old 25-09-2022, 20:34   #30
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,402
Re: OpenCPN Version 5.7 Alpha Test

Note to interested devs and source builders:
OpenCPN github branch "comm" has been merged to branch "master". All local building should migrate to "master" now, as will the ongoing dev activities.


Thanks
Dave
bdbcat is offline   Reply With Quote
Reply

Tags
enc, opencpn


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN for Android Alpha test 4.1.409 bdbcat OpenCPN 117 12-10-2015 01:28
OpenCPN for Android Alpha test 4.1.427 bdbcat OpenCPN 139 29-05-2015 14:27
OpenCPN for Android Alpha test 4.1.412 bdbcat OpenCPN 120 15-05-2015 12:12
S63_PI Alpha Test 0.3.0 bdbcat OpenCPN 25 07-04-2014 10:00
S63_PI Alpha Test 0.2.0 bdbcat OpenCPN 29 05-02-2014 10:26

Advertise Here


All times are GMT -7. The time now is 23:31.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.