Sorry if there's a simple answer in an obvious place for this, but I couldn't find it!
I have a USB DCE device (it's the Dusky Control USB Sky device), and I have it working (Hurrah!).
...but the implementation only works with one device, because I can't translate the box_num/device_num identification system used by the Dusky software to what I need.
The solution seems to be to parse the /dev/bus/usb/nnn/mmm string that LinuxMCE generates against the Device Data/Block Device parameter when it auto-detects the device.
I've found that data in the database, but I can't work out how to get retrieve it given only the DeviceID. I could use sqlCpp and query it directly, but surely there's a utility method for doing this?
I suspect it might have something to do with ::GetConfig() and the DATA_ configuration parameters, but I can't work out the calls to make from the code.
Can anyone find it in their hearts to help me out with a simple example, please?