Hello All,
I am using zstack HA 1.20 and cc2538 for my project.
i know how zigbee is working and how it is monitoring for event in the task arr...
but i want to implement something like this -
1) i hav my another application code with main() and in that under while(1) loop i am monitoring my sensors data and processing it.... this application is for cc2538 only..
2) in this application i am creating some flag and as per the sensors data i am modifying this flag.
3) now i want zigbee event loop to come and check this flag whenever there is a change in my flag data....for ex..if in my flag fire sensor bit is getting high then zigbee should start executing ISR related to it and once it finishes the ISR it should return the control to my main code.........zigbee will not check for any HAL or GPIO or UART kind of interrupt all will be handled by main application...i want zigbee just for sending data OTA to another zigbee device.... but my application code and zigbee stack should be on single cc2538 chip.....
4) all i want is 2 thread one for zigbee application and other for my main application......one will execute my main code and if any flag bit is set by my application then another 2nd thread should take control and execute ISR and send data OTA and then reurn control to my main thread.....
5) i dont want to register my main code in task array of zigbee like generally we are doing.....
6) zigbee is like a ISR for me whenever my flag bit is sent it will take my flag data and sent OTA and again return control to my main code....
anyone plz help me and guide me how can i do this or how i can implement this....
Thanks & Regards,
Maneesh SIngh