search for: usb_control_message

Displaying 2 results from an estimated 2 matches for "usb_control_message".

2010 Jan 06
1
blazer_usb: compatibility with Ippon BackPro UPSes (Phoenix Power Co., Ltd usb-to-serial controller)
...following: - ------------------- cut -------------------------------------- int index = 0; int count = strlen(cmd); while(index < count) { int tosend = ((count - index) > 8) ? 8 : (count - index); char tmp[8]; memset(tmp, 0, sizeof(tmp)); memcpy(tmp, &cmd[index], tosend); int ret = usb_control_message(devfd, 0x21, 0x9, 0x2, 0, tmp, tosend, 1000); if((ret <= 0) || (ret != tosend)) { return_buf[0] = 0; return -1; } index += tosend; } - ------------------- cut -------------------------------------- 6. Read back return string from UPS in one chunk using usb_interrupt_read: - ------------...
2011 Jun 28
1
Windows 2.6.0-1 usbhid-ups driver infinite loop on USB disconnect
I was doing some testing with the 2.6.0-1 beta Windows installer and a Cyber Power CP1350PFCLCD UPS, and ran into an infinite loop in the usbhid-ups driver if the UPS is lost on the UPS bus. This is on a Windows XP SP3 system. USB device access is via libusb 1.2.4.0 (driver mode, not filter) in case that matters. Everything seems to work just fine so far while the UPS is connected (so kudos,