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

Support for the UPS PIco HV3.0A

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

Postby Scones » Mon May 08, 2017 5:03 pm

I was running a RPi2 with a Pico HV1.1 running Rasbpian Wheeezy and Domoticz. The SD failed so I started again.

I am now running a RPi3 with a brand new Raspbian Pixel install. I have installed the latest Domoticz and copied everything over.

I also copied the files and settings over for the HV1.1 before realising that it doesn't fit the RPi3 properly. I then ordered a HV3.0A which I have received.

I followed the instructions for installing the new software for the FSSD service etc and tested it. As soon as I started the fssd.service my RPi shut down.

I then fitted the new HV3.0A and had the problem referred to by others whereby as soon as the bootup completed the system shut down again. As instructed in

viewtopic.php?f=22&t=4071&start=10

I re-ran the software install and this fixed that problem. However, I am now in the situation where the RPi and Pico don't appear to be talking to each other.

When I apply power the Pico beeps three different tones and the blue light comes on solid. The Rpi boots up as normal and Domoticz runs. I do get an error saying that the hwclock cannot be read in rc.local

After a while the blue UPS light goes out. If I try to run pico_status.py I get the following:

Code: Select all
i@domoticzpi:~/PiModules/pico_status $ ll
total 8
-rw-r--r-- 1 root root 5914 May  8 11:36 pico_status_hv3.0.py
pi@domoticzpi:~/PiModules/pico_status $ python pico_status_hv3.0.py
 
***********************************
      UPS PIco HV3.0A Status       
***********************************
 
  UPS PIco Firmware.....:
Traceback (most recent call last):
  File "pico_status_hv3.0.py", line 186, in <module>
    print " ","UPS PIco Firmware.....:",fw_version()
  File "pico_status_hv3.0.py", line 29, in fw_version
    data = i2c.read_byte_data(0x69, 0x26)
IOError: [Errno 121] Remote I/O error
pi@domoticzpi:~/PiModules/pico_status $


Any suggestions on what I should do next?

Code: Select all
root@domoticzpi:~# more /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

i2c-dev
i2c-bcm2708
rtc-ds1307
root@domoticzpi:


root@domoticzpi:~# grep -v '^#' /boot/config.txt
root@domoticzpi:~# grep -v '^#' /boot/config.txt
dtparam=i2c_arm=on
dtparam=spi=on

dtparam=audio=on

dtparam=spi=on
dtparam=i2c1=on
dtparam=i2c_arm=on
dtoverlay=w1-gpio
gpu_mem=16

dtoverlay=pi3-disable-bt
enable_uart=1
dtoverlay=i2c-rtc,ds1307
Scones
 
Posts: 13
Joined: Tue Jan 05, 2016 3:15 pm

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

Postby Pimaster » Mon May 08, 2017 5:06 pm

Hi,
The new PIco HV3.0 is working with daemons, so old files HV1.1 can not be used.
It is different approach (and better). You must do for the HV3.0 the proper installation of daemons.
Soon the new firmware for the HV1.1 wil use the same daemons
If PIco not receive a proper pulse train, after 90 seconds goes to sleep mode, and is not responsive, as assume that Raspberry Pi is not working
Warmest Regards
PiM
---
Designing with Mentor Graphics PADS - www.pads.com
Please read and follow the PiForum rules
http://www.forum.pimodules.com/viewtopic.php?f=13&t=196
---
Pimaster
Site Admin
 
Posts: 1593
Joined: Fri Sep 14, 2012 7:50 am

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

Postby Scones » Mon May 08, 2017 6:08 pm

Pimaster wrote:Hi,
The new PIco HV3.0 is working with daemons, so old files HV1.1 can not be used.
It is different approach (and better). You must do for the HV3.0 the proper installation of daemons.
Soon the new firmware for the HV1.1 wil use the same daemons
If PIco not receive a proper pulse train, after 90 seconds goes to sleep mode, and is not responsive, as assume that Raspberry Pi is not working

90 seconds is about right before the blue UPS LED goes out.

I have removed the old code and installed the new ones as described above. As far as I know I only have the new code running.

I did not have the picofssd.service enabled which I have now done. It has not made any difference.
The LED still goes out after 90 seconds and pico_status.py still does not communicate with the board

The service is running, although looking at the output there is something wrong:

Code: Select all
root@domoticzpi:~# systemctl status picofssd.service
● picofssd.service - Pico FSSD service
   Loaded: loaded (/etc/systemd/system/picofssd.service; enabled)
   Active: inactive (dead) since Mon 2017-05-08 18:02:39 BST; 4min 2s ago
  Process: 749 ExecStart=/usr/local/bin/picofssd --xml-config /etc/pimodules/picofssd/picofssd.xml --pid-file /var/run/picofssd (code=exited, status=0/SUCCESS)
 Main PID: 749 (code=exited, status=0/SUCCESS)

May 08 18:02:36 domoticzpi.stainburn.com systemd[1]: Started Pico FSSD service.
May 08 18:02:39 domoticzpi.stainburn.com picofssd[818]: <INFO>: Started
May 08 18:02:39 domoticzpi.stainburn.com picofssd[818]: <INFO>: Stopped
root@domoticzpi:~#
Scones
 
Posts: 13
Joined: Tue Jan 05, 2016 3:15 pm

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

Postby Pimaster » Mon May 08, 2017 10:21 pm

Hi,
1. You must have blinking UPS LED is daemons are running. If not blinking, system goes to sleep and I2c gone
2. You must use the new pico status script, and not the old one, the PIco status script have be written by a volunteer Siewert30SW, and listed here
viewforum.php?f=27
Warmest Regards
PiM
---
Designing with Mentor Graphics PADS - www.pads.com
Please read and follow the PiForum rules
http://www.forum.pimodules.com/viewtopic.php?f=13&t=196
---
Pimaster
Site Admin
 
Posts: 1593
Joined: Fri Sep 14, 2012 7:50 am

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

Postby mivo » Tue May 09, 2017 6:59 am


The LED still goes out after 90 seconds and pico_status.py still does not communicate with the board

The service is running, although looking at the output there is something wrong:

Code: Select all
root@domoticzpi:~# systemctl status picofssd.service
● picofssd.service - Pico FSSD service
   Loaded: loaded (/etc/systemd/system/picofssd.service; enabled)
   Active: inactive (dead) since Mon 2017-05-08 18:02:39 BST; 4min 2s ago
  Process: 749 ExecStart=/usr/local/bin/picofssd --xml-config /etc/pimodules/picofssd/picofssd.xml --pid-file /var/run/picofssd (code=exited, status=0/SUCCESS)
 Main PID: 749 (code=exited, status=0/SUCCESS)

May 08 18:02:36 domoticzpi.stainburn.com systemd[1]: Started Pico FSSD service.
May 08 18:02:39 domoticzpi.stainburn.com picofssd[818]: <INFO>: Started
May 08 18:02:39 domoticzpi.stainburn.com picofssd[818]: <INFO>: Stopped.   <=== STOPS IMMEDIATELY
root@domoticzpi:~#

Hi,

daemon stops immedately after start - it should not. Please try to start it in debug mode - it starts interactively in foreground, does not return to shell prompt. You can stop it by Ctrl-C
Code: Select all
/usr/local/bin/picofssd --xml-config /etc/pimodules/picofssd/picofssd.xml --debug

Is there any error after start ?
My toys:
Raspberry Pi 3 + UPS PIco HV3.0 A Stack
Minibian (Raspbian Jessie) + Domoticz beta

RaZberry module + 2x Comet Z-Wave + Z-wave socket
WeMo Switch
mivo
 
Posts: 25
Joined: Fri Apr 21, 2017 9:11 pm
Location: Czechia

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

Postby Scones » Tue May 09, 2017 11:03 am

mivo wrote:Hi,

daemon stops immedately after start - it should not. Please try to start it in debug mode - it starts interactively in foreground, does not return to shell prompt. You can stop it by Ctrl-C
Code: Select all
/usr/local/bin/picofssd --xml-config /etc/pimodules/picofssd/picofssd.xml --debug

Is there any error after start ?

When I ran the above command, the following happened:
[list=][*]the Pico carried out the start-up beeps, then the UPS LED immediately started flashing
[*]The CHG LED came on so presumably it is now happily charging the battery.
[*]No console output appeared from the process so it looks like the server is happy
[/list]

From this it looks like I have a config problem which I will investigate. However, even with the Pico flashing, and the service running, pico_status.py still fails
Code: Select all
root@domoticzpi:~# python ~pi/PiModules/pico_status/pico_status_hv3.0.py
 
***********************************
      UPS PIco HV3.0A Status       
***********************************
 
  UPS PIco Firmware.....:
Traceback (most recent call last):
  File "/home/pi/PiModules/pico_status/pico_status_hv3.0.py", line 186, in <module>
    print " ","UPS PIco Firmware.....:",fw_version()
  File "/home/pi/PiModules/pico_status/pico_status_hv3.0.py", line 29, in fw_version
    data = i2c.read_byte_data(0x69, 0x26)
