xdiegool / bluetooth-profile-3dsp

3D sync from Android
GNU General Public License v2.0
2 stars 1 forks source link

Did you figure out how to make 3dsp.c tool work? #1

Open gpuclub opened 7 months ago

gpuclub commented 7 months ago

I really want to connect to 3d glasses through bluetooth. 3dsp returns Failed to open HCI device. I'll appreciate any help or sample code even outside of the bluez.

46cv8 commented 4 months ago

@gpuclub hey man did you ever figure it out? I'll try to remember to update here if I figure it out first.

gpuclub commented 4 months ago

The only thing I found, but I didn't try it, is this: https://stackoverflow.com/questions/75356585/bluez-where-can-i-find-all-the-definitions-documented-in-doc/75369686#75369686 "Raw HCI This bypasses the BlueZ bluetoothd that is running on a Linux system that is used to coordinate interactions with the Bluetooth hardware. This API is outside of the BlueZ infrastructure so is not documented by the BlueZ project. All the information is available in the Bluetooth Core Specification which runs to about 3,256 pages for the 5.2 version of the spec.

If using this level it is a good idea to stop the Bluetooth service from starting the Bluetooth daemon so they are not conflicting. There is no safety net with HCI so you really, really need to know what you are doing." So my guess is I need to make sure that bluetoothd service should be stopped first to make Raw HCI mode of this 3dsp.c code to work. If you will try it and it works, please share your findings, I'll really appreciate it.

46cv8 commented 4 months ago

@gpuclub I'll let you know what I find, it may take afew months as it isn't top priority right now, I was just doing some reconnaissance :) I have an ubertooth that I may bust out to sniff the protocol once I get some devices running. I'm more capable at reverse engineering a working system probably.

gpuclub commented 4 months ago

That's a good idea. But I feel that if we can run this 3dsp.c through HCI, that will pretty much be all we need.