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

Bluetooth connect with dongle #53

Closed
Mister-SH opened this issue Jul 19, 2022 · 14 comments
Closed

Bluetooth connect with dongle #53

Mister-SH opened this issue Jul 19, 2022 · 14 comments
Labels
fixed fixed

Comments

@Mister-SH
Copy link

Emuelec 4.5
TV-Box with Allwinner H3
Bluetooth dongle - Orico BTA-403. bluetooth 4.0
When I go to settings and try to connect Dualshock 4 nothing happens. Window (where pairing device write) in right up corner just blink.
Bluetooth dongle blink - there is a power on usb 2.0 port. So physically it works

@asakous asakous added enhancement New feature or request help wanted Extra attention is needed labels Jul 20, 2022
@asakous
Copy link
Owner

asakous commented Jul 20, 2022

The kernel that I use in this project is very old and may not work with new devices. (like Dualshock 4).
I have no intention to fix any bluetooth controller problems. since H3 chip it''s old and not worth to fix it.
I am currently use xbox360 wireless controller, it works out of the box.

@Mister-SH
Copy link
Author

In version 4.2 Emuelec try to connect with Dualshock or other bluetooth device and window appears but in version 4.5 window doesn't appear so Emuelec doesn't try to connect via bluetooth with any bluetooth device

@asakous
Copy link
Owner

asakous commented Aug 29, 2022

since I working on another project. I am accidently find out what the problem are.
It will be fixed next release.

@asakous asakous added bug Something isn't working and removed enhancement New feature or request help wanted Extra attention is needed labels Aug 29, 2022
@asakous
Copy link
Owner

asakous commented Sep 1, 2022

@Mister-SH new image uploaded.

@Mister-SH
Copy link
Author

Mister-SH commented Sep 20, 2022

I test new 4.5-1 and issue still exists. But...
I try to connect DS4 via BT from SSH and it connect. So, what we have

  • from ES interface I can't connect DS4 via bluetooth - window just blink once
  • I can connect DS4 by SSH commandline
    When Emuelec loads in left top corner there is a log and there is an error Can't run bluetooth agent (something like this, don't remember exactly)

@asakous
Copy link
Owner

asakous commented Sep 21, 2022

Yes . I think it's a Batocera Bluetooth agent problem. Since newer version of EmuELEC required gobject-introspection package and I just couldn't get it compiled. So the best solution right now is put the Bluetooth connect commands into autostart.sh or custom_start.sh . hopefully someone can fix this compile problem it in near future.

@asakous asakous added the help wanted Extra attention is needed label Sep 21, 2022
@shantigilbert
Copy link

gobject-introspection package and I just couldn't get it compiled.

what was the error? I ran into a few issues with it as well

@asakous
Copy link
Owner

asakous commented Sep 22, 2022

/home/matthew/Neo-EmuELEC-H3/build.EmuELEC-H3.arm-4.5/toolchain/lib/libgobject-2.0.a(gclosure.c.o): In function value_to_ffi_type': gclosure.c:(.text+0x213): undefined reference to ffi_type_uint64'
gclosure.c:(.text+0x237): undefined reference to ffi_type_sint64' gclosure.c:(.text+0x257): undefined reference to ffi_type_uint32'
gclosure.c:(.text+0x26f): undefined reference to ffi_type_pointer' gclosure.c:(.text+0x287): undefined reference to ffi_type_sint32'
gclosure.c:(.text+0x29f): undefined reference to ffi_type_double' gclosure.c:(.text+0x2b7): undefined reference to ffi_type_float'

upgrade gobject ?

gobject-introspection also needs qemu . I guess this problem also exists.

another approach is to use Nuitka the Python Compiler . compile Batocera scripts into portable and executable scripts.

@shantigilbert
Copy link

Sorry I had a different issue, not sure how to fix that one, but it seems like its missing libfifi for whatever reason?

@asakous
Copy link
Owner

asakous commented Sep 28, 2022

@shantigilbert Now I got different error. It seems like pygobject problem. but I get it compiled. not sure why?

Traceback (most recent call last):
File "/usr/bin/batocera/batocera-bluetooth-agent", line 14, in
from gi.repository import GLib
File "/usr/lib/python3.7/site-packages/gi/init.py", line 42, in
from . import _gi
ImportError: cannot import name '_gi' from 'gi' (/usr/lib/python3.7/site-packages/gi/init.py)

@asakous
Copy link
Owner

asakous commented Sep 28, 2022

never mind .
ln -sf _gi.cpython-37-x86_64-linux-gnu.so _gi.so seems fix the problem

@asakous
Copy link
Owner

asakous commented Sep 28, 2022

seems work find now

image

@shantigilbert
Copy link

Yeah that was the issue I was having, glad you figured it out.

@asakous asakous added fixed fixed and removed bug Something isn't working help wanted Extra attention is needed labels Nov 17, 2022
@asakous asakous closed this as completed Aug 21, 2023
@asakous
Copy link
Owner

asakous commented Aug 21, 2023

no repsonse for long time . closed

@asakous asakous reopened this Aug 21, 2023
@asakous asakous closed this as completed Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed fixed
Projects
None yet
Development

No branches or pull requests

3 participants