Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 16-07-2012, 09: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, 13: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

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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.