Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 06-09-2019, 13:56   #1
Registered User

Join Date: Sep 2019
Posts: 15
Using sensors of a mobile phone in opencpn

Hello!

I'm using opencpn on my new Raspberry Pi 4 and it works fine! Thank's to that great program!

I'm using my cellphone (Samsung A5) with a tcp-streaming tool called "NetGPS" which works fine for GPS and Magnetic Orientation.

However my phone offers much more sensors:
- Pressure
- Gravity
- Accelerometer
- Magnetometer
- Gyroskope
- Light
- Orientation (Heel and Pitch)

Is there any possibility to use those sensors in opencpn Dashbord? I would be interested in heel and pitch and pressure?

Thank you for any help!

Harry
Harry99 is offline   Reply With Quote
Old 06-09-2019, 17:51   #2
Senior Cruiser
 
StuM's Avatar

Cruisers Forum Supporter

Join Date: Nov 2013
Location: Port Moresby,Papua New Guinea
Boat: FP Belize Maestro 43 and OPB
Posts: 9,868
Re: Using sensors of a mobile phone in opencpn

It depends on two things.


1. Whether NetGPS can convert those sensors outputs to NMEA0183 sentences
2. Whether OpenCPN can read such sentences.


I think you will find that the answer to both is "No".


For 1 above: Even if NetGPS was capable of reading those outputs, I doubt that it could transmit them as NMEA. See https://gpsd.gitlab.io/gpsd/NMEA.html



For 2 above: see https://opencpn.org/wiki/dokuwiki/do...nmea_sentences
StuM is offline   Reply With Quote
Old 06-09-2019, 23:42   #3
Registered User

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 5,005
Re: Using sensors of a mobile phone in opencpn

Looks like maybe........ But not without a bit of programming.
https://play.google.com/store/apps/d...tone.sensorUDP
If that works, haven't tried it, then you should be able to send the sensor data to the Pi ovee wifi. Then assuming your using the openplotter image on tje Pi with signalk built in you can get at the data in node red and create signalk data and nmea sentences which get sent to opencpn and anything connected to the Pi wifi. And if you install influxdb database signalk can send the data to that as well which is great for charting data like the pressure.
Probably easier than it sounds in node red if you have signalk installed.
conachair is offline   Reply With Quote
Reply

Tags
enc, mob, opencpn, phone

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Using Android Phone as GPS device for OpenCPN on a Mac espa OpenCPN 15 14-02-2016 09:31
New Mobile browsing option | Mobile skin Janet H Forum News & Announcements 7 03-03-2015 19:33
Using B & G sensors with other autopilot "brains" Moontide Marine Electronics 3 16-02-2015 07:31
Mobile Phone GPS to OpenCPN Snowpetrel OpenCPN 12 12-09-2012 10:41

Advertise Here


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


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.