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

Headset Reports #29

Open
Plutoberth opened this issue Feb 9, 2021 · 79 comments
Open

Headset Reports #29

Plutoberth opened this issue Feb 9, 2021 · 79 comments

Comments

@Plutoberth
Copy link
Owner

Plutoberth commented Feb 9, 2021

Please post your experiences with the software here.

Headset:
Client version:
OS:
Description:

@Plutoberth
Copy link
Owner Author

Plutoberth commented Feb 9, 2021

Headset: WH-1000-XM3
Client version: v1.0.2
OS: Windows 10
Description: Fully works :)

@Plutoberth Plutoberth pinned this issue Feb 9, 2021
@templeman
Copy link

Headset: WH-1000-XM4
Client version: v1.1.1
OS: Windows 10
Description: Works with minor caveats.

In my testing the XM4s do work on Windows 10. I was able to successfully connect, adjust ambient sound levels, and toggle the Focus On Voice setting. I did, however, encounter an issue where the app would fail to complete a command with the Invalid checksum! error. This did not happen in a predictable way and I was not able to reproduce it with consistency, but it did happen more than once.

@emadzz
Copy link

emadzz commented Mar 8, 2021

Headset: WH-1000-XM4
Client version: v1.1.1
OS: macOS Big Sur (11.2.2)
Description: I can connect but never able to adjust the ambient sound level or toggle the "Focus on Voice" option.

  1. Able to successfully connect
  2. I can increase the ambient sound level without getting any error, but it doesn't seem to actually change the setting on the headphones.
  3. The "Focus on Voice" option is enabled, but when I check I get "Unexpected error occurred and disconnected. Invalid checksum!".
  4. Reconnecting and adjusting the ambient sound level up or down raises the same error.

I didn't have the time to check the entire repo, but if there's a guide or tips on reverse engineering the Android client I may be able to help faster on this.

@Plutoberth
Copy link
Owner Author

Headset: WH-1000-XM4
Client version: v1.1.1
OS: macOS Big Sur (11.2.2)
Description: I can connect but never able to adjust the ambient sound level or toggle the "Focus on Voice" option.

1. Able to successfully connect

2. I can increase the ambient sound level without getting any error, but it doesn't seem to actually change the setting on the headphones.

3. The "Focus on Voice" option is enabled, but when I check I get "Unexpected error occurred and disconnected. Invalid checksum!".

4. Reconnecting and adjusting the ambient sound level up or down raises the same error.

Those issues seem very common on XM4s, but sometimes people can send a few messages successfully, so this is pretty perplexing.

I didn't have the time to check the entire repo, but if there's a guide or tips on reverse engineering the Android client I may be able to help faster on this.

I used jadx-gui to decompile the app and export the decompilation to files. Then most of the work is to read the code and rename stuff based on your assumptions. I think that the best approach is the one described here. I reversed it statically because I thought that I'd have to root my phone to actually sniff the messages :P

@lkutsenok
Copy link

Headset: MDR-XB950BT
Client version: v1.2
Description: Fully works!

@pmastrosimone
Copy link

Headset: Sony WH-1000-XM4
Client: v1.2
OS: Linux (Fedora 33)
Description:

  • Changing ambient sound seems to fully work, commands are sent successfully
  • Not sure if this is implemented, but no Speak-to-Chat option

@lawtancool
Copy link

Headset: WF-1000XM3
Client version: v1.2
OS: Windows 10
Description: All controls work fine!

@XeonForce
Copy link

Headset: WF-1000XM4
Client version: v1.2
OS: Windows 10
Description:
Couldn't Connect: 10049

@semvis123
Copy link
Contributor

