Julusian / node-elgato-stream-deck

A Node.js library for interfacing with the Elgato Stream Deck. https://julusian.github.io/node-elgato-stream-deck/
https://www.npmjs.com/org/elgato-stream-deck
MIT License
159 stars 22 forks source link

Model number #46

Closed cwilling closed 2 years ago

cwilling commented 2 years ago

This is more idle curiosity than a problem ....

My streamdeck XL returns "xl" as it's model. I noticed on the back of the physical device, along with the serial number is a model number 20GAT9901. A quick scan of the code didn't reveal any model numbers in that format - just original*, mini, xl & pedal.

Is there any way to extract the other form (20GAT9901) programmatically?

Julusian commented 2 years ago

I am not aware of a way. Does the streamdeck software show it? If so then we should be able to fetch it from the usb device.

Or it could be added to the code like these properties are: https://github.com/Julusian/node-elgato-stream-deck/blob/master/packages/core/src/models/xl.ts#L7-L8

cwilling commented 2 years ago

I haven't used the streamdeck software so don't know if it's visible there.

I found a machine to install the software on but I can't see any mention of the fancy model number, just the serial number. The software also had facility to update the firmware, so not a complete waste of time :)

The protocol I'm trying to use the streamdeck with expects a numeric value for "productid" so even the fancy number (20GAT9901) wouldn't satisfy that requirement anyway. I think I can combine the vendorId and productId from usb-detection to make up a unique numeric product identifier for each device as it is discovered.