Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 16-01-2023, 12:43   #121
Registered User

Join Date: Aug 2015
Boat: Pro Kennex 380
Posts: 7
Re: OpenCPN Version 5.7.1 Beta Test #2

Possible clue on the cause of the hang up on exit issue:

Comparing OpnCPN logs in the problem Raspberry with a functioning windows OpenCPN log:

Raspberry OpenCPN log ends at ---> 17:47:59 890 'Message Chart1.cpp:4022 gFrame destroyed."

Windows OpenCPN.log continues with further cleanup message like:

16:50:34.819 MESSAGE chart1.cpp:4022 gFrame destroyed.
16:50:34.839 MESSAGE chart1.cpp:2634 opencpn::MyApp starting exit.
16:50:34.839 MESSAGE chart1.cpp:2673 LOGBOOK: 2023-01-16 00:50:34 UTC OFF: Lat 49.01080 Lon -123.82290
16:50:34.845 MESSAGE TCDataSource.cpp:41 UnLoading Tide/Current data source: C:\Program Files (x86)\OpenCPN\tcdata\harmonics-dwf-20210110-free.tcd
16:50:34.854 MESSAGE TCDataSource.cpp:41 UnLoading Tide/Current data source: C:\Program Files (x86)\OpenCPN\tcdata\HARMONICS_NO_US.IDX
16:50:34.857 MESSAGE chart1.cpp:2697 opencpn::MyApp exiting cleanly...

It sure looks like the issue is tide and/or current table related.

Turning tide / current tables on took ~15 minutes with heavy CPU during that time. After the Tides/currents are displayed, right clicking the current arrows triggers the heavy cpu and slow response. Same with exiting current table display boxes.

Thoughts?
Rae Simpson is offline   Reply With Quote
Old 16-01-2023, 13:14   #122
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,255
Re: OpenCPN Version 5.7.1 Beta Test #2

Quote:
Originally Posted by Hakan View Post
About RPi and modprob can0 crash at shut down


I though experienced if I start OCPN without modprobe installed he will crash on shut down.
So we better make sure the modprobe is installed in a way it reloads after reboot.
Just to inform this issue is now solved in current git master. Also was my wordings not correct. O didn't crashed, he hanged.


We may need a common convenient way to have the can0 driver installed permanently. Here we may need some help from all Debian gurus?
I've the MCS board on a another RPi so there all was installed by help of the GeDab SignalK-app.

Thanks.
Hakan is offline   Reply With Quote
Old 16-01-2023, 21:08   #123
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,473
Re: OpenCPN Version 5.7.1 Beta Test #2

Rae Simpson....
re:
"Turning tide / current tables on took ~15 minutes with heavy CPU during that time. After the Tides/currents are displayed, right clicking the current arrows triggers the heavy cpu and slow response. Same with exiting current table display boxes."


On RPi4/64/Bullseye, I cannot reproduce anything like this. Turning on Tide/Currents from lower right "hamburger" takes about .5 secs to fully redraw the (fully zoomed out) chart. Right click on a station brings up the data curve more or less instantly.


Please tell us more about your config. Anything potentially non-standard, or otherwise useful.
Anyone else seeing this effect?
Thanks
Dave
bdbcat is offline   Reply With Quote
Old 17-01-2023, 12:15   #124
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,119
Re: OpenCPN Version 5.7.1 Beta Test #2

Quote:
Originally Posted by Hakan View Post
Just to inform this issue is now solved in current git master. Also was my wordings not correct. O didn't crashed, he hanged.

We may need a common convenient way to have the can0 driver installed permanently. Here we may need some help from all Debian gurus?
I've the MCS board on a another RPi so there all was installed by help of the GeDab SignalK-app.

Thanks.
Hi Hakan,

I have given an instruction how to generate the can0 at the boot of a Linux system.
The instruction is in the etc/rc.local file. Has no effect on the working of the system if a NMEA2000 item is not connected. Sometimes rc.local is allready available but is not working. If it is not available you can simply add a file rc.local.

And adjust the rights.

This works very well with these small and cheap Canable boards. Not yet tried with the Actisense NGT-1 adapter. If you are interested I can try to make a setup with the Actisense.

Regards,

Bram (no Guru, only a user)

As I mentioned before the can0 does not show up in the Flatpak O version.
verkerkbr is offline   Reply With Quote
Old 17-01-2023, 12:20   #125
Registered User

Join Date: Jan 2018
Location: Gold Coast, Australia
Boat: Lagoon 500
Posts: 205
Re: OpenCPN Version 5.7.1 Beta Test #2

