Marek Miś
Marek Miś

Reputation: 291

Web USB / Serial API + led strip KAA332-LH

I wonder if anyone has any experience with the Web USB and controlling a LED strip. I have a basic LED strip. I can connect the device from the browser js, but when I try to do device.open() I'm getting error: DOMException: Failed to execute 'open' on 'USBDevice': Access denied.

Funnily enough, when I try to use the Web Serial API, I can open the port and getInfo(). I'm also trying to send some data, but I have no clue what payload to add to simply switch off/on the leds...

Ideally I'd like to stick to Web USB API... any idea how to overcome the Access denied problem?

manufacturerName: "Prolific Technology Inc."
productId: 9123
productName: "KAA332-LH"
serialNumber: "KAA332LH2207"
vendorId: 1659

enter image description here

Upvotes: 0

Views: 325

Answers (1)

Reilly Grant
Reilly Grant

Reputation: 6083

The device presents a serial interface, so the Web Serial API is potentially the correct way to access it. Prolific Technologies is a manufacturer of many USB to serial converter chips.

Do you have any documentation for this device or existing software for it? It's going to be difficult to figure out what commands you need to send it simply by guessing.

It is possible that this device was designed with the assumption that you would be using the GPIO capability present in some Prolific Technologies chips. In that case you will need to configure your system to allow the browser to take control over the device directly (at the USB layer) rather than by utilizing the USB serial driver. On Windows this can be done with Zadig.

Upvotes: 1

Related Questions