-
Notifications
You must be signed in to change notification settings - Fork 197
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
Connecting to linux #267
Comments
I don't have access to a Ubuntu machine, or any other Linux environment at the moment If you provide more information, perhaps @LeeNX might be able to weigh in |
Thanks for the reply! |
update: The ubuntu machine recognises the ESP as a joypad but when it connects it suddenly sees it as an unknown bluetooth device. |
When I tested last and was collecting notes, I was playing on RetroPie v4.7, I think it was. I need to setup an Ubuntu box for testing, because I need to find out if all the new features are supported and if not in place, how and where to get updated. @Nostik-27 What version Ubuntu and which CPU platform, thou I think that should be less of an influence. Maybe which Desktop environment? The bluetooth helper might not what device it is. If you up for some command line info collection, open a terminal and let's see what input devices you have. following should list your input devices
if I remember correctly, you should see something like Another idea, have you tried the Browser Based Gamepad Test using Chrome? I don't think FireFox has the webHID stuff enabled. Some very old notes, but might not be helpful today, but maybe give you some ideas - https://github.com/LeeNX/ESP32-BLE-Gamepad/tree/docs-rpi#troubleshooting |
It doesnt even recognise it as an input device. I'm using ubuntu 20 on an NVIDIA jetson. |
What version of BlueZ do you have installed? I can't find which kernel version that the Jetson has installed by default, could you also possible provide the kernel version, thou I think it's more BlueZ that does the device to input. I will try and get an older Raspberry Pi up with older Debian and see if there is anything else I can suggest. |
The Kernel is 5.15.136-tegra and the version of bluez is 5.64 |
Two more things to look at, is there any errors in your logs? If you run |
Just done this and get this error: |
I would say there is a bug in your I don't know how big a problem it is to upgrade? The next idea I have is a self-compile of BlueZ, but that could be a big ask. |
unfortunately, its not possible to upgrade to 6.1 since its for a university project and my other groupmates depend on this for compatibility. I think I may have to look for an alternate approach. |
Have you tried ESP32-BLE-CompositeHID? |
Yes, and unfortunately the same outcome. |
What about an earlier version of this library before NimBLE was used as the default? The final official version before that is here - v3.1: A later non-official 5.1 version is here: Check the corresponding example folder as things have changed since those releases |
A path forward, would be to test if any Bluetooth devices actually work. Then check if BLE devices possible work. Depending on your requirements, maybe the a project base off ESP32-BLE-Keyboard might work? If you really up for testing, possible a project base on ESP32-NimBLE-Keyboard, thou it's pretty old. Please let us know how it goes. Best of luck. |
I was going to suggest rolling back to an older deb, seen that helped something people, but when I looked up the BlueZ package for Ubuntu 20.04, seems that last package was for 5.53 - https://code.launchpad.net/ubuntu/focal/arm64/bluez I am guessing the Jetson distro has newer packages and would not be an easy thing to roll back. I am out of ideas. |
I’m away for a few days now, but I will get back to trouble shooting next week and let you know how it goes. Thanks for all your help! |
when attempting to connect the esp 32 to ubuntu, it is not recognised as a gamepad, although it does appear in the bluetooth manager. It simply shows as an unknown device. Works perfectly on windows, and have used it to play some games. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: