I am writing a USB class device driver for a USB device that has two configurations in it (FreeLite5200, QNX 6.3.2). The active default configuration is of USB mass storage class and the other configuration is of USB HID class.
I am trying to change the device configuration to the non-default one, i.e., HID class from my driverâ€™s driver insertion call back. I used the QNX USB library function usbd_select_config to change the configuration. And the function returns EOK, giving an impression that the configuration is changed.
But the device is not functioning as an HID device. I used the QNX HID utility â€˜hidviewâ€™ to see the HID devices connected to the system, but I couldnâ€™t see my device listed in it.
So I think, either the configuration is still not changed in the device or the host is not becoming aware of this change.
Could any one give more insight into whether QNX supports the handling of USB devices with multiple configurations? Or is there anything more my driver has to do?