-
Notifications
You must be signed in to change notification settings - Fork 10
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
Send BOTH sides IMU data, including raw accelerometer #4
Comments
This is the only data I can request from the earbuds. I don't have any further control over it. Also, I didn't bother reverse-engineering the whole code for all the calculations from Samsung's official app. They have additional logic and also handle particular Bluetooth messages with calibration data. My code doesn't do any of this; it just decodes and outputs the raw quaternion without special post-processing. I'm pretty sure that Samsung has some way to auto-adjust the data when it switches from right or left. I recommend decompiling the official app with JADX to check how Samsung has implemented this. Some parts of the code are built into a native shared JNI library though. You can also enable a debug mode for the 360° feature in the official app by creating these (empty) files in I'll check Samsung's implementation, but no guarantees if I can manage to reimplement it properly. I've wanted to port the 360° effect to Linux for some time, so I'll give it a shot. |
I tried with TWO buds pro, both using the RIGHT earbud and I can get both data simultaneously. |
While you can't prevent the earbuds from changing the primary earbud (as far as I know), you could send a special Bluetooth message that can select the primary earbud: To detect if the primary earbud changed, you can listen to status update messages, which contain information about the primary earbud. Then you could send a |
By default, it starts by using the RIGHT earbud (quaternion).
Sometimes, there is a bug where the RIGHT earbud will suddenly stop sending IMU data, and it switches to use the LEFT earbud instead.
I wonder if you can update it so that it sends BOTH sides IMU at the same time?
If possible, could you also add sending raw accelerometer data (xyz)?
Thank you very much.
The text was updated successfully, but these errors were encountered: