Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 21-10-2014, 04:11   #16
Registered User

Join Date: Oct 2012
Location: Brighton, UK
Boat: Westerly Oceanlord
Posts: 374
Re: Multiplexing NMEA on a router (NMEA over WiFi redux)

Quote:
Originally Posted by Mollymawk View Post
One scenario I haven't tackled yet is connecting the USB serial adaptors after startup. By declaring the serial interfaces as optional in the kplex config file, kplex will load even if the adaptors are not plugged in, but I don't think it will start reading data from them when they are connected. The simple workaround is to reboot the router after connecting the adaptors, if they weren't connected at startup, but ideally I'd like to be able to (re)start kplex when a USB serial adaptor is plugged in.
On Linux (I'm not familiar with OpenWRT) you can re-start kplex when a usb device is plugged in using udev:
Writing udev rules

I'd look at doing something with udev, hotplug2 or whatever covers that functionality on the version of OpenWRT that you're using
__________________

__________________
muttnik is offline   Reply With Quote
Old 21-10-2014, 06:18   #17
Registered User
 
Mollymawk's Avatar

Join Date: Nov 2009
Location: on the high seas
Boat: "Mollymawk" 50ft Steel Ketch
Posts: 149
Re: Multiplexing NMEA on a router (NMEA over WiFi redux)

Quote:
Originally Posted by muttnik View Post
On Linux (I'm not familiar with OpenWRT) you can re-start kplex when a usb device is plugged in using udev:
Writing udev rules

I'd look at doing something with udev, hotplug2 or whatever covers that functionality on the version of OpenWRT that you're using

Thanks Keith, I'll play with that and see what solution I cone up with.

It occurred to me that a nice feature for kplex would be an option to start up even if certain interfaces did not exist, and then to keep polling for them until they did exist. Likewise, if an interface was disconnected it could begin polling for it until it was reconnected.
I think this option would be useful on the desktop, too, not just on routers.

Cheers, Caesar
__________________

__________________
www.yachtmollymawk.com
Mollymawk is offline   Reply With Quote
Reply

Tags
nmea, route

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wifi Router Configuration Question Dockhead Marine Electronics 5 01-04-2014 03:59
3G/Wifi: Locomarine Yacht Router Micro Reviews? Emerald Sea Product or Service Reviews & Evaluations 16 12-02-2014 11:07
Need WiFi Router, Coax and Antenna David M Marine Electronics 16 31-01-2012 17:52
Does a Wireless 3G AND Wifi Input Router Exist ? Fuss Marine Electronics 12 21-02-2011 20:37
WiFi Bullet and Linksys Router Config Meck Marine Electronics 1 17-10-2009 09:03



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


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.