hadronized / hid

Haskell interface to hidapi
http://hackage.haskell.org/package/hid
Other
4 stars 1 forks source link

vendorProductSerialDevice returns Nothing #4

Closed isovector closed 2 years ago

isovector commented 2 years ago

I'm trying to rejuvenate an old project of mine, on the same hardware. While hid can find my device via enumerate, it refuses to give me back a Device:

System.HID> enumerate 0x17cc 0x1860
[DeviceInfo {devPath = "1-3:1.2", devVendorID = 6092, devProductID = 6240, devSerialNumber = "", devReleaseNumber = 52, devManufacturerString = "", devProductString = "", devUsagePage = 0, devUsage = 0, devInterfaceNumber = 2}]

System.HID> Just dev <- vendorProductSerialDevice 0x17cc 0x1860 Nothing
*** Exception: user error (Pattern match failure in do expression at <interactive>:39:1-8)

lsusb finds the device too:

$ lsusb
Bus 001 Device 040: ID 17cc:1860 Native Instruments KOMPLETE KONTROL M32

Any suggestions as to what I might be doing wrong here?

isovector commented 2 years ago

Sorry, this is my fault. Running the program as root successfully connects.