Here is a draft of our proposed power failure countermeasure for the WP7608, which utilizes its built-in MCU. We plan to develop our own custom software to run on this built-in MCU.
During a power failure, the voltage of the main power supply drops. Based on this premise, could you please provide your feedback on the following two points?
1. Is it possible to send an AT command (such as AT!POWERDOWN) from our custom software on the built-in MCU upon detecting this voltage drop?
In our configuration, we have a main power supply and a dedicated supercapacitor sub-power supply for the WP7608.
Our plan is to use a WP7608 GPIO pin to detect when the main power supply voltage drops. If our software can send the AT command immediately after detection, we believe we can complete the power-down sequence while the sub-power supply is still active.
2. If the above approach is possible, are there any restrictions on which GPIO pin we should use for voltage detection?
Should we specifically use a GPIO pin that is directly connected to the built-in MCU, or is there no restriction on the GPIO selection?
Q1.
I believe your answer concerns sending AT commands from an external source (HOST-IC) to the WP76xx.
My question was whether it’s possible to send AT commands from the internal MCU, as shown in the diagram below.
If the main power supply is lost, the HOST-IC also turns off, making it impossible to send AT commands.
Let me confirm the answer to Q1.
In this test, the AT commands are sent from the built-in MCU, right?
In Q2, we also consider the ADC.
In this case, are ADC2/3, which are connected to the built-in MCU, the optimal ADC ports?
Or would ADC0/ADC1 also be acceptable?
Q1: as mentioned above, I am sending from the UART2 console.
Q2: I suggest you to do some testing on the mangoh board or WP76 development board for the ADC pins.
WP7608 is group A variant, so it should have ADC0-ADC3 four ADC pins
This is my first time working with WP7608, so I’m not very familiar with the UART2 console.
Is it possible to implement a UART2 console on the built-in MCU?
What I ultimately want to know is whether it’s possible to send an AT command from the WP7608’s built-in MCU when it detects a voltage drop with its ADC.
During a power drop, the external MCU (HOST-IC) that uses the main power supply turns off, but the WP7608 continues to operate using its dedicated sub-power supply.
When a voltage drop in the main power supply is detected, the external MCU cannot send AT commands, so we want the internal MCU to send the AT commands instead.
I believe this can be achieved by implementing the Legato application on the built-in MCU.
Is this understanding correct?
when you say built-in MCU, are you saying the MCU of group A variant?
Or you are saying the yocto linux of WP76xx module?
BTW, is that your product will have external MCU (HOST-IC) connected to WP76 module?
If yes, can you external MCU (HOST-IC) sense the power cut scenario?
If yes, then you can directly perform the “software- initiated power down” sequence mentioned above.
When I refer to the built-in MCU, I mean the Group A variant MCU.
The WP76 module will be equipped with an external MCU (host IC) connected to it.
The host IC cannot detect power interruptions.
Therefore, we want the WP7608 to detect them.
I apologize, it seems I misunderstood.
So, I need to transfer the Legato application from an external MCU to the WP7608 and use it there, right? That way, the WP7608 can monitor the voltage and control the mode, correct?
what do you mean by "transfer the Legato application from an external MCU to the WP7608 "?
I don’t think your external MCU in host platform can run legato application…
yes, that is correct, the legato framework is installed in lefwkro partition
and if you download a .update legato application to it, it is installed in userapp parition.
You can transfer the legato application(xxx.update file) from your Windows PC or linux PC by SCP protocol
Would autonomous control be possible if I created and downloaded a Legato application that monitors the power supply, switches modes when the voltage drops, or even turns itself off?
I am thinking of holding the sub-power supply for a minimum of 10 seconds.
The specification states that the OFF sequence time is a maximum of 8 seconds.
OK, understood.
Just a reminder, there might be degradation of supercapacitor after working in the field for a few years, so you might need to take this into account