Displaying 10 results from an estimated 10 matches for "nutusb_open".
2024 Nov 02
1
Driver with calls to USB functions not linking
Hello again all.
I am trying to use USB functions (non-HID) and I get a linker error
for functions that are in the included usb-common.h file.
Specifically, at the start, these functions:
- warn_if_bad_usb_port_filename
- nutusb_open
- is_usb_device_supported
Clearly the headers are there or I don't think the driver would
compile. Can someone point me in the right direction please?
Thank you,
Bill
Not sure if these USB related lines from the configuration run are
relevant or not:
checking for libregex version via pkg...
2024 Nov 02
1
Driver with calls to USB functions not linking
...<bill at wreassoc.com> wrote:
> Hello again all.
>
> I am trying to use USB functions (non-HID) and I get a linker error
> for functions that are in the included usb-common.h file.
>
> Specifically, at the start, these functions:
> - warn_if_bad_usb_port_filename
> - nutusb_open
> - is_usb_device_supported
>
> Clearly the headers are there or I don't think the driver would
> compile. Can someone point me in the right direction please?
>
> Thank you,
>
> Bill
>
> Not sure if these USB related lines from the configuration run are
> releva...
2009 Jul 10
1
PowerWare USB debug messages
...e commented-out goto.)
Since these messages are at the LOG_ERR level, should we add
usb_strerror() to all of the calls in nut_usb.c?
diff --git a/drivers/nut_usb.c b/drivers/nut_usb.c
index 494a1fa..4ca2691 100644
--- a/drivers/nut_usb.c
+++ b/drivers/nut_usb.c
@@ -165,8 +165,8 @@ usb_dev_handle *nutusb_open(const char *port)
if (usb_clear_halt(dev_h, 0x81) < 0)
{
- upslogx(LOG_ERR, "Can't reset POWERWARE USB endpoint");
- goto errout;
+ upslogx(LOG_ERR, "Can't reset POWERWARE USB endpoint: %s",
usb_strerror());
+ /* go...
2007 May 13
0
No subject
...upslogx(LOG_ERR, "Can't claim USB interface");
}
return ret;
}
void upsdrv_comm_good()
{
nutusb_comm_good();
}
/*
* Initialise the UPS
*/
void upsdrv_initups(void)
{
unsigned char reply[REPLY_PACKETSIZE];
int i;
upsdev = nutusb_open("USB");
/*
* Claim the device
*/
claim_device();
/*
* Read rubbish data a few times; the UPS doesn't seem to
respond properly
* the first few times after connecting
*/
for (i=0;i<5;i++) {...
2007 May 13
0
No subject
...upslogx(LOG_ERR, "Can't claim USB interface");
}
return ret;
}
void upsdrv_comm_good()
{
nutusb_comm_good();
}
/*
* Initialise the UPS
*/
void upsdrv_initups(void)
{
unsigned char reply[REPLY_PACKETSIZE];
int i;
upsdev = nutusb_open("USB");
/*
* Claim the device
*/
claim_device();
- Show quoted text -
/*
* Read rubbish data a few times; the UPS doesn't seem to
respond properly
* the first few times after connecting
*/
for (i=0;i<5;i++) {...
2007 May 13
0
No subject
...upslogx(LOG_ERR, "Can't claim USB interface");
}
return ret;
}
void upsdrv_comm_good()
{
nutusb_comm_good();
}
/*
* Initialise the UPS
*/
void upsdrv_initups(void)
{
unsigned char reply[REPLY_PACKETSIZE];
int i;
upsdev = nutusb_open("USB");
/*
* Claim the device
*/
claim_device();
- Show quoted text -
/*
* Read rubbish data a few times; the UPS doesn't seem to
respond properly
* the first few times after connecting
*/
for (i=0;i<5;i++) {...
2017 Jun 16
0
Unable to use nut-2.7.4 with Eaton 5E1500I USB
...-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -o
bcmxcp_usb bcmxcp_usb.o bcmxcp.o usb-common.o main.o dstate.o
../common/.libs/libcommon.a ../common/.libs/libparseconf.a -lusb-1.0 -lm
-lpthread
bcmxcp_usb.o: In function `nutusb_open':
/builddir/build/BUILD/nut-libusb-1.0/drivers/bcmxcp_usb.c:515: undefined
reference to `libusb_strerror'
/builddir/build/BUILD/nut-libusb-1.0/drivers/bcmxcp_usb.c:504: undefined
reference to `libusb_strerror'
collect2: ld returned 1 exit status
make[1]: *** [bcmxcp_usb] Error 1
libus...
2005 Sep 23
11
trying to use powerware 3110 USB with NUT
Ok, I installed the ups, and installed nut, and /proc/bus/usb/devices says
this
T: Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=06da ProdID=0002 Rev= 0.01
S: Manufacturer=POWERWARE
S: Product=Powerware UPS
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 20mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00
2017 Jun 15
2
Unable to use nut-2.7.4 with Eaton 5E1500I USB
Hi Manuel,
2017-06-14 15:16 GMT+02:00 Manuel Wolfshant <wolfy at nobugconsulting.ro>:
> Hello
>
>
>
> On 06/14/2017 03:32 PM, Arnaud Quette wrote:
>
>
>
> On Jun 7, 2017, at 5:47 AM, Manuel Wolfshant <wolfy at nobugconsulting.ro>
> wrote:
>
>> >
>>> > If that matters, the OS is a fully updated CentOS 6.9 and this
>>>
2017 Apr 28
3
Powercom BNT-2000AP(USB)
Hello all!
Some days ago we received new UPS?Powercom BNT-2000AP with USB interface to replace an old staff and I've spent four last days trying to connect it with NUT. I have a FreeBSD 8.4 box with NUT 2.7.2.
# dmesg|grep -i powercom
ugen0.3: <POWERCOM Co.,LTD> at usbus0
uhid0: <POWERCOM Co.,LTD HID UPS Battery, class 0/0, rev 1.10/0.01, addr 3> on usbus0
uhid0: <POWERCOM