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

AirPods Pro 2 usb c not supported #164

Closed
karimz1 opened this issue Sep 23, 2023 · 8 comments · Fixed by #167
Closed

AirPods Pro 2 usb c not supported #164

karimz1 opened this issue Sep 23, 2023 · 8 comments · Fixed by #167
Labels
enhancement Add a new feature of improve an existing feature new device Support for a new device type

Comments

@karimz1
Copy link

karimz1 commented Sep 23, 2023

Do u know how to add that support to the app?

@tsia
Copy link

tsia commented Sep 23, 2023

capod_logfile_1695485819291.log.zip
In case this is helpful

@d4rken d4rken added enhancement Add a new feature of improve an existing feature new device Support for a new device type labels Sep 23, 2023
@d4rken
Copy link
Member

d4rken commented Sep 23, 2023

Curious that Apple would change the device-id just for changing the case port?

@d4rken
Copy link
Member

d4rken commented Sep 23, 2023

@tsia Good log! Contained one data packed that was detected as unknown apple device by CAPod.

The identifier for AirPods Pro2 is 0x1420 and for the USB-C variant it seems to be 0x2420.

The data has the right format and using the decoding for AirPods Pro2, the test-case I created gives out sane values:

isLeftPodMicrophone shouldBe false
isRightPodMicrophone shouldBe true
isLeftPodInEar shouldBe true
isRightPodInEar shouldBe true
batteryLeftPodPercent shouldBe 0.9f
batteryRightPodPercent shouldBe 0.9f
isCaseCharging shouldBe false
isRightPodCharging shouldBe false
isLeftPodCharging shouldBe false
batteryCasePercent shouldBe null

Does this correspond to the state the your pods were in when you recorded the log?

I'm going to release an update so you can test it.

The old AirPods Pro2 had trouble with in-ear detection, see #38.
As Apple changed the software for the USB-C variant 🤯, it will be interesting to see if they fixed this now.

d4rken added a commit that referenced this issue Sep 23, 2023
@tsia
Copy link

tsia commented Sep 23, 2023

Might be because the new ones do the vision pro stuff I think?

@tsia
Copy link

tsia commented Sep 23, 2023

Test case result looks fine to me though

@d4rken
Copy link
Member

d4rken commented Sep 23, 2023

Update should be available in ~10min:

https://github.com/d4rken-org/capod/actions/runs/6285657555

@tsia
Copy link

tsia commented Sep 23, 2023

Yup works now. In-ear detection is still weird though. In-ear is detected but taking it out is never detected. Need to put them in the case for the pod to now longer show as in ear.
Sometimes I see them appear twice in the app as well. One "right" and one "left" when I have debug mode enabled.

capod_logfile_1695500111506.log.zip
Here is another log while putting them in, taking them out and doing some other stuff. Maybe that helps

d4rken added a commit that referenced this issue Sep 24, 2023
@d4rken
Copy link
Member

d4rken commented Sep 24, 2023

Yup works now.

👍

capod_logfile_1695500111506.log.zip
Here is another log while putting them in, taking them out and doing some other stuff. Maybe that helps

I extended the tests with this, thanks!

In-ear detection is still weird though. In-ear is detected but taking it out is never detected. Need to put them in the case for the pod to now longer show as in ear.
Sometimes I see them appear twice in the app as well. One "right" and one "left" when I have debug mode enabled.

Sounds like #38, seems Apple did not fix this 😦.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Add a new feature of improve an existing feature new device Support for a new device type
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants