Skip to content

Conversation

@AlanRosenthal
Copy link
Contributor

❯ python apps/usb_probe.py --interactive
Unplug your device and press the enter key!
Plug in your device and press the enter key!

ID 2FE3:000B
  Bumble Transport Names: usb:0 or usb:2FE3:000B
  Bus/Device:             001/031
  Class:                  Wireless Controller
  Subclass/Protocol:      1/1 [Bluetooth]

````
❯ python apps/usb_probe.py --interactive
Unplug your device and press the enter key!
Plug in your device and press the enter key!

ID 2FE3:000B
  Bumble Transport Names: usb:0 or usb:2FE3:000B
  Bus/Device:             001/031
  Class:                  Wireless Controller
  Subclass/Protocol:      1/1 [Bluetooth]
````
@AlanRosenthal AlanRosenthal requested a review from barbibulle June 12, 2024 20:28

for device in context.getDeviceIterator(skip_on_error=True):
if interactive:
input("Unplug your device and press the enter key!")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to also support USB hotplug events to re-scan automatically when a device is removed/added, so you don't have to type anything on the keyboard.

'--interactive',
is_flag=True,
default=False,
help='Detech a device by unplugging / replugging it in',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Detech -> Detect

@zxzxwu zxzxwu reopened this Sep 1, 2025
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

Successfully merging this pull request may close these issues.

4 participants