error identifying/opening HID devices on Windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mixxx |
Expired
|
Medium
|
Unassigned |
Bug Description
Hi
Under the 1.11 version of Mixxx (and i suspect this is something that fails since the added HID support), the HID devices under Windows have a problem with some devices.
An example seen trough the log file:
Debug [Controller]: Found 0x10c85240 0x113cd690 "r608" S/N 0x0 "Interface 1"
Debug [Controller]: Found 0x10ef4518 0x9135500 "r256" S/N 0x177ee808 "Usage Page 1 Usage 1"
...
Debug [Controller]: Loading controller preset from "E:/portableapp
...
Debug [Controller]: Loading controller preset from "E:/portableapp
...
There are two things here: one is the "cosmetic" bug at the debug info (in HidEnumerator:
Debug [Controller]: Found "Wacom Co.,Ltd." "CTH-470" "r256" S/N 0x12cd2168 "Interface 0"
The other (more annoying) bug is with the serial number. Some devices (like the Hercules on the example) put a null string, so the device name set at HidController:
But the wacom doesn't get a null string, instead it gets a lonely 409 decimal wchar'acter. This breaks the use of the controller (or trying to do a mapping for it, as it's my case ;)), probably because of the conversion to "?" in not unicodeaware code, and creates files that are difficult to use on the filesystem (some app's cannot open them, etc...). After a test change with another "more reasonable" device name, the same hw works fine (can be opened and report incoming packet data fine)
As this doesn't happens under linux with the same hw, i'm inclined to think that probably is something about hidapi.
I'm on win8 x64, but i have seen the same behaviour with an old laptop on xp (and the same devices)
Changed in mixxx: | |
importance: | Undecided → Medium |
tags: | added: controllers hid |
Changed in mixxx: | |
milestone: | none → 1.12.0 |
Changed in mixxx: | |
milestone: | 2.0.0 → none |
Sorry, when i said it was the 409 decimal char, i was wrong: it's 409h, so its this
http:// www.htmlescape. net/04/ unicode_ char_0409. html