Re: USB serial ports by serial number

2019-11-19 Thread Hans Petter Selasky
On 2019-10-08 16:20, Ed Maste wrote: On Thu, 3 Oct 2019 at 02:43, Oleksandr Rybalko wrote: Hi, Looks like you are lucky guy :) Most of USB-serial devices have "very stable" serial number :) more than 50% have S/N "0123456789". cp210x USB-serial devices are ubiquitous and cheap and it's

Re: USB serial ports by serial number

2019-10-08 Thread Ed Maste
On Thu, 3 Oct 2019 at 02:43, Oleksandr Rybalko wrote: > > Hi, > > Looks like you are lucky guy :) > Most of USB-serial devices have "very stable" serial number :) > more than 50% have S/N "0123456789". cp210x USB-serial devices are ubiquitous and cheap and it's easy to set the serial number. I

Re: USB serial ports by serial number

2019-10-03 Thread Hans Petter Selasky
Hi, Can you try this patch: https://reviews.freebsd.org/D21886 --HPS ___ freebsd-usb@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Re: USB serial ports by serial number

2019-10-03 Thread Hans Petter Selasky
On 2019-10-03 10:13, O'Connor, Daniel wrote: On 3 Oct 2019, at 17:41, Hans Petter Selasky wrote: On 2019-10-03 09:37, O'Connor, Daniel wrote: On 3 Oct 2019, at 17:01, Hans Petter Selasky wrote: On 2019-10-03 08:56, O'Connor, Daniel wrote: Most of USB-serial devices have "very stable"

Re: USB serial ports by serial number

2019-10-03 Thread O'Connor, Daniel
> On 3 Oct 2019, at 17:41, Hans Petter Selasky wrote: > > On 2019-10-03 09:37, O'Connor, Daniel wrote: >>> On 3 Oct 2019, at 17:01, Hans Petter Selasky wrote: >>> On 2019-10-03 08:56, O'Connor, Daniel wrote: Most of USB-serial devices have "very stable" serial number:) more than

Re: USB serial ports by serial number

2019-10-03 Thread Hans Petter Selasky
On 2019-10-03 09:37, O'Connor, Daniel wrote: On 3 Oct 2019, at 17:01, Hans Petter Selasky wrote: On 2019-10-03 08:56, O'Connor, Daniel wrote: Most of USB-serial devices have "very stable" serial number:) more than 50% have S/N "0123456789". It is also allowed to have no serial number.

Re: USB serial ports by serial number

2019-10-03 Thread O'Connor, Daniel
> On 3 Oct 2019, at 17:01, Hans Petter Selasky wrote: > On 2019-10-03 08:56, O'Connor, Daniel wrote: >> Most of USB-serial devices have "very stable" serial number:) >> more than 50% have S/N "0123456789". > > It is also allowed to have no serial number. Yes, that's why I match sernum to

Re: USB serial ports by serial number

2019-10-03 Thread Hans Petter Selasky
On 2019-10-03 08:56, O'Connor, Daniel wrote: Most of USB-serial devices have "very stable" serial number:) more than 50% have S/N "0123456789". It is also allowed to have no serial number. Maybe some kind of "lstty" would do. -l - list all devices -s - match by serial -v - match by

Re: USB serial ports by serial number

2019-10-03 Thread O'Connor, Daniel
> On 3 Oct 2019, at 16:12, Oleksandr Rybalko wrote: > Looks like you are lucky guy :) > Most of USB-serial devices have "very stable" serial number :) > more than 50% have S/N "0123456789". These are either FTDI (or possibly clones..) or a Micropython board so I guess avoiding CH341s is

Re: USB serial ports by serial number

2019-10-03 Thread Oleksandr Rybalko
Hi, Looks like you are lucky guy :) Most of USB-serial devices have "very stable" serial number :) more than 50% have S/N "0123456789". So, sometime you change will do it's job. IMO, better to track hub/port. Thanks. чт, 3 жовт. 2019 о 05:56 O'Connor, Daniel пише: > Hi, > I have several

USB serial ports by serial number

2019-10-02 Thread O'Connor, Daniel
Hi, I have several USB serial ports on a machine and I don't want to rely on attach order to get various programs to talk to the correct serial port. I wrote the following devd script and shell script to create symlinks from cu.${sernum}/tty.${sernum} to the real device nodes. I post it here