# need help on xbee

**URL:** <https://forums.digi.com/t/need-help-on-xbee/10187>\
**Category:** Rabbit\
**Created:** [November 6, 2008, 2:10pm UTC](https://forums.digi.com/t/need-help-on-xbee/10187 "2008-11-06T14:10:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhanraj\_kmr1](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@dhanraj\_kmr1](https://forums.digi.com/u/dhanraj_kmr1)\
**Post date:** [November 6, 2008, 2:10pm UTC](https://forums.digi.com/t/need-help-on-xbee/10187/1 "2008-11-06T14:10:34Z")

</div>

actually wat i am doin here is, i have a xbee module on my system which acts:confused: as a transmitter and ther is a xbee receiver on a PIC16f877a. using this code i am transitting the data a to z. but on hyperterminal on PIC side, it dosent displaying any even a single charactr which i ve transmitted. its printing some other char and that hyperterminal page goes to black and still on. when i make new connection i could get a clear screan. whats going on? why its so?

here i have posted my code. pls go through this and pls pls pls pls tell me sum solutions…

#class auto

#define DINBUFSIZE 31  
#define DOUTBUFSIZE 31

#ifndef \_232BAUD  
#define \_232BAUD 9600  
#endif

#define RS232\_NOCHARASSYINBRK

main()  
{

auto char cOut;

serDopen(\_232BAUD);  
serDwrFlush();  
serDrdFlush();

for (cOut=‘a’;cOut\<=‘z’;++cOut)  
{  
costate  
{  
waitfordone  
{  
cof\_serDputc (cOut);  
}  
}  
}while(!kbhit());  
}
