Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

doubt on xbee - prolem with interfacing hyper terminal

Status
Not open for further replies.

dhanraj_kmr

Advanced Member level 4
Joined
Sep 23, 2008
Messages
117
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
Chennai, INDIA
Activity points
2,174
xbee india

Hi to all,

I am using xbee RF transceiver on rcm4000 to communicate with PIC16f877a. when i doin this i can transmit and receive the data but what actually i transmit. some special characters only i am receiving. i am setting 9600 baudrate in hyperterinal and the same i am using in RCM4000 program. but the data is unpredictable. why its so?

if you want any otherdetails from me to clear this problem pls ask me...................:?:
 

putchar xbee

It's always very helpful to see your source code. We can't guess what are doing incorrectly.
 
Re: doubt on xbee

thanks for your reply. here i have uploaded my code.



*******************************************************************/
#class auto

#define COUTBUFSIZE 31
#define CINBUFSIZE 15
const long baud_rate = 9600L;

main()
{
auto char send_buffer[128];
auto int received, i;
serCopen(baud_rate);
printf("Starting...\n");
strcpy(send_buffer,"A");
while (1)
{
costate
{

for(i = 0; i < 8;i++) //here i dont know why i am using this 'for' loop
{
waitfordone
{
cof_serCputs(send_buffer);// here i am writting my data to serial
} //buffer
}:cry:
}
costate
{
//receive characters in a leisurely fashion
waitfordone
{
received = cof_serCgetc();//here i am geeting data from
} //PIC16f877a
putchar(received); //just printing wat i've received
}
}
}

when i run this program i am receiving _ this only. if i transmit any other charactr i am receiving some other different special charactr , on the Hyperterminal of the system which is conneced with my PIC. i dont know why its happening. i am trying to explain my all doubts. pls adjust if i have any wrong.

what should i do more than this:cry:
 

Re: doubt on xbee

i just wanna know were the xbee transceivers are available in india. 2.4ghz 1mw chip antenna xbee transceivers. thank you.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top