Tool/software: TI-RTOS
Hello,
My application consists of using the ADCbufContinuous example and the Sensor example to send ADC samples on RF to a Collector.
/////////////////////////////////////////CODE FROM AdcBufContinuousSampling.c in project adcbufcontinuous
ADCBuf_Handle adcBuf;
unsigned int readADCValue()
{
if (flag == 0)
{
return (unsigned int)sampleBufferOne[0];
}else
{
return (unsigned int)sampleBufferTwo[0];
}
}
/////////////////////////////////////////////////////////////////////////CODE FROM ssf.c in Sensor project
unsigned int readADCValue();
int16_t Ssf_readTempSensor(void)
{
#ifdef POWER_MEAS
return (0);
#else
return (unsigned int)readADCValue();
//return ((int16_t)AONBatMonTemperatureGetDegC()); ///////////////////////////////by shubhankar
#endif /* POWER_MEAS */
}//////////////////////////////////////////////////////////////////////////////////////////////////CODE ENDS
the sampleBufferOne and sampleBufferTwo gets the correct values when the code is run and there are no build errors. Uart also shows the adc buffer
being filled with ADC values
However the collector is not being able to join network with sensor and even if it does the ADC value is not received.
i tried running sensor and collector independently and sent demo values like 10,20 etc, they were showed in the collector UART.
Please help.