bibodha / ArctisBatteryPercentage

Arctis Battery Percentage utilities
0 stars 0 forks source link

Using this with the Arctis 7P #1

Open Mylad79190 opened 2 years ago

Mylad79190 commented 2 years ago

Hi,

I have the Arctis 7P and it doesn't work.

The headset does not seem to be recognized.

I downloaded the sources, and tried to add the productIds (0x12D5) that I could identify

But it looks like I got nothing with the line

var text = device.Read().Data[2];

Do you have an idea? Do you think it's possible to make it work with the 7P?

I'm not used to C # and Visual Studio but I'm trying to take a look

Thank you for your help :)

YourM4jesty commented 2 years ago

The only thing I could think of would if if 0x12D5 is the right product id. I know I've seen 0x12AE on my machine along with 0x12AD so there was a little bit of trial and error to figure out which was the right one. Also, do you have anything coming back in that Data array?

Mylad79190 commented 2 years ago

To find the product id, I found a script that returned this to me

Before I disconnect the headphones

Device ID: USB\VID_8087&PID_8009\5&255CBB93&0&1, PNP Device ID: USB\VID_8087&PID_8009\5&255CBB93&0&1, Description: Generic USB Hub Device ID: USB\VID_1532&PID_005C\5&3AC2BAEE&0&3, PNP Device ID: USB\VID_1532&PID_005C\5&3AC2BAEE&0&3, Description: Périphérique USB composite Device ID: USB\VID_1532&PID_0203\5&3AC2BAEE&0&5, PNP Device ID: USB\VID_1532&PID_0203\5&3AC2BAEE&0&5, Description: Périphérique USB composite Device ID: USB\ROOT_HUB20\4&1C476887&0, PNP Device ID: USB\ROOT_HUB20\4&1C476887&0, Description: Concentrateur USB racine Device ID: USB\VID_8087&PID_8001\5&27B27D6B&0&1, PNP Device ID: USB\VID_8087&PID_8001\5&27B27D6B&0&1, Description: Generic USB Hub Device ID: USB\ROOT_HUB30\4&2188F0D&0&0, PNP Device ID: USB\ROOT_HUB30\4&2188F0D&0&0, Description: Hub USB racine (USB 3.0) Device ID: USB\VID_046D&PID_C52B\5&3AC2BAEE&0&13, PNP Device ID: USB\VID_046D&PID_C52B\5&3AC2BAEE&0&13, Description: Périphérique USB composite Device ID: USB\ROOT_HUB20\4&245FDEC6&0, PNP Device ID: USB\ROOT_HUB20\4&245FDEC6&0, Description: Concentrateur USB racine Device ID: USB\VID_1038&PID_12D5\5&3AC2BAEE&0&14, PNP Device ID: USB\VID_1038&PID_12D5\5&3AC2BAEE&0&14, Description: Périphérique USB composite

After I disconnect the headphones

Device ID: USB\VID_8087&PID_8009\5&255CBB93&0&1, PNP Device ID: USB\VID_8087&PID_8009\5&255CBB93&0&1, Description: Generic USB Hub Device ID: USB\VID_1532&PID_005C\5&3AC2BAEE&0&3, PNP Device ID: USB\VID_1532&PID_005C\5&3AC2BAEE&0&3, Description: Périphérique USB composite Device ID: USB\VID_1532&PID_0203\5&3AC2BAEE&0&5, PNP Device ID: USB\VID_1532&PID_0203\5&3AC2BAEE&0&5, Description: Périphérique USB composite Device ID: USB\ROOT_HUB20\4&1C476887&0, PNP Device ID: USB\ROOT_HUB20\4&1C476887&0, Description: Concentrateur USB racine Device ID: USB\VID_8087&PID_8001\5&27B27D6B&0&1, PNP Device ID: USB\VID_8087&PID_8001\5&27B27D6B&0&1, Description: Generic USB Hub Device ID: USB\ROOT_HUB30\4&2188F0D&0&0, PNP Device ID: USB\ROOT_HUB30\4&2188F0D&0&0, Description: Hub USB racine (USB 3.0) Device ID: USB\VID_046D&PID_C52B\5&3AC2BAEE&0&13, PNP Device ID: USB\VID_046D&PID_C52B\5&3AC2BAEE&0&13, Description: Périphérique USB composite Device ID: USB\ROOT_HUB20\4&245FDEC6&0, PNP Device ID: USB\ROOT_HUB20\4&245FDEC6&0, Description: Concentrateur USB racine

I found the missing row and since the vendor ID matches, I think it's ok.

Device ID: USB\VID_1038&PID_12D5\5&3AC2BAEE&0&14, PNP Device ID: USB_VID_1038&PID12D5 \5&3AC2BAEE&0&14, Description: Périphérique USB composite

For the DATA array, I can't get a result.

In the debugger, on this line

var text = device.Read (). Data [2];

Using the step by step debug I can't go any further, I always come back to this line

For information, the headset is wireless and not plugged in, it is the USB-C adapter that is plugged in and connected to the headset

bibodha commented 2 years ago

The way I found the product ID is by going to Device Manager -> Sound, video and game controllers -> Arctis 7 Game -> Right click -> Properties -> Details Tab -> Property Dropdown -> Select Hardware Ids. In that Value display VID_xxxx is your vendor Id and PID_xxxx would be your product id. Vendor ID should be the same as what I have in the code. You may have to add your product Id to the list of product ids if it doesn't already exist. I really hope that it's just missing product id otherwise I'm not sure why nothing is coming back. I even tried this script with a different headphone manufacturer and it came back fine (Corsair Void something-or-other)