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.

Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 2,080
» Latest member: mrm
» Forum threads: 989
» Forum posts: 6,600

Full Statistics

Online Users
There are currently 54 online users.
» 6 Member(s) | 46 Guest(s)
Bing, Google, AliceJ21, Drac, e-sailing, radames, Vamonos, Vic

Latest Threads
Vexilar Sonar
Forum: Feature Requests
Last Post: keithwhite
37 minutes ago
» Replies: 0
» Views: 6
Signalk MarineTraffic Rep...
Forum: General discussion
Last Post: Luckbert
3 hours ago
» Replies: 3
» Views: 55
Temperature Value not sho...
Forum: How do I...?
Last Post: PaddyB
5 hours ago
» Replies: 4
» Views: 50
PyPilot doesn't work afte...
Forum: General discussion
Last Post: jim321
6 hours ago
» Replies: 3
» Views: 39
Suitable ESCs
Forum: General discussion
Last Post: nvelthuijsen
9 hours ago
» Replies: 5
» Views: 117
Minor bug in OP tab "Seri...
Forum: Bug Reports
Last Post: Didier B
Yesterday, 12:17 PM
» Replies: 0
» Views: 33
connect a bluetooth speak...
Forum: How do I...?
Last Post: Didier B
Yesterday, 12:07 PM
» Replies: 6
» Views: 117
openplotter with nasa ais...
Forum: How do I...?
Last Post: rl82
Yesterday, 11:05 AM
» Replies: 16
» Views: 238
Error when updating openP...
Forum: Bug Reports
Last Post: Sailabout
Yesterday, 05:50 AM
» Replies: 4
» Views: 73
problem with signalk
Forum: Bug Reports
Last Post: Coltuyn
Yesterday, 04:36 AM
» Replies: 11
» Views: 301

 
  High Python CPU usage on start
Posted by: RedRyder - 09-03-2018, 08:53 AM - Forum: Bug Reports - No Replies

Hi, all-

I have been experiencing high Python CPU usage on OpenPlotter startup.

Here is my configuration:
OpenPlotter 1.1.0alpha
Raspberry Pi 3B+

Devices connected:

Output as requested:
Code:
pi@openplotter:~ $ openplotter
No IMU detected
No pressure sensor detected
No humidity sensor detected

Condition:
When I start/restart the Raspberry PI, there is high CPU usage after startup.  When I look at what's causing it using htop (or top) here is what I see:

Code:
pi@openplotter:~ $ htop

 1  [||||||                                                                8.1%]   Tasks: 80, 84 thr; 2 running
 2  [|||||||||||||||||||||||||||||||                                      41.5%]   Load average: 2.54 2.14 1.38
 3  [||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%]   Uptime: 00:15:37
 4  [|||||||||||                                                          14.1%]
 Mem[||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||   338M/927M]
 Swp[                                                                 0K/100.0M]

 PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
1345 pi         20   0  102M 63032 24644 S 99.8  6.6 14:46.64 python /home/pi/.config/openplotter/SK-base_d.py
1444 pi         20   0  102M 63032 24644 R 99.8  6.6 14:39.23 python /home/pi/.config/openplotter/SK-base_d.py
 364 pi         20   0  174M   97M 22608 S 22.7 10.5  4:26.65 node /usr/bin/signalk-server -c /home/pi/.signalk
 603 root       20   0  181M 63856 30724 S 13.0  6.7  1:56.27 /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
1447 pi         20   0  167M 82692 51504 S 11.7  8.7  2:02.58 opencpn
1623 pi         20   0  4672  3220  2264 R  2.6  0.3  0:04.50 htop
1282 pi         20   0  2312  1644  1160 S  1.9  0.2  0:14.31 analyzer -json -si
1284 pi         20   0  1828   320   256 S  1.3  0.0  0:10.80 actisense-serial /dev/ttyOP_due1
1094 pi         20   0  135M 23504 18896 S  0.6  2.5  0:05.97 lxpanel --profile LXDE-pi
 709 root       20   0 10880  7824  7328 S  0.0  0.8  0:05.95 /usr/bin/vncagent service 14
 413 pi         20   0  174M   97M 22608 S  0.0 10.5  0:04.89 node /usr/bin/signalk-server -c /home/pi/.signalk
 806 minidlna   39  19 96088  6908  4100 S  0.0  0.7  0:00.05 /usr/sbin/minidlnad -f /etc/minidlna.conf -P /run/minidlna/minidlna.pid
 107 root       20   0 35216  4892  4440 S  0.0  0.5  0:01.65 /lib/systemd/systemd-journald
 410 pi         20   0  174M   97M 22608 S  0.0 10.5  0:04.77 node /usr/bin/signalk-server -c /home/pi/.signalk
 412 pi         20   0  174M   97M 22608 S  0.0 10.5  0:04.70 node /usr/bin/signalk-server -c /home/pi/.signalk
 426 root       20   0 23748  2556  2092 S  0.0  0.3  0:00.15 /usr/sbin/rsyslogd -n
