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 22-02-2018, 06:28   #16
Registered User

Join Date: Mar 2016
Posts: 19
Re: General Question to Raspberry OpenCPN and OpenGL

Hmm, thats odd.

With KMS my 7" DSI display stays black...
I can ssh to the pi, change to fkms and after a reboot everything is fine.

My current settings are:

CPU Count: 4
Memory Split: 384Mb
OpenCPN GPU Mem: 256Mb (default)
Max simultan open Charts: 10

With those settings I cave ~115Mb RAM free and OpenCPN maxes the CPU of the PI to 99% when I pan s63 charts.

Since my CM93 and BSP are rather old I use s63. On the baltic sea there is almost no other way if you wanna use a open source chart plotter...
Sadly, the encryption of s63 needs so much CPU-power, that panning the map in a zoomed-out state is nearly impossible. So it's better to switch to CM93 or BSP first.
This means: I need to load different chart types, or the s63 plugin needs to get way faster...
kutt is offline   Reply With Quote
Old 22-02-2018, 07:56   #17
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,106
Re: General Question to Raspberry OpenCPN and OpenGL

Quote:
Originally Posted by kutt View Post
Hmm, thats odd.

With KMS my 7" DSI display stays black...
I can ssh to the pi, change to fkms and after a reboot everything is fine.

My current settings are:

CPU Count: 4
Memory Split: 384Mb
OpenCPN GPU Mem: 256Mb (default)
Max simultan open Charts: 10

With those settings I cave ~115Mb RAM free and OpenCPN maxes the CPU of the PI to 99% when I pan s63 charts.

Since my CM93 and BSP are rather old I use s63. On the baltic sea there is almost no other way if you wanna use a open source chart plotter...
Sadly, the encryption of s63 needs so much CPU-power, that panning the map in a zoomed-out state is nearly impossible. So it's better to switch to CM93 or BSP first.
This means: I need to load different chart types, or the s63 plugin needs to get way faster...
I'am wondering about your CPU load. When starting OpenCPN it is here around 50% and when in use it is around 30%.

I'am using the OpenPlotter version, with servers running for SignalK, Wifi Acces Point, VNC server at the same time.

These low main processor loads proof that the video is processed in the graphic processor.

I have the VC4 driver on en the OpenGL setting also to on (not the software one!).

Are you using a Raspberry Pi3 ?

Bram

There a CM93 set available updated till 2014 and for Norway and Germany and other countries there are the official ENC charts with the oeSenc system.
verkerkbr is online now   Reply With Quote
Old 22-02-2018, 08:09   #18
Registered User

Join Date: Mar 2016
Posts: 19
Re: General Question to Raspberry OpenCPN and OpenGL

Oh - do you have a Link to the CM93 set?

PS: the 98% CPU is only when using encrypted s63 charts using the o-charts plugin and carts from chartworld.com. If it's idle OpenCPN uses just 5% or something like this. When panning (moving the chart around fastly) it goes up. Maybe I descriped it a bit wrong - the load is not always 95%

either the decryption is so heavy or the plugin (OPNSenc (?)) is just poor coded...

PS: yes, I use a RPi3
PPS: with "official ENC charts with the oeSenc" you mean the charts from chartworld, right?
kutt is offline   Reply With Quote
Old 22-02-2018, 08:29   #19
Marine Service Provider

Join Date: May 2013
Location: Norway
Posts: 719
Re: General Question to Raspberry OpenCPN and OpenGL

oeSENC - o-charts
Quote:
Originally Posted by kutt View Post
Oh - do you have a Link to the CM93 set?

PS: the 98% CPU is only when using encrypted s63 charts using the o-charts plugin and carts from chartworld.com. If it's idle OpenCPN uses just 5% or something like this. When panning (moving the chart around fastly) it goes up. Maybe I descriped it a bit wrong - the load is not always 95%

either the decryption is so heavy or the plugin (OPNSenc (?)) is just poor coded...

PS: yes, I use a RPi3
PPS: with "official ENC charts with the oeSenc" you mean the charts from chartworld, right?
petter5 is offline   Reply With Quote
Old 22-02-2018, 08:42   #20
Registered User

Join Date: Mar 2016
Posts: 19
Re: General Question to Raspberry OpenCPN and OpenGL

Ahh yes, I am aware of those.

Is it possible to use S63 and oeSENC charts on the same system?
There are a few that may come in handy soon...
kutt is offline   Reply With Quote
Old 22-02-2018, 09:41   #21
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,740
Re: General Question to Raspberry OpenCPN and OpenGL

Sure, all the supported chart format can be used simultaneously.
S-57, S-63, oeSENC, kap/raster, mbTiles....

There are very proven ways how to bring the RasPi down on its knees ;-)
bcn is online now   Reply With Quote
Old 24-02-2018, 01:34   #22
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,106
Re: General Question to Raspberry OpenCPN and OpenGL

