T-Troll / alienfx-tools

Alienware systems lights, fans, and power control tools and apps
MIT License
490 stars 45 forks source link

Alienware AW610M mouse support. #73

Closed T-Troll closed 2 years ago

T-Troll commented 2 years ago

VID_0461&PID_4EC0 (Primax Electronics). Software component for AWCC.

T-Troll commented 2 years ago

Next step:

Billybobertjoe commented 2 years ago

mouse.zip

Billybobertjoe commented 2 years ago

i had to compress it because it said the file itself wasnt supported

T-Troll commented 2 years ago

Thank you. Let me check.

T-Troll commented 2 years ago

So, at first glance:

Now i going for analysis, you can help me providing more logs (the same way) for different operations:

T-Troll commented 2 years ago

PS: You can install WireShark and take a look inside logs yourself, if you want - you devices:

Billybobertjoe commented 2 years ago

mouse1.zip

T-Troll commented 2 years ago

Here is your mouse basic protocol:

Commands:
ack:
c002

color:
401a07000aff0000
-------- Command
        -- Light ID
          ------ Color

control:
40100c000164002aaaff
-------- Command
        -- ???
          -- Brightness
            --------??? (always the same)

update:
40600700c04e000001
update2:
40600700c04e000100

report:
4003010001

Command chain:
report->ack->[color->update]->report->control->update2 - bulk color set
report->control - set device brightness
T-Troll commented 2 years ago

What's next? First, let me implement it (1-2 days), then we go to testing:

So wait to me until i publish test apps for you.

T-Troll commented 2 years ago

So, this is first test app - AlienFXDeviceTester.exe.zip

Can you, please:

I will check device properties and make sure it detected correctly. T.I.A!

Billybobertjoe commented 2 years ago

AlienFXTester output.txt

T-Troll commented 2 years ago

Great, thank you! So detection is correct. BTW, you have 10(!) lights at mouse - indexes from 1 to 10.

So, stage 2. Run this app, please (from the command line as well). What i need to know:

  1. Is device init ok? (it should have output about it)
  2. Is device call OK? (it should have output like "SetColor result: X". If X = 1 it's ok, if it's 0 - it requires more tests).
  3. If both ok, did it change light color (it should set light#1 to blue, and light#2 to cyan)?

In case all 3 points ok, we have basic support, but most probably we are fail at #2. In this case, i will provide you another testing app, with the different approach.

Billybobertjoe commented 2 years ago

both failed

T-Troll commented 2 years ago

So, did it tells "Can't init device!" or just 0 in results and lights not changed?

T-Troll commented 2 years ago

Ok, anyway, let's try this one: AlienFX Sample App.exe.zip The task is the same.

Billybobertjoe commented 2 years ago

3 device(s) detected. VID: 0x461, PID: 0x4ec0, API v7 API v7 Let's try to set some colors... SetColor result: 0 SetColor 2 result: 0

Billybobertjoe commented 2 years ago

seems to have failed

T-Troll commented 2 years ago

Yes. %-( Result 0 means driver didn't accept the command. Ok, let's try this way - AlienFX Sample App.exe.zip

Task is the same. If fail again, i provide another one, but if next one fail - it will be paused until i configure out the issue.

Billybobertjoe commented 2 years ago

3 device(s) detected. VID: 0x461, PID: 0x4ec0, API v7 API v7 Let's try to set some colors... SetColor result: 1 SetColor 2 result: 1

Billybobertjoe commented 2 years ago

i didnt see any color change on my mouse or keyboard though

T-Troll commented 2 years ago

Aha! And did colors changed (on mouse only)? Ok, got it.

Anyway, please, try this one - AlienFX Sample App.exe.zip

One of them should change colors.

Billybobertjoe commented 2 years ago

3 device(s) detected. VID: 0x461, PID: 0x4ec0, API v7 API v7 Let's try to set some colors... SetColor result: 0, error 57 SetColor 2 result: 0, error 57

Billybobertjoe commented 2 years ago

hmm

T-Troll commented 2 years ago

Hardware error. Ok, what about this (i don't need log, only error code if any non-zero and result) - AlienFX Sample App.exe.zip

T-Troll commented 2 years ago

By the way... Stop AWCC service first, it can alter colors.

Billybobertjoe commented 2 years ago

oh ok

Billybobertjoe commented 2 years ago

VID: 0x461, PID: 0x4ec0, API v7 API v7 Let's try to set some colors... SetColor result: 1, error 0 SetColor 2 result: 1, error 0

Billybobertjoe commented 2 years ago

still no color change

Billybobertjoe commented 2 years ago

my keyboard and mouse are changing colors with AWCC service disabled. not from the app u sent though. just from awcc spectrum setting

Billybobertjoe commented 2 years ago

what now?

T-Troll commented 2 years ago

Ok, now on pause - let me think more. I'll share another test app later on. Yes, hardware effects not depends on AWCC... Hmm... But can interfere with color set! Can you disable effects on mouse and check again? NB: Test app only works with mouse, not other devices (but it see them). Use alienfx-cli or alienfx-gui to control your keyboard/tron without awcc.

Billybobertjoe commented 2 years ago

how do i disable the effects?

T-Troll commented 2 years ago

Open AWCC, select mouse and choose global effect (or per-button, don't sure it has global) for "color".

T-Troll commented 2 years ago

Also, please check another version (but first previous one!): AlienFX Sample App.exe.zip

Billybobertjoe commented 2 years ago

i see no "global effect" or "per-button" option

T-Troll commented 2 years ago

They name it "static button". Left one above colors circle.

Billybobertjoe commented 2 years ago

I.. still dont see anything like that. Example picture?

T-Troll commented 2 years ago

image Selected square button at the top.

Billybobertjoe commented 2 years ago

Screenshot 2021-11-14 003357

what i see

Billybobertjoe commented 2 years ago

im on version 5.4.7.0

T-Troll commented 2 years ago

Should be OK. Maybe in "Settings" now.... Anyway, let's try - both previous and last versions.

Billybobertjoe commented 2 years ago

No luck

T-Troll commented 2 years ago

Does it return Result: 0 or just don't change colors?

Billybobertjoe commented 2 years ago

doesnt change colors

Billybobertjoe commented 2 years ago

I heard that dell removed the “enable 3rd party access” setting. Idk if that has something to do with this

T-Troll commented 2 years ago

So, let's do another round.

Use this test app - AlienFX Sample App.exe.zip

Please, follow this process:

I heard that dell removed the “enable 3rd party access” setting. Idk if that has something to do with this

If they enable it by default, it's not an issue. If they remove support - i have their library emulation ^_^

Billybobertjoe commented 2 years ago

mouselighttest.zip

Billybobertjoe commented 2 years ago

theres the log

T-Troll commented 2 years ago

Well... Good news - commands coming into device successfully and in right form. Now i need to check is this CORRECT commands, and maybe i miss the protocol format and need to study more.

T-Troll commented 2 years ago

Seems like i found an issue.

Let's try this (keep your eye at "SetColor result:", please): AlienFX Sample App.exe.zip