Home/Support/Support Forum/can't send 2 digit from arduino to another with xbee s2

can't send 2 digit from arduino to another with xbee s2

0 votes
hello i have 2 xbee s2 the firmware is api mode API. 1 xbee s2 is a coordinat API-2 and the other Router API-2. so the problem is i send a random data integer int a=random(99); oh btw i use arduino in 2 side so arduino1->xbee(tx)->xbee(rx)->arduino2. back to the problem is when i look in serial monitor arduino 2 it just receive 1 digit number, like if i send a=72 then it just receive the first number, it's 7. i used andrew library
asked Dec 22, 2015 in RF Solutions and XBee by gagak New to the Community (0 points)
edited Dec 22, 2015 by gagak

Please log in or register to answer this question.

1 Answer

0 votes
Sounds like you are doing your data as ASCII instead of Hex. ALL API data is in Intel Hex format. Try converting it. The other way to determine where the issue is, is to connect the receiving radio to the PC and use XCTU to view the data. Either in API or transparent mode.
answered Dec 22, 2015 by mvut Veteran of the Digi Community (14,818 points)