Displaying 10 results from an estimated 10 matches for "stringidx".
2015 Jun 09
0
libusb_get_string: invalid argument
...BatterySystem.Battery.ConfigVoltage, Type:
Feature, ReportID: 0x04, Offset: 0, Size: 16, Value: 12
1.242090 Path: UPS.PowerSummary.iDeviceChemistry, Type:
Feature, ReportID: 0x2a, Offset: 0, Size: 8, Value: 24
[New Thread 0x40b51460 (LWP 8120)]
Breakpoint 1, libusb_get_string (udev=0x43110, StringIdx=24,
buf=0x40400 <buf> "", buflen=20) at libusb.c:496
496 if (!udev) {
(gdb) c
Continuing.
27.433807 Path: UPS.OutletSystem.Outlet.DelayBeforeShutdown,
Type: Feature, ReportID: 0x15, Offset: 0, Size: 16, Value: 65535
27.450415 Path: UPS.BatterySystem.Test, Typ...
2015 Jun 09
2
libusb_get_string: invalid argument
On Jun 8, 2015, at 8:23 PM, Greg Hersch <hersch.greg at gmail.com> wrote:
> Hi Charles. I patched, reconfigured, remake'd, remake install'd - but
> no change. however, some more likely helpful information below for
> you. Thank you
Odd. Are you sure that the new version of usbhid-ups got installed to the same path you are running? Also, there is no protection against
2015 Jun 10
3
libusb_get_string: invalid argument
On Jun 9, 2015, at 4:55 PM, Greg Hersch wrote:
> (gdb) bt
> #0 libusb_get_string (udev=0x43110, StringIdx=0, buf=0x40204 <buf>
> "", buflen=20) at libusb.c:496
> #1 0x00015330 in HIDGetIndexString (udev=<optimized out>,
> Index=<optimized out>, buf=0x40204 <buf> "", buflen=<optimized out>)
> at libhid.c:407
> #2 0x00012e18 in ups_infova...
2015 Jun 11
2
libusb_get_string: invalid argument
...to the version definition of tripplite-hid.c just to make sure i am working with the updated version.
>
> On Tue, 9 Jun 2015, Charles Lepple wrote:
>
>> On Jun 9, 2015, at 4:55 PM, Greg Hersch wrote:
>>
>>> (gdb) bt
>>> #0 libusb_get_string (udev=0x43110, StringIdx=0, buf=0x40204 <buf>
>>> "", buflen=20) at libusb.c:496
>>> #1 0x00015330 in HIDGetIndexString (udev=<optimized out>,
>>> Index=<optimized out>, buf=0x40204 <buf> "", buflen=<optimized out>)
>>> at libhid.c:407
&...
2005 Sep 13
2
Re: about [ #302111 ] newhidups support for Belkin
...string (for
Belkin devices only) to determine whether it's a UPS.
> - about your comment in newhidups.h (specifically "there is not file
> libusb.h"):
>
> +/* there is not file libusb.h, so we have to declare this "by hand":
> */+int libusb_get_string(int StringIdx, char *string);
>
> => if you mean the nut file that should go with libusb.c, then it's
> hid-usb.h
> (the reason is linked to the old libHID, and it's various backends...)
> => if you mean the header from the libusb project, then it's named usb.h
> and is incl...
2015 Jun 10
0
libusb_get_string: invalid argument
...You will notice i made a change to the version definition of
tripplite-hid.c just to make sure i am working with the updated version.
On Tue, 9 Jun 2015, Charles Lepple wrote:
> On Jun 9, 2015, at 4:55 PM, Greg Hersch wrote:
>
>> (gdb) bt
>> #0 libusb_get_string (udev=0x43110, StringIdx=0, buf=0x40204 <buf>
>> "", buflen=20) at libusb.c:496
>> #1 0x00015330 in HIDGetIndexString (udev=<optimized out>,
>> Index=<optimized out>, buf=0x40204 <buf> "", buflen=<optimized out>)
>> at libhid.c:407
>> #2 0x00...
2005 Oct 26
0
A minor nit to pick
...ue: 4)
......
since the upsdebugx() statements there are at level 3.
May I suggest that the following TRACE statement in in libusb_get_string()
in lubusb.c be changed to level 3:
---------------------------------------------------------------------------
ret = usb_get_string_simple(udev, StringIdx, string, 20); /* sizeof(string)); */
if (ret > 0)
{
TRACE(2, "-> String: %s (len = %i/%i)", string, ret, sizeof(string));
}
---------------------------------------------------------------------------
I know it is minor, bu...
2010 Mar 25
1
new TSSHARA SOHO II ups
...void (*close)(usb_dev_handle *sdev);
int (*get_report)(usb_dev_handle *sdev, int ReportId, unsigned char
*raw_buf, int ReportSize );
int (*set_report)(usb_dev_handle *sdev, int ReportId, unsigned char
*raw_buf, int ReportSize );
int (*get_string)(usb_dev_handle *sdev, int StringIdx, char *buf,
size_t buflen);
int (*get_interrupt)(usb_dev_handle *sdev, unsigned char *buf, int
bufsize, int timeout);
} usb_communication_subdriver_t;
My question is: Can I add a new element called *set_interrupt at the bottom
of usb_communication_subdriver_s struct ? I'm asking this b...
2015 Jun 12
3
libusb_get_string: invalid argument (other usbhid-ups users, please test)
...make sure i am working with the updated version.
>>>
>>> On Tue, 9 Jun 2015, Charles Lepple wrote:
>>>
>>>> On Jun 9, 2015, at 4:55 PM, Greg Hersch wrote:
>>>>
>>>>> (gdb) bt
>>>>> #0 libusb_get_string (udev=0x43110, StringIdx=0, buf=0x40204 <buf>
>>>>> "", buflen=20) at libusb.c:496
>>>>> #1 0x00015330 in HIDGetIndexString (udev=<optimized out>,
>>>>> Index=<optimized out>, buf=0x40204 <buf> "", buflen=<optimized out>)
>&g...
2015 Jun 12
0
libusb_get_string: invalid argument (other usbhid-ups users, please test)
...f tripplite-hid.c just to make sure i am working with the updated version.
>>
>> On Tue, 9 Jun 2015, Charles Lepple wrote:
>>
>>> On Jun 9, 2015, at 4:55 PM, Greg Hersch wrote:
>>>
>>>> (gdb) bt
>>>> #0 libusb_get_string (udev=0x43110, StringIdx=0, buf=0x40204 <buf>
>>>> "", buflen=20) at libusb.c:496
>>>> #1 0x00015330 in HIDGetIndexString (udev=<optimized out>,
>>>> Index=<optimized out>, buf=0x40204 <buf> "", buflen=<optimized out>)
>>>> a...