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.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Signal K Server v1.32.0 Released
#31
(2020-08-13, 07:35 PM)Sailoog Wrote: OK, thanks a lot. Created a pull request and waiting for being approved: https://github.com/SignalK/signalk-serve.../pull/1096
I can not try to solve the depth issue without any seatalk 1 device but I am sure someone will do soon.

Good work ! It's merged by @tkurki to the SK server....... No offence, but it was 100% of one CPU ?
________________________________________

Blog; https://pysselilivet.blogspot.com/
Reply
#32
Absolutely!

No fix, over 97-101% cpu use.

Fixed, over 6-9% cpu use. You can use the command:

top

... to check it.
Reply
#33
Created an issue, regarding the depth, in the original repo https://github.com/Thomas-GeDaD/Seatalk1...r/issues/1
________________________________________

Blog; https://pysselilivet.blogspot.com/
Reply
#34
(2020-08-13, 09:15 PM)MatsA Wrote: Good work ! It's merged by @tkurki to the SK server....... No offence, but it was 100% of one CPU ?

A program blocking a whole CPU is unacceptable under any circumstance and has really critical side effects.
Reply
#35
https://github.com/Thomas-GeDaD/Seatalk1...3e5c784e3c
Have fix this in my repro......

I have try with my script and pigpio. I have a CPU use ao arround 8%...
Reply
#36
and this the adaptation to SK of Thomas fix for depth issue.

You should edit this file:
/usr/lib/node_modules/signalk-server/node_modules/@signalk/streams/pigpio-seatalk.js
to add this change:
https://github.com/sailoog/signalk-serve...e4447bc050

Restart signal k server after saving and test.
Reply
#37
Have tested CPU with signalK and the changes:
   
   

now all should work...
Reply
#38
I see you have already made a pull request to SK too, excellent.
Reply
#39
(2020-08-14, 10:11 AM)Sailoog Wrote: and this the adaptation to SK of Thomas fix for depth issue.

You should edit this file:
/usr/lib/node_modules/signalk-server/node_modules/@signalk/streams/pigpio-seatalk.js
to add this change:
https://github.com/sailoog/signalk-serve...e4447bc050

Restart signal k server after saving and test.

That's great. Next time I go to the boat, I'll try it out.

 Now it would be nice to make it work on OpenPlotter64 as I preferably use OP64. 

Of course I am not a regular user.   So you can ignore me.  Shy
Reply
#40
(2020-08-14, 12:37 PM)monos1 Wrote: Of course I am not a regular user.   So you can ignore me.........

Another way is to use a Raspberry Pi Zero for the ST1 part to separate it from the SK server. Raspbian lite and and an install from the link below. Please note that the Python program isn't updated. 

On the other hand the price tag is close to a commercial, bidirectional,  ST 1  => USB gadget. 

https://pysselilivet.blogspot.com/2020/0...r-diy.html
________________________________________

Blog; https://pysselilivet.blogspot.com/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)