@XeonForce Thanks for trying, sadly the WF-1000XM4 uses a completely new protocol (literally uses ....mdr.link2 as external Accessory protocol string (still need to find the sppServiceUUID btw, but that can be found in the app)), support for these earbuds might come in the future as I already have semi working code ready (slider doesn't seem to be affecting the ambient sound), but I don't have much time to work on this rn and I don't own them, so adding support is extra difficult.

@ipeacocks
Copy link

ipeacocks commented Jun 23, 2021

Headset: WH-1000XM3
Client version: v1.2
OS: Ubuntu 21.04
Description: Fully works, but I miss ANC turn on/off button.

Additional packages needs to be installed:

apt install libglfw3 libglew2.1

@luizkowalski
Copy link

Headset: WH-CH710N
Client version: v1.2
OS: macOS Big Sur (11.4) (Chip Apple M1)

I can't connect, behavior is erratic. sometimes it closes, sometimes it says "Could not open rfcomm"

@andro2157
Copy link
Contributor

Headset: WH-XB900N
Client version: v1.2
OS: Windows
Description: Works perfectly!

@Netanel-Lalazar
Copy link

Headset: WF-1000XM4
Client version: v1.2 probably
OS: Windows 10
Description:
Works great! thank you! :-)

@emiel556
Copy link

Headset: WF-1000XM4
Client version: v1.2
OS: Windows 10
Description: Couldn't Connect: 10049

Headset has latest firmware (1.2.6) installed today

@pumpkinlink
Copy link

pumpkinlink commented Aug 10, 2021

Headset: WH-1000XM3
Client version: v1.2
OS: Ubuntu 20.04
Description: Fully works. (had to disconnect app on my phone first)

Only one additional package needs to be installed:

apt install libglfw3

@comio
Copy link

comio commented Sep 2, 2021

Headset: WH-N910H
Client version: v1.2
OS: Ubuntu 21.04
Description: Fully works :)

@runtav-gyz
Copy link

Headset: MDR-XB950BT
Client version: v1.2
OS: Fedora 34
Description: Error - Could not connect to bluetooth socket.

MDR-XB950BT

@dogtopus
Copy link

dogtopus commented Sep 23, 2021

Headset: WH-1000XM2
Client version: commit e671114
OS: Arch Linux
Description: Had to downgrade C++ standard from GNU++20 to GNU++17 for it to compile (SonyHeadphonesClient/Client/SingleInstanceFuture.h:15:33: error: expected unqualified-id before ‘)’ token), but otherwise seems to work fine without any other modifications.

shc

@iddo
Copy link

iddo commented Oct 12, 2021

Headset: WF-1000XM4
Client version: v1.2
OS: Ubuntu 20.04.3 LTS
Description:
Error - Could not connect to bluetooth socket.
Had to install dependencies before use:

sudo apt install libglew2.1 libglfw3 libopengl0

image

Log:

connecting to <redacted mac>
channel: 0
closed

@ca5ua1
Copy link

ca5ua1 commented Nov 26, 2021

Headset: WI-1000XM2
Client version: v1.2
OS: Arch Linux
Description:
Works, but all changes to ambient sound mode need to re-enable a function few times to apply.
Had to install dependencies before use:
sudo pamac install glfw-x11 glew-2.1

@stephaniecarag
Copy link

Headset: WF-1000XM4
Client version: v1.2
OS: Windows 10
Description: Getting an error "Couldn't connect: 10049"

image

@dogtopus
Copy link

dogtopus commented Dec 17, 2021

Headset: WH-1000XM4
Client version: commit c45af00
OS: Arch Linux
Description: The app is able to find the control serial port but then it's stuck on "sending command" forever. Did $**y change the protocol?

@CodeBrauer
Copy link

Headset: WH-1000-XM3
Client version: v1.2
OS: macOS 10.15.7
Description: Fully works on second start of the App. First start the controls did not operate the headphones.

@ralex
Copy link

ralex commented Feb 1, 2022

Headset: WH-1000XM2
Client version: v1.2
OS: Debian GNU/Linux 12 (Bookworm)
Description: Works like a charm!

WH-1000XM2

Additional packages installed:

apt install libglew2.1 libglfw3 libopengl0

@technos12
Copy link

Headset: WF-1000XM4 v1.2.6
Client version: Self-build from [e671114] and from release [v1.2]
OS: Windows10 21H1
Description: Application start, detects device, but crash at connect with answer Couldn't Connect: 10049

I would love to help, I have knowledge in programming in C#/WPF and I would really like to be able to change some parameters from a desktop App.
@semvis123 said that the used protocol is mdr.link2 but I can't find any information on that. I can make tests with my device and VSStudio.