IOError: [Errno 121] Remote I/O error
root@domoticzpi:~#

Can anyone suggest what I need to do next?
Scones
 
Posts: 13
Joined: Tue Jan 05, 2016 3:15 pm

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

Postby Scones » Tue May 09, 2017 11:26 am

Appologies. In replying to mivo's post I missed pimaster's. As I have stated already, the pico is now flashing.
I will try removing everything I currently have installed and run the new install script.

However, I have just gone into raspi-config to turn on serial as per the instructions and my eth0 has stopped working. DHCP gets a wrong IP address and if I set it using ipconfig the device is still not on the network
Scones
 
Posts: 13
Joined: Tue Jan 05, 2016 3:15 pm

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

Postby Scones » Tue May 09, 2017 11:46 am

Sorry for the messy posting.

(The network problem was fixed by rebooting the switch so was not Pi related)

I have tried removing all of the existing scripts and running the BETA install script as requested. However, that doesn't work as it also appears to not be able to talk to the board.

I have I2C enabled, Serial enabled, logon over serial disabled. Any suggestions for what to try next?

Code: Select all
root@domoticzpi:/home/pi# bash ./pico_installer.sh

 ____ ___            _   ___     _______  ___    _      _   _ ____  ____ 
|  _ _ _|___ ___   | | |     / /___ / / _   /     | | | |  _ / ___|
| |_) | |/ __/ _   | |_| |  / /  |_ | | | |/ _    | | | | |_) ___ 
|  __/| | (_| (_) | |  _  |  V /  ___) | |_| / ___   | |_| |  __/ ___) |
|_|  |_________/  |_| |_|  _/  |____(_)___/_/   _  ___/|_|   |____/
                                                                         
                 ___           _        _ _           
                |_ _|_ __  ___| |_ __ _| | | ___ _ __
                 | ||  _ / __| __/ _  | | |/ _   __|
                 | || | | __  || (_| | | |  __/ |   
                |___|_| |_|___/____ _|_|_|___|_|   
         

Error: Read failed
 
::: PIco UPS HV3.0A Installer
---------------------------------------------------
--- Hi root,
--- Installer is intended for PIco firmware 0x30
--- Install script detected you are using
--- Please upgrade your PIco firmware
--- Installer terminated!
 
root@domoticzpi:/home/pi#
Scones
 
Posts: 13
Joined: Tue Jan 05, 2016 3:15 pm

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

Postby mivo » Wed May 10, 2017 8:19 am

Scones wrote:I have tried removing all of the existing scripts and running the BETA install script as requested. However, that doesn't work as it also appears to not be able to talk to the board.

I have I2C enabled, Serial enabled, logon over serial disabled. Any suggestions for what to try next?

Hi,

when PIco is in sleep mode ("UPS" LED not light nor blinking), it is not detectable on i2c. Please try to restart PIco with "UR" button (Raspbian stays running). It should make start sequence - 3 user LEDs go on for about 2sec, and then go off. "UPS" LED then goes on, PIco stays awake for about 90 sec. (Normally "UPS" LED start blinking if getting response from PICOFSSD daemon.) Then try again installer:
Code: Select all
root@domoticzpi:/home/pi# bash ./pico_installer.sh

You should be fast enough to start installer when PIco is awake ;)

Installer can also complain about firmware version - expecting 0x30. It can be corrected in the script.
Search and change this line:
Code: Select all
if [ "$picoversion" != "0x30" ]; then
...
My toys:
Raspberry Pi 3 + UPS PIco HV3.0 A Stack
Minibian (Raspbian Jessie) + Domoticz beta

RaZberry module + 2x Comet Z-Wave + Z-wave socket
WeMo Switch
mivo
 
Posts: 25
Joined: Fri Apr 21, 2017 9:11 pm
Location: Czechia

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

Postby Scones » Tue May 16, 2017 12:30 pm

Hi Mivo,

I did has you suggested and ran the install after pressing the UR button and the install. I had to change the firmware version check to' 0x31' and try again but on the second attempt it worked.

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?

Also, at the end of the install it asked me which battery type I had. As I didn't know at the time I chose option '5' which was either 'Quit' or 'Other'

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'

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
Scones
 
Posts: 13
Joined: Tue Jan 05, 2016 3:15 pm

Next

Return to UPS PIco HV3.0A

Who is online

Users browsing this forum: No registered users and 1 guest

cron