This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

not able to use full transmission packet for timac

Other Parts Discussed in Thread: TIMAC

hi,

i am using timac to pass values through it.but i have a  problem.i am not able to use the completes transmission packet having length of 102 bytes,the first 4 bytes being for header of frame and rest for data transmission.

i am able to use only one byte of the transmission packet.i.e

msa_Data1[5] only i am able to use for transmission and pData->dataInd.msdu.p[4] at the receiver side for retrieval.

i am not able to use the full msa_Data1[102] and pData->dataInd.msdu.p[102] .

i am using the following for my operations.

receiver:

for (i=MSA_HEADER_LENGTH; i<MSA_PACKET_LENGTH; i++)
{

sprintf(sensbuffer,"%d ", pData->dataInd.msdu.p[i]);

while(sensbuffer[k])
{
while(!(UCA1IFG&UCTXIFG));
UCA1TXBUF = sensbuffer[k++];
}

}

transmission buffer loading:

or (i=MSA_HEADER_LENGTH; i<MSA_PACKET_LENGTH; i++)
{
msa_Data1[i] = ADC12MEM1; // Store the sampled data
}

 

where i am going wrong .plz help.