Quote:
Originally Posted by kutt View Post
Hmm, thats odd.

With KMS my 7" DSI display stays black...
I can ssh to the pi, change to fkms and after a reboot everything is fine.

My current settings are:

CPU Count: 4
Memory Split: 384Mb
OpenCPN GPU Mem: 256Mb (default)
Max simultan open Charts: 10

With those settings I cave ~115Mb RAM free and OpenCPN maxes the CPU of the PI to 99% when I pan s63 charts.

Since my CM93 and BSP are rather old I use s63. On the baltic sea there is almost no other way if you wanna use a open source chart plotter...
Sadly, the encryption of s63 needs so much CPU-power, that panning the map in a zoomed-out state is nearly impossible. So it's better to switch to CM93 or BSP first.
This means: I need to load different chart types, or the s63 plugin needs to get way faster...
Dear K,

if you use OpenPlotter then there is a VNC server build in. And with an ENC client you can use the RPI screen from any other system.

Again a new kernel version 4.14.21-V7+ is available. OpenGL works better again. Here OpenGL in OpenCPN without any problems. (rpi-update)

Regards,

Bram
verkerkbr is online now   Reply With Quote
Old 24-02-2018, 02:58   #23
Registered User

Join Date: Aug 2016
Posts: 152
Re: General Question to Raspberry OpenCPN and OpenGL

Hi Kutt,

i'm using O at RPI3 with plain Raspbian Stretch ( 27-11-2017)
Raspbian boots from USB( not SD)

Code:
~ $ uname -a
Linux o 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux
Memory is splitted with 128MB for GPU. Using FKMS
Code:
gpu_mem=128
dtoverlay=vc4-fkms-v3d
Self-Compiled OpenCPN packages ( not for old ubuntu ;-)
Tweaking of OpenCPN
Code:
MemCacheLimit=64
NCacheLimit=8
NCPUCount=4
GPUMemorySize=128
OpenCPN is configured to use HW OpenGL
Code:
OpenGL=1
SoftwareGL=0
ShowFPS=1
OpenCPN is plain ( without plugins). Charts are Raster ( homebrew) for Baltic & IJsselmeer. If you need Baltic, PM me ...

As result...
Code:
o:~ $ free
              total        used        free      shared  buff/cache   available
Mem:         896304      212172      469060       12664      215072      621368
Swap:        102396           0      102396

o:~ $ top
top - 11:56:27 up 32 min,  3 users,  load average: 0.39, 0.37, 0.31
Tasks: 154 total,   1 running, 153 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.9 us,  1.7 sy,  0.0 ni, 97.4 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :   896304 total,   468656 free,   212560 used,   215088 buff/cache
KiB Swap:   102396 total,   102396 free,        0 used.   620980 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND     
   86 root      20   0       0      0      0 S   8.9  0.0   2:35.50 kworker/2:2 
  856 pi        20   0  207576  90812  56160 S   2.0 10.1   0:53.72 opencpn
That's all

Good Luck
Regards
BlackSea
BlackSea is offline   Reply With Quote
Old 24-02-2018, 06:11   #24
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: General Question to Raspberry OpenCPN and OpenGL

Quote:
Originally Posted by verkerkbr View Post
Dear K,

if you use OpenPlotter then there is a VNC server build in. And with an ENC client you can use the RPI screen from any other system.

Again a new kernel version 4.14.21-V7+ is available. OpenGL works better again. Here OpenGL in OpenCPN without any problems. (rpi-update)

Regards,

Bram
Bram,

Do you mind to post your /boot/config.txt settings? I cannot get real OpenGL to work with my VNC setup.
transmitterdan is offline   Reply With Quote
Old 24-02-2018, 06:31   #25
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,106
Re: General Question to Raspberry OpenCPN and OpenGL

Quote:
Originally Posted by transmitterdan View Post
Bram,

Do you mind to post your /boot/config.txt settings? I cannot get real OpenGL to work with my VNC setup.

Dear Tr,

I' am using Linux Stretch in OpenPlotter. At first updated OpenPlotter and Jessie Linux and then replaced Jessie with Stretch (Debian 9.2), which is a very reliable Linux version.

Upgraded to the latest kernel 4.14.21-V7+ (rpi-update).

Switching on the advanced VC4 driver in config.txt. raspi-config > advanced >opengl driver.

This also works without OpenGL in OpenCPN.

Then switching on OpenGL in OpenCPN.

There were some video problems before, but with the latest kernel version these are gone.

My RPI is now not available. I will pass a copy later.

It also work with an Egalax touchscreen, but therefore you have to make some changes and installing the Egalax driver.

I'am using the oeSENC charts and CM93 charts and now these "fly" over the screen.

