Sinapse-Energia / talking-fiber

Firmware for optic fiber activity detection. Based on M3 MCU
0 stars 1 forks source link

[M95][Low Power] Use M95 in Low Power configuration #9

Closed ralcaide closed 5 years ago

ralcaide commented 5 years ago

In order to decrease the consumption of Quectel M95 is necessary to use it in Low Power mode and disable it when is not needed. Overview of TODOs:

Follow recommendations provide by attached guide with special focus to 2.2, 3 and 4. The design of the device is for the battery ER34615M

Quectel_Low_Power_Design_User_Guide_V1.3.pdf

ralcaide commented 5 years ago

@fpgamcu , any feedback about this task?

vAnArhist commented 5 years ago

Now code in AP_based have all listed features (disable M95 and low power mode fixes). By the way, M95 power enable/disable circuits (Q_10_2, Q_6_2,...) can be removed, because modem have power enable/disable circuits inside it.

ralcaide commented 5 years ago

Thank you very much. We have already performed preliminary testing and seem is working good :). But we found a possible bug:

The current configuration is: PERIODIC = 60m y ALERTS = 5m.

Any idea?

ralcaide commented 5 years ago

Related with the consumption, the HW designer tells that the best option is to disable the all the peripherals after the set power_key to 0. This is possible to be done setting the transistors to 0. Could you please do that and test that the re-connections are still working? We think the high consumption in sleep mode is related with that.

vAnArhist commented 5 years ago

I have tested with setting EX_ENABLE_GPRS_BATTERY to 0 when not publishing and setting EX_RESET_PHOTODIODE to 0 when not measuring, But it still sometimes going to state when all the time consuming 0.05 A

ralcaide commented 5 years ago

This is a bad new, seems that there is some kind of HW problem. Could you please push the code that disconnects the peripherals when are not in use? We will try testing in our side and disconnect physically some peripherals in order to understand what is happening

vAnArhist commented 5 years ago

The code setting EX_RESET_PHOTODIODE to 0 when not measuring it already there. The code setting EX_ENABLE_GPRS_BATTERY to 0 sometimes causing power reset of the board (was causing it always before fix with power off the M95 using PWRKEY). Setting EX_ENABLE_GPRS_BATTERY to 0 while not publishing - uncomment lines 178 179 and 227 in main.c

ralcaide commented 5 years ago

Ok thanks, we will test.

ralcaide commented 5 years ago

Tested OK.