Coder Social home page Coder Social logo

Support for x52 (non pro) about libx52 HOT 14 CLOSED

nirenjan avatar nirenjan commented on June 6, 2024
Support for x52 (non pro)

from libx52.

Comments (14)

apollothethird avatar apollothethird commented on June 6, 2024

I only have the pro. It works very well and is easy to use. Some one with the x52 (non pro) might comment, but I would suggest that you consider running a test and posting your results for others.

I think it's a good question and am interested. Personally I would expect for most of the common functions between the two to actually work.

-- L. James

--
L. D. James
[email protected]
www.apollo3.com/~ljames

from libx52.

nirenjan avatar nirenjan commented on June 6, 2024

I have a check during initialization for the product code that is specific to the X52 Pro. Since I don't have the non-Pro version, I have no clue about the functionality. It should be fairly straightforward to add a case for the non-Pro model here - https://github.com/nirenjan/x52pro-linux/blob/master/libx52/x52_core.c#L30

I'd suggest along similar lines as @apollothethird to pull the source code, modify it to accept the non-pro version and run your tests.

from libx52.

winiciuscota avatar winiciuscota commented on June 6, 2024

Thanks for the instructions. I have little experience on c but I'll definitely try that when I have more time

from libx52.

nirenjan avatar nirenjan commented on June 6, 2024

@winiciuscota, I've added support for the X52, but as the commit message states, you cannot update the LEDs individually. I'd need to know the control messages for those in order to update the library. However, you should be able to reduce the brightness down to zero for the LEDs, assuming that the control messages are the same between the pro and non-pro models.

from libx52.

winiciuscota avatar winiciuscota commented on June 6, 2024

@nirenjan Sorry for taking this long to test it. That worked perfectly!

from libx52.

nirenjan avatar nirenjan commented on June 6, 2024

Could you try to verify if the other commands work? My assumption is that apart from setting the LED states, everything else should work as is.

from libx52.

winiciuscota avatar winiciuscota commented on June 6, 2024

All the commands are working(except for led and I didn't tested raw). Attempting to use led gives this message: Error: Operation not supported. The mfd command is awesome, I didn't even know it was possible to change the mfd text on the x52 non pro

from libx52.

nirenjan avatar nirenjan commented on June 6, 2024

That's awesome! I'd still like to identify the LED commands, so let me know if you're ready to try some raw commands to try and turn on or off the LEDs.

from libx52.

winiciuscota avatar winiciuscota commented on June 6, 2024

I can do that as long as there is no risk of destroying my device

from libx52.

nirenjan avatar nirenjan commented on June 6, 2024

Seems like the API is more or less the same between the X52 and X52 Pro. The only info I have though is that the LEDs are probably single color blue LEDs on the X52, while they are red/green LED pairs on the Pro.

The risk is minimal, IMHO.

from libx52.

nirenjan avatar nirenjan commented on June 6, 2024

Can you describe what LEDs are glowing on the X52 when you first plug it in?

from libx52.

nirenjan avatar nirenjan commented on June 6, 2024

The easiest way to add support for the LEDs would be to snoop the USB messages from a Windows instance which has the Saitek drivers installed. The manual is no help - it simply states that you can control the LED brightness, but doesn't say anything about the individual LEDs.

from libx52.

rogerxxxx avatar rogerxxxx commented on June 6, 2024

Use WireShark, select the USB device for capturing packets, while only capturing when changing the color. I started doing this myself, but have been quite busy.

If I'm not mistaken, the bytes you need to look at are marked something like "extra data". The initial bytes are usually USB protocol stuff, and already labelled by WireShark. Sparse data on the web with replaying packets using C, etc.. (Please correct me if I'm wrong.)

from libx52.

nirenjan avatar nirenjan commented on June 6, 2024

Well, according to this website, the LEDs cannot be individually controlled on the X52 (non-pro). Given that the library already supports everything else, I'm going to close this issue.

from libx52.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.