Quote:
Originally Posted by bdbcat View Post
Rae Simpson....
re:
"Turning tide / current tables on took ~15 minutes with heavy CPU during that time. After the Tides/currents are displayed, right clicking the current arrows triggers the heavy cpu and slow response. Same with exiting current table display boxes."


On RPi4/64/Bullseye, I cannot reproduce anything like this. Turning on Tide/Currents from lower right "hamburger" takes about .5 secs to fully redraw the (fully zoomed out) chart. Right click on a station brings up the data curve more or less instantly.


Please tell us more about your config. Anything potentially non-standard, or otherwise useful.
Anyone else seeing this effect?
Thanks
Dave
Tides & Currents working perfectly with OpenCPN 5.7.1.b2 for MacOS
kevinvh is offline   Reply With Quote
Old 17-01-2023, 12:53   #126
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,255
Re: OpenCPN Version 5.7.1 Beta Test #2

Quote:
Originally Posted by verkerkbr View Post
Hi Hakan,

I have given an instruction how to generate the can0 at the boot of a Linux system..
Bram..
That instruction I've missed. What commands do you add to the rc.local file?

Now I run these after a reboot. Is it as simple as adding these rows to rc.local?

modprobe can_dev
modprobe can
modprobe can_raw
ip link set can0 type can bitrate 250000ip link set up can0

Thanks
Håkan
Hakan is offline   Reply With Quote
Old 17-01-2023, 16:10   #127
Registered User

Join Date: Aug 2015
Boat: Pro Kennex 380
Posts: 7
Re: OpenCPN Version 5.7.1 Beta Test #2

Regarding the high CPU at shutdown and when accessing tide functions.....

Hardware is RPi 4 with PiCAN-M from Copper Hill. The 64 bit version...I think that is called bullseye with OpenCPN 5.6.2 as distributed with Openplotter.

I'm unable to install the Beta....but hoping to understand and sort this high CPU issue.

Back to 32 bit...??
Rae Simpson is offline   Reply With Quote
Old 17-01-2023, 23:05   #128
Registered User

Join Date: Oct 2022
Location: San Francisco Bay
Boat: Catalina 34
Posts: 30
Re: OpenCPN Version 5.7.1 Beta Test #2

Quote:
Originally Posted by Hakan View Post
Bram..
That instruction I've missed. What commands do you add to the rc.local file?

Now I run these after a reboot. Is it as simple as adding these rows to rc.local?

modprobe can_dev
modprobe can
modprobe can_raw
ip link set can0 type can bitrate 250000ip link set up can0

Thanks
Håkan
rc.local can work well but udev is another option which should also update when the device is plugged in after booting.

For my can device I created a file called /etc/udev/rules.d/90-canable.rules with the following line:

SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="606f", ACTION == "add", RUN+="/sbin/ip link set can0 down", RUN+="/sbin/ip link set can0 up type can bitrate 250000 loopback off listen-only off"

The two ATTRS values were gleaned from output of dmesg. You may see something similar depending on your device.

[ 2.572703] usb 1-1.3: New USB device found, idVendor=1d50, idProduct=606f, bcdDevice= 0.00
[ 2.572725] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.572742] usb 1-1.3: Product: canable gs_usb

Seems to work well, brings a can0 at boot / when device is plugged into usb before/after boot time.
sanner is offline   Reply With Quote
Old 18-01-2023, 06:19   #129
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,119
Re: OpenCPN Version 5.7.1 Beta Test #2

Quote:
Originally Posted by sanner View Post
rc.local can work well but udev is another option which should also update when the device is plugged in after booting.

For my can device I created a file called /etc/udev/rules.d/90-canable.rules with the following line:

SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="606f", ACTION == "add", RUN+="/sbin/ip link set can0 down", RUN+="/sbin/ip link set can0 up type can bitrate 250000 loopback off listen-only off"

The two ATTRS values were gleaned from output of dmesg. You may see something similar depending on your device.

[ 2.572703] usb 1-1.3: New USB device found, idVendor=1d50, idProduct=606f, bcdDevice= 0.00
[ 2.572725] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.572742] usb 1-1.3: Product: canable gs_usb

Seems to work well, brings a can0 at boot / when device is plugged into usb before/after boot time.

Just tested the udev setup and can confirm that this also works. Not only at boot time but als by simply connecting the usb to the computer system or the RPI4.

Now to see if this also works on the flatpak versions.


