Why is the end device not to enter sleep mode?

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is the end device not to enter sleep mode?

396 Views
qingshuzhuang
Contributor II

* Test environment : 
- JN5169 
- SDK : JN-SW-4170, Build Number 1840
- device :

   Coordinator, base on JN-AN-1216-Zigbee-3-0-IoT-ControlBridge

   end device,base on JN-AN-1220-Zigbee-3-0-Sensors

I use LED to determine if the device is sleeping.

Most of the time the end device is running normally.

When end device not to enter sleep,the device still can report attribute.

I think is this condition false,but i don't know why.

Can you give me some help or tips?

pastedImage_1.png

Labels (2)
Tags (4)
0 Kudos
7 Replies

173 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi,

Did you change the reporting time?

The LED that you are working on. The LED is off when you are in sleep mode?

Are you working on the Light Sensor?

Regards,

Mario

0 Kudos

173 Views
qingshuzhuang
Contributor II

Hi Mario:

Thank you for your reply。

1.Yes, I change the reporting time.

Actually, I use the button to control attribute report.

My report function:

pastedImage_4.png

2.LED light up on the wakeup,off on the sleep

pastedImage_3.png

pastedImage_1.png

3.I am working on the Temperature and humidity sensor.

0 Kudos

173 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi,

As my understanding, if you press the button you will send the attribute report.

Did you try to send this data with a timer?

Is the device entering into sleep mode without the led toggle?

Regards,

Mario

0 Kudos

173 Views
qingshuzhuang
Contributor II

Hi Mario:

Yes, press the button will send the attribute report.

Normally, a attribute report will be sent every two hours.

I always turn off led before going to sleep.

0 Kudos

173 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi,

Does the device go to sleep mode with the timer?

Do you have enabled the TRACE REPORT? What is the teZCL_Status value that you get?

Regards,

Mario

0 Kudos

173 Views
qingshuzhuang
Contributor II

Hi Mario:

1.sorry,I don't understand the meaning of this question.

I uploaded my project and it may be useful.

some code for sleep:

pastedImage_1.png

2.I don't have enable the TRACE_REPORT,but, I can see report message on the coordinator.

Regards,

Zhuangqingshu

0 Kudos

173 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi,

Could you please print out the return value of the u8NumberOfNonSleepPreventingTimers?

The TRACE_REPORT will print out the messages in the SED, this will provide a better debugging of the application.

Regards,

Mario

0 Kudos