Posts: 176
Threads: 44
Joined: Mar 2016
Reputation:
0
2018-08-08, 06:34 AM
(This post was last modified: 2018-08-08, 07:19 AM by Alpenskipper.)
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
Posts: 321
Threads: 0
Joined: Apr 2016
Reputation:
19
2018-08-27, 10:14 PM
(This post was last modified: 2018-08-27, 10:16 PM by e-sailing.)
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
Posts: 176
Threads: 44
Joined: Mar 2016
Reputation:
0
Great!
I am not on the boat in the moment. When I am, I give it a try.
Martin
Posts: 321
Threads: 0
Joined: Apr 2016
Reputation:
19
Have you setup the can-usb that it is allowed to send pgn127508 ?
Posts: 7
Threads: 0
Joined: Mar 2019
Reputation:
0
Yes. PGN 127508 is activated in signalk-nmea2000-plugin and as said, I can see it being sent when debugging the plugin. But I cannot be sure it ever reaches the N2K network. Tried reading the RX buffers in the Raymarine a65/a95, but that's all in HEX and doesn't help me further debugging.
Posts: 7
Threads: 0
Joined: Mar 2019
Reputation:
0
Posts: 321
Threads: 0
Joined: Apr 2016
Reputation:
19
So maybe I messed something up and made incorrect settings? No!
You can't setup the interface while it works with signalk. You can't send N2K while you see the N2K diagnostic output...
BTW use "Managed by Signal K (canboatjs)".
Before starting with 127508 I would test if you are able to send for example depth (128267) or heading (127250).
You should be able to go into your "Data source menu" and use device selection depth or heading. If you can select the device "BetaCan Openplotter" and it shows the value on the plotter you have managed to send N2K data from openplotter to your raymarine mfd. Then you can test if you are able to send 127506/127508. On my Lowrance HDS7 it is easier. I can select the device "BetaCan Openplotter" and see data send from it (I don't see N2K AIS sentences also they are shown on the map).
Signal K -> N2K looks for following pathes:
127506:
electrical.batteries.1.capacity.stateOfCharge
electrical.batteries.1.capacity.stateOfHealth
electrical.batteries.1.capacity.timeRemaining
127508:
electrical.batteries.1.voltage
electrical.batteries.1.current
electrical.batteries.1.temperature
(I don't know if you should use 1 or 0)