1603 pi         20   0 11660  3384  2652 S  0.0  0.4  0:00.10 sshd: pi@pts/1
 411 pi         20   0  174M   97M 22608 S  0.0 10.5  0:04.60 node /usr/bin/signalk-server -c /home/pi/.signalk
1438 pi         20   0 44132   512   432 S  0.0  0.1  0:00.51 kplex
   1 root       20   0 27284  6372  4976 S  0.0  0.7  0:04.63 /sbin/init
 367 messagebu  20   0  6624  3684  3096 S  0.0  0.4  0:00.47 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
1442 pi         20   0 44132   512   432 S  0.0  0.1  0:00.30 kplex
1052 pi         20   0  174M   97M 22608 S  0.0 10.5  0:00.03 node /usr/bin/signalk-server -c /home/pi/.signalk
 479 root       20   0 27932 17980 12008 S  0.0  1.9  0:36.65 /usr/bin/vncserver-x11-core -service
 408 root       20   0  2948  1752  1344 S  0.0  0.2  0:00.03 /sbin/dhcpcd -q -b
1458 pi         20   0 44132   512   432 S  0.0  0.1  0:00.14 kplex
1391 pi         20   0 28544 15668  7044 S  0.0  1.7  0:03.97 python /home/pi/.config/openplotter/read_sensors_d.py
 777 minidlna   20   0 96088  6908  4100 S  0.0  0.7  0:00.07 /usr/sbin/minidlnad -f /etc/minidlna.conf -P /run/minidlna/minidlna.pid
1053 pi         20   0  174M   97M 22608 S  0.0 10.5  0:00.03 node /usr/bin/signalk-server -c /home/pi/.signalk
 401 avahi      20   0  6404  2796  2488 S  0.0  0.3  0:00.30 avahi-daemon: running [openplotter.local]
 758 root       20   0 15212  5844  5052 S  0.0  0.6  0:00.07 /usr/lib/ipsec/pluto --nofork --secretsfile /etc/ipsec.secrets --ipsecdir /etc/ipsec.d --interface=wlan0
 400 root       20   0 23748  2556  2092 S  0.0  0.3  0:00.28 /usr/sbin/rsyslogd -n
 129 root       20   0 14596  3308  2548 S  0.0  0.3  0:00.76 /lib/systemd/systemd-udevd
 349 systemd-t  20   0 17280  3664  3268 S  0.0  0.4  0:00.01 /lib/systemd/systemd-timesyncd
F1Help  F2Setup F3SearchF4FilterF5Tree  F6SortByF7Nice -F8Nice +F9Kill  F10Quit

I'm not sure what's causing this. I can kill the process, and everything *seems* to operate fine until the next reboot.

I suspect it might have something to do with some sort of signal K plugin, but I'm not sure what. I saw this condition before, and started fresh with a new installation of OpenPlotter. It worked fine for a couple of days, but then started the behavior again.

Help, please!


  Votación dominio nuevo foro genérico náutico en castellano
Posted by: Sailoog - 09-02-2018, 02:19 PM - Forum: Español - Replies (26)

Votación abierta para la elección del nombre del foro nuevo.

This poll is only for Spanish speakers and is not related to openmarine forum or any of its projects. We are helping to build a new generic nautical community for Spanish speakers. Openmarine will continue to be the official support site for OpenPlotter and other open-source projects.


  Logging battery amps
Posted by: PaddyB - 08-31-2018, 07:58 AM - Forum: How I did it - Replies (8)

This was a bit of a surprise! Fitted an INA219 current sensor just across the battery monitor shunt not expecting too much, but turns out it's really quite accurate. No calibration tweaks, just multiplied the mV across the shunt by 10,000 to get to amps and it tracks very well against the battery monitor and a DC clamp meter so maybe accurate down to +/- 100mA or so. Sends the reading as signalk to Openplotter where it gets logged in InfluxDB and viewed on Chronograf.  I'll stick it up on github at some point & post a link. 

