This is an external I made for communicating via XBee in Max. It uses the RXTX library in mxj to access the serial port and Andrew Rapp's excellent java XBee library to do the heavy lifting. You need to copy some files to Max's support directory for RXTX to work, installation instructions are included.