Hi,

I haven't decided whether this is a good or terrible idea, so I'm just throwing it out there. If I know that a given 1-wire device serial number is on a given bus, can we use that for mapping things consistently. I am in particular thinking that some masters and switches have serial numbers and are not going to move around in a given setup.

jerry

On 10/06/2014 04:14 PM, Paul Alfille wrote:
Hi Michael,

There are two possible uses for the usb<->tty mapping.

1. Discovery -- find a unique USB device (HobbyBoards, Eclo, etc) and then find the tty port to use.
2. Tune a FTDI device when the /dev/tty port is passed to owfs.

You're right, of course. Probing an anonymous serial device is unsafe.

Paul

On Mon, Oct 6, 2014 at 6:13 PM, Michael Markstaller <m...@elabnet.de <mailto:m...@elabnet.de>> wrote:

    Hi Paul,

    this is very interesting (one has 3x FTDI with 2-4 ports and 7x
    PL2303)
    and so I installed it straight away on several boxes.

    I suffer from this problem, that the kernel (or BIOS or whoever..)
    assigns different Bus/Device-IDs (and therefore tty) to the same
    device
    depending on:
    - cold(power-cycle) or a "warm" reboot
    - order of connection
    - Moon or Sun-Phase, I never found out :p

    My last conclusion was: only a device with a unique
    serial/name/description (like with FTxx) could be matched by a program
    (or udev-rule) to get one&the same /dev/xxx-Entry over all cases.
    It's even worse: Users change hubs, ports, ...

    The same might be sad but true for owfs & ttyUSBx, I wouldn't rely
    on that.
    That being said, I'll test; but my guess is: enumerate the device your
    looking for by other means, not bus/dev-id..

    Michael

    
------------------------------------------------------------------------------
    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
    <mailto: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

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

Reply via email to