Page 2 of 2

Re: UPS PICo HV3.0A does not talk to RPi3, then shuts down

PostPosted: Wed May 17, 2017 2:40 pm
by mivo
Scones wrote:However, it installed a "shed load" of software, far more than just the fssd daemon. The install went on for 10 -> 15 minutes Where can i find out what else was installed, and what benefits they give me?

I am not author of script nor UPS PIco, but based on my tests, it installs depending Python libraries and packages, and also updates Raspbian packages (optionally kernel) to latest available versions. Details are visible directly in script. You can sure make installation manually if you need full control ;)

Is there a way to go back and and set it correctly? I am using a 3000ah battery which I bought with my Pico 1.1 which I think is 'FE'

You can check current setting of battery type by pico_status_hv3.0.py script, or by registers value. It can be also changed by i2cset - look here, or docs on this forum (link below):
https://github.com/modmypi/PiModules/wi ... -Registers

Lastly, is there any documentation for using the Pico Hv3.0a? I wish to use the LED's and buttons with my Domoticz system, and want to set the UPS to not shut down the RPi until battery is down to 30%. I could be wrong, but I think the only version of the documentation I've found so far is for version 0x18

Hi,

some docs is available here in start of thread - Version 0x30 Firmware and Manual update (valid for 0x31 and 0x32 too, I think) :
viewtopic.php?f=25&t=2898

New firmware version 0x35 with docs is expected soon:
viewtopic.php?f=25&t=6200&p=10537#p10537

Re: UPS PICo HV3.0A does not talk to RPi3, then shuts down

PostPosted: Mon Sep 11, 2017 6:50 pm
by Scones
It's De Ja Vu time.

Once again my SD card has died (it was from the same batch). Unfortunately, the backup I had was too old so I had to start from scratch again. This worked fine apart from the PICO UPS. which was just like last time.

I have just had another go at fixing this. I have downloaded the install script mentioned earlier in this thread. I then used option 2 to remove everything, followed by a reboot followed by option 1 to install everything.

I made sure that the UPS was awake when it rebooted. However, it still did not work. As you can see below, the daemon starts and then immediately stops.

If I start the daemon on the command like with --debug or without, it works. If I stop the program the LED goes solid. If I start the program the LED flashes.

However, when trying to use the daemon it fails.

Also, if I try to use the install script to get the status it returns everything as n/a

Can anyone suggest what I need to do next. I can simply add the /usr/local/bin/picofssd to rc.local but I'd rather fix the problem properly

Code: Select all
root@domoticzpi:~# systemctl status picofssd
‚óŹ picofssd.service - Pico FSSD service
   Loaded: loaded (/etc/systemd/system/picofssd.service; enabled)
   Active: inactive (dead) since Mon 2017-09-11 18:48:49 BST; 2s ago
  Process: 819 ExecStart=/usr/local/bin/picofssd --xml-config /etc/pimodules/picofssd/picofssd.xml --pid-file /var/run/picofssd (code=exited, status=0/SUCCESS)
 Main PID: 819 (code=exited, status=0/SUCCESS)

Sep 11 18:48:46 domoticzpi.stainburn.com systemd[1]: Started Pico FSSD service.
Sep 11 18:48:49 domoticzpi.stainburn.com picofssd[897]: <INFO>: Started
Sep 11 18:48:49 domoticzpi.stainburn.com picofssd[897]: <INFO>: Stopped
root@domoticzpi:~# /usr/local/bin/picofssd --xml-config /etc/pimodules/picofssd/picofssd.xml --debug
^CTraceback (most recent call last):
  File "/usr/local/bin/picofssd", line 172, in <module>
    sd.start(not args.debug)
  File "/usr/local/lib/python2.7/dist-packages/pimodules/daemon.py", line 111, in start
    self.run()
  File "/usr/local/bin/picofssd", line 156, in run
    time.sleep(5)
KeyboardInterrupt
root@domoticzpi:~# /usr/local/bin/picofssd --xml-config /etc/pimodules/picofssd/picofssd.xml --pid-file /var/run/picofssd
root@domoticzpi:~#

Code: Select all
::: UPS PIco HV3.0A Status Script
------------------------------------------------------------------------
 
 -> PIco Firmware..........: n/a
 -> PIco Bootloader........: n/a
 -> PIco PCB Version.......: n/a
 -> PIco BAT Version.......: n/a
 
 -> No PIco service or daemon active, please install first...
------------------------------------------------------------------------
 
1) Install - PIco HV3.0A
2) Remove  - PIco HV3.0A
3) Status  - PIco HV3.0A
4) Upgrade - PIco HV3.0A
5) Config - PIco HV3.0A
6) Quit
#?

Re: UPS PICo HV3.0A does not talk to RPi3, then shuts down

PostPosted: Mon Sep 11, 2017 9:54 pm
by Siewert30SW
Try my new beta script, should do the trick.
First select to remove the UPS stuff then reboot after that select install UPS.
Script can be found here: viewtopic.php?f=27&t=4870&start=10#p11947

Re: UPS PICo HV3.0A does not talk to RPi3, then shuts down

PostPosted: Tue Sep 12, 2017 10:28 am
by Scones
Siewert30SW wrote:Try my new beta script, should do the trick.
First select to remove the UPS stuff then reboot after that select install UPS.
Script can be found here: viewtopic.php?f=27&t=4870&start=10#p11947

I've just tried your new beta script as instructed. Both the removal and install scripts looked to work fine.

However I'm still in the same boat. The daemon service starts and stops immediately, but when I run the command on the command line the program runs, the LED flashes, and the board is responsive (I can turn on/off the user LED's)