title: packets lost xbee series 1
body: <p>I have two xbee's series 1. I have them as endpoint devices working in API mode and talking to each other. The first xbee is attached at a raspberry pi, while the other is on my pc where I see the terminal tab of XCTU program. The baud rate I use is 125000.</p>
  
  <p>From raspberry pi I try to send a jpg image which is 30Kbytes. I send data frames 100 byte long (the biggest as it is said in the xbee documentation). Inside a loop I create and send the packets, I have also a <code>cout</code> statement that prints the loop number. Everything is fine and all bytes are sent. When I comment out the <code>cout</code> statement not all bytes are sent. </p>
  
  <p>From what I have understood the <code>cout</code> statement works as a delay between packets, but I still cannot understand why is this happening as it is supposed that I use the half speed ... </p>
  
  <p>I hope I was clear and look forward for a reply.</p>
  
  <p><strong>UPDATE</strong>
  Just to summarize, i changed baud rate to 250000 where there is the same behavior as in 125000. I also implemented hardware flow control by checking cts signal. When xbees are in transparent mode I need a delay between sending characters at around 150us. The same goes for api mode too. The difference with 125000 baud rate in api mode was that the delay needed, was enough to be betwween each data packet, but in 250000 the delay is needed between each byte that i send.  If i do the above everything goes well.</p>
  
  <p>The next thing i did was to plug both xbees in my pc in transparent mode. I went to terminal tab of xctu software where i chose assemble packet and sent at around 3000 bytes to the other xbee. The result was the same. The second xbee received at about 1500 bytes and then each time that i was sending one byte from the first to the second, the "lost bytes" were being received at packets of 1000. :/ </p>
  
  <p>So could anyone know what am I doing wrong?</p>