JN5189 About this project Sleep time of LTOSensor in JN-AN-1246-Zigbee-3-0 Sensors

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

JN5189 About this project Sleep time of LTOSensor in JN-AN-1246-Zigbee-3-0 Sensors

3,688 次查看
Tome-mbedded
Contributor II

When I compile the LTO project with JN-AN-1246-Zigbee-3-0-Sensors, download it to the JN5189-DK006 development board and add the coordinator. For the first 3 minutes of the program running, it can hold

Wake up after 1 second of sleep and cycle to 180 seconds. When printing the log PIR_OC: vHandlePIROpenCollectorOccupiedToUnoccupiedTimerExpired (), after the Occ = 0, it's sleep time is not accurate, very frequent awakenings. Call this sleep function PWR_eScheduleActivity(&sWake, u32PwrmTicks, vWakeCallBack) return value 3(PWR_E_TIMER_RUNNING), why not return 0(PWR_E_OK).

Attached is the log. Could you please help me find out the reason?

thank you

标签 (2)
0 项奖励
回复
11 回复数

3,641 次查看
Tome-mbedded
Contributor II

Thank you very much for your reply. SDK version :Release Version: 2.6.12   I just modified the chip to JN5189 and for the IDE version,See the attachment,

0 项奖励
回复

3,671 次查看
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @Tome-mbedded

Hope you are doing well.

Just to confirm, what SDK version are you using? Have you modified the base source code of JN-AN-1246?

Regards,
Eduardo.

0 项奖励
回复

3,573 次查看
Tome-mbedded
Contributor II

hi @EduardoZamora ,   Do you have time to help me analyze this problem?   thankyou very much

0 项奖励
回复

3,626 次查看
Tome-mbedded
Contributor II

hi @EduardoZamora Attached is the original log of JN-AN-1246, which shows that the time of sleep and wake is inconsistent after line 1461: [11:38:26.671]

0 项奖励
回复

3,637 次查看
Tome-mbedded
Contributor II
Thank you very much for your reply. SDK version :Release Version: 2.6.12 I just modified the chip to JN5189 and for the IDE version,See the attachment,
0 项奖励
回复

3,552 次查看
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

Could you please test the pre-built binary file (before building your own binary by changing the device and IDE version)?

According to the JN-AN-1246 Zigbee 3 Sensors Document (inside JN-AN-1246 folder > Doc), when in Normal Mode, The LTO Sensor should send out an attribute report after 1 second if the light level / temperature level changes by at least a (defined) min reportable change. If there is no change, it will send a report after every 61 seconds by default.

The Occupancy Sensor is simulated by the USER INTERFACE button. If no event is simulated by pressing this button within a certain timeout period (180 seconds, by default), the sensor will move to the unoccupied state.

Regards,
Eduardo.

0 项奖励
回复

3,522 次查看
Tome-mbedded
Contributor II

hi, @EduardoZamora , thank you replay to me!

I tested the same phenomenon with pre-built binaries, waking up multiple times within 1s after 3 minutes.I think it's normal to wake up once for 1s, just like the first 3 minutes.See the screenshot below.Looking forward to your reply!Tomembedded_0-1692968834003.png

 

0 项奖励
回复

3,502 次查看
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

PreSleep callback should set the conditions before the controller is put into sleep mode. The main_task should validate if the device is able to sleep or not by calling vAttemptToSleep() and tries to put it into sleep mode if possible.

Regards,
Eduardo.

0 项奖励
回复

2,688 次查看
Tome-mbedded
Contributor II

@EduardoZamora  hello,

 Now I run this 1246 project again, compile the LTOSensor routine, I set 5s to wake up once, the property u16PIROccupiedToUnoccupiedDelay is set to 180s. It is not set to wake up 1 time in 5s sleep. Until the "userinterface" is pressed again, it will wake up once in 5s sleep, but after 180s, it wakes up frequently until the "userinterface" button is pressed, and the cycle is repeated. Why doesn't it sleep?

Tomembedded_0-1699521386364.png

Tomembedded_1-1699521445992.png

Tomembedded_0-1699882269247.png

Logs show frequent awakenings,Why is this?

 

 

0 项奖励
回复

2,609 次查看
Tome-mbedded
Contributor II

@EduardoZamora  hello, I have been puzzled by this question for more than a week, please help me look at it sometime。 Thank you very much.

0 项奖励
回复

2,669 次查看
Tome-mbedded
Contributor II

@EduardoZamora hello, Do you have time to look at this problem

0 项奖励
回复