danielthor / blink_stick

Control your BlinkStick
MIT License
2 stars 2 forks source link

LIBUSB::ERROR_IO: error TRANSFER_ERROR #11

Open danielthor opened 10 years ago

danielthor commented 10 years ago

I get this error on Mac when data is sent too fast to the BlinkStick. Either it is something in libusb or just something OSX can't handle, in which case some kind of break is needed (a general break or something in methods that sent a lot of data, like the unfinished fade method). @bjoska is not getting this on Ubuntu.

?> bs.fade([255, 0, 0], [0, 255, 0], time: 10)
LIBUSB::ERROR_IO: error TRANSFER_ERROR
    from /Users/Daniel/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/libusb-0.4.0/lib/libusb/dev_handle.rb:471:in `submit_transfer'
    from /Users/Daniel/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/libusb-0.4.0/lib/libusb/dev_handle.rb:447:in `control_transfer'
    from /Users/Daniel/Code/sandbox/blink_stick/lib/blink_stick/color_handler.rb:5:in `color='
[...]
bjonord commented 10 years ago

I would start sifting through the source for libusb.

danielthor commented 10 years ago

Need to find out of this is a ahrdware limitation of BlnkStick or related to libusb. If it's hw releated the gem should have some kind of workaround for this.