Been watching this more than youtube  Cool Big Grin

current = shuntvoltage * -10000;  

[Image: mCP65hw.png]

[Image: Ij9RANx.png]


  Conexion WiFi
Posted by: eti - 08-30-2018, 03:30 AM - Forum: Español - Replies (2)

Hola chicos,

He intentado todo y no consigo que mi Rpi3 se conecte via wifi, con cable ethernet no tengo ningun problema, el AP tambien me funciona bien , pero no la wifi. Segun el manual con esta version y la Rpi3 se puede compartir AP y Wifi a la vez.
Se os ocurre que puedo estar haciendo mal? en la pestaña de Network he probado todas las opciones, y decir tambien que ceo recordar que el primer dia si que me funciono .....

Gracias
eti


  OSD sentence from navigation.headingmagnetic incorrect
Posted by: looper - 08-29-2018, 10:31 AM - Forum: How do I...? - Replies (4)

Compass Heading

Version: nOObs 1.0
HW: RPi 3

Trying to get data from IMU to output to a NMEA repeater.  Signal K sees the correct heading information, however the NMEA out stream shows a completely different number.

Image 1 shows the NMEA output of 4.8deg on the OSD stream

Image 2 shows navigation.headingtrue and navigation.headingmagnetic to be the correct numbers of roughly 270deg

Image 3 shows the configuration for the OSD stream in NMEA1083 config

What am I doing wrong that is causing the 270deg to be translated to 4deg?



Attached Files Thumbnail(s)
           

  VNC - cannot currently sho desktop
Posted by: wanni - 08-28-2018, 08:37 AM - Forum: General discussion - Replies (2)

After upgrading last evening and rebooting several times. everything worked fine. Today, my vnc shows this message "cannot currently show desktop".

OP is up an running
login with ssh is possible
WLAN is up (AP Mode)

wanni


  Cmap93 y MAC
Posted by: Noruego - 08-27-2018, 01:24 PM - Forum: Español - Replies (6)

Hola , estoy dias ha venido ha navegar y visitarme un amigo canario..y estamos disfrutando de lo lindo por los fiordos...
Ha visto el opencpn y se lo ha descargado en su Mac....pero no conseguimos las cmap93 para Mac.....yo tengo un pendrive con mis cartas cmap93con un enlace pero  los ficheros no son ejecutable por Mac ...

Algún link para engancharnos y descargarlas en su Mac 

Gracias foreros


  OpenCPN output connections help
Posted by: affinite - 08-26-2018, 03:08 AM - Forum: How do I...? - Replies (2)

I cannot get the basic OpenCPN connection Output settings to work properly
I can get data such as GPS and AIS into OCPN but when I try to follow a route the CPU utilization jumps to 100% and corrupted RMB sentences are sent and the Pi eventually hangs.
Ive tried settings as per the manual but that doesnt seem to work.

My OCPN config is as follows
Net, localhost:30330, Priority 1, TCP , Input , Filters:In None Out None
Net, localhost:10110, Priority 1, UDP , Output , Filters:In None Out Send RMB
My OP config is as follows
system UDP input on port 10110
signalK TCP output on port 30330

OpenPlotter ver 1.1.0 alpha
OpenCPN ver 4.8.6

You'll notice that I'm a Networking novice and Im sure this is pretty basic stuff but I cant get it !
Thanks


  Logging
Posted by: barney2074 - 08-25-2018, 09:43 PM - Forum: How do I...? - Replies (7)

Hello,

I would like to log data during races, and in an attempt to do this I have manually edited kplex.conf as follows:

[file]
name=log
filename=/home/pi/logs/nmea.log
direction=out
append=yes
eol=n


This log file contains data just from the IMU, but not other data such as GPS, boat speed, wind speed/direction etc (which is what I want in the log)
This data is obtained through an Actisense NGT-1- and I can see this data- say in OpenCPN using port 10110.

I am guessing that the problem might be that this data is coming straight from SignalK and bypassing Openplotter ?

If someone can help me, I would be thankful


Andrew


  NMEA data export in OpenCPN 1.1.0 alpha
Posted by: Ewald Harmsen - 08-24-2018, 12:28 PM - Forum: How do I...? - Replies (2)

Hi all, I just moved from the old openplotter to the latest version on my RPI3.

In OpenCPN I used to have 1 data import connection and one export connection by default.

In the new OpenCPN, I only have a import. As I want to export my route data to my GPS repeater and autopilot as NMEA, I want to have an export as well.
Which address should I use for that?