Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PGNs 128776,128777, 128778 (Windlass) #282

Open
JohnStov opened this issue Dec 30, 2024 · 6 comments
Open

PGNs 128776,128777, 128778 (Windlass) #282

JohnStov opened this issue Dec 30, 2024 · 6 comments

Comments

@JohnStov
Copy link

Add support for windlass PGNs

{"prio":2,"pgn":128776,"dst":255,"src":36,"timestamp":"2011-11-24-22:42:04.440","fields":{"SID":170,"Windlass ID":0,"Windlass Direction Control":0,"Speed Control":0,"Speed Control Type":0,"Anchor Docking Control":0,"Power Enable":0,"Mechanical Lock":0,"Deck and Anchor Wash":0,"Anchor Light":0,"Command Timeout":"00:00:00.85000","Windlass Control Events":[]}}

{"prio":2,"pgn":128777,"dst":255,"src":36,"timestamp":"2011-11-24-22:42:04.440","fields":{"SID":170,"Windlass ID":0,"Windlass Motion Status":0,"Rode Type Status":0,"Rode Counter Value":15.3,"Windlass Line Speed":0,"Anchor Docking Status":0,"Windlass Operating Events":[]}}

{"prio":2,"pgn":128778,"dst":255,"src":36,"timestamp":"2011-11-24-22:42:04.440","fields":{"SID":170,"Windlass ID":0,"Total Motor Time":"00:03:00","Controller voltage":12,"Motor current":15,"Windlass Monitoring Events":[]}}

@Hakansv
Copy link

Hakansv commented Dec 30, 2024

A windlass rode counter is implemented in Dashboard @ Github master code.
Please read this discussion
According to your: "pgn":128777,..........,"Rode Counter Value":15.3," "
My assumption that the value (15.3) would represent how many meters have been ejected seems to be correct. So it should work.
Is it possible for you to test?
If you can't build from source please tell us what system you have and we can possible show a download link if you would like to test the alpha version of OCPN.

@JohnStov
Copy link
Author

That's correct.

It's from my test data. I have working code but I haven't created the PR yet.
I'm in the process of building a homebrew N2K chain counter/windlass controller that will use Timo Lappalainen's NMEA2000 library(https://github.com/ttlappalainen/NMEA2000). I want this support so that I can import the data into SignalK.

If anyone has any real world windlass PGN data I would be happy to use it in my test case.

@Hakansv
Copy link

Hakansv commented Jan 1, 2025

I want this support so that I can import the data into SignalK.

What I know SignalK does not yet handle these PGNs and there is no windlass paths available. Please correct me if I'm wrong.

@JohnStov
Copy link
Author

JohnStov commented Jan 1, 2025

That is correct. I have raised a question on the SignalK Discourse Server about it. This is what I said :

"I'm in the process of implementing handlers in n2k-signalk for the windlass PGNs (128776, 128777, 128778). Does anyone have any suggestions for where in the full model I should root the signalk data? There is .navigation.anchor, but that doesn't feel right because it's not really navigation information, and also NMEA2000 allow for multiple windlasses, so the final path would be something like .navigation.anchor..windlass.rodeCounter, which feels clunky. I could go with .windlass..rodeCounter but that fails the tree.should.be.validSignalKVesselIgnoringIdentity test. All suggestions welcome."

@Hakansv
Copy link

Hakansv commented Jan 1, 2025

As soon SK have a path for 128777,..........,"Rode Counter Value" we will implement that to O Dashboard's Windlass instrument.

Look here at SK issues
And maybe here to not invent the wheel again?

The meter windlass is judged as a "navigational" information suitable for OCPN core Dashboard. See my shot.
But to implement a windlass control would not be suitable. Possibly it could be suitable for a plugin?

bild

@JohnStov
Copy link
Author

JohnStov commented Jan 1, 2025

Thank you very much! This is all really useful information.

My intention is still to build a NMEA2000 windlass controller, so I will leave this issue open and submit a PR soon. I will update my pull request to use the schema in PR #601, since this seems to represent current thinking on where windlasses fit in the schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants