Hi,
I am working on z-stack and need some help related to it. I have the following hardware with me:
Stellaris LM3S9B96-DK
DK-LM3S9B96-EM2 along with CC2520EM mounted on top of it. This module is connected with Stellaris LM3S9B96-DK target
Two CC2530EM connected on SmartRF05 Battery Boards. These two BB board communicate with zigBee daughter card attached with Stellaris LM3S9B96-DK target.
So this is my hardware setup. Stellaris LM3S9B96-DK target is running as a coordinator and the battery boards are acting as an end device.
My question is, I have very minimum memory and CPU bandwidth on Stellaris LM3S9B96-DK target and I am developing a hard real time application so I have to take care about CPU bandwidth.
I have started my application development by taking reference from TI's zstack_collector demo. In this demo, a while(1) loop is being used that needs to be called after every few seconds (as mentioned in the source code comments by TI) but I cant afford this loop to be called after every few seconds because it will keep my CPU busy. It is totally a pooling mechanism. I have seen some callbacks that z-stack uses and inform the application via these callbacks but again I have to keep the loop running forever. Is there not any interrupt based mechanism or any other solution?
My second question is:
According to my above hardware setup, my one device will always only receive the data and other will act only transmitter. So do I need to run forever loop in both devices? Can I configure the receiving device in interrupt mode only and move the network management options to my device doing only TX?
Question 3:
As I am new in z-stack so I have an entry level question and I hope that you will not mind :-)
Actually when i link my application, I have to provide some pre-compiled libraries to linker and these libraries are "ecc.a, routermtpro.a, routerpro.a, security.a, timac.a". Why I need to link these libraries? why not the code of these libraries is not a part of z-stack? Why TI has provided these separate libraries?
Huge thanks in advance for your help
Best Regards,
Zaheer