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 12-09-2019, 07:11   #1
Registered User

Join Date: May 2018
Posts: 21
Tracking sensors with OpenCPN and Raspberry PI

Good day,

I would like to track sensors that we deploy using OpenCPN running on a Raspberry PI. What would be the best way to do this?

The sensors will be uploading their GPS locations to a website using GPRS/3G. The Raspberry PI will be running a GPRS/3G modem requesting the data from the website. The area where we operate has good 3G/GPRS coverage.

I thought of making the sensors "AIS" sources on OpenCPN, i.e., programming the OpenCPN software so that the received GPS locations are fed through as AIS sources. Are there better ways to achieve this?

Also, where can I find the documentation for the AIS API?

Any suggestions will be greatly appreciated
Jaco
Jaco Versfeld is offline   Reply With Quote
Old 12-09-2019, 07:24   #2
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Tracking sensors with OpenCPN and Raspberry PI

Quote:
Originally Posted by Jaco Versfeld View Post
Good day,



I would like to track sensors that we deploy using OpenCPN running on a Raspberry PI. What would be the best way to do this?



The sensors will be uploading their GPS locations to a website using GPRS/3G. The Raspberry PI will be running a GPRS/3G modem requesting the data from the website. The area where we operate has good 3G/GPRS coverage.



I thought of making the sensors "AIS" sources on OpenCPN, i.e., programming the OpenCPN software so that the received GPS locations are fed through as AIS sources. Are there better ways to achieve this?



Also, where can I find the documentation for the AIS API?



Any suggestions will be greatly appreciated

Jaco
Jaco,

Unless you write a plug-in then creating AIS messages is the only ready to run method. I created a Python script that creates AIS messages from GPS coordinates. You are welcome to copy it and modify as you need. See https://github.com/transmitterdan/aisconverter
transmitterdan is offline   Reply With Quote
Old 13-09-2019, 00:45   #3
Registered User

Join Date: May 2012
Posts: 1,205
Re: Tracking sensors with OpenCPN and Raspberry PI

My "Ship Driver" plugin uses C++ code ported from TDan's Python script. It takes lat/lon and generates an AIS target.

https://github.com/Rasbats/shipdriver_pi

The file to look at is 'AisMaker.cpp'.

Mike
Rasbats is offline   Reply With Quote
Old 22-09-2019, 23:46   #4
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 511
Re: Tracking sensors with OpenCPN and Raspberry PI

Depends. It is possible to make AIS messages, but this is not 'easy', translate your data into $xxTLL,... messages will show them as radar targets (a small square). However the radar targets can only have a number (0-99) not a name.
__________________
Navigation is know where you are and what to do to get where you want.
But also: Know where you don't want to be and what to do to don't get there.
rooiedirk is offline   Reply With Quote
Old 24-09-2019, 04:09   #5
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,105
Re: Tracking sensors with OpenCPN and Raspberry PI

Quote:
Originally Posted by Jaco Versfeld View Post
Good day,

I would like to track sensors that we deploy using OpenCPN running on a Raspberry PI. What would be the best way to do this?

The sensors will be uploading their GPS locations to a website using GPRS/3G. The Raspberry PI will be running a GPRS/3G modem requesting the data from the website. The area where we operate has good 3G/GPRS coverage.

I thought of making the sensors "AIS" sources on OpenCPN, i.e., programming the OpenCPN software so that the received GPS locations are fed through as AIS sources. Are there better ways to achieve this?

Also, where can I find the documentation for the AIS API?


Any suggestions will be greatly appreciated
Jaco

Hallo Jaco,


How about using SignalK ? It produces data in HTML and can easily transmitted to remote servers.

However I have no experience with this setup. But it seems to my an option.

OpenPlotter on an RPI has an excellent support build-in for SignalK. Beta version 2.00 is running here very well.


Bram
verkerkbr 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
Using sensors of a mobile phone in opencpn Harry99 OpenCPN 2 06-09-2019 23:42
OpenCPN on Raspberry Pi 2 and plugins Andreas29 OpenCPN 5 31-12-2015 04:25
OpenCPN plugin and raspberry Neitsabes OpenCPN 15 31-05-2015 14:39
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

Advertise Here


All times are GMT -7. The time now is 08:14.


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.