-
Notifications
You must be signed in to change notification settings - Fork 80
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
No battery level for Sony WF-1000XM3 #16
Comments
I assume you tried those tricks that i mentioned? |
No idea how to do it... |
I mean changing the port number from 4 to other numbers below 10 |
When testing ports 6-10 it hangs, then trying to reconnect causes a different error:
After a while it releases the device. |
I can't debug because it don't have that device. You can try putting print statements in |
With Samsung's I tested on port 4 and does display commands, but with Sony's only get |
Is your Sony device connected before running the script? someone in another issue said disconnecting the device before running the script worked for them. |
Yes it's connected at the moment of running the script. With Samsung's I have no problem running the script while playing music. Will try disconnecting. |
Tried again with them disconnected. |
Hmm, this is weird. I have no idea. |
However they connect to play music or any other thing. |
Just chiming in here in case you or anybody else who owns the device wants to investigate further. To add support for the Samsung Galaxy Buds I've captured the traffic from my phone to the ear buds using the "Enable Bluetooth HCI snoop log" in the Android developer menu. (Make sure restart bluetooth afterwards for this to take effect.) Then you should be able to find the recorded traffic somewhere like |
I think I've found how battery percentage is represented. @Bobo1239 how did you send and receive AT commands, did you use Python or any other terminal software? In order do to step-by-step debug. Did you do it from a computer, a phone, etc? |
In my case the AT communication already worked with the Python script from this repo and I could just go from there. For your device it seems that isn't the case unfortunately. I don't really have any experience with bluetooth so don't know why exactly you can't establish a connection. Perhaps you can check the RFCOMM channel number which is used by Android to rule out that error. You can see it in Wireshark when selecting a captured packet and looking at the "Bluetooth RFCOMM Protocol" layer. |
Can't detect which BT channel is, so here's the summary copied from Wireshark: Volume is specified at line 393:
The battery percentage value is (last_number+1)*10. The value provided by last number is the minimum value of the 2 earbuds, not counting the charging case. Example: The companion app from Sony is able to provide the 3 values independently, also happens with Samsung Galaxy Buds except that those don't provide case charge: No idea if those values can be extracted by Wireshark or they use some proprietary encoding. |
I have a MI Bluetooth speaker that connects to the socket but does not send any AT command whatsoever. It sends AT commands to my phone but not to the script. I guess for some devices, it's more complicated than a simple socket connection. It would be great if a Bluetooth expert joined this conversation. |
@TheWeirdDev maybe it's the bluetooth profile. I'm no bluetooth expert either. |
Just wanted to mention I'm having the same issue as @superbonaci with my Sony WH-1000XM3 (over-ear headphones). Can't seem to get connect on any port. Anything I can do to help debug? |
@kred-jon open a new issue and delete your post, this is not related. |
@chaoscreater forget about this script, we need a much better one like https://github.com/ThePBone/GalaxyBuds-BatteryLevel |
Using the port number If you have any comments or questions about this device or a similar Sony device, please open a new issue. |
Same issue as #3:
The text was updated successfully, but these errors were encountered: