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
Weather sensor with display crashing in OpenCPN
#1
Hi everyone. I bought the wind sensor with display from the pypilot store and a Davis anemometer. It works fine just on the display, but when I add it to OpenCPN it seems to crash and reboot.

Here's a video showing what I mean: https://youtu.be/sGNY9OGX1i8

As you can see it runs perfectly fine on a PC until I try configure it to open CPN where it seems to be in a reboot loop. Here's the debug data I pulled from OpenCPN:
<GREEN>21:13:20 (Serial:COM3) $ARMWV,262.14,R,0.00,N,A*2d<0x0D><0x0A>
<GREEN>21:13:20 (Serial:COM3) $ARMWV,262.14,R,0.00,N,A*2d<0x0D><0x0A>
<GREEN>21:13:20 (Serial:COM3) $ARMWV,262.14,R,0.00,N,A*2d<0x0D><0x0A>
<GREEN>21:13:20 (Serial:COM3) $ARMWV,262.14,R,0.00,N,A*2d<0x0D><0x0A>
<GREEN>21:13:20 (Serial:COM3) $ARMWV,262.14,R,0.00,N,A*2d<0x0D><0x0A>
<GREEN>21:13:20 (Serial:COM3) $ARMWV,262.14,R,0.00,N,A*2d<0x0D><0x0A>
<GREEN>21:13:21 (Serial:COM3) $ARMWV,262.14,R,0.00,N,A*2d<0x0D><0x0A>
<GREEN>21:13:21 (Serial:COM3) $ARMWV,262.14,R,0.00,N,A*2d<0x0D><0x0A>
<GREEN>21:13:21 (Serial:COM3) $ARMWV,262.14,R,0.00,N,A*2d<0x0D><0x0A>
<GREEN>21:13:21 (Serial:COM3) $ARMWV,262.14,R,0.00,N,A*2d<0x0D><0x0A>
<GREEN>21:13:21 (Serial:COM3) $ARMWV,262.14,R,0.00,N,A*2d<0x0D><0x0A>
<GREEN>21:13:21 (Serial:COM3) $ARMWV,262.14,R,0.00,N,A*2d<0x0D><0x0A>
/*Crashed here---> */
<GREEN>21:13:23 (Serial:COM3) $ARMDA,,,1.03477,B,,,,,,,,,,,,,,,,*31Sensor type:davis<0x0D><0x0A>
<GREEN>21:13:23 (Serial:COM3) Wind Off:0<0x0D><0x0A>
<GREEN>21:13:23 (Serial:COM3) Baro Off:0<0x0D><0x0A>
<GREEN>21:13:23 (Serial:COM3) Temp Off:0<0x0D><0x0A>
<GREEN>21:13:23 (Serial:COM3) Cal valid  118  901<0x0D><0x0A>
<GREEN>21:13:23 (Serial:COM3) bmX280 setup<0x0D><0x0A>
<GREEN>21:13:23 (Serial:COM3) $ARMWV,,R,0.00,N,A*30<0x0D><0x0A>
<GREEN>21:13:23 (Serial:COM3) $ARMWV,312.24,R,0.00,N,A*28<0x0D><0x0A>
<GREEN>21:13:23 (Serial:COM3) $ARMWV,270.54,R,0.00,N,A*2a<0x0D><0x0A>
<GREEN>21:13:23 (Serial:COM3) $ARMWV,263.90,R,0.00,N,A*20<0x0D><0x0A>

Then I tried reading that serial port in putty and it ran perfectly, no reboots or any other issues. Here's some data from putty:
▒▒/j*▒▒̙H=▒Sensor type:davis
Wind Off:0
Baro Off:0
Temp Off:0
Cal valid  118  901
bmX280 setup
$ARMWV,,R,0.00,N,A*30
$ARMWV,312.24,R,0.00,N,A*28
$ARMWV,270.54,R,0.00,N,A*2a
$ARMWV,263.90,R,0.00,N,A*20
$ARMWV,262.50,R,0.00,N,A*2d
$ARMWV,262.20,R,0.00,N,A*2a
$ARMWV,262.15,R,0.00,N,A*2c
$ARMWV,262.14,R,0.00,N,A*2d
$ARMWV,262.14,R,0.00,N,A*2d
$ARMWV,262.14,R,0.00,N,A*2d
$ARMWV,262.14,R,0.00,N,A*2d
$ARMWV,262.14,R,0.00,N,A*2d
$ARMWV,262.14,R,0.00,N,A*2d
$ARMWV,262.14,R,0.00,N,A*2d
$ARMWV,262.14,R,0.00,N,A*2d
$ARMWV,262.14,R,0.00,N,A*2d
$ARMWV,262.14,R,0.00,N,A*2d
$ARMWV,262.14,R,0.00,N,A*2d
$ARMWV,262.14,R,0.00,N,A*2d
$ARMWV,262.14,R,0.00,N,A*2d
$ARMWV,262.14,R,0.00,N,A*2d
$ARMWV,262.14,R,0.00,N,A*2d
$ARMDA,,,1.03473,B,,,,,,,,,,,,,,,,*35
$ARMTA,22.09,C*2f
$ARMWV,262.14,R,0.00,N,A*2d
$ARMWV,262.14,R,0.00,N,A*2d

Anyone have any idea what's going on? I have tried two USB cables, same behaviour on both.

Thanks

Edit: Also works fine in NavMonPc.
Reply
#2
It is very strange and I wonder if it has to do with how opencpn reads from serial ports in windows?


Do you have any other system with opencpn to try?
Reply
#3
(2023-02-15, 02:44 AM)seandepagnier Wrote: It is very strange and I wonder if it has to do with how opencpn  reads from serial ports in windows?


Do you have any other system with opencpn to try?

I don't unfortunately. I will eventually get a pi, but I was hoping the laptop would do the job. I'll keep digging into opencpn to see if I can work it out.
Reply
#4
(2023-02-15, 09:36 PM)patrickza Wrote:
(2023-02-15, 02:44 AM)seandepagnier Wrote: It is very strange and I wonder if it has to do with how opencpn  reads from serial ports in windows?


Do you have any other system with opencpn to try?

I don't unfortunately. I will eventually get a pi, but I was hoping the laptop would do the job. I'll keep digging into opencpn to see if I can work it out.

So I decided to dual boot my laptop with Ubuntu and now it works perfectly!

Very strange, I wonder what the issue is with Windows. Anyway I'm glad I can run it on linux. Seems like a great solution for a cost effective wind vane Smile
Reply
#5
(2023-02-18, 12:54 AM)patrickza Wrote: So I decided to dual boot my laptop with Ubuntu and now it works perfectly!

Very strange, I wonder what the issue is with Windows. Anyway I'm glad I can run it on linux. Seems like a great solution for a cost effective wind vane Smile


Signalk runs on windows as well, might shed some more light on what is going on with the serial input on  windows

https://github.com/SignalK/signalk-server-windows
(2023-02-18, 12:54 AM)patrickza Wrote: So I decided to dual boot my laptop with Ubuntu and now it works perfectly!

Very strange, I wonder what the issue is with Windows. Anyway I'm glad I can run it on linux. Seems like a great solution for a cost effective wind vane Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)