Page 1 of 1

OS detection

Posted: Sun Jun 29, 2008 11:25 pm
by clee
Is there any way to tell (from my firmware running on an ATmega16 or ATmega32) what the host OS is that I'm talking to?

EDIT: Let me be more specific - I want to know whether or not the host computer is a Mac. If there's any easy way I can tell in software, that would be awesome - I'd rather not have to waste two pins for a jumper if I can avoid it.

Posted: Mon Jul 07, 2008 5:26 pm
by christian
As far as I know, there is no reliable way. You can probably recognize the OS by the initialization sequence and timing, but that may (and does) change from version to version.

The host software should know on what OS it runs and can communicate it to the device.