Automatically run after power recovery
#1
Hi, 

Is it possible to run Rock64Pro without power button? Some time ago the power was cut in my home and when it recovered unfortunately my board didn't comes up by itself... It is a little bit annoy, especially when you're not at home and you would like to use you board remotely but you can't...

Cheers!
#2
Normally ROCKPro64 will boot again when power comes back.
Sorry for any mistakes. English is not my native language

1. Quartz64 Model B, 4GB RAM

2. Quartz64 Model A, 4GB RAM

3. RockPro64 v2.1

https://linux-nerds.org/
#3
(05-01-2019, 07:59 AM)Bullet64 Wrote: Normally ROCKPro64 will boot again when power comes back.

Unfortunately not... I also noticed weird symptom. When i disconnected the power supply and back it later the board didn't come up. I had to push the power button to run the board. Is there something wrong with my unit? Thanks for any advice!
#4
As I can see at the page 18 of rockpro64_v21-SCH.pdf, there may persist auto-boot feature, take a look at a diagram, marked red.


[Image: attachment.php?aid=1334]

If these components are installed, the board will turn on when the power is applied. If it is not turning on, check the network at  pin #34 (VDC) of U5 RK808-D chip. When the voltage on this pin is raising above 0.6V the power supply IC will turn on the power.

IMHO, the network on this pin is strange. If the voltage will rise slowly (it shouldn't because the voltage is producing by a 12 to 5V buck converter), the capacitor C204 will charge slowly and may not to produce enough VDC pulse. Also the VDC input of supply system IC has a debouncing time of 100ms. And in some circumstances the pulse may be not long and high enough to be detected with a margin.
I have none board yet and can't check the speed of voltage rise at RK808 #34 VDC pin. And I don't know what reasons have board developers to make such capacitor-coupled startup circuit. Probably it is perfectly OK and just was not installed.
Just for a reference, here is the network from RK808 data sheet:

[Image: attachment.php?aid=1335]

This circuit should turn the power system on at about 8V input. But sure, it is not so simple as at a glance. The LDO above the buck converter is not present in the design of ROCKPro64 v2.1. The voltage at the VDC will stat rising earlier than 5V buck regulator VCC5V0_SYS output and VCC_RTC voltage. That is the cause the RK808 may not turn on. It will not see the voltage rise and power-on interrupt will not trigger, no power-on will happen. Probably, this was a reason to implement the startup circuit as shown at top diagram.

In case of auto-boot circuit is present but not working, I'd recommend to try this circuit (in red):

[Image: attachment.php?aid=1336]


Attached Files
.png   Pine64_ROCKPro64_auto-boot_option.png (Size: 181.01 KB / Downloads: 2,596)
.png   RK808_Supply_Plugin_Detector.png (Size: 79.01 KB / Downloads: 2,268)
.png   Pine64_ROCKPro64_auto-boot_option_proposed.png (Size: 86.15 KB / Downloads: 2,843)
#5
organized schematic
#6
For what it's worth, I see this behavior too - my RockPro64 has never turned on when I plugged it in or after a power cut/restoration - I have always had to press the power button. Mine is in a case where it's a bit hard to see the LEDs, so I'd definitely consider it an improvement if the board could power on automatically.

I'll try to have it out of the case in the next few days and look for the circuit you've described.
#7
Mine second RockPro64 was arrived with 5A power supply. I tested autostart circuit at VDC pin, see my previous post https://forum.pine64.org/showthread.php?...4#pid46594

In short, with both 3A and 5A Pine64 power supply the circuit provides long enough pulse to turn on CPU power converter. I will add a diagrams from oscilloacope when will be at place.
#8
Here are the diagrams of power on at pin 34 of RK808 power management system.
This is a startup from Pine64 12V 3A power supply:
Blue is voltage on 34pin of RK808 "VDC", yellow is system power voltage VCC_5V0_SYS

[Image: attachment.php?aid=1380]

This is a startup with Pine64 12V 5A power supply:

[Image: attachment.php?aid=1381]

A close-up:

[Image: attachment.php?aid=1382]

It is seen that in both cases the VDC pulse is higher than 0.6V (higher than 0.6 screen cells) and longer than 100ms (longer than 1 screen cell).
RK808 power management system power plug-in detection time, TdbPLUG_IN declared as "typical", 100ms, with no maximum value. Pulse length on scope diagram is about 170..175ms. 70% margin from 100ms. Should be OK. But only in case of X5R dielectric for C204 1uF capacitor.

For initial question of @thomas88 and @TheWiley I'd recommend to look at the LEDs on the board and Ethernet connector at the moment of power plugging in. Will they blink somehow? If it is not a hardware problem, may be it is a software one?
Also I'd check the turn on with different board temperature. In case of different dielectric of C204 capacitor, the capacitance drift from voltage and temperature may significantly decrease the pulse length. In conjunction with unknown TdbPLUG_IN higher limit, turn on pulse may be shorter than actual TdbPLUG_IN time.

In other words, the design seems to me OK but two things need to be ensured: 1) C204 should be X5R or X7R dielectric, not Y5V/Z5U. 2) TdbPLUG_IN top limit should be defined by Rockchip as an IC manufacturer (may be I just don't have last RK808 datasheet).


Attached Files
.png   DS1Z_QuickPrint56.png (Size: 34.69 KB / Downloads: 2,171)
.png   DS1Z_QuickPrint57.png (Size: 34.75 KB / Downloads: 2,066)
.png   DS1Z_QuickPrint58.png (Size: 34.71 KB / Downloads: 2,149)
#9
I played a bit with this today and found that the auto-power-on seems to work less than 1/3rd of the time for me. When it does work, I do see the ethernet NIC lights come on immediately and the board starts responding to ping 30-60 seconds later. When it doesn't work, I get no NIC lights. I think that means I have a hardware problem?

If it makes a difference, I'm running with the 12v/5A PSU.

It also seems to matter how long the power is off - I haven't checked systematically, but auto-start seems to be more reliable if the board is unplugged for more than a minute or so. Does that make sense?
#10
(07-27-2019, 08:51 PM)TheWiley Wrote: I played a bit with this today and found that the auto-power-on seems to work less than 1/3rd of the time for me. When it does work, I do see the ethernet NIC lights come on immediately and the board starts responding to ping 30-60 seconds later. When it doesn't work, I get no NIC lights. I think that means I have a hardware problem?

If it makes a difference, I'm running with the 12v/5A PSU.

It also seems to matter how long the power is off - I haven't checked systematically, but auto-start seems to be more reliable if the board is unplugged for more than a minute or so. Does that make sense?

It might be because short power break doesn't lower PSU output to zero - there is some residual voltage so power resumption causes, say, a 9v pulse on power restore.
A longer power break makers the output fall to zero so, power resumption creates the full 12v rise.
Possibly?


Possibly Related Threads…
Thread Author Replies Views Last Post
  power button not working Vista8720 0 590 05-07-2024, 11:26 PM
Last Post: Vista8720
  enble boot after power loss/restore dkebler 18 12,417 12-04-2023, 12:14 PM
Last Post: ok38
  PCIE interface power on too late Slark Xiao 0 1,272 11-29-2022, 11:56 PM
Last Post: Slark Xiao
  Automatic power on after power outage gechu 1 3,174 11-17-2022, 06:13 PM
Last Post: acj_
  After Power Loss feature working bdherouville 2 2,828 08-22-2022, 03:52 AM
Last Post: bdherouville
  PWM fan control low power Connar 0 1,565 12-12-2021, 05:58 AM
Last Post: Connar
  ROCKPro64 sometimes doesn't Power On Pete Tandy 2 4,045 08-24-2021, 05:50 AM
Last Post: Pete Tandy
  Power Supply availability S265 2 4,406 06-07-2021, 09:20 PM
Last Post: S265
  control RP64 power on LMM 0 2,077 04-15-2021, 02:59 AM
Last Post: LMM
  Performance and Power Demand RockPro64 fotastisch 7 13,740 02-05-2021, 07:45 PM
Last Post: foresto

Forum Jump:


Users browsing this thread: 6 Guest(s)