Communicating between two series 2 in API mode.

I know in AT mode I could just type in the terminal to see if the characters showed up on the other terminal. Why doesn’t this work in API mode? How do I test to see if API was set up correctly and that I can transmit/receive?

Also, is it possible for these series 2 chips to communicate with these? http://www.digi.com/products/wireless-wired-embedded-solutions/zigbee-rf-modules/zigbee-mesh-module/xbee-zb-module#overview

The thing is these are just a zigbee function set while the series 2 are znet 2.5.

Hello Zack,

Yes, they can communicate with each other. In API mode you have to build API frames to communicate, refer to the modules’ documentation on how to operate in API mode. Best regards,

Shouldn’t these communicate properly the way I set them up for API mode? Can I test this in the x-ctu terminal?

As you can see they aren’t receiving:

I also am trying to use the java.api to test the communication with this code:

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import com.rapplogic.xbee.api.XBee;
import com.rapplogic.xbee.api.XBeeAddress64;
import com.rapplogic.xbee.api.XBeeException;
import com.rapplogic.xbee.api.zigbee.ZNetTxRequest;
import com.rapplogic.xbee.util.ByteUtils;


public class XBeeTest {
	

	public static void main(String args[]){
		// Create a XBee object
		XBee xbee = new XBee();
	
			// replace with your com port and baud rate.	
			try {
				xbee.open("COM10", 9600);
			
				// put some arbitrary data in the payload
				int[] payload = ByteUtils.stringToIntArray("Is this packet being sent?");
				
				// create a XBee series 2 transmit request using the payload
				ZNetTxRequest request = new ZNetTxRequest(XBeeAddress64.BROADCAST, payload);
				// make it a broadcast packet
				request.setOption(ZNetTxRequest.Option.BROADCAST);
				
				
				xbee.sendAsynchronous(request);
				// we just assume it was sent.  that's just the way it is with broadcast.  
				// no transmit status response is sent, so don't bother calling getResponse()

			} catch (XBeeException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		
	}
}

but it’s giving me errors:

java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver
Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path
	at java.lang.ClassLoader.loadLibrary(Unknown Source)
	at java.lang.Runtime.loadLibrary0(Unknown Source)
	at java.lang.System.loadLibrary(Unknown Source)
	at gnu.io.CommPortIdentifier.(CommPortIdentifier.java:83)
	at com.rapplogic.xbee.RxTxSerialComm.openSerialPort(RxTxSerialComm.java:71)
	at com.rapplogic.xbee.RxTxSerialComm.openSerialPort(RxTxSerialComm.java:61)
	at com.rapplogic.xbee.api.XBee.open(XBee.java:140)
	at XBeeTest.main(XBeeTest.java:20)

Another question: How can upgrade these znet 2.5 series 2 chips to zigbee rather than znet2.5?