Skip to content

Pro X / Pro battery support #131

Description

@thoraxe

This is an issue to discuss figuring out battery support on the Pro / Pro X wireless headsets.

The G933-esque battery support came from https://github.com/ashkitten/g933-utils

That repo includes a Wireshark Lua plugin to help analyze the Logitech HID+ protocol, but it seems to have a few shortcomings with the newer G Hub software and the Pro X.

ashkitten/g933-utils#17

I didn't see anywhere in the "known" messages where the battery status was queried by the G-Hub software. I tried the following:

  • start wireshark with dongle connected but headset power off
  • open g-hub application
  • turn on headset

At this point, the headset shows up as connected in G-Hub and the battery level appears. So, somehow the app is determining the battery percentage somehow.

The G933 implementation has a get voltage function that it then converts to a percentage:
https://github.com/Sapd/HeadsetControl/blob/master/src/devices/logitech_g633_g933_935.c#L51-L89

However, as I mentioned earlier, the Pro X doesn't appear to ever be sent any kind of get battery request that's "known" at this point.

In the issue I filed with ashkitten's repo, you can see the Lua issues I'm having.

If you have any suggestions or ideas, let me know. I have the device so it's easy for me to poke at it.

Activity

  1. Sapd commented on Jan 12, 2021

    @Sapd
    Owner

    I'd simply try it without that plugin. Wireshark is quite powerful and has a lot of filters.

  2. thoraxe commented on Jan 13, 2021

    @thoraxe
    ContributorAuthor

    Right, but the plugin is what is dissecting the packet capture and explaining what is being sent to/from the headset.

    Here's a capture of turning the headset on and waiting and then turning it off.
    https://drive.google.com/file/d/11r9voCayKynHl0V2QVMm9RHaIVcexw_p/view?usp=sharing

  3. markpash commented on Aug 13, 2021

    @markpash

    @thoraxe I just downloaded your pcap and went through it as I don't feel like booting into windows. I think I may have found the message that requests the battery info.

    Luckily the response is identical to the G933/G935 response, so after a few attempts, I think I found the correct request and tested it with my headset. It's able to correctly identify if it's charging or not. I'm not sure if the voltage calculation is correct since I just copied it from the G933 code. I can make a PR for this, but this may need to be a separate device, as the normal wired headset may not support getting battery info.

    @Sapd would you be willing to review a PR if I make one?

  4. Sapd commented on Nov 13, 2021

    @Sapd
    Owner

    @Sapd would you be willing to review a PR if I make one?

    Sure, feel free to open up a PR any time. Things can then still be completely changed or improved.

  5. github-actions commented on May 4, 2023

    @github-actions

    This issue is stale because it has been open 300 days with no activity. Remove stale label or comment or this will be closed in 60 days.

  6. github-actions commented on Jul 3, 2023

    @github-actions

    This issue was closed because it has been stalled with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions