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.