I’m putting together a BlinkStick server so many apps can send a blink request without collisions.
I have the module written and I’m currently testing with a single app on a single machine sending a single command, so there cannot be any collisions.
I send the command, the module picks it up and sends a _stick.blink(blah…) command, there is no blink at all, and after sending a couple of commands I get the following error.
Can you please explain what’s going on here?
Thanks.
Traceback (most recent call last):
File “/mybin/blinkserver”, line 43, in stickon
st.blink(red=rr, green=gg, blue=bb, name=None, index=i, repeats=1, delay=dd)
File “/usr/local/lib/python2.7/dist-packages/blinkstick/blinkstick.py”, line 689, in blink
self.set_color(channel=channel, index=index)
File “/usr/local/lib/python2.7/dist-packages/blinkstick/blinkstick.py”, line 341, in set_color
self._usb_ctrl_transfer(0x20, 0x9, report_id, 0, control_string)
File “/usr/local/lib/python2.7/dist-packages/blinkstick/blinkstick.py”, line 244, in _usb_ctrl_transfer
return self.device.ctrl_transfer(bmRequestType, bRequest, wValue, wIndex, data_or_wLength)
File “/usr/local/lib/python2.7/dist-packages/usb/core.py”, line 711, in ctrl_transfer
self.__get_timeout(timeout)
File “/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py”, line 836, in ctrl_transfer
timeout))
File “/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py”, line 571, in _check
raise USBError(_str_error[ret], ret, _libusb_errno[ret])
USBError: [Errno 32] Pipe error