DjGamewon
Ajazz devices not functioning properly under Windows
Cool, I'd appreciate checking the review for lib.rs lines 698 - I'm not sure if it's good to code the 0x00 byte at the start like that, but that function is only used by Ajazz devices so it's fine, but not sure if it's good style. If it's okay, then I'll push a commit for formatting (mainly to remove the comment)
123 replies
Ajazz devices not functioning properly under Windows
I created a wip pull request here: https://github.com/streamduck-org/elgato-streamdeck/pull/27
123 replies
Ajazz devices not functioning properly under Windows
So I think I get it.
The first byte is the report number - as far as I can see, everywhere where it's being used for elgato devices, it is set before calling the write_data function, so it works for both Linux and Windows.
For the chinese devices, the report number is coded into the write_data function, so it adds a 0x00 to the beginning. However, this is coded to only happen on Linux for some reason, so it doesn't work on Windows.
I do not know if the check for the first byte being 0 - if so, it doesn't add a 0 - is needed.
123 replies
Ajazz devices not functioning properly under Windows
From hidapi:
So it seems normal that we need to add a byte to the start, I'll check on linux in a little bit if it works as intended if I make the change, because imo from the docs it seems like it shouldn't be working either
123 replies
Ajazz devices not functioning properly under Windows
I didn't fix it fully yet, but when writing data just needed to add a 0 byte (or I imagine any value would work). It seems like the code adds a 0 sometimes, but I just currently made it do it everytime
123 replies
Ajazz devices not functioning properly under Windows
Do I understand correctly that by simply removing the firmware line the code continued on, but froze at some line?
I changed the hidapi to the latest git version and I'm getting key inputs in the simple example, about to try async. However, OpenDeck couldn't upload/download
123 replies
Ajazz devices not functioning properly under Windows
That's me, I have no experience with usb aside from simple serial unfortunately, so it's hard to make sense of it. I'm going to just try adding the newest version to the library and see what happens - getting the firmware version won't work, but maybe other stuff starts working.
I managed to get the firmware version with rusb though, but that's a bandaid imo.
I read some issues on hidapi that feature_report is a lot more strict on Windows, so some stuff might not work like it does on Linux, but the Mirabox github sample seems to use getInputReport, but it's from a library file, so I can't tell if they've changed anything.
123 replies