@semvis123
Copy link
Contributor

@semvis123 said that the used protocol is mdr.link2 but I can't find any information on that. I can make tests with my device and VSStudio.

jp.co.sony.songpal.mdr.link2 seems to be the new protocol which the WF-1000XM4 uses.
Since I don't own any device that uses this new protocol, I can't really debug anything or collect any logs.
But I've managed to make it work in a Jailbreak tweak I made (based on some logs and feedback I received from users).
See this file (apologies for the messy code)

This implementation only sends data, so it doesn't know if it was successful or not. (for simplicity)
Because I can't test it, I can only report that this implementation was able to change the noise cancelling to ambient sound and back according to users (with the default settings), iirc custom values for ASMValue didn't seem to work (it had to be 20).
Because this implementation is purely based on logs I am not sure if the variable names are correct for the V2 protocol.

I would suggest you to collect your own logs and see if you can find any similarities between them.
Another option would be to decompile the android app and research that, but it's quite a large app and pretty obfuscated.

@technos12
Copy link

I would suggest you to collect your own logs and see if you can find any similarities between them. Another option would be to decompile the android app and research that, but it's quite a large app and pretty obfuscated.

Cool, thank you for the answer !
I have created a working environment on my usual tools, so I can discover the device, establish a connexion, get the stream and write to it.
In parallel, I used the code from Sonitus to create the frame of data to be sent. As the code is covering both version of the protocol and all the different scenario with ? : it is sometimes difficult to follow the logic. So my headset is actually not reacting to the command.
I would like to capture the frames (collect my logs) sent from my phone (android) and use them as an example. Could you help me about this first step ?
Thanks.

@mrostamii
Copy link

Headset: WF-LS900N/BC (LinkBuds S)
Client version: v1.3.2
OS: Linux (Ubuntu 22.04.3 LTS)
Description: Cannot connect to the device with Not connected, connection timed out. error.

@dantfusie
Copy link

Headset: WH-CH720N
Client version: v1.3.1
OS: Windows 11 22H2
Description: "Couldn't connect: 10049" - This is a fairly recent device so I could understand why it dosen't connect though.

@rom4kov
Copy link

rom4kov commented Sep 26, 2023

Headset: Linkbuds S
Client version: v1.3.2
OS: Arch Linux
Description: Error: could not connect to bluetooth socket in the gui

Also

connecting to F8:4E:17:73:D1:3E
channel: 0
closed

In the terminal

@LOTGx
Copy link

LOTGx commented Oct 7, 2023

Headset: WH-CH720N
Client: v1.3.1
OS: Windows 10
Description: Couldn't connect: 10049

@baragatti
Copy link

Headset: WH-XB910N
Client version: v1.3.1
OS: Windows 11
Description: Couldn't Connect: 10049

@egormanga
Copy link

Headset: WH-XB910N
Client version: v1.3.1
OS: Arch Linux
Description: Error: could not connect to bluetooth socket

connecting to <MAC>
channel: 0
closed

@vojtanethio
Copy link

Headset: WF-1000XM3
Client version: v1.2
OS: Windows 10
Description: I´m able to control Ambient Sound😊

@dkuras1
Copy link

dkuras1 commented Nov 27, 2023

Headset: WH-CH520
Client version: v1.3.2
OS: macOS Sonoma 14.0, Macbook Air M1
Description: Connect to bluetooth device failed with error "Not connected, connection timed out."

@justinlin099
Copy link

Headset: Linkbuds S
Client version: v1.3.1
OS: Windows 11
Description: Couldn't Connect: 10049

@antran22
Copy link

antran22 commented Dec 6, 2023

Headset: WH-XB900N
Client version: v1.3.2
OS: MacOS Sonoma 14.0, Macbook Air M1
Description: Working out of the box for all features.

@PrismaticSpirit
Copy link

Headset: WH-1000XM5
Client version: v1.3.1
OS: Windows 11
Description: Couldn't Connect 10049

@mnazir23
Copy link

Headset: Sony WH-CH-520
Client: v1.3.2
OS: Windows 10
Description:

  • The device never shows up on the app. Refresh does nothing.

@svin24
Copy link

svin24 commented Dec 17, 2023

