modmypi / PiModules

GNU General Public License v3.0
54 stars 27 forks source link

No Boot although power is present #30

Open alexiordan opened 5 years ago

alexiordan commented 5 years ago

UPS PIco HV3.0B with Raspberry PI 3 Model B

Sometimes when powering on, Raspberry remains off.

Here is my scenario:

  1. Power on
  2. Battery gets loaded.
  3. Power off
  4. Raspberry has enough power to shutdown clean
  5. Power on

[Steps 2 to 4 are repeated until battery is depleted]

  1. Power on

Now here sometimes it doesn't boot anymore. On UPS PIco: UPS and BAT are lightened On Raspberry: Red led is lightened.

I wait for 20-45 seconds, and then:

UPS PIco: ( 3 LEDS near GPIO OR OR CHG )are all lightened for a second , then UPS and BAT are lightened Raspberry PI: Red light is always on, while ACT blinks in set of 7 blinks

If I Power off, wait 5 seconds, an power on again,, it works.

Any ideas? If SD Card was the issue I would have seen a boot error at least once I guess...

PiModules commented 5 years ago

Hi,

  1. What firmware do you have  installed ?

  2. Please update the firmware with the newest one, as we re-write complete the Low Powering Mode state machine

Then please test it again and report if there is a bug

http://pimodules.com/products/ups-pico-hv3-0a-b-b/common-updates

On 9/27/2018 11:22 PM, Alex wrote:

UPS PIco HV3.0B with Raspberry PI 3 Model B

Sometimes when powering on, Raspberry remains off.

Here is my scenario:

  1. Power on
  2. Battery gets loaded.
  3. Power off
  4. Raspberry has enough power to shutdown clean
  5. Power on

[Steps 2 to 4 are repeated until battery is depleted]

  1. Power on

Now here sometimes it doesn't boot anymore. On UPS PIco: UPS and BAT are lightened On Raspberry: Red led is lightened.

I wait for 20-45 seconds, and then:

UPS PIco: ( 3 LEDS near GPIO OR OR CHG )are all lightened for a second , then UPS and BAT are lightened Raspberry PI: Red light is always on, while ACT blinks in set of 7 blinks

If I Power off, wait 5 seconds, an power on again,, it works.

Any ideas? If SD Card was the issue I would have seen a boot error at least once I guess...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/modmypi/PiModules/issues/30, or mute the thread https://github.com/notifications/unsubscribe-auth/AIJ_hFJJUTW7YkkrYNZ2hIOQCmXcfIdrks5ufTONgaJpZM4W9ZLD.

-- Ioannis www.pimodules.com

alexiordan commented 5 years ago
  1. I don't know. I use Windows 10 IoT and I only send the periodic message to keep UPS aware of raspberry being alive.

  2. I will do that and come back.

PiModules commented 5 years ago

It is very possible that you are not doing it properly

Please check your system with NOOBs (use our image, on the same link) and if problem continue with our image then we will talk again

On 9/28/2018 12:09 AM, Alex wrote:

I don't know. I use Windows 10 IoT and I only send the periodic message to keep UPS aware of raspberry being alive.

-- Ioannis www.pimodules.com

alexiordan commented 5 years ago

I will do that. However the issue happens very early, before OS boots-up. Where do you see I could have done something wrong?

PiModules commented 5 years ago

PIco is sending a pulse train, each pulse is firing interrupt on the RPi, and the RPi respond on each one. Are you doing that ?

On 9/28/2018 12:28 AM, Alex wrote:

I will do that. However the issue happens very early, before OS boots-up. Where do you see I could have done something wrong?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/modmypi/PiModules/issues/30#issuecomment-425249014, or mute the thread https://github.com/notifications/unsubscribe-auth/AIJ_hHtByQvBBB-9Mu5ZVl1-Y9cGFOPlks5ufULxgaJpZM4W9ZLD.

-- Ioannis www.pimodules.com

alexiordan commented 5 years ago

Yes. I use the library here: https://github.com/demetr1ce/PIcoFssd/blob/master/PIcoFssd/StartupTask.cs that was adapted from https://github.com/modmypi/PiModules/blob/master/code/python/upspico/picofssd/scripts/picofssd

PiModules commented 5 years ago

OK, I will check it

I do not know them, however it is not saying anything. I designed the PIco/Firmware, however I'm not able to follow all info about PIco over the internet. So, please check during the weekend I will see these info.

On 9/28/2018 12:36 AM, Alex wrote:

Yes. I use the library here: https://github.com/demetr1ce/PIcoFssd/blob/master/PIcoFssd/StartupTask.cs that was adapted from https://github.com/modmypi/PiModules/blob/master/code/python/upspico/picofssd/scripts/picofssd

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/modmypi/PiModules/issues/30#issuecomment-425251012, or mute the thread https://github.com/notifications/unsubscribe-auth/AIJ_hPEBtuGSPdndTleHqR9WHWm9XK6rks5ufUThgaJpZM4W9ZLD.

-- Ioannis www.pimodules.com

alexiordan commented 5 years ago

Do you say that the pulse train is meant to be replied even before OS got loaded?

daghemo commented 5 years ago

Similar problem here. Maybe. Just happened for the very first time.

When I remove the external power from my battery backed PIco UPS, it usually restarts my RPi as long as the PIco is powered again, with no need to press any button. Also, please note that FSSD is in use, so as long as the external power is removed from the PIco for something more than 2 minutes the RPi shuts down, safely.

This time the PIco has been left with no external power for a couple of days.

Al long as I've powered again, the RPi didn't boot! The PIco was blinking, but it was not supplying any power to the RPi: LEDs off on the RPi. I had to press the button to boot the RPi. This is usually not feasible in my user scenario, since the board is installed in remote locations with no human access.

Running firmware e1, as reported by pico_status.py.

alexiordan commented 5 years ago

@daghemo ,

  1. What OS are you running on Raspberry PI?
  2. What button have you pressed to reset it?

More info on my issue: In production it happened to tried even 2 or 3 times to power on without success. But there I have no display or other means to tell what actually happened. I cannot reproduce this in my lab.

In my lab test I found out followings:

With Windows 10 IoT:

With Raspbian (both from Raspberry site and from the address pointed here: https://github.com/modmypi/PiModules/issues/30#issuecomment-425233603)

So my current conclusions are as follows:

  1. For the scenario out in production, where I have seen even 2 or 3 attempts to power on without succes. I cannot reproduce in lab. I don't know what happened. I cannot blame anyone yet.
  2. For the scenario that could be reproduced in lab I might think is an OS problem that don't put the device in right state when powered off - see my other thread here: https://github.com/ms-iot/bsp/issues/36

@PiModules ,

Can it be enabled so to be running on startup (and if Raspberry doesn't do anything to attempt a restart)?

PiModules commented 5 years ago

Hi,

Any question reported to this our our main technical forum should be followed with below information to avoid multiple questions form our side

  1. What model of PIco do you have

  2. What firmware are you using on PIco

  3. What OS (Image) are you using

  4. How it is powered - What battery are you using

  5. What hardware have you installed on top

  6. As most is possible information (i.e. what PSU are you using, small description of effect you see, possible photos of bottom and top side, possible short video, if PIco is assembled)

We kindly asked for that on our main technical forum, but not here. Until we activate the main forum please follow these rules. With provided above information usually we are able to answer within one post without asking for all that info each time

Thank you

On 9/28/2018 8:50 AM, daghemo wrote:

Similar problem here. Maybe. Just happened for the very first time.

When I remove the external power from my battery backed PIco UPS, it usually restarts my RPi as long as the PIco is powered again, with no need to press any button. Also, please note that FSSD is in use, so as long as the external power is removed from the PIco for something more than 2 minutes the RPi shuts down, safely.

This time the PIco has been left with no external power for a couple of days.

Al long as I've powered again, the RPi didn't boot! The PIco was blinking, but it was not supplying any power to the RPi: LEDs off on the RPi. I had to press the button to boot the RPi. This is usually not feasible in my user scenario, since the board is installed in remote locations with no human access.

Running firmware e1, as reported by pico_status.py.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/modmypi/PiModules/issues/30#issuecomment-425328415, or mute the thread https://github.com/notifications/unsubscribe-auth/AIJ_hD6EowRSPN-H1anMf7g4BxvwiLmDks5ufbihgaJpZM4W9ZLD.

-- Ioannis www.pimodules.com

Pi Modules Legal Disclaimer The content of this email is confidential and solely intended for the indicated addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient be informed that disclosure, reproduction in any form, in part or whole, or circulation of the content of this email is prohibited and may be unlawful. In this case, please inform immediately the sender of the email.

daghemo commented 5 years ago

@alexiordan, I do not think that the running OS has any importance in my case. That's because no OS was running since the RPi was powered. That is, in my case the power LED on the RPi is off! I'll try to reproduce the problem and open another issue.

alexiordan commented 5 years ago

@daghemo , If it is no secret, I would still appreciate your answer.

This is because Windows guys said thay ran into some problems with Raspberry PI:

We do not completely shutdown the Raspberry Pi device as each of you reported. We had trouble accessing the power rail firmware and settled on putting the device in a sleep state.

from here: https://social.msdn.microsoft.com/Forums/en-US/deec2cc3-e36d-40b0-9105-cc6737402666/raspberry-pi-wake-up-from-shutdown-state?forum=WindowsIoT

This is why I was asking about OS.

daghemo commented 5 years ago

@alexiordan, it's not a secret: I'm using Resin.io with a Rasbian Docker image.

PiModules commented 5 years ago

Please answer to the list of questions for further support you

Thank you and Kind Regards

On 9/28/2018 12:39 PM, Alex wrote:

@daghemo https://github.com/daghemo , If it is no secret, I would still appreciate your answer.

This is because Windows guys said thay ran into some problems with Raspberry PI:

We do not completely shutdown the Raspberry Pi device as each of
you reported. We had trouble accessing the power rail firmware and
settled on putting the device in a sleep state.

from here: https://social.msdn.microsoft.com/Forums/en-US/deec2cc3-e36d-40b0-9105-cc6737402666/raspberry-pi-wake-up-from-shutdown-state?forum=WindowsIoT

This is why I was asking about OS.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/modmypi/PiModules/issues/30#issuecomment-425381485, or mute the thread https://github.com/notifications/unsubscribe-auth/AIJ_hFgkfhXOJ6ENp1G3K1ovegSYbTdEks5ufe5TgaJpZM4W9ZLD.

-- Ioannis www.pimodules.com

Pi Modules Legal Disclaimer The content of this email is confidential and solely intended for the indicated addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient be informed that disclosure, reproduction in any form, in part or whole, or circulation of the content of this email is prohibited and may be unlawful. In this case, please inform immediately the sender of the email.

alexiordan commented 5 years ago

@PiModules I will try to reply to all those question in about 5 hours.

How can I determine the firmware version of the PIco?