Open nomad-fr opened 6 years ago
Hi,
Please note that UPS PIco firmware recognize on what model is running (HV3.0A, B or B+) automatically based on bootloader info. Therefore some functionalities are automatically activated with specific implementation to each model.
The Magic Switch is not activated in Model UPS PIco HV3.0B+, and is activated only on Models UPS PIco HV3.0B. I will activate it in the firmware also for model UPS PIco HV3.0B+ (that has slightly different functionality) we are going to release on Monday/Tuesday with this and others functionalities
Please do the following in order to activate the Magic Switch fro UPS PIco HV3.0B
With Cable powering connected do the following
Make sure that Magic Switch is on Position ON (on the LEDs side)
Check the Magic Switch Register
i2cget -y 1 0x6b 0x16
should be 0x00 or 0xff
i2cset -y 1 0x6b 0x16 0xaa
Remove Powering Cable
It is still running, but on battery mode
Switch the Magic Switch to OFF position
System start shutdown, and after short time cut the power
Whenever you like can make it ON/OFF (of is always with system shutdown first)
IMPORTANT NOTICE: When the Magic Switch Register is programmed, the battery running register is automatically set to 0xff, so system is running on battery until it is low, then system automatically shutdown. If you like to have it running shorter, you need to reprogram the register for a shorter time with just after Magic Switch programming
On 7/18/2018 5:45 PM, nomad-fr wrote:
Hi, I just have read the new manual version .
|3.0 15/06/2018 all Updated to Version HV3.0B/C with new functionalities and B+ assembly Instructions |
I still don't understand which register I have to set to which value to enable magic-switch :
- power off of pi when slide is in off position (with battery and don't care about of Cable power)
- power on of pi when slide is in on position (with battery and don't care about of Cable power)
There is some new information on page 84, but it's not really clear for me.
— 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/21, or mute the thread https://github.com/notifications/unsubscribe-auth/AIJ_hITa9AXmMiXIR3uchmNC5ubmzDOfks5uH0n1gaJpZM4VUvPV.
-- Ioannis/PiModules
The Magic Switch is not activated in Model UPS PIco HV3.0B+, and is activated only on Models UPS PIco HV3.0B.
Has this changed in between? Do I need to do anything special to have the magic switch shut down the Pi when switched off, and power it on when switched on, no matter if running on power or battery? (It's for a remote site, I can instruct people there to turn off and on a switch if it stopped working, but not to connect to the Pi via ethernet and SSH.) On the first try, after installing the software, the switch seemed to have no function.
Hi,
Yes, you need toprogram this switch to be usable on both models as firmware is common.
Please read the manual it quite good described, and based on the manual ask for any clarifications
When you switch OFF with Magic switch the system (RPi + PIco) they it takes care to properly shutdown the Raspberry pi and then cut the power. So, you are completely safe.
You need SSH only for programming or terminal, then it is working automatically. It is working only when system is powered by battery. For the Raspberry Pi B+, and proper PIco version (if you have installed the PE pin) then it is working also when cable power is used.
BR Io
On 19-Jul-19 2:48 PM, Jan Schlüter wrote:
The Magic Switch is not activated in Model UPS PIco HV3.0B+, and is activated only on Models UPS PIco HV3.0B.
Has this changed in between? Do I need to do anything special to have the magic switch shut down the Pi when switched off, and power it on when switched on, no matter if running on power or battery? (It's for a remote site, I can instruct people there to turn off and on a switch if it stopped working, but not to connect to the Pi via ethernet and SSH.) On the first try, after installing the software, the switch seemed to have no function.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/modmypi/PiModules/issues/21?email_source=notifications&email_token=ACBH7BG2U5VZX7SLR5J4TX3QAGSXDA5CNFSM4FKS6PK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2LM4ZI#issuecomment-513199717, or mute the thread https://github.com/notifications/unsubscribe-auth/ACBH7BDGQZLPB7BNYC4ASHLQAGSXDANCNFSM4FKS6PKQ.
-- Ioannis
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.
Hi, Yes, you need toprogram this switch to be usable on both models as firmware is common. Please read the manual it quite good described, and based on the manual ask for any clarifications
Yes, I tried that before, but wasn't sure if the manual was complete. I tried to download the latest manual by following the link "Latest Firmware and Manual" on the product page, but it's a 404. I found a manual from 15.06.2018. It has a chapter on the magic switch with an incomplete table on the powering behavior depending on the switch state and some "PICo registers", but it always says "Standard FSSD functionality and Low Powering as described in other chapters". There were no instructions on what to install.
I now found a later manual via Our Products -> UPS Pico HV 3.0 A/B/B+ -> Common Updates, in the form of a news entry: https://drive.google.com/open?id=1-qsnRpp6tYCa9hC7_SYldHXyOm-1pYLi. It explains well what to do!
For the Raspberry Pi B+, and proper PIco version (if you have installed the PE pin) then it is working also when cable power is used.
Great! One question though: When I do i2cset -y 1 0x6b 0x16 0xaa
while the switch is in OFF position, will the system shut down immediately? I am not sure what position I left the switch for one of the remote devices. Thanks!
Hi,
I tried to use the magic switch with a ups pico hv3.0b+ HAT Model Stack 450 (fw 0xe3) with a rpi model 3b+. I wasn't able to make it work.
First, I soldered the gold plated pins to the P4 and PE based on the instruction in A1ssembly of the Gold-Plated Hardware Reset Pin (POGO Pin) from the manual.
Second, I modified the register based on the instruction in Setting-up the Magic Switch from the manual.
But, switching on/off the magic switch make no difference. The raspberry never turn off.
Still the hard reset work when pressing on RR.
@f0k Did the magic switch worked for you ?
@PiModules What did i miss ? Do you have any fix to make it work ?
Thanks for the answers.
@f0k Did the magic switch worked for you ?
I couldn't test it myself, but colleagues said it works...
@f0k Did the magic switch worked for you ?
I couldn't test it myself, but colleagues said it works...
Hi,
@f0k Thanks for your reply.
I tried with two rpi and two modules. It didn't work.
So i came to use ssd button to start/stop the rpi. But it will be much cleaner to use the magic switch.
Hi,
I checked it million times and it is working. Please report firmware version to check again it
My be 1 per million I done something mistake on the firmware
Please report it, to check as we have ready newer firmware to release
Please follow exactly instruction form manual, please exactly
BR Io
On 24-Aug-19 3:52 PM, alijem wrote:
@f0k <https://github.com/f0k> Did the magic switch worked for you ? I couldn't test it myself, but colleagues said it works...
Hi,
@f0k https://github.com/f0k Thanks for your reply.
I tried with two rpi and two module. It didn't work.
So i came to use ssd button to start/stop the rpi. But it will be much cleaner to use the magic switch.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/modmypi/PiModules/issues/21?email_source=notifications&email_token=ACBH7BBANJY5JFQFJ3EM5TDQGEVI3A5CNFSM4FKS6PK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5B7ORI#issuecomment-524547909, or mute the thread https://github.com/notifications/unsubscribe-auth/ACBH7BBRDKKX24KQKTSJPPLQGEVI3ANCNFSM4FKS6PKQ.
-- 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.
Hi, I just have read the new manual version .
I still don't understand which register I have to set to which value to enable magic-switch :
There is some new information on page 84, but it's not really clear for me.