At the beginning my minority of questions

Anything about the Open Source code, downloads, documentation. Suggestions welcome.
crb
Site Admin
Posts: 52
Joined: Mon Oct 10, 2016 1:08 pm

Re: At the beginning my minority of questions

Post by crb » Mon Mar 18, 2019 12:48 pm

Hi Jerzy
sq5npw wrote:
Sun Mar 17, 2019 7:57 pm
There are two sketches for Main Sensor (mainsrelay.ino) in sketchbook.zip
In one of them, the digital RelayPin has the value 3.
This is not as described in the "Skipper's Mate Assembly Notes" pdf file,
where on page 16 the connection of the relay to pin 2 is shown
(blue wire between Relay and Shore Power Sensor Control Unit Boat Power)
When I connected the relay to pin 3, everything started working.
I have not tested the second sketch.
Sorry, that's a documentation error - we'll update it.
sq5npw wrote:
Sun Mar 17, 2019 7:57 pm

On the three empty pins of the relay you need a jumper,
as shown in the bottom left picture on page 21
Sorry Jerzy, don't understand.

Cheers,
Colin

sq5npw
Posts: 23
Joined: Sun Feb 03, 2019 11:59 pm

Re: At the beginning my minority of questions

Post by sq5npw » Tue Mar 19, 2019 3:50 pm

Penny,

I have read the Skippers Mate documentation and readme files.
I edited and changed the second voltage sketch, as you describe.

This is present output of my two voltage sensors
root@skipBCU:~# picocom -l /dev/rfcomm1
...
Terminal ready
1:1:1:536
1:1:1:536
1:1:1:536

Thanks for using picocom
root@skipBCU:~# picocom -l /dev/rfcomm3
...
Terminal ready
1:1:2:515
1:1:2:516
1:1:2:507

On my boat I have three batteries. Two of them can be occasionally combined into a battery with a 1/2/1 + 2 switch, and the third one is a separate engine battery. Each battery is charged separately.

penny wrote:Jerzy - not sure what you mean here. Do you mean, from the Boat menus - System / Apply Updates ? If so, there are details in the Skipper's Mate Manual - Section 7 Chapter 21. However I don't think there are any updates since you took the ISO but if you let me know what version your ISO is I will check.
I'm sorry, but I did not understand you earlier. How do you mean "use the boat update option"
penny wrote:Jerzy - we have found the answer to the issue of the graph not displaying. This looks as though when you updated the local (boat) ranges you were not online and so the duplicate entries needed for the graph which are stored centrally did not get updated. We've done this by hand but it could also be done by using the boat update option again.
I use the newest version of ISO.

- Jerzy

sq5npw
Posts: 23
Joined: Sun Feb 03, 2019 11:59 pm

Re: At the beginning my minority of questions

Post by sq5npw » Tue Mar 19, 2019 4:38 pm

crb wrote:
Mon Mar 18, 2019 12:48 pm
Hi Jerzy
,,,
sq5npw wrote:
Sun Mar 17, 2019 7:57 pm

On the three empty pins of the relay you need a jumper,
as shown in the bottom left picture on page 21
Sorry Jerzy, don't understand.

Cheers,
Colin
I'm sorry, I wrote too little.

The Diagram in the "Skipper's Mate Assembly Notes" pdf file on page 16
shows a Relay with an optocoupler EL817.
In order for such Relay to work properly in this sensor, a jumper shorting
the JD-VCC and VCC pins is necessary - shown in the figure below in yellow,
shorepower1_1.png
shorepower1_1.png (25.83 KiB) Viewed 2033 times
relay-module.jpg
relay-module.jpg (14.63 KiB) Viewed 2033 times
Of course, if we buy a new relay, the jumper should be in place, but my relay pulled from the bottom of the drawer, did not have this jumper and took some time before I realized why the whole sensor does not work. :roll:

Cheers,
Jerzy

crb
Site Admin
Posts: 52
Joined: Mon Oct 10, 2016 1:08 pm

Re: At the beginning my minority of questions

Post by crb » Fri Mar 22, 2019 3:01 pm

sq5npw wrote:
Tue Mar 19, 2019 4:38 pm
Of course, if we buy a new relay, the jumper should be in place, but my relay pulled from the bottom of the drawer, did not have this jumper and took some time before I realized why the whole sensor does not work. :roll:

Cheers,
Jerzy
Ah, now I understand. Glad you sorted it.

sq5npw
Posts: 23
Joined: Sun Feb 03, 2019 11:59 pm

Re: At the beginning my minority of questions

Post by sq5npw » Mon Mar 25, 2019 6:19 pm

Hi,
My voltage measurement Graph still shows only one Legend: "Eng V"
Volt.jpg
Volt.jpg (117.3 KiB) Viewed 1980 times
I currently measure two Voltages: "Home V" and "Eng V"
My Voltage sensors sketches are correct, as I describe earlier.
In my BCU Sensor Panel I can see two readings:
SensorPanel.jpg
SensorPanel.jpg (51.52 KiB) Viewed 1980 times
I do not know what else I could improve or change?

Perhaps the Legend problem can be solved by changing
the sm_histvolts table entry on Central Server?

Best Regards,
Jerzy

crb
Site Admin
Posts: 52
Joined: Mon Oct 10, 2016 1:08 pm

Re: At the beginning my minority of questions

Post by crb » Tue Mar 26, 2019 11:53 am

Hi Jerzy,

I'll check the server to see if there is a disparity.

Cheers,

Colin

sq5npw
Posts: 23
Joined: Sun Feb 03, 2019 11:59 pm

Re: At the beginning my minority of questions

Post by sq5npw » Wed Mar 27, 2019 3:12 pm

penny wrote:The issue with legends was a couple of rows in the sm_histvolts which had a sensorno of 11. Have deleted these from the server.
I guess that only one row remains, and I need a minimum of three. Of course, 11 rows are too much.

- Jerzy

crb
Site Admin
Posts: 52
Joined: Mon Oct 10, 2016 1:08 pm

Re: At the beginning my minority of questions

Post by crb » Sat Mar 30, 2019 8:33 am

Hi Jerzy,

I think you have it. My mistake. :oops: Just off to the boat but will try to correct it tomorrow.

Cheers,

Colin

crb
Site Admin
Posts: 52
Joined: Mon Oct 10, 2016 1:08 pm

Re: At the beginning my minority of questions

Post by crb » Sun Mar 31, 2019 2:37 pm

Hi Jerzy,

Looks as though the problem lies with the base program which reads the sensors - you're the first person with multiple voltage sensors. I'll check it out, correct it and, with your permission, update your Raspberry.

Cheers,
Colin

crb
Site Admin
Posts: 52
Joined: Mon Oct 10, 2016 1:08 pm

Re: At the beginning my minority of questions

Post by crb » Sun Mar 31, 2019 5:26 pm

No need to update your Raspberry - the fault was at the server side. The receiving voltage program was not respecting the sensor number transmitted from the client.

Post Reply