<div dir="ltr"><div>Cheers,</div><div><br></div><div> This error message usually deals with a couple of situations:</div><div><br></div><div>1) Actual lack of permissions (POSIX bits in devfs) - usually solved by `udev` or similar subsystem that handles hotplug HW for the OS. Or by running the driver as root and not losing the privileges (user=root in ups.conf) as a temporary fix and check that this is the case at all;</div><div><br></div><div>2) Someone else has hold of the device and libusb can't take it as exclusively as NUT needs (lsof/fuser/... to check if any other programs hold it - maybe another copy of your driver program in debugger etc).</div><div><br></div><div>Happy Thanksgiving,</div><div>Jim<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 26, 2024 at 4:37 AM William R. Elliot <<a href="mailto:bill@wreassoc.com">bill@wreassoc.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Hello again.<br><br>
The USB device table in the driver I am working on has two entries for
the particular vendor ID I am working with, one for each of two product
IDs...0x0001 and 0x0002. The driver properly matches and can open the
device with the 0x0002 product ID. However, running the same driver with
the 0x0001 ups attached matches but fails to open.<br><br>
This is the relevent output following a successful match and trying to
open the device:<br><br>
<font face="Courier New, Courier" size="3">
0.002511<u></u> <u></u>[D2] Checking device
2 of 5 (1234/0001)<br>
0.002564<u></u> <u></u>[D1]
Failed to open device (1234/0001), skipping: Access denied (insufficient
permissions)<br><br>
</font>My expectation would be that either device, once matched, would be
able to be opened and then further steps can be taken to confirm that the
driver is communicating with an expected device.<br><br>
I would appreciate any pointers toward something I may have
missed.<br><br>
Thank you,<br><br>
Bill<br><br>
Happy Thanksgiving to the U.S. folks!<br>
<div id="m_-6725320979215136950DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br><table style="border-top:1px solid rgb(211,212,222)"><tbody><tr><td style="width:55px;padding-top:13px"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td><td style="width:470px;padding-top:12px;color:rgb(65,66,78);font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free.<a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" style="color:rgb(68,83,234)" target="_blank">www.avg.com</a></td></tr></tbody></table><a href="#m_-6725320979215136950_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></div>
_______________________________________________<br>
Nut-upsdev mailing list<br>
<a href="mailto:Nut-upsdev@alioth-lists.debian.net" target="_blank">Nut-upsdev@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev</a><br>
</blockquote></div>