Need primer on Xbee communications

Hi,

I'm looking to interface 2 Arduino boards using Xbee breakouts. One will transmit, the other recieve. Then convert the received data to MIDI and relay to a synthesizer.

Can someone explain the basics of making an Arduino receive data on the serial port?

  • this is not event driven right? Is there any kind of buffering?

Thanks,
Steve

I can't help you directly, but I just picked up a copy of Tom Igoe's book, Making Things Talk, and it has a rather extensive section on XBee communications. I just haven't read and digested it all yet.

The underlying Arduino code does event- (interrupt-) driven receiving of the serial data, but exposes it to your sketch through a non-event driven function, Serial.read(). It buffers about 128 characters.