Part Number: CC2652R
Other Parts Discussed in Thread: SIMPLELINK-CC13X2-26X2-SDK, SYSCONFIG
Hello TI!
I have a sensor that I want to use as an occupancy sensor, which is neither PIR nor ultrasonic.
I have written the program for the sensor on my LP-CC2652R and want to use it with the Zigbee stack (as an end device) to communicate "occupied" / "not occupied" state to a coordinator on another LP-CC2652R.
As the current setup I have used the zc_sampleapp and zed_sampleapp as a starting point and added the clusters with the .syscf according to the ZHA and ZCL specifications for Occupancy Sensor. Coordinator is On/Off Light with Occupancy Sensing, and End Device is Occupancy Sensor. This is where I am stuck. The devices are in the network, but how should my working occupancy sensor application manage to communicate "Occupied" / "Not occupied"?
- Is it the
WEAK map8 sampleApp_OccupancySensing_Occupancy;that needs to be copied into sampleapp.c? - Is it possible fuse the zstack application code with my own for the occupancy sensor with thread synchronization and semaphores? Is it as simple as telling the zstack application to wait until the occupancy sensor notices a change in presence and posts?