Regards,

Bram
verkerkbr is online now   Reply With Quote
Old 24-02-2018, 10:21   #26
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,106
Re: General Question to Raspberry OpenCPN and OpenGL

Quote:
Originally Posted by verkerkbr View Post
Dear Tr,

I' am using Linux Stretch in OpenPlotter. At first updated OpenPlotter and Jessie Linux and then replaced Jessie with Stretch (Debian 9.2), which is a very reliable Linux version.

Upgraded to the latest kernel 4.14.21-V7+ (rpi-update).

Switching on the advanced VC4 driver in config.txt. raspi-config > advanced >opengl driver.

This also works without OpenGL in OpenCPN.

Then switching on OpenGL in OpenCPN.

There were some video problems before, but with the latest kernel version these are gone.

My RPI is now not available. I will pass a copy later.

It also work with an Egalax touchscreen, but therefore you have to make some changes and installing the Egalax driver.

I'am using the oeSENC charts and CM93 charts and now these "fly" over the screen.

Regards,

Bram
Nothing special in my config.txt.Only the next things are not basic ( the others are all switched off #)
p { margin-bottom: 0.25cm; line-height: 115%; }



# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on


# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi


# Additional overlays and parameters are documented /boot/overlays/README


# Enable audio (loads snd_bcm2835)
dtparam=audio=on
dtoverlay=w1-gpio


# NOOBS Auto-generated Settings:
hdmi_force_hotplug=1
dtoverlay=vc4-kms-v3d
gpu_mem=128
#dtoverlay=vc4-fkms-v3d


Regards,


Bram
verkerkbr is online now   Reply With Quote
Old 26-02-2018, 00:45   #27
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,106
Re: General Question to Raspberry OpenCPN and OpenGL

Quote:
Originally Posted by verkerkbr View Post
Nothing special in my config.txt.Only the next things are not basic ( the others are all switched off #)
p { margin-bottom: 0.25cm; line-height: 115%; }



# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on


# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi


# Additional overlays and parameters are documented /boot/overlays/README


# Enable audio (loads snd_bcm2835)
dtparam=audio=on
dtoverlay=w1-gpio


# NOOBS Auto-generated Settings:
hdmi_force_hotplug=1
dtoverlay=vc4-kms-v3d
gpu_mem=128
#dtoverlay=vc4-fkms-v3d


Regards,


Bram
With Linux Jessy it also works now.

Swiching on the VC4 driver and upgrade to kernel 4.14.41-V7+

Raise the video memory a little to around 128. In OpenCPN set OpenGL on.

And you have fast video on your screen.

Bram
verkerkbr is online now   Reply With Quote
Old 02-03-2018, 09:38   #28
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
Re: General Question to Raspberry OpenCPN and OpenGL

Hi raspberry users,

my setup is a raspberry 2 with Jessy and the latest kernel (must look wich one), updated with rpi-update.

When I try to update to Stretch (not a clean new Version, try to update the Jessie) I got the problem that after the update the cpu load starts to run t0 99% (without opencpn) just in idle mode.
I think this is cause I use an edimax wifi dongle to build up a lokal wifi for using the pi with a tablet via vnc.
I have some "special" settings and setups cause I use a second wifi dongle for connecting to the harbour wifi. I´,m just too lasy to build it up with a new Stretch-System.
So I use Jessie for the future.

I use OpenGL since the first experimental Hardware accelaration Driver in jessie was launched by the raspberry community.
Since that point I have no issues using it, the only point to know is that when you using OpenGL with hw-acc. you can´t use it with xrdp just with vnc.

I found out that depending on the driver (fkms or kms) I got problems with a fixed bad resolution of the (remote) screen (kms), with the fkms I can use a good (high) resolution and get the same pic and desktop on the hdmi screen and on the tablet via wifi and vnc.

When using oc with oesenc charts and with the daisy AIS-hub and with a simrad 3gRadar connected via Ethernet the cpu load is 30 to 40 %.
Chart panning and zooming is ok, not like on my home pc but fast enough and usable.

Regards

Andreas
Andreas29 is offline   Reply With Quote
Reply

Tags
opencpn, enc


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 3.3.2028 VMH Charts Working but a new OpenGL problem Rasbats OpenCPN 6 06-09-2014 13:49
Comproblem on Raspberry Pi and OpenCPN vagspel OpenCPN 4 26-12-2012 05:01
Raspberry Pi and OpenCPN 3.1.915 spillemw OpenCPN 20 24-09-2012 02:30
OpenGL for OpenCPN bdbcat OpenCPN 72 15-11-2011 00:17
Wanted For Free: OpenCPN + WIN CE/OpenGL-ES CaptGreg Classifieds Archive 1 06-09-2010 19:46

Advertise Here


All times are GMT -7. The time now is 10:05.


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.