contiki-os / contiki

The official git repository for Contiki, the open source OS for the Internet of Things
http://www.contiki-os.org/
Other
3.72k stars 2.58k forks source link

At_PowerSave wont work for 6060h ACsip evaluation board #1886

Open joaohcca opened 8 years ago

joaohcca commented 8 years ago

A few weeks ago I started to work with the Ek-6060H EVB boards, I'm new to contiki and maybe someone could help with an issue. I'm trying to make the module sleep and wake up periodically to perform a at_scan but module either sleep and never wakes up or dosen't sleep at all. For reference I'm attaching the current operational code using an event timer to perform a 20s interval between scans, if possible I want the system to wait in sleep mode between scans for maximum power saving. At first I don't even need the module to stablish a connection with a wireless network.

code: http://pastebin.com/v5BBTkJi

joaohcca commented 8 years ago

Does anyone use this hardware? It seems pretty hard to find information online. I think I've identified the source of the problem. Either drv_pmu_sleep() is not working properly or the condition to wake up never comes, during tests the drm_pmu_int() returns 0 whitch should make the wakeup interval come