Electronics > Beginners

Lwmesh Power saving

(1/4) > >>

Peili:
Hi,
    I am using the Lwmesh stack for avr-atmega256rfr2 MCU. I downloaded the Lwmesh and modify the code to send data as broadcast. My application is the End Device broadcast the data .. I'm using Watch dog Timer interrupt other than Hal_Sleep() function.. So my application is , End Device send data and go for sleep and when an interrupt come then wake up and send data using Watch Dog Timer of 2 sec.But the problem we are facing is we are not able to save battery(Since the devices are battery powered).I have measured the current consumption.It takes 20milli ampere  while sleeping and 15 milli ampere when it wakes up.I am using avr-atmega256rfr2 MCU . Here i'm attaching my code for End device(WSNDemo) and Hal_sleep. Please advice us to save battery life.. How to reduce the power consumption of the End Device?

ataradov:
This is not really related to LwMesh. You need to debug sleep modes separately first. This may be related to something else on your board, for example.

Peili:

--- Quote from: ataradov on September 03, 2019, 06:07:11 pm ---This is not really related to LwMesh. You need to debug sleep modes separately first. This may be related to something else on your board, for example.

--- End quote ---
What are the examples ? Is my code correct? Sometimes it works perfectly. How to debug the sleep modes? Please advise..

ataradov:
Create a static application that just sleeps. Does it achieve the expected consumption? That's the start. After you are sure that your sleep stuff works on its own, add it to the network code.

If "sometimes" it works, figure out what is different about times when it doesn't.

I don't know if code is correct. I have not worked with AVRs in many years, and I don't care to remember how it all works.

Peili:
Is broadcast frames consume more power? Now my current consumption is 4ms at ON time and 16UA at sleep.. i want to down the consumption in micro seconds.. How to reduce it?

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod