Displaying 9 results from an estimated 9 matches for "set_report".
Did you mean:
get_report
2018 Jan 11
2
Tripp-Lite BCPERS450 shutdown/restart problems
...t does not know
how to do.
So I monitored the USB port with wireshark (an interesting endeavor
since I didn't start out with any knowledge of USB protocols). But I
have managed to discover that when I ask Tripp Lite's poweralert
software to schedule a UPS shutdown, it does it by using the SET_REPORT
function of the USB HID protocol with ReportType "Feature", ReportID 21
(0x15), and 3 bytes of data which are 0x15 followed by the number of
seconds to wait before shutting down in two bytes, LSB first.
Below I include wireshark packet dissections for two such commands. The
difference i...
2017 Dec 20
3
Tripp-Lite BCPERS450 shutdown/restart problems
Thanks for your help.
From: Charles Lepple <clepple at gmail.com>
Date: Mon, 18 Dec 2017 19:26:56 -0500
This may sound like an apples-to-oranges comparison, but we did uncover an issue with CyberPower UPSes where the delay values needed to be greater than or equal to 60 (seconds), since they were being rounded down to integer numbers of minutes internally:
What was the largest
2018 Jan 12
0
Tripp-Lite BCPERS450 shutdown/restart problems
...:
>
> So I monitored the USB port with wireshark (an interesting endeavor
> since I didn't start out with any knowledge of USB protocols). But I
> have managed to discover that when I ask Tripp Lite's poweralert
> software to schedule a UPS shutdown, it does it by using the SET_REPORT
> function of the USB HID protocol with ReportType "Feature", ReportID 21
> (0x15), and 3 bytes of data which are 0x15 followed by the number of
> seconds to wait before shutting down in two bytes, LSB first.
>
> Below I include wireshark packet dissections for two such co...
2010 Mar 25
1
new TSSHARA SOHO II ups
...integrate
this driver with NUT and I wonder if you could give me some guidance in that
sense. To be more specific: In order to communicate with this UPS both input
and output have to be performed as USB interrupts I/O as this UPS doesn't
recognizes Control IO, so libusb_get_report() and libusb_set_report() will
not work. Looking at libusb.c I realized there's a libusb_get_interrupt()
which can be used to read from the endpoint, however there's no counterpart
libusb_set_interrupt() API and usb_communication_subdriver_t structure
doesn't contain a *set_interrupt element as well:
libusb.h...
2007 Feb 01
2
Re: [Nut-upsuser] Ablerex 625L USB version
...E)
> + {
> + upslogx(LOG_ERR,
> + "set_data_agiler: output string too large");
> + return -1;
> + }
> +
> + memset(report_buf,0,sizeof(report_buf));
> + memcpy(report_buf,str,strlen(str));
> +
> + return usb->set_report(udev,0,report_buf,sizeof(report_buf));
> + }
> +
> + static int get_data_agiler(char *buffer,int buffer_size)
> + {
> + int i,len;
> + char buf[AGILER_REPORT_SIZE*AGILER_REPORT_COUNT+1];
> +
> + memset(buf,0,sizeof(buf));
> +
> + for (i=0;i<AGILER...
2007 Jan 23
2
Voltage override in megatec and megatec-over-usb [was: Re: nut-2.0.5 megatec + Online Xanto]
On 1/23/07, Henning Brauer <hb-nut@bsws.de> wrote:
> good new first: the megatec driverin 2.0.5 now works with the Online
> Xanto S3000R here - well, for the very basics.
>
> the UPS has NO way ofidentifying itself. It also does not respond to
> the power ratings query ("F"). I previously used a hacked up fentonups
> driver. This means the driver cannot figure out
2006 Dec 05
3
megatec over USB - new driver patch
...REPORT_SIZE];
+
+ if (strlen(str)>AGILER_REPORT_SIZE)
+ {
+ upslogx(LOG_ERR,
+ "set_data_agiler: output string too large");
+ return -1;
+ }
+
+ memset(report_buf,0,sizeof(report_buf));
+ memcpy(report_buf,str,strlen(str));
+
+ return usb->set_report(udev,0,report_buf,sizeof(report_buf));
+}
+
+static int get_data_agiler(char *buffer,int buffer_size)
+{
+ int i,len;
+ char buf[AGILER_REPORT_SIZE*AGILER_REPORT_COUNT+1];
+
+ memset(buf,0,sizeof(buf));
+
+ for (i=0;i<AGILER_REPORT_COUNT;i++)
+ {
+ len = usb->get_inte...
2020 Oct 17
10
[RFC] treewide: cleanup unreachable breaks
...ERFACE) << 8
| HID_REQ_GET_PROTOCOL):
VDBG(cdev, "get_protocol\n");
length = min_t(unsigned int, length, 1);
((u8 *) req->buf)[0] = hidg->protocol;
goto respond;
- break;
case ((USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE) << 8
| HID_REQ_SET_REPORT):
VDBG(cdev, "set_report | wLength=%d\n", ctrl->wLength);
goto stall;
- break;
case ((USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE) << 8
| HID_REQ_SET_PROTOCOL):
VDBG(cdev, "set_protocol\n");
if (value > HID_REPORT_PROTOCOL)
@@ -542,11 +53...
2020 Oct 17
10
[RFC] treewide: cleanup unreachable breaks
...ERFACE) << 8
| HID_REQ_GET_PROTOCOL):
VDBG(cdev, "get_protocol\n");
length = min_t(unsigned int, length, 1);
((u8 *) req->buf)[0] = hidg->protocol;
goto respond;
- break;
case ((USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE) << 8
| HID_REQ_SET_REPORT):
VDBG(cdev, "set_report | wLength=%d\n", ctrl->wLength);
goto stall;
- break;
case ((USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE) << 8
| HID_REQ_SET_PROTOCOL):
VDBG(cdev, "set_protocol\n");
if (value > HID_REPORT_PROTOCOL)
@@ -542,11 +53...