Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 30-05-2017, 05:41   #31
Registered User
 
pcmm's Avatar

Join Date: May 2014
Location: Whitby, Canada
Boat: Morgan Out Island 41
Posts: 1,239
Images: 2
Re: Soft Multiplexer for Linux

Quote:
Originally Posted by marinux View Post
Thanks for the e-x-e-l-l-e-n-t OpenCPN. Now we have a powerfull tool to navigate with Linux. For that OS, I have no found a multiplexer as VSPE on Windows. So I have wrote a script SoCat based with the same fonctionnalities (merge and split datas, serial, USB, BT,TCP).
You can download it (GPL) at Muplex - OSD_Depth.
There is also OSD_Depth, display sounder on OSD, less interesting since Dasboard plugin, except for small screens.
Suggestion: a TCP/IP input datas for OpenCPN. GPSD is nice but a little restrictive for no GPS NMEA datas.
Thanks again.
Frank French Guiana

Did you try Kplex? its a linux (raspberry pi) multiplexer exactly for this!
pcmm is offline   Reply With Quote
Old 30-05-2017, 06:40   #32
Registered User
 
marinux's Avatar

Join Date: Dec 2010
Location: Kourou French Guiana South America
Boat: Trismus 37'
Posts: 98
Re: Soft Multiplexer for Linux

Naturally pcmm,
But when I wrote Muplex, in 2010, there was neither kPlex nor implementation of TCP network in OpenCPN.
__________________
Cordialement
Frank Marinux
FY4PS
marinux is offline   Reply With Quote
Old 07-06-2017, 05:04   #33
Registered User
 
marinux's Avatar

Join Date: Dec 2010
Location: Kourou French Guiana South America
Boat: Trismus 37'
Posts: 98
Re: Soft Multiplexer for Linux

Bonjour Jean,

Quote:
Hello,

I use Kplex on Rasberry to convert NMEA flow from 2 * RS 232 and send it
on WiFi. But some NMEA sentence from NMEA seatalk must to be convert for
openCpn.

Your software are better to do that, can we have an Rasberry PI3 version?

Thanks in advance for your answer.

Best regards.
As Muplex is a Linux bash script, it can be used on X86 or ARM as it, without conversion. See the documentation for required depends, alvailable for both architecture.
Any conversion is made by Muplex, so NMEA sentences are "brute" transmitted. Use NMEA plugin converter if you need to adapt your sentences.
__________________
Cordialement
Frank Marinux
FY4PS
marinux is offline   Reply With Quote
Old 09-06-2017, 14:06   #34
Registered User
 
marinux's Avatar

Join Date: Dec 2010
Location: Kourou French Guiana South America
Boat: Trismus 37'
Posts: 98
Re: Soft Multiplexer for Linux

Hi all,

There was a missing file in the package to display muplex in the menu.
Muplex is now repackaged.
__________________
Cordialement
Frank Marinux
FY4PS
marinux is offline   Reply With Quote
Old 11-07-2017, 05:04   #35
Registered User
 
marinux's Avatar

Join Date: Dec 2010
Location: Kourou French Guiana South America
Boat: Trismus 37'
Posts: 98
Muplex + USB outtput

> Hello,
>
> I start to test muplex on raspberry pi.
> My need is to multiplex nmea data from various source to one virtual serial
> (that's working) and also to a usb to serial device plugg on the py
> (ttyUSB).
>
> Is there a way to output to usb to serial device (ttyUSBx) ?
>
> Regards
>
> Emmanuel


Interesting question...
Try modifying the muplex.sh code as it:
Here are the lines concerned:

Code:
# create virtual ports and transfering
   create_vports() {
      socat -u UDP4-DATAGRAM:${mcast_net}:${bind_addr},bind=:${bind_net},reuseaddr,ip-add-membership=${mcast_addr}:127.0.0.1 \
         PTY,link=/dev/ttyPS${1},b${spd_out},"${params_port}",group=dialout,mode=666 &
   }
### remplace /dev/ttyPS par /dev/ttyUSB ###
__________________
Cordialement
Frank Marinux
FY4PS
marinux is offline   Reply With Quote
Old 11-07-2017, 05:29   #36
Registered User

Join Date: Feb 2017
Location: Marseille
Boat: gibsea 28
Posts: 2
Re: Soft Multiplexer for Linux

is this mean that it's not possible to have an output to USB serial and virtual port at same time?

Emmanuel
manu84 is offline   Reply With Quote
Old 11-07-2017, 05:40   #37
Registered User
 
marinux's Avatar

Join Date: Dec 2010
Location: Kourou French Guiana South America
Boat: Trismus 37'
Posts: 98
Re: Soft Multiplexer for Linux

Emmanuel,

In first, try it and give the result. You can also use the control port as in config for virtual output (/dev/ttyPS11) or vice et versa

## port number for control terminal in Muplex-GUI, leave blank if unused
term_port=11

To have virtual output + hardware output by easy way in config file, it need a Muplex rewrite/addon, I think put it on todo list.
__________________
Cordialement
Frank Marinux
FY4PS
marinux is offline   Reply With Quote
Old 11-07-2017, 09:06   #38
Registered User

Join Date: Feb 2017
Location: Marseille
Boat: gibsea 28
Posts: 2
Re: Soft Multiplexer for Linux

Thanks a lot for your fast support!
I will try all of that.

Emmanuel.
manu84 is offline   Reply With Quote
Old 17-07-2017, 09:41   #39
Registered User
 
jram's Avatar

Join Date: Oct 2010
Posts: 71
Re: Soft Multiplexer for Linux

I'm pretty sure you can write this in Node-Red in a few minutes. I lack the resources to test at the moment but I've had a system taking NMEA (through one of my 4 Pi serial ports) since last year - runs flawlessly.

The visual nature of node-red makes it easy to map data from one port to many including serial, network etc.
jram is offline   Reply With Quote
Reply

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nema Multiplexer Needed or Not ? Jimbo2010 Marine Electronics 15 08-12-2010 20:21
OpenCPN and Linux svpresent OpenCPN 26 08-12-2010 07:54
Printing Charts on Linux captsparky OpenCPN 1 24-04-2010 03:15
For Sale: NMEA-0183 Raymarine Multiplexer new $60 Ram Classifieds Archive 0 16-12-2009 09:59
linux or xp uncle_fred Navigation 7 21-08-2006 17:03

Advertise Here


All times are GMT -7. The time now is 15:07.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.