search for: reportsize

Displaying 8 results from an estimated 8 matches for "reportsize".

Did you mean: report_size
2007 Jan 31
3
Re: [Nut-upsuser] Ablerex 625L USB version
...I have been doing some more testing and I find that if I modify the libusb.c file to set a report size in libusb_get_report to 16 the error messages go away. This is the code as it currently stands: static int libusb_get_report(usb_dev_handle *udev, int ReportId, unsigned char *raw_buf, int ReportSize ) { int ReportSize_test = 16; unsigned char raw_buf_test[ReportSize_test + 1]; int rc; unsigned char *p_raw_buf_test; upsdebugx(4, "Entering libusb_get_report, ReportSize: %i, ReportSize_test: %i",ReportSize, ReportSize_test); if (udev != NULL) {...
2010 Mar 25
1
new TSSHARA SOHO II ups
...atcher_t */ USBDeviceMatcher_t *matcher, int (*callback)(usb_dev_handle *udev, USBDevice_t *hd, unsigned char *rdbuf, int rdlen)); 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); } us...
2007 Aug 23
1
[nut-commits] svn commit r1073 - in trunk: . drivers
...eturn NULL. Mode is MODE_OPEN or MODE_REOPEN. */ > -HIDDevice_t *HIDOpenDevice(hid_dev_handle_t **udevp, HIDDevice_t *hd, HIDDeviceMatcher_t *matcher, int mode) > +HIDDevice_t *HIDOpenDevice(hid_dev_handle_t **udevp, HIDDevice_t *hd, HIDDeviceMatcher_t *matcher, int *mode) > { > int ReportSize; > unsigned char ReportDesc[4096]; > > - if (mode == MODE_REOPEN) { > + if (*mode == MODE_REOPEN) { > #if defined(SHUT_MODE) || defined(SUN_LIBUSB) > /* Cause a double free corruption in USB mode on linux! */ > if (*udevp != NULL) { > @@ -623,7 +674,7 @@ > if...
2007 Jan 26
4
Ablerex 625L USB version
Hi, Is there any further information on this UPS interface? I have an Upsonic UPS that is reporting the same interface, but I cannot make it work or get any sensible information from it. Thanks Jon --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 000706-2, 25/01/2007 Tested on: 26/01/2007 11:00:14 AM avast! is copyright (c) 2000-2007 ALWIL Software.
2007 Jan 26
4
Ablerex 625L USB version
Hi, Is there any further information on this UPS interface? I have an Upsonic UPS that is reporting the same interface, but I cannot make it work or get any sensible information from it. Thanks Jon --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 000706-2, 25/01/2007 Tested on: 26/01/2007 11:00:14 AM avast! is copyright (c) 2000-2007 ALWIL Software.
2018 Feb 16
0
[PATCH 1/3] Skip non-feature HID reports
...or powercom devices). libusb_get_report() has: ret = usb_control_msg(udev, USB_ENDPOINT_IN + USB_TYPE_CLASS + USB_RECIP_INTERFACE, 0x01, /* HID_REPORT_GET */ ReportId+(0x03<<8), /* HID_REPORT_TYPE_FEATURE */ 0, raw_buf, ReportSize, USB_TIMEOUT); Hence, libusb_get_report() always requests the report ID as a feature report, and never uses the report type that was stored. This means that when HIDDumpTree() iterates over all reports that were gathered from in the USB report descriptor, it tries to obtain their values irrespect...
2018 Feb 15
2
[PATCH 1/3] Skip non-feature HID reports
On Feb 3, 2018, at 7:19 PM, Russell King wrote: > > Input and Output reports are used for interrupt endpoints rather than > control endpoints. HIDGetItemData() only ever requests feature > report IDs, and requesting non-feature report IDs as feature IDs may > lead to undesirable results and errors. This one made me scratch my head a bit. I don't think it's unreasonable
2007 Jan 28
0
Fwd: Re: [Nut-upsuser] Ablerex 625L USB version
...> > Using subdriver: EXPLORE HID 0.1 > parsing 00860004 > parsing Flow > hid_lookup_usage: found 84001e > parsing FlowID > hid_lookup_usage: found 84001f > Path depth = 3 > 0: Usage(00860004) > 1: Usage(0084001e) > 2: Usage(0084001f) > Entering libusb_get_report. ReportSize: 13 > typesafe_control_msg: size: 13 > Can't retrieve Report 1 (75): Value too large for defined data type > Path: 00860004.Flow.FlowID, Type: Feature, ReportID: 0x01, Offset: 0, Size: 4 > parsing 00860004 > parsing Flow > hid_lookup_usage: found 84001e > parsing ConfigVolt...