Closed axelzuzek closed 1 year ago
Can you try to remove the filter from usb.requestDevice() and break on the then() to see which devices it finds? That might inform on which devices it detects. Also possibly try usb.getDevices() and see what it outputs.
const webusb = new WebUSB({
allowAllDevices: true
});
const showDevices = async () => {
const devices = await webusb.getDevices();
const text = devices.map(d => `${d.productName}\t${d.productId}`);
text.unshift('productName\tPID\n-------------------------------------');
console.log(text.join('\n'));
};
showDevices();
Outputs:
productName PID
-------------------------------------
MYSTIC LIGHT 31889
LG Monitor Controls 39481
Razer Huntsman Elite 550
The mouse and many other devices are not found
Update: my old Razer Lancehead (cable version) is found, the new Razer Deathadder V2 Pro is not found (no matter if wireless or cable connected)
Hmm yeah not 100% sure what the issue told l would be then. The USB lib had a legacy non-webusb method of communicating. You could try refactoring the code using that method.
Added support for DA 2 pro
I tried to adapt the script for my Razer Deathadder V2 Pro
results in a Error: requestDevice error: Error: selected device not found
I tripple checked the Ids and transaction id, tried different USB ports.
then I started some testing
outputs Razer Huntsman Elite 550
but
outputs nothing
is there anyone who made this work?