I2C usage and "how to wake up from Infrared"
HI there I just finished porting the linux infrared control (LIRC) project to darwin. As we all know, there is no real I/O on macs so I conected the Infrared Receiver to the sound input of my sawtooth g4 that at least has this input. Lirc can decode most IR controls. (www.lirc.org www.inf.ethz.ch/~mringwal/lirc/ )" To really use my mac as a multimedia center, I need to have it in deep sleep and want to wake it up via the IR remote. When I press a button on the IR remote, I could use a capacitor and provide a normal TTL signal that indicates "mac should be running" Any simple ideas, what I could use? So far, I've seen the wake on modem call (although I need my internal modem) and wake on ethernet. what does this mean technically ? One solution would be to use a USB mouse or USB keyboard and connect the IR signal to the any button. this doesn't look optimal and if the mac is running I would have to deal with to much input... and would cost me a USB mouse/keyboard. Any other option? Next, and more interesting: has anybody ever tried to use the I2C busses inside the mac to connect external devices ? most micro-controllers have build-in I2C drivers or at least i2C libraries are available whereas not much MUCs does have USB support and then a lot of usb code would be required both on the mac as on the mcu. I found the linux lm_sensor project: http://www2.lm-sensors.nu/~lm78/index.html that descibres an easy way to get the 4 wires for the I2C bus from a memory dimm and also all necessary drivers But next, how do communicate with a microcontroller? I've seen the I2C classes in darwin, but with only the source code and the short api docu, its quite hard to get a bigger picture. I'm thinking about adding IrDA support to my mac, use the MCU for sending and receiving of IR signals, provide a serial port and e.g. 16 free programable digital I/O lines never mind ADC (thinking about an Atmel ATmega128).. The IrDA option would be very interesting inside my iBook, too... ok. any info ? thanks for reading this long mail, matthias ringwald eth z|rich _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Matthias Ringwald