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 16-07-2012, 08:47   #1
Registered User
 
Sail323's Avatar

Join Date: Sep 2010
Boat: Pearson 323
Posts: 52
Sending Data from GPS to two Virtual Ports in Ubuntu 12.04

I'm trying to direct data from my GPS at "/dev/ttyUSB0" to two virtual serial ports created with "socat" to be used by OpenCPN and PolarCOM.

I've set up the virtual serial ports;

max@widget:~$ socat -d -d pty,raw,echo=0 pty,raw,echo=0
2012/07/16 11:32:22 socat[4150] N PTY is /dev/pts/2
2012/07/16 11:32:22 socat[4150] N PTY is /dev/pts/3
2012/07/16 11:32:22 socat[4150] N starting data transfer loop with FDs [3,3] and [5,5]

How do I send data from my GPS at "/dev/ttyUSB0" to my two virtual ports at "/dev/pts/2" and "/dev/pts/3"

It appears to me that I have configured the virtual ports to send data between each other.

John
Sail323 is offline   Reply With Quote
Old 19-07-2012, 12:59   #2
Registered User
 
Sail323's Avatar

Join Date: Sep 2010
Boat: Pearson 323
Posts: 52
Re: Sending Data from GPS to two Virtual Ports in Ubuntu 12.04

I was able to accomplish this using Muplex, a soft NMEA multiplexer by user "marinux". Using the default configuration, OpenCPN connected to a virtual serial port at "/tty/PS0" and PolarCOM connected to 127.0.0.1:22000 (I couldn't get PolarCOM to connect to a virtual serial port for some reason).

Many thanks to marinux!

Muplex - OSD_Depth
Sail323 is offline   Reply With Quote
Reply

Tags
gps


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


Advertise Here


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


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.