Part Number: CC1310
Other Parts Discussed in Thread: TIDA-00489
Tool/software: TI-RTOS
Hey guys,
I have been going through the application code of the TI 15.4 Star Network example using sensor/collector. I was able to get the example working, adapting a few parameters in the config file. I now want to understand the code and make some changes to fit it to my application. Therefor I need some help:
- I want to understand the Main_AssertHandler, there are three assert reasons:
- Icall: Is this something like an interrupt, caused by a polling of the sensor by the collector?
- Hwi: I assume this is a typical hardware interrupt?!
- MAC: I honestly don't know where to put that. What kind of assert reason is this?
- Scrolling down the "main.c" file of the sensor example one comes to 3 different assert handler, all of them calling the main_assertHandler function.
- Main_excHandler
- HalAssertHandler
- MacHalAssertHandler
- When are these functions called?
- I want the sensor to count up every time a hardware interrupt occurs. I am not sure where to put this function?!
- When the sensor is not transmitting or counting up, is the module going into standby or idle and where can I set it to go into standby to save some power?
- If I put the collector to polling every minute, is the collector calling every sensor node successively or does this "polling counter" start when the sensor enters the network? (hope you understand what I mean)
- In the sensor example I can send either the ID or the sensor value, I'd like to send both, what is the most elegant way to do this?
Many questions, I know, but especially the first two can help me to get a "firm grasp on the general system architecture" as proposed by the TI team to make my own custom applications :)
Kind regards
Stefan Weigl