I'm going to try to figure this out.
Here is how you can run the Nmea file using Opencpn
AIS Simulation - Run VDR to play AIS Nmea file
This creates a Nmea data stream, using the Rausch.nmea file.
Now I need to send the Nmea data out of OpenCpn to Polauto.
Polauto expects a Nmea data stream coming in on Com3-Com6 at some known baud rate.
What is a Virtual Port?
Older GPS's and Navigation
programs were written for "serial" RS232 ports
or"COM1 COM2 etc" Newer computers
have USB plugs, and may need to use a "Serial to USB" adapter plug
along with a Serial
to USB driver which creates a "Virtual COM Port" which utilizes the USB port. This driver may provide a path for data in Nmea 0183
format to pass from one device to be received by another.
Here is some other information about Creating and using Virtual Ports
AIS Made Easy, Sort Of
by Lew Del -below taken from Lew's writeup.
In this case we are not interested in getting a "diiscriminator" data stream from hardware
, we have the Nmea data file running in OpenCpn with the VDR plugin in "play" mode.
When two programs will not talk to each other directly Virtual Com ports
are often needed. NavMonPc
data and also can create virtual ports, there is a patch for 64 bit windows. Download. it. Tben go to GpsGate Client - Products
and download "Free GpsGate Client For Windows". GPS Gate Client
is intended for sending data from one GPS
to several programs but it integrates itself into NavMon. Install GPS Gate Client
first then NavNonPc
will ask if you want to install Franson Serial Tools
. -Say no, this is what the patch fixed. If, perchance, you have already installed NavMonPc
on your computer you have to uninstall it and the Franson
drivers before doing the new install. See NavMonPc
User's Guide Supplement 1.13 for more information.
Close everything down then open NavMonPC
Go to "File/Connections/Virtual Port A,B,C".
Virtual ports are on the left. We need two ports.
Set "Virtual Serial Port A
" to an unused Com port 7
. Click "Connect" and tick the "Autostart" box.
Do the same for "Virtual Port B
" using a different Com Port number (I used 8).
. Under "Tools/AIS" in the "AIS Data Port" drop down menu select Virtual Port 8
. Tick the Serial Output box, select the other Com Port, Virtual Port 7
and set Baudrate to 38400.
Now to see if it works. In AISMon
click "Replay File" and navigate your way to where you stored the LA_LB_Snippet.wav file. AISMon
should show the following under Demodulator Counts, Syncs: 103, Valid: 99 96%, Errors: 4 4% if it is decoding properly. [We plan on using OpenCpn to play the Nmea file.]
. Click "AIS" on the Tool bar. Click on the little "AIS List" box. If the Virtual port configurations are still visible click "Done". Now go back to AISMon
, replay the wav file and click "Start Monitoring". The NavMonPc AIS
Status box should go green and say 39 targets. Also you will get a listing of all the 39 targets.
to Los Angeles (33deg42min N, 118deg15min W). You will see a bunch of yellow triangles (Ships!). Everything works.
Because the data input is not continuous after a few minutes the programs consider the data out-of-date and it will disappear. Go back to AISMon
and replay the wav file.
Note that no changes are necessary to any of your GPS input settings.
After a fresh boot, open NavMon first to get the virtual ports started, then AISMon and OpenCpn. GPSGate does not need to be started. However it starts itself when the computer boots. I thought this was rather presumptuous of it and disabled it's autorun function.
So in summary, it appears I must uninstall NavMonPC
, install GPS Gate Client
, reinstall NavMonPC
and patch, then set up two Virtual Ports A & B using unused COM 7 & 8, in Polauto
assign COM 7, and in OpenCpn
assign COM 8.
Then in OpenCpn
"play" Rausch.nmea file with VDR plugin. There must be a simpler way to get a nmea data stream into Polauto
Does anyone have a simpler and better technique using the new OpenCpn communications