I'm using a Raspberry pi and it has to behave differently when connected to Linux or Windows system using the USB Port. I tried to find a solution using linux USB Gadget but it does not come with such a distinction feature. So I need to know whether it's a Windows or whether a Linux OS after connecting it.
How can I possibly catch this event?
I would very much appreciate any help or guidance regarding this. Thank You.