quaxalber / bluetooth_2_usb

Convert a Raspberry Pi into a HID relay that translates Bluetooth keyboard and mouse input to USB. Minimal configuration. Zero hassle.
MIT License
32 stars 6 forks source link

OSError(19, 'No such device') #112

Closed xucong1018 closed 4 months ago

xucong1018 commented 8 months ago

Hi, I followed your installation instructions and the following error occurred after running it. os: raspbian and Raspberry Pi 4 Model B I hope you'll solve my problem.


ilab@raspberrypi:~ $ service bluetooth_2_usb status ● bluetooth_2_usb.service - Bluetooth to USB HID relay Loaded: loaded (/etc/systemd/system/bluetooth_2_usb.service; enabled; preset: enabled) Active: active (running) since Fri 2024-01-26 15:55:29 CST; 39s ago Main PID: 3065 (bash) Tasks: 2 (limit: 4915) CPU: 2.766s CGroup: /system.slice/bluetooth_2_usb.service ├─3065 bash /usr/bin/bluetooth_2_usb --auto_discover --grab_devices └─3069 python3.11 /home/ilab/project/bluetooth_2_usb/bluetooth_2_usb.py --auto_discover --grab_devices

Jan 26 15:56:07 raspberrypi bluetooth_2_usb[3069]: 24-01-26 15:56:07 [CRITICAL] Connection to Logitech USB Keyboard System Control lost [OSError(19, 'No such device')] Jan 26 15:56:07 raspberrypi bluetooth_2_usb[3069]: 24-01-26 15:56:07 [CRITICAL] Connection to Logitech USB Keyboard Consumer Control lost [OSError(19, 'No such device')] Jan 26 15:56:07 raspberrypi bluetooth_2_usb[3069]: 24-01-26 15:56:07 [CRITICAL] Connection to Logitech USB Keyboard lost [OSError(19, 'No such device')] Jan 26 15:56:07 raspberrypi bluetooth_2_usb[3069]: 24-01-26 15:56:07 [CRITICAL] Connection to HUAWEI Mouse WYN Consumer Control lost [OSError(19, 'No such device')] Jan 26 15:56:07 raspberrypi bluetooth_2_usb[3069]: 24-01-26 15:56:07 [CRITICAL] Connection to HUAWEI Mouse WYN Mouse lost [OSError(19, 'No such device')] Jan 26 15:56:07 raspberrypi bluetooth_2_usb[3069]: 24-01-26 15:56:07 [CRITICAL] Connection to HP HP USB 1000dpi Laser Mouse lost [OSError(19, 'No such device')] Jan 26 15:56:07 raspberrypi bluetooth_2_usb[3069]: 24-01-26 15:56:07 [CRITICAL] Connection to vc4-hdmi-1 lost [OSError(19, 'No such device')] Jan 26 15:56:07 raspberrypi bluetooth_2_usb[3069]: 24-01-26 15:56:07 [CRITICAL] Connection to vc4-hdmi-0 lost [OSError(19, 'No such device')] Jan 26 15:56:07 raspberrypi bluetooth_2_usb[3069]: 24-01-26 15:56:07 [CRITICAL] Connection to Logitech USB Keyboard System Control lost [OSError(19, 'No such device')] Jan 26 15:56:08 raspberrypi bluetooth_2_usb[3069]: 24-01-26 15:56:08 [CRITICAL] Connection to Logitech USB Keyboard Consumer Control lost [OSError(19, 'No such device')]

quaxalber commented 8 months ago

Hey, Sorry to hear you are having issues. Did you check out the Troubleshooting section?

I have only seen OSError 19 when Bluetooth devices were disconnected, out of range, etc. Since all your devices show this, even the hdmi devs, it's likely something different. Please post the content of /var/log/bluetooth_2_usb/install.log

xucong1018 commented 8 months ago

Hold on, I'm re-installing on a clean Raspberry Pi following your instructions.

xucong1018 commented 8 months ago

Hello, it's ready to use after reloading. But after the proxy, the mouse only works on linux, not windows. The keyboard works on both systems. Have you tried it on windows? thank you.

quaxalber commented 8 months ago

Glad that it's working now. For me the keyboard is working for both Linux and Windows. I'm using a Logi MX Keys Mini. Are you still having issues?