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.

LAUNCHXL-CC1310: ti15.4stack中加入外部传感器问题

Part Number: LAUNCHXL-CC1310
Other Parts Discussed in Thread: CC1310

按照参考TI 15.4-Stack - Adding a New Sensor中添加传感器的方法对cc1310进行修改,并且加入adcsinglechannel中adc采集功能,程序可以实现加入网络功能,但在一段时间后串口会打印出adc采集的值,最后打印“!Responding”,不在网络中活动

考虑到修改过程或许出现问题,然后使用已经封装好的light Sensor接口框架,即添加#define LIGHT_SENSOR,并在sensor.c的readSensor()中添加ADC_open和ADC_convert函数来获取adc采样的值。结果依旧在加入网络一段时间后断开连接,并打印“!Responding”