Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Please support our sponsors and let them know you heard about them on CruisersForum.com
Old 16-07-2012, 08:47   #1
Registered User
 
Sail323's Avatar

Join Date: Sep 2010
Posts: 46
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
Posts: 46
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

Thread Tools
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



Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

RV & Travel Trailer Communities

Our RV & Travel Trailer sites encompasses virtually all types of Recreational Vehicles, from brand-specific to general RV communities.

» More about our RV Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002-2012 Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 10:06.


Social Knowledge Networks

Sailing News Delivered to your Email!

Stay up-to-date with the latest cruising news.

unsusbcribe at anytime with one click

Close [X]


ShowCase vBulletin Plugins by Drive Thru Online, Inc.