You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to read your code to try to write an implementation to debug and support my M15R3 per key lights.
I'm not python developer, I'm c/c++/java developer.
Maybe you could help me clear up some doubts
I just start writing a small function that write to the device. (Previously I write the function that search by vendor and save founded device in a pointer)
so my write functions looks like this
int Write(unsigned char* pData, int pDataLength)
{
return libusb_control_transfer(alienware, SEND_REQUEST_TYPE, SEND_REQUEST,
SEND_VALUE, SEND_INDEX, pData, pDataLength, 0);
}
where
alienware = founded alienware lights usb device
SEND_REQUEST_TYPE = 0x21
SEND_REQUEST = 0x09
SEND_VALUE = 0x202
SEND_INDEX = 0x00
I found this ^ in a very old documentation, so I'm not sure if are correct.
Then first question how is composed the data array that you send to the libusb_control_transfer?
pData = unsigned char data[9]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
data[0] = START_BYTE ?;
data[1] = THE_COMMAND example COMMAND_SET_COLOR ?;
data[2] = HEX_ID ?;
data[3] = zone?;
data[4] = zone?;
data[5] = zone?;
data[6] = r ?;
data[7] = g ?;
data[8] = b ?;
How do you found the correct values here for a machine? Specially [0]START_BYTE, [1]command, [2]HEX_ID?
Thanks so much!!
The text was updated successfully, but these errors were encountered:
It will probably take me long time to make you a formal answer because I lack of time, but in the mean time it may help you to know, you can visualize the data sent by akbl.
For doing that, just turn on the debug mode on akbl:
modify the file: akbl/setup:
DEBUG='True' # Python boolean
re-install the software
A. to monitor the daemon:
3.1: stop the systemctl service: systemctl stop akbl
3.2: start the daemon in the current terminal: akbl --start-daemon. Execute the command as root, and you must only have 1 process.
HI me again xD,
And thanks again for this project.
I'm trying to read your code to try to write an implementation to debug and support my M15R3 per key lights.
I'm not python developer, I'm c/c++/java developer.
Maybe you could help me clear up some doubts
I just start writing a small function that write to the device.
(Previously I write the function that search by vendor and save founded device in a pointer)
so my write functions looks like this
where
I found this ^ in a very old documentation, so I'm not sure if are correct.
Then first question how is composed the data array that you send to the libusb_control_transfer?
How do you found the correct values here for a machine? Specially [0]START_BYTE, [1]command, [2]HEX_ID?
Thanks so much!!
The text was updated successfully, but these errors were encountered: