I have a transmitting xBee and a receiving one (both S6B series). I want to send an API frame to my xBee transmitter using MATLAB serial port. The frame is a simple Tx64 request sent to the receiving module. Both xBee settings and frame should be ok because I can successfully send the request using XCTU. The basic code I'm using is:
s = serial('/dev/tty...','BaudRate',57600);
set(s,'DataBits' , 8 );
set(s,'StopBits' , 1 );
set(s,'Terminator' , '' )
APIframe = '7E length 00 frameID IPaddress 00 message checksum';
I believe the problem is the format I use for the frame, because I don't have any errors from Matlab and RSS led on the receiving Xbee doesn't turn on. It looks like the transmitting Xbee does not recognize the message as an API frame. I tried to convert it as decimal but still nothing.
Thank you for your help,