Coder Social home page Coder Social logo

jki757 / redragon-rgb-controller Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leandrosq/redragon-rgb-controller

0.0 1.0 0.0 87 KB

Reverse engineering of the Redragon's peripherals LED USB command

License: MIT License

JavaScript 100.00%

redragon-rgb-controller's Introduction

Redragon RGB Controller

A NodeJS project for sending USB HID commands to Redragon's peripherals.

This project uses the wonderful library node-hid.

This project was made on top of reverse engineering the peripherals USB protocols!

Usage

  • Clone the repository
  • Install the dependencies by running npm install or yarn
  • Run node index.js <target> <color>
    • Being target only -> keyboard, mouse and both
    • Being color the hex representation of the desired color withtout # (Ex: FF00FF)
    • Ex: node index.js both FF0000 for setting both keyboard and mouse to the red color.
  • Windows only Consider running it as administrator, if it doesn't work properly
  • You're all set!

Tested devices

The devices bellow were tested and currently working, please open an Issue if your device is not supported.

Name Support
Kala keyboard (Lunar white) Full
Griffin mouse (Lunar white) Full
Griffin mouse (Regular black) Full

Adding new devices

If you want to support the project by adding support to new devices, here's the overall process.

  • Starting USB capture WireShark with USBPCap
  • Changing the color (Or other property) on the original software
  • Stop the capture
  • Analyse a pattern of "HOST -> DEVICE" then "DEVICE -> HOST" more than once and sequential
  • Usually it starts with the profile being set, the color, and the last one is the 'apply' command
  • After that is just a matter of changing the raw bytes on the code

TODO

  • Reverse engineering of the Redragon mouse single color command

  • Reverse engineering of the Redragon keyboard single color command

  • Add a CLI program to interface with the library

  • Reverse engineering of the brightness value command

  • Reverse engineering of the effect type value command

  • Standalone tcp server for remote controlling, possible Alexa/GAssistant skills

  • Add audio responsive commands (At the time, as a separated program, only working with the microphone response)

redragon-rgb-controller's People

Contributors

leandrosq avatar

Watchers

 avatar

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.