Bram
verkerkbr is offline   Reply With Quote
Old 18-01-2023, 06:33   #130
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,255
Re: OpenCPN Version 5.7.1 Beta Test #2

sanner.. Bram..
Thanks for the tips and for testing.
I'll make a try as well.
Hakan is offline   Reply With Quote
Old 18-01-2023, 07:05   #131
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,255
Re: OpenCPN Version 5.7.1 Beta Test #2

sanner.. bram..
No it didn't worked on my system: arm64 Bullseye.
- The rules for the SG-lock dongle, 65-..., in the same folder was disturbed so no o-charts.

- can0 wasn't detected.

The suggested command was about "usb". My can0 has to what I know nothing to do with any USB?

Deleting the 90-... file, reboot and apply my "normal" modprob commands works as usual though.
Hakan is offline   Reply With Quote
Old 18-01-2023, 07:44   #132
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,119
Re: OpenCPN Version 5.7.1 Beta Test #2

Quote:
Originally Posted by Hakan View Post
sanner.. bram..
No it didn't worked on my system: arm64 Bullseye.
- The rules for the SG-lock dongle, 65-..., in the same folder was disturbed so no o-charts.

- can0 wasn't detected.

The suggested command was about "usb". My can0 has to what I know nothing to do with any USB?

Deleting the 90-... file, reboot and apply my "normal" modprob commands works as usual though.

Hi Hakan,

tested the setup on my Linux Mint Vera AMD64 in combination wih the Oesenc plugin: Works

tested on my RPi4 with Raspian Bullseye 64 version: Works

Connected it to the Actisense NGT-1. Does not work no Can0 available. It works perfect in the SignalK server.

No modprobe action here.

Bram

I'am using the Candlelight firmware. on the Canable versions.
verkerkbr is offline   Reply With Quote
Old 18-01-2023, 07:46   #133
Registered User

Join Date: Nov 2012
Location: Steinhatchee, FL
Posts: 402
Re: OpenCPN Version 5.7.1 Beta Test #2

Windows 10 pro
Route and Mark Manager crashes the program intermittently while stepping through a track. It usually happens when I move from the first to the second entry on the track.



Bill
__________________
Bill
"If I were in a hurry, I would not have bought a sail boat." Me
Be Free is offline   Reply With Quote
Old 18-01-2023, 10:34   #134
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,119
Re: OpenCPN Version 5.7.1 Beta Test #2

Quote:
Originally Posted by verkerkbr View Post
Hi Hakan,

tested the setup on my Linux Mint Vera AMD64 in combination wih the Oesenc plugin: Works

tested on my RPi4 with Raspian Bullseye 64 version: Works

Connected it to the Actisense NGT-1. Does not work no Can0 available. It works perfect in the SignalK server.

No modprobe action here.

Bram

I'am using the Candlelight firmware. on the Canable versions.

Ubuntu Kinetic for the RPI4 also work.


How to get the Can0 in the flatpak version working.


Bram
verkerkbr is offline   Reply With Quote
Old 18-01-2023, 11:30   #135
Registered User

Join Date: Oct 2022
Location: San Francisco Bay
Boat: Catalina 34
Posts: 30
Re: OpenCPN Version 5.7.1 Beta Test #2

Quote:
Originally Posted by Hakan View Post
sanner.. bram..
No it didn't worked on my system: arm64 Bullseye.
- The rules for the SG-lock dongle, 65-..., in the same folder was disturbed so no o-charts.

- can0 wasn't detected.

The suggested command was about "usb". My can0 has to what I know nothing to do with any USB?

Deleting the 90-... file, reboot and apply my "normal" modprob commands works as usual though.

I'm using the Candlelight firmware as well. If your device is using something else you'll have to adjust the ATTRS values in the udev conf file to get it to trigger.

Do you see your device in the output from dmesg ? (is the kernel module being loaded? check lsmod ?)
sanner is offline   Reply With Quote
Reply

Tags
enc, opencpn


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN Beta Version 5.7.1 Beta Test #1 - Plugins rgleason OpenCPN 115 08-03-2023 00:01
OpenCPN Version 5.1.511 Beta Test bdbcat OpenCPN 103 23-05-2020 04:02
OpenCPN Version 5.1.428 Beta Test bdbcat OpenCPN 289 19-05-2020 04:46
OpenCPN Version 2.2 Beta Test bdbcat OpenCPN 437 15-12-2010 19:17
OpenCPN Version 2.2 Beta Test Bugs / Discussion bdbcat OpenCPN 120 26-09-2010 02:53

Advertise Here


All times are GMT -7. The time now is 19:28.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.