PORTS Forum

Ports and Interfaces => USB => Topic started by: MB_Inv on January 17, 2022, 05:46:31 am

Title: Check to which interface of a composite device there's an open connection
Post by: MB_Inv on January 17, 2022, 05:46:31 am
Hi,

we're using our product as a USB composite device with 2x Custom HID interfaces.

Is there generally any way to determine from host OS (Win, Linux) or device FW (running on STM32 using CubeMX libraries) to find out for which interface there is already an open connection from the host?
Our use case is that on the host there are two programs running (one from our customers, the other one from us). We would like to prevent both programs using the same interface as this would screw up the communication.

So far I haven't found too much about it, so I guess it is not really possible, but maybe someone of you knows something here?

Kind regards,

Markus