Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need to reseat or reboot after cancelling out #26

Open
mastre opened this issue Aug 17, 2016 · 1 comment
Open

need to reseat or reboot after cancelling out #26

mastre opened this issue Aug 17, 2016 · 1 comment

Comments

@mastre
Copy link

mastre commented Aug 17, 2016

Hey Marc,

Invoking the scanner on Raspbian ARM seems to work, but after I Ctrl-C out the next time I try to run the scanner I get what's seen below, a state I can only clear by either reseating the USB device or rebooting -- is there a better/easier way? Is there a graceful way to end a scan instead of ^C?

~/git/mousejack/nrf-research-firmware$ sudo ./tools/nrf24-scanner.py -c 2
Traceback (most recent call last):
  File "./tools/nrf24-scanner.py", line 35, in <module>
    common.radio.enter_promiscuous_mode(prefix_address)
  File "/home/duke/git/mousejack/nrf-research-firmware/tools/lib/nrf24.py", line 76, in enter_promiscuous_mode
    self.dongle.read(0x81, 64, timeout=nrf24.usb_timeout)
  File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 988, in read
    self.__get_timeout(timeout))
  File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 833, in bulk_read
    timeout)
  File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 936, in __read
    _check(retval)
  File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 595, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 110] Operation timed out
@mepher
Copy link

mepher commented Aug 19, 2016

This might help, as a dirty work around;

http://unix.stackexchange.com/questions/234581/disconnect-and-reconnect-usb-port-via-cli

some c that reset the usb port. works most of the time (on a debian VM too).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants