Author Topic: Check to which interface of a composite device there's an open connection  (Read 2986 times)

MB_Inv

  • Member
  • ***
  • Posts: 8
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