General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
-
clee
- Posts: 1
- Joined: Sun Jun 29, 2008 11:24 pm
Post
by clee » Sun Jun 29, 2008 11:25 pm
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.
-
christian
- Objective Development
- Posts: 1443
- Joined: Thu Nov 09, 2006 11:46 am
Post
by christian » Mon Jul 07, 2008 5:26 pm
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.