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.

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
... send Signal K keys in a ST2000 network?
#1
Hi,
I would like to see the battery voltage on my plotter. The workflow should be the same for every Signal K key, that is to be sent in a ST2000 network.

The voltage is measured by an ads1115.

It has the Signal K key „electrical.batteries.service.voltage“in OP.

The PGN for battery related data within a ST2000 network is PGN 127508.

If I activate sending PGN 127508 on the CAN2USB adapter output, the plotter shows 0.0 Volt.
That is clear, as I can see in the CAN tab Diagnostic, that the PGN 127508 contains only zeros.

My question is, how can I link the Signal K key
„electrical.batteries.service.voltage“ to the PGN 127508?

I guess, the format is a bit tricky, because the PGN 127508 contains multiple, battery related, measurments.

May be I could change the Signal K key to an other string? But how to name it?

Martin
  Reply
#2
Yes. You are right.
I think SignalK has changed. There is no Properties.dcSource.voltage anymore.

(To make it work solutions:
1. Replace Properties.dcSource.voltage with electrical.batteries.service.voltage in line 244 of SK-base_d.py.
or
2. Edit openplotter.conf and replace electrical.batteries.service.voltage with Properties.dcSource.voltage.)


Better way is:
Go to SignalK page (openplotter.local:3000) and login
Appstore->Available  install signalk-to-nmea2000
Server->Data Providers OPcan
select Actisense NGT-1 (canboatjs)
apply
press restart (upper right corner)
Server-<Plugin Config  Convert Signal K to NMEA2000
select Active
select Enable (under Battery (127506 & 127508))
select + button
in "Signal K battery id" enter service
in "NMEA2000 Battery Instance Id" enter 1
press submit
press restart (upper right corner)

Martin
  Reply
#3
Great!
I am not on the boat in the moment. When I am, I give it a try.
Martin
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)