Headset: WF-C500
Client version: 1.3.2
OS: Linux (archlinux/aur)
Description: could not connect to bluetooth socket.
Also tried disconnecting them from my PC to connect them via the app.

image

@d0mkaaa
Copy link

d0mkaaa commented Jan 4, 2024

Headset: WH-XB910N
Client version: v1.3.2
OS: Windows 11
Description: Couldn't Connect 10049

@CtrlasAltas
Copy link

Headset: WH-XB910N
Client version: v1.3.2
OS: macOS Big Sur version 11.7.9
Description: "Not connected, connection timed out"

@trippxn
Copy link

trippxn commented Jan 24, 2024

Headset: WH-CH720N
Client version: v1.3.2
OS: MacOS Sonoma Version 14.1.2
Description: "Not connected, connection timed out"

Screenshot 2024-01-24 at 8 05 47 pm

@mrostamii
Copy link

Headset: WF-LS900N/BC (LinkBuds S) Client version: v1.3.2 OS: Linux (Ubuntu 22.04.3 LTS) Description: Cannot connect to the device with Not connected, connection timed out. error.

✅ So, I finally made it work with my new MacBook Pro M3 Pro device! ✅

Headset: WF-LS900N/BC (LinkBuds S)
Client version: (Unknown, connected through macOS's native Bluetooth client)
OS: macOS Sonoma / Version 14.2.1 (23C71)
Description: Connected, no issue at all

@wkargul
Copy link

wkargul commented Jan 29, 2024

Headset: WH-1000XM5
Client version: v1.3.1
OS: Ubuntu 23.10
Description: Could not connect to bluetooth socket
Zrzut ekranu z 2024-01-29 10-40-18

connecting to 88:C9:E8:89:EB:2B
channel: 0
closed

@doteq
Copy link

doteq commented Feb 3, 2024

@mrostamii How were you able to make it work with Linkbuds S?

@mrostamii
Copy link

@mrostamii How were you able to make it work with Linkbuds S?

Watch this short tutorial; I even didn't know about that button.

@ezamelczyk
Copy link

I have WF-1000XM4 and they are connected successfully to my macbook but the app just says "Not connected, connection timed out"

@NicoHeijningen
Copy link

NicoHeijningen commented May 23, 2024

Headset: WF-LS900N/BC (LinkBuds S)
Client version: v1.3.1
OS: Windows 11 23H2 22631.3296
Description: Couldn't connect: 10049

Also tried building for source with Windows 11 SDK but same error.
Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22631.

This fork does work for the LinkBuds S https://github.com/mos9527/SonyHeadphonesClient it is newer and has implemented the newer Sony protocol

@matiux
Copy link

matiux commented Jun 3, 2024

Headset: WH-CH720N
Client version: 1.3.2
OS: Linux arch
Description:

Screenshot_20240603_234830

@unclejoona
Copy link

unclejoona commented Jun 4, 2024

Headset: Sony wf-1000xm4
Client version: 1.3.1
OS: Windows 10 Pro N
Description: Couldn't connect: Error code 10049

@cescur
Copy link

cescur commented Jun 13, 2024

Headset: Sony wf-1000xm4
Client version: 1.3.2 (but the app says 1.3.1)
OS: Windows 11
Description: It works! ... But I deactivated Ambient Sound control and couldn't turn back it on.

I'd happy to contribute with any log that can help!

@lucianorc
Copy link

Headset: WH-XB9000N
Client version: v1.3.2
OS: Mac OS 14.5
Description: I couldn't say more about Sound Position and Surround, but the level for Ambient Sound worked successfully.

@Carzanan
Copy link

Headset: Sony WH-1000XM2
Client Version: 1.3.2
OS: Mac Sonoma 14.1.2
Description: It just works! :))))

@jonathandw743
Copy link

Headset: Sony WF-C700N
Client Version: 1.3.2
OS: fedora 40 (nobara)
Description: could not connect to bluetooth socket

@dniku
Copy link

dniku commented Oct 19, 2024

Headset: Sony WF-1000XM5
Client version: 1.3.2 from AUR
OS: Manjaro
Description: could not connect to bluetooth socket

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests