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.

wireless data transmission...

Status
Not open for further replies.

mandar_mahajan

Full Member level 2
Joined
Jul 8, 2009
Messages
134
Helped
7
Reputation
14
Reaction score
5
Trophy points
1,298
Location
mumbai
Activity points
2,090
Hello everybody!
I want to implement wireless data transmission for my project.
I am transmitting the data & also getting it on hyperterminal. But when I tried to get on the receiver side(LCD), the data is irradic & incorrect.
Kindly suggest some remedy for the same.
 

Hi

In order to give you a good advice you will need to upload schematic and software of your project

All the best

Bobi
 

Hi Bobi,
Following is my Tx code:(Tx Activity in ISR)
if(TI)
{
//DO TRANSMISION ACTIVITY
TI = 0;
tr_ptr++;
if(*tr_ptr == $)
{
tr_ptr = ser_out_arr;
TR_RDY_F = 1;
}
else
SBUF = *tr_ptr;
}

//////////////////////////////////////
ser_out_arr[0] = 'A';
ser_out_arr[1] = ((weight / 1000) + '0');
weight%= 1000;
ser_out_arr[2] = ((weight / 100) + '0');
weight %= 100;
ser_out_arr[3] = ((weight / 10) + '0');

ser_out_arr[4] = ((weight % 10) + '0');

ser_out_arr[5] = 0x0d;
ser_out_arr[6] = 0x0a;
ser_out_arr[7] =$;
start_transmission();

/////////////////////////////////////
Following is the receiver code:
if(RI)
{
RI = 0;
//DO RECIVER ACTIVITY
*rec_ptr = SBUF;
if(*rec_ptr != 0x0a ) // line filled
rec_ptr++;
else
{
SER_DATA_RDY_F = 1;
rec_ptr = ser_in_arr;
}

if(ser_in_arr[0] == 'A')
DATA_RECEIVE_F = 1;
}
//////////////////////////////////////////
if(DATA_RECEIVE_F)
{
DATA_RECEIVE_F = 0;
weight = ser_in_arr[1] - '0' ;
weight *= 10;
weight += ser_in_arr[2] - '0' ;
weight *= 10;
weight += ser_in_arr[3] - '0' ;
weight *= 10;
weight += ser_in_arr[4] - '0' ;
}

The value in weight variable is displayed on lcd.
& the schematic of the wireless module is as attached.
The Rx data pin of receiver is connected to the RXD pin of controller.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top