htool / signalk-bandg-performance-plugin

Generate B&G performance PGNs to be displayed on Vulcan/Zeus/Triton2
3 stars 1 forks source link

H5000 User channels #2

Open cedschmidt-lab opened 3 years ago

cedschmidt-lab commented 3 years ago

Hey Hans, Thanks a lot for this plugin and the custom PGN description. I was looking for something similar but for sending user channels from emulated H5000 cpu to B&G graphical display. I have some candump data but have no idea how to reverse them.. Could you help or maybe you already have such info? Best,

htool commented 3 years ago

The PGN is a list of key/value pairs. So you'll have to find out what the hex values of the user channels are. If you look at the code of this plugin you can see the mapping of hex values of the ones I found. Once you have the key, you can see which bytes are used to encode the value and how (radian, integer etc). The plugin code is easy enough to extend once you have the key/value. If you share the candump data I can also have a look.

cedschmidt-lab commented 3 years ago

Hey, thanks for answering.

I thought I had a candump file but actually they are .ebl decoded files so the data frame is decimal instead of hex. But everything should be there. One file is for the 130824 pgn and the other from 130833 for which I also noticed activity.

My problem is that I have no idea about bit offset and bit length and I don’t have the actual correct values.

Any idea ??

Many thanks

htool commented 3 years ago

Hi Cédric,

What I did was change the ‘from’ in the dump to SignalK ID and replay the dump using socketcan-writer and then look at the Vulcan/Zeus data through device list -> SignalK -> data.

Cheers,

Hans

Sent from my iPhone

On 18 Nov 2021, at 15:15, cedschmidt-lab @.***> wrote:

 Hey, thanks for answering.

I thought I had a candump file but actually they are .ebl decoded files so the data frame is decimal instead of hex. But everything should be there. One file is for the 130824 pgn and the other from 130833 for which I also noticed activity.

My problem is that I have no idea about bit offset and bit length and I don’t have the actual correct values.

Any idea ??

Many thanks

_

Cédric Schmidt

Adjoint scientifique

HEPIA Rue de la Prairie CH-1202 Genève @.**@.> www.hesge.ch/hepiahttp://www.hesge.ch/hepia

De : Hans @.> Envoyé : jeudi, 18 novembre 2021 10:43 À : htool/signalk-bandg-performance-plugin @.> Cc : Schmidt Cédric (HES) @.>; Author @.> Objet : Re: [htool/signalk-bandg-performance-plugin] H5000 User channels (Issue #2)

The PGN is a list of key/value pairs. So you'll have to find out what the hex values of the user channels are. If you look at the code of this plugin you can see the mapping of hex values of the ones I found. Once you have the key, you can see which bytes are used to encode the value and how (radian, integer etc). The plugin code is easy enough to extend once you have the key/value. If you share the candump data I can also have a look.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/htool/signalk-bandg-performance-plugin/issues/2#issuecomment-972698502, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APNE6TO65TREGD3ZJOJCR2LUMTDBFANCNFSM5II7RULQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

cedschmidt-lab commented 3 years ago

Oh I see… I will do the same this week-end and comeback here ! Best,

cedschmidt-lab commented 2 years ago

Hi Hans, I'm back working on this after some months away and I'm now facing an other issue since I moved to an Actisense NGT-1 device. It seems like PGN 130824 must be enabled in the device prior to transmit data and I have no idea how to do it. Can you help on this? Best,

htool commented 2 years ago

I don't have an Actisense, but I someone else does and he managed to make it work. See his comments here: https://zeilersforum.nl/index.php/forum-125/raspberry-pi-arduino-etcetera/595374-sailing-performance-dashboard-op-de-raspberry-pi?start=125#1357145 and https://forum.openmarine.net/showthread.php?tid=3080

cedschmidt-lab commented 2 years ago

Hey Hans, thanks a lot for your message I will write on the Zeilersforum. I really hope that I will be able to contribute with my fundings at some points...

Best,