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.

RTOS/LAUNCHXL-CC1350: ADC value not transmitting on RF in Sensor example TI-RTOS

Part Number: LAUNCHXL-CC1350


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.
  • Hi - this is for for the 15.4 stack, right?
    I noticed that our latest SDK contains a 15.4 stack training which includes transmitting temp. sensor data (over RF) from a Sensor to a Collector using the 15.4 stack, maybe you can use this training as a reference on how to solve your issue.
    It is located here:
    dev.ti.com/.../