![]() |
Weather sensor with display crashing in OpenCPN - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17) +--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18) +--- Thread: Weather sensor with display crashing in OpenCPN (/showthread.php?tid=4478) |
Weather sensor with display crashing in OpenCPN - patrickza - 2023-02-13 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. RE: Weather sensor with display crashing in OpenCPN - seandepagnier - 2023-02-15 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? RE: Weather sensor with display crashing in OpenCPN - patrickza - 2023-02-15 (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? 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. RE: Weather sensor with display crashing in OpenCPN - patrickza - 2023-02-18 (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? 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 ![]() RE: Weather sensor with display crashing in OpenCPN - PaddyB - 2023-02-18 (2023-02-18, 12:54 AM)patrickza Wrote: So I decided to dual boot my laptop with Ubuntu and now it works perfectly! 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! |