This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Serial device not added correctly
#33
Thanks a lot, that was really useful. The udevadm is very verbose but it is what I need because I can get the right attribute where the serials are: ATTRS{serial}=="AQ02Z7EX" and this is also the attribute that the udev rule will use.

The extra problem here was that we were using pyudev to get attributes but tags are not the same as udev tags and they are also different between linux distributions (debian, ubuntu...). So, now we use the udevadm tags which are more consistent.

So, difficult decision to make. The standard says that a serial device must have id vendor, id product and serial but reality is different. Should we penalize those who do things well? If we keep model instead of serial it will not be perfect either because most of the identical devices will also share model. If we go back to serial, most of the GPS devices will have to use port to remember devices when identical devices are present, but more than one GPS is not a normal case.

Now I think that we should go back to serial. Your thoughts?
Reply


Messages In This Thread
RE: Serial device not added correctly - by TVR - 2023-06-06, 06:48 PM
RE: Serial device not added correctly - by yvereg - 2023-06-15, 03:30 PM
RE: Serial device not added correctly - by yvereg - 2023-06-20, 09:15 AM
RE: Serial device not added correctly - by yvereg - 2023-06-20, 02:42 PM
RE: Serial device not added correctly - by yvereg - 2023-06-20, 05:24 PM
RE: Serial device not added correctly - by PaddyB - 2023-06-22, 05:20 AM
RE: Serial device not added correctly - by TVR - 2023-06-28, 07:29 PM
RE: Serial device not added correctly - by Sailoog - 2023-06-29, 09:54 AM
RE: Serial device not added correctly - by TVR - 2023-06-29, 11:14 AM
RE: Serial device not added correctly - by TVR - 2023-06-29, 11:38 AM
RE: Serial device not added correctly - by TVR - 2023-06-29, 11:46 AM
RE: Serial device not added correctly - by TVR - 2023-06-29, 11:43 AM
RE: Serial device not added correctly - by TVR - 2023-06-29, 04:03 PM
RE: Serial device not added correctly - by TVR - 2023-06-29, 05:27 PM
RE: Serial device not added correctly - by TVR - 2023-06-29, 06:49 PM
RE: Serial device not added correctly - by kste - 2023-07-13, 05:01 AM
RE: Serial device not added correctly - by kste - 2023-07-13, 11:14 AM
RE: Serial device not added correctly - by kste - 2023-07-13, 09:36 PM
RE: Serial device not added correctly - by kste - 2023-07-13, 10:38 PM
RE: Serial device not added correctly - by kste - 2023-07-13, 10:53 PM
RE: Serial device not added correctly - by kste - 2023-07-14, 04:49 AM
RE: Serial device not added correctly - by kste - 2023-07-14, 10:13 PM
RE: Serial device not added correctly - by kste - 2023-07-15, 12:43 PM
RE: Serial device not added correctly - by kste - 2023-07-15, 09:50 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)