Quick little code release:
This is an updated version of the xbee api mxj object. This object has the ability to send AT commands to a remote xbee. It also outputs the response from the remote xbee. I have also included the most recent version of the max patch that I am using to test this setup.
Enjoy!
Maxbeev0.2.zip Maxbee-v0.2.maxpat
----
Dependencies:
- xbee-api: A Java API for Digi XBee/XBee-Pro OEM RF Modules
- RXTX: serial and parallel communication for the Java Development Toolkit (JDK)
- log4j: apache logging services

Hi,
The Maxbee MXJ works on a Mac too !
I extracted the RXTXcomm.jar and the librxtxSerial.jnilib from an Arduino and installed the jnilib file into the Library>Java>Extensions folder. The jar files (RXTXcomm, xbee-api-0.9 and log4j) go into the Max>Java>Lib and the Maxbee java + class in Max>Java>classes.
Finally ignore the log4j warnings when you start the patch as it just says that there is no file to log (as I understand it).
When you use the patch on a Mac, you also need to change the COM9 into /dev/tty.usbserial-youraddress (I'm using a Sparkun USB board).
BUT after changing my Xbee to an API firmware (zig bee coordinator api), making sure the speed was the correct one, when I click on PinSet D5 4 or getInputReadings, all I get is "Error: Never recieved response"... Any ideas why ? I hope my efforts were not in vain !
best,
Nicolas
Nicholas,
Firstly, you are correct to have ignored the log4j warnings. I need to clean that up in upcoming versions.
Now about the errors.
You must have the local and remote xbees configured as described in this webpage.
http://code.google.com/p/xbee-api/wiki/XBeeConfiguration
That seemed to be the most complicated step in the setup. Please let me know if you have done this already so we can troubleshoot further!
-Ray