tessel / t1-cli

[UNMAINTAINED] Command line interface to Tessel 1.
Other
25 stars 21 forks source link

LIBUSB_ERROR_OTHER occasionally #118

Open tcr opened 10 years ago

tcr commented 10 years ago

This has happened intermittently on master, retrying works correctly every time. Consistent cause is "long time after I last did a Tessel USB command"

TESSEL! Connected to TM-00-04-f000da30-00674f43-14982586.
INFO Using local file ./out/Release/tessel-firmware.bin
INFO Updating firmware... please wait. Tessel will reset itself after the update

/Users/tim/Code/technical/git/cli/node_modules/usb/usb.js:243
        this.streamTransfers[i].cancel()
                                ^
Error: LIBUSB_ERROR_OTHER
    at InEndpoint.Endpoint.stopStream (/Users/tim/Code/technical/git/cli/node_modules/usb/usb.js:243:27)
    at /Users/tim/Code/technical/git/cli/node_modules/usb/usb.js:158:8
    at Array.forEach (native)
    at Interface.release (/Users/tim/Code/technical/git/cli/node_modules/usb/usb.js:153:18)
    at Tessel.close (/Users/tim/Code/technical/git/cli/src/tessel_usb.js:187:13)
    at Device.<anonymous> (/Users/tim/Code/technical/git/cli/src/commands.js:164:10)
    at Transfer.<anonymous> (/Users/tim/Code/technical/git/cli/node_modules/usb/usb.js:95:15)
make: *** [deploy] Error 8
kevinmehall commented 10 years ago

See if you can reproduce with the TESSEL_USB_DEBUG=4 env-var set.

ghost commented 10 years ago

Me too. What I did:

  1. Unbox Tessel
  2. Update Node version 2a. Install tessel by NPM script
  3. Plug Tessel into USB for the first time
  4. Observe Error: LIBUSB_ERROR_OTHER on firmware update attempt
  5. Try firmware update again
  6. Success

OSX 10.0.4 Node v0.10.30