I don't now. That's why I'm curious to hear about experiences. It should be
easy to build anywhere.
The algorithm used is simple:
1. Recursively search /sys/devices for "busnum" (which seems to indicate a
USB device)
2. Recursively search from each busnum directory for tty[A-Za-z]* (which
indicates a serial device)
3. Choose the longest path for a given tty device.
Paul
On Mon, Oct 6, 2014 at 3:47 AM, Colin Law <clan...@gmail.com> wrote:
> On 6 October 2014 04:30, Paul Alfille <paul.alfi...@gmail.com> wrote:
> > After all the discussion about serial and usb pairing, I created a new
> > little program that does it, called tty2usb
> >
> > http://sourceforge.net/projects/tty2usb
> >
> > Currently it only works on linux, but OSX and freebsd would be useful to
> > add.
> >
> > Example use:
> > paul@hz tty2usb-code$ tty2usb
> > List tty -> USB pairings
> > TTY=ttyUSB0 bus=3 dev=3 USB=0403:6001
> > TTY=ttyUSB1 bus=1 dev=6 USB=0403:6001
> > TTY=ttyUSB2 bus=3 dev=14 USB=0711:0230
> > TTY=ttyUSB7 bus=1 dev=7 USB=1A86:7523
> > TTY=ttyUSB8 bus=1 dev=4 USB=10C4:EA60
> >
> >
> > Once it works on all platforms, I'll incorporate is into owfs to help
> with
> > serial tuning and auto-scanning.
> >
> > I'd really like testing and feedback. It's very easy to use --
> > make
> > sudo make install
> > ttyusb
>
> Does it need udev or other service running?
>
> Colin
>
>
> ------------------------------------------------------------------------------
> Slashdot TV. Videos for Nerds. Stuff that Matters.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
------------------------------------------------------------------------------
Slashdot TV. Videos for Nerds. Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers