Cruisers Forum
 


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 22-11-2015, 11:05   #1
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Nmea-Server an alternative to VDR

Transmitter Dan has provided an alternative to VDR which works guite nicely.
I have added the use of Launcher_pi to make it easier on a daily basis.

Here is the writeup under Supplementary Software
Nmea Server using Python Script and Launcher_pi | Official OpenCPN Homepage

The files necessary are found in Opencpn Beta File Thingie rguser rgpass
Download from the Nmea-Server folder. PLEASE Remove ".TXT" from VDRServer1.py.TXT

Launcher_pi for Opencpn Beta v4.1.x is available here
Plugins for OpenCPN 4.1 | Official OpenCPN Homepage

You can also get two of the files below, but remove the ".doc". The other two Nmea files are very large and must be retrieved via Opencpn Beta File Thingie above.
Attached Files
File Type: doc Nmea-Server-Python-Script-README.txt.doc (4.1 KB, 58 views)
File Type: doc VDRServer1.py.doc (891 Bytes, 64 views)
rgleason is offline   Reply With Quote
Old 22-11-2015, 15:19   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Nmea-Server an alternative to VDR

Not to take anyhting away from this Nmea-Server with TDan's Python Script, c:\python27 is 95mb!

NavMonPC is an excellent Nmea tool, a complete jacknife really, and it has some good instrument panels too. If VDR is giving trouble, try using NavMonPC. You can get the Nmea file to play at 1x, 10x and 100x and you just have to get the nmea playing and configure one of the Virtual ports for a given Com Port. Then setup that Com port in Opencpn.
rgleason is offline   Reply With Quote
Old 22-11-2015, 15:22   #3
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Nmea-Server an alternative to VDR

Rick,

I made a few "improvements" and put it all here:

https://github.com/transmitterdan/VDRplayer.git

This probably the best place to keep it as revision history can be tracked.
transmitterdan is offline   Reply With Quote
Old 22-11-2015, 15:48   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Nmea-Server an alternative to VDR

Agreed, but I think the README should have a little of the information that is in the writeup under Supplementary Software
Nmea Server using Python Script and Launcher_pi | Official OpenCPN Homepage

In the README an example with this command with all the paths.
c:\python27\python c:\python27\VDRServer1.py C:\Data-Dart\Nmea\Hakefjord-Sweden.txt 127.0.0.1 2947 .033

Because it is needed if you don't set the path and if you have nmea in a different directory.

I had been thinking how to get the files available and first thought that Sourceforge would be best, ..right in the OpenCPN - OpencpnPlugins files....

I'll add your source at opencpn.org docs and keep this first one up for a little while.
rgleason is offline   Reply With Quote
Old 22-11-2015, 15:49   #5
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Nmea-Server an alternative to VDR

Is there any way to reduce python size? Probably not, particularly if you use it for other things.

I particularly like being able to go into Launcher_pi and just hit one of the files setup. Its pretty convenient.
rgleason is offline   Reply With Quote
Old 22-11-2015, 15:57   #6
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Nmea-Server an alternative to VDR

Also, is there any way to improve VDR?
1. Ability to make it go faster.
2. Ability to have a slider representing the location in the file, so that we can jump to a certain spot and test with that Nmea stream. This would be helpful with AIS testing in particular, but also with others plugins because you can get to better data stream faster.
rgleason is offline   Reply With Quote
Old 23-11-2015, 09:26   #7
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Nmea-Server an alternative to VDR

Quote:
Originally Posted by rgleason View Post
Is there any way to reduce python size? Probably not, particularly if you use it for other things.

I particularly like being able to go into Launcher_pi and just hit one of the files setup. Its pretty convenient.
This tool is mainly for testing so size of Python didn't matter to me. Python will be already installed on most Linux boxes. It is very handy for lots of little odd jobs.
transmitterdan is offline   Reply With Quote
Old 23-11-2015, 16:50   #8
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Nmea-Server an alternative to VDR

It works very nicely and combined with Launcher it can be quite easy to use.
Is there a way to get it to loop the same file?
rgleason is offline   Reply With Quote
Old 23-11-2015, 16:53   #9
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Nmea-Server an alternative to VDR

Quote:
Originally Posted by rgleason View Post
It works very nicely and combined with Launcher it can be quite easy to use.
Is there a way to get it to loop the same file?
On the https://github.com/transmitterdan/VDRplayer repository there should be a file called loop.bat. It is compatible with VDRplayer.py I haven't made a loop.sh for Linux yet. When I get time I will but it is trivial.
transmitterdan is offline   Reply With Quote
Old 23-11-2015, 17:15   #10
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Nmea-Server an alternative to VDR

Thanks
rgleason is offline   Reply With Quote
Old 30-11-2015, 13:26   #11
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Nmea-Server an alternative to VDR

TDan,

What do you think of this tcp-simulator from Signal K?

https://github.com/SignalK/signalk-tcp-simulator

Perhaps another way to skin the cat.
rgleason is offline   Reply With Quote
Old 01-12-2015, 03:15   #12
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: Nmea-Server an alternative to VDR

As far as I can tell it is written for TCP mode but not UDP. It has the file name embedded in the source so it only works with that name. Not a big deal there. It also does not seem to have a way to adjust the playout speed. It requires Java.
transmitterdan is offline   Reply With Quote
Old 01-12-2015, 03:40   #13
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Nmea-Server an alternative to VDR

Your script is better then.
rgleason is offline   Reply With Quote
Old 12-12-2015, 08:41   #14
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
Re: Nmea-Server an alternative to VDR

TDan..
I've tested you NMEA py-script. Very nice and handy, tanks.

You may want to add this tips to the readme file?:
Quote:
"For UDP mode the IP address 127.0.0.1 is also known as localhost and used when sending to a client on the same machine. The IP address of any other machine on the network may be given." To reach all machines within a local network, like a wifi router, use the address 192.168.x.255.
Example for a local net where the router address is 192.168.1.0:
python VDRplayer.py Hakefjord.txt 192.168.1.255 10110 0.05 UDP
Any receiving machine can then use IP address 0.0.0.0 and port 10110 in the connection properties
But please edit my text where needed.

Håkan
Hakan is offline   Reply With Quote
Old 12-12-2015, 14:02   #15
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Nmea-Server an alternative to VDR

Hakan, TDan I added a comment to Connections. OK?

Data Connections | Official OpenCPN Homepage

Maybe add an example for Radar, as illustration?

I can edit this further if you wish.
rgleason is offline   Reply With Quote
Reply

Tags
nmea


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
VDR Plugin SethDart OpenCPN 156 18-04-2024 07:01
OpenCPN not accepting NMEA data from NEXUS server cblake OpenCPN 6 28-06-2013 15:04
AIS Simulation - Run VDR to play AIS Nmea file rgleason OpenCPN 16 12-01-2013 10:28
Server Errors on the Server Errors thread Tom Stormcrowe Forum Tech Support & Site Help 11 24-08-2012 06:51
mistakes about the VDR plugin v0.3 in website xiurong OpenCPN 1 06-08-2012 13:14

Advertise Here


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


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.