I have a Jeenode that is attached to a midi keyboard. I want the jeenode to sleep until the user presses a key and only then wake up and send the midi message (or messages if more keys are pressed). Basically, unless a key has been pressed recently (let's say 10 seconds) the jeenode should go back to sleep (as deep as possible... maybe the user is gone for the day and forgot to turn the equipment off!).
Question 1 : would it be better to wake the jeenode at EACH key press, or wake, wait for a while in case other keys are pressed (let's say within a fews seconds) and go to sleep if no action? Question 2: How do I wake up the jeenode if all I have is an incoming midi message on the serial port (no separate interrupt signal)? Question 3: Can the receiving jeenode reduce power when it's not actively receiving?
About MIDI communication: the baud rate for midi is 31250 bps. The midi line is usually not very busy when a musician plays an instrument, but can get saturated when many instruments are connected and there are also other midi messages than transit on the line (time codes, etc). So the processing speed has to be quite snappy, considering that I use a baud rate of 49K bps or so on the RFM12B.
Question 4: How long does the jeenode take to wake up from deep sleep and is it fast enough to prevent dropping of midi messages?