'Is there a way to associate the SerialNumber with the DeviceUID on OSX?

I can get the hid device's SerialNumber by using the IOHID interface. And I can get the DeviceUID by using the CoreAudio interface.

When I connect two the same module hid device, they have the same product key, I can get their two SerialNumbers and DeviceUID, but I don't know to match the two DeviceUIDs with the two SerialNumbers.

Is there a way to do this?(I matched them by using product key before)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source