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: Collector - Sensor example code questions

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

Just looking to clarify a few things in the example:

Are the api_mac files part of the SimpleLink SDK, 15.4 stack or part of the application?

Where does the code for them run in the CC1310? The main CPU or RF CPU?  It looks like it all runs on the main CPU.  If so what part does run on the RF CPU? 

Same for the ICALL part?

If i wanted to add code to have the sensor send a message on a pin/button interrupt how would that be integrated?  It looks like the sensor code calls api_mac_processIncoming calls icall and waits forever.  How would that be triggered to generate an event to resume the processing cycle?  For that same matter I don't see how the existing code does it for the timed temperature reading either.

Thanks for any pointers.

  • Just looking to clarify a few things in the example:

    Are the api_mac files part of the SimpleLink SDK, 15.4 stack or part of the application?
    [] API MAC is the interface to the TI 15.4-Stack MAC exposing Data and Management functionalities. It is documented at the <SimpleLink CC13x0 Install dir>\docs\ti154stack\mac_api location.


    Where does the code for them run in the CC1310? The main CPU or RF CPU? It looks like it all runs on the main CPU. If so what part does run on the RF CPU?

    Same for the ICALL part?
    [] stack and application code runs on main CPU (M3), RF CPU is responsible only for RF specific functions. Same for ICALL.


    If i wanted to add code to have the sensor send a message on a pin/button interrupt how would that be integrated? It looks like the sensor code calls api_mac_processIncoming calls icall and waits forever. How would that be triggered to generate an event to resume the processing cycle? For that same matter I don't see how the existing code does it for the timed temperature reading either.
    [] Please refer to the TI 15.4-Stack User guide Application Overview section to understand the software architecture: software-dl.ti.com/.../application-overview.html
    To answer your question - please see the sensor application, which implements platform specific functions (clocks, timers, key/button, etc event handling in ssf.c) and implements the main application logic in the application file sensor.c. You can see how periodically the application sends out temperature sensor data and use the same implementation framework for your end application.


    Hope this helps