OpenMarine
need to restart NMEA0183 Multiplexer to start GPS Position / Calibrating Compass - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3)
+--- Thread: need to restart NMEA0183 Multiplexer to start GPS Position / Calibrating Compass (/showthread.php?tid=147)



need to restart NMEA0183 Multiplexer to start GPS Position / Calibrating Compass - first317 - 2016-06-20

Hello, first, thank you for your great Work with creating the open plotter Distri.
I have build for my Boat a Chart Plotter with the following Hardware:
Raspberry Pi 3, U Blox 7 GPS USB Dongle, Waveshare 10.1" HDMI Touch, FTDI RS422 Interface, BMP180, MPU9150.
Works so far fine, but i have 2 Problems.
with a fresh bootet RPI i have to go to the openplotter programm on the Tab NMEA0183 and klick on the button restart. after that there are nmea sentences in the Inspector Window.

I have connected a MPU9150 unit on the I2C Bus, how can i calibrate this thing?

I hope somebody can help me.


RE: need to restart NMEA0183 Multiplexer to start GPS Position / Calibrating Compass - Sailoog - 2016-06-22

openplotter version?

Have you run openplotter in debug mode to see if any error is returned?

Press the button "Calibrate". It should be self explanatory but if you find any problem, post here please.


RE: need to restart NMEA0183 Multiplexer to start GPS Position / Calibrating Compass - first317 - 2016-06-22

(2016-06-22, 11:44 AM)Sailoog Wrote: openplotter version?

Have you run openplotter in debug mode to see if any error is returned?

Press the button "Calibrate". It should be self explanatory but if you find any problem, post here please.

Hello Sailoog,
thank you for your reply!

I am using the open plotter 0.80 image.

Sorry, but i dont understand the calibration process. should i move the sensor, or should only wait?


RE: need to restart NMEA0183 Multiplexer to start GPS Position / Calibrating Compass - first317 - 2016-06-27

Hej,
i was now on my Boat and started openplotter in debug mode, but there comes no errors. terminal is returning the following text.
after starting opwnplotter there is nothing in the terminal. The inspector Window tells me in the footer "failed to connect to localhost:10110 error 111 trying to reconnect.
if i press then the restart button on the nmea0183 tab gps works until the next restart the pi. the Same is on the I2C Tab with "reset Weather logging" and also i have to uncheck und check again the "enable ais nmea generation" box .
terminal:

Code:
python /home/pi/.config/openplotter/openplotter.py
signalk-server running at 0.0.0.0:3000

Found 1 device(s):
 0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Tuner gain set to 49.60 dB.
Tuner error set to 30 ppm.
Tuned to 162227000 Hz.
Oversampling input by: 21x.
Oversampling output by: 1x.
Buffer size: 8.13ms
Exact sample rate is: 1008000.009613 Hz
Sampling at 1008000 S/s.
Output at 48000 Hz.
!AIVDM,1,1,,A,139M=qPP000iLgdNu7?P0?vV08=?,0*4C
!AIVDM,1,1,,A,139SQR00?w<tSF0l4Q@>40=v0d0;,0*0F
!AIVDM,1,1,,A,139M=qPP000iLgdNu7?P0?w<06PD,0*3F
!AIVDM,1,1,,A,139SQR00?w<tSF0l4Q@>40=v0d07,0*03
!AIVDM,1,1,,A,339SQR00?w<tSF0l4Q@>40=v0QoC,0*1F
!AIVDM,1,1,,A,H39FWV0lDi@DlT0000000000000,0*5E
!AIVDM,1,1,,A,33uqt60Oi0Pif>lNoffhc@c<00qi,0*66


another big problem for me is. there is no calculating off the COG?

i am so hopefully that you can help me!


RE: need to restart NMEA0183 Multiplexer to start GPS Position / Calibrating Compass - Sailoog - 2016-06-29

It seems that you have a problem with the sripts that initiates all the services (kplex, SDR AIS...) this script is /home/pi/.config/openplotter/startup.py

Try to run this script in debug mode before restarting anything in openplotter to see if there is any error, type:


Code:
python /home/pi/.config/openplotter/startup.py

You will get a long feedback, try to paste here


RE: need to restart NMEA0183 Multiplexer to start GPS Position / Calibrating Compass - first317 - 2016-06-30

Thank you,
that was the hint i needed.
The problem was my mistake, or a fault of my hardware constelation.
I am using a Waveshare 10.1 LCD Monitor with a native resolution from 1024x800. Waveshare says that i have to add the following Lines to the config.txt to get the right resolution.

Code:
max_usb_current=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 1024 600 60 6 0 0 0
if i start the startup script in the terminal which is returning that happend a parsing error in the line "hdmi_cvt 1024 600 60 6 0 0 0"
Do you've got a hint how to fix it? If not, many thanks to you an close the thread.


RE: need to restart NMEA0183 Multiplexer to start GPS Position / Calibrating Compass - first317 - 2016-06-30

Okay,
There is missing a equal sign...
Now the startupscript works fine!
Thanks for helping.
Its my first Rpi project, so i apologyze for my rooky question!