Problems with UPSPico

Support for the Uninterruptible Power Supply
with Peripherals and I2C control Interface
Raspberry Pi® B+, A+, B, and A

Problems with UPSPico

Postby jbaumann » Thu May 26, 2016 8:29 pm

Hi,

a few weeks back I bought a Raspberry Pi 3 and a UPS Pico 1.1. Finally today I had the time to assemble them, start installing Raspbian (Debian Jessie) and try to update the firmware.

Strange things / problems:
- writing to the i2c device at startup fails with a timeout (echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device)
- I haven't yet found where to disable the Getty on the serial console (I disabled it in raspi-config). The new systemd makes it different. Anybody a suggestion?
- I tried to get the boot message using Minicom, but no success. Minicom seems to be offline, isn't reacting to anything, and booting the UPS Pico doesn't produce anything.
- The current version of the firmware is 54 (provided by Pico Status 1.0)
- When I try to update the firmware to 60/5C, then picofu3.py hangs after validating the firmware. It seems as if the system is not able to write anything. I followed the instructions multiple times including disabling the serial devices, but to no avail.

What do I do wrong?

Apart from these problems, the hardware looks really nice, and I'm looking forward to the Pi3-specific version for my other Raspberries.

Cheers, Joe
jbaumann
 
Posts: 6
Joined: Thu May 26, 2016 7:34 pm

Re: Problems with UPSPico

Postby Pimaster » Wed Jun 01, 2016 10:46 pm

Hi,
Sorry for my late replying, but we ware outside of Greece for production supervising of the new PIco HV3.0A
As the number of new units is going to be big, risk was also big so we ware needed to be present on this extremely important task.
On my opinion, you have not released the serial port. Read this and follow in details each step.

http://www.pimodules.com/_pdf/Simple_Se ... S_PIco.pdf
If you still have a problem come back

BR PiM
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: 1611
Joined: Fri Sep 14, 2012 7:50 am

Re: Problems with UPSPico

Postby jbaumann » Thu Jun 02, 2016 7:28 pm

Hi PIM,

this is exactly the guide that I followed. But just to be sure I started again from the beginning of the guide and did everything exactly as written down.

How can I find out whether the serial port is released (caveat: the system is the new Jessie with systemd)?

Cheers, Joachim
jbaumann
 
Posts: 6
Joined: Thu May 26, 2016 7:34 pm

Re: Problems with UPSPico

Postby GPi » Sat Jun 04, 2016 2:43 pm

Hi, I'm fighting with the same problem.

I recently purchased the PI 3 and the UPS Pico HV1.0 + 3000mAh/Fan/ResetPIN (replaced with PI 3 workaround cable). After setting up the HW I made an PI update and then I followed the simple setup guide pdf mentioned above. Till the section 'Automatic Initiation' it worked for the first time exactly as described. I used the files:
Code: Select all
-rw-r--r--  1 root root  291568 Feb 25 23:26 UPS_PIco_0x5C_25_02_2016 recent changes.pdf
-rw-r--r--  1 root root   81120 Feb 25 23:27 UPS_PIco_0x5C_25_02_2016.hex
-rw-r--r--  1 root root  303505 Feb 25 21:31 UPS_PIco_Firmware_Update.zip
-rw-r--r--  1 root root  307005 Jan 19 01:41 UPS_PIco_Supporting_Files.zip


Then the mess began. The automatic procedure did not work, tried again - same error. Tried the manual initiation, the same. Reading the posts back and forward without any outcome.
The only difference from the very first beginning is:

1. I can not reproduce the i2cdetect -y 1 output as it was when I made it the first time. Then it was exactly as it is described in the guide >> Line 60, Col 68 69 6a 6b. Now it is always >> Line 60, UU 69 6a 6b

Code: Select all
root@R001:/home/pi# i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU 69 6a 6b -- -- -- --
70: -- -- -- -- -- -- -- --   


2. picofssd.py comes with an error:
Code: Select all
root@R001:/home/pi# python picofssd.py
picofssd.py:8: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(22, GPIO.OUT) # Setup pin 22 as an output
^CTraceback (most recent call last):
  File "picofssd.py", line 12, in <module>
    time.sleep(0.25) # Allow a sleep time of 0.25 second to reduce CPU usage
KeyboardInterrupt


3. the pico_status.py output shows an powering mode error, the temperature was always ff C (even in the very first run), A/D1 Voltage is sometimes 0.00 V:
Code: Select all
root@R001:/home/pi# python pico_status.py
 
        pico status V1.0
***********************************
  UPS PIco Firmware: 19
  Powering Mode: ERR
  BAT Volatge: 12.04 V
  RPi Voltage: 4.07 V
  SOT23 Temperature: ff C
  TO-92 Temperature: ff C
  A/D1 Voltage: 16.06 V
  A/D2 Voltage: 0.0 V
***********************************


4. when I try to run the update (automatic or manual) it always comes to the same error with the following status:
Code: Select all
root@R001:/home/pi# i2cset -y 1 0x6b 0x00 0xff
root@R001:/home/pi# python picofu3.py -v -f UPS_PIco_0x5C_25_02_2016.hex
Validating firmware: OK
^CChecking communication with bootloader: KO
ERROR: Unable to establish communication with PIco bootloader via port: /dev/ttyAMA0 Please verify that the serial port is availble.

Code: Select all
root@R001:/home/pi#

        pico status V1.0
***********************************
  UPS PIco Firmware:
Traceback (most recent call last):
  File "pico_status.py", line 72, in <module>
    print " ","UPS PIco Firmware:",fw_version()
  File "pico_status.py", line 41, in fw_version
    data = i2c.read_byte_data(0x6b, 0x00)
IOError: [Errno 110] Connection timed out


After that only the UPS and PI reset helps.

5. When I try the minicom, I also get no output.
Code: Select all
minicom -b 38400 -o -D /dev/ttyAMA0


Is it necessary to make the update in steps, try to update first with an older firmware version, then with the latest?
Do I have the problem because PI 3 does not fit HV1.0?
Did I get an old HV1.0 with a HW problem?

Thanks, Gregor
GPi
 
Posts: 4
Joined: Sat Jun 04, 2016 11:50 am

Re: Problems with UPSPico

Postby jbaumann » Sun Jul 17, 2016 5:54 pm

Dear Pimaster,

I have now waited two months for some additional reply (although I've been pretty busy with other things, so no big issue...).

But I really would like your help in getting the system to work, or do I have to throw away the money for nothing?

Could you please help me?

Kind Regards, Joachim
jbaumann
 
Posts: 6
Joined: Thu May 26, 2016 7:34 pm

Re: Problems with UPSPico (SOLVED)

Postby jbaumann » Sun Jul 17, 2016 7:34 pm

Hi,

I found information that helped me flash my UPS Pico on my Raspberry PI 3.

The main point seems to be that the serial port now is named /dev/ttyS0, and you have to change all references to that port instead of the older references to /dev/ttyAMA0. You probably also have to enable the UART in /boot/config.txt. Doing this and disabling all getty on the serial ports led to success in my case.

Here is the link to a blog post detailing it:

http://spellfoundry.com/2016/05/29/conf ... ment-66323

Yay, finally.

Cheers, Joachim
jbaumann
 
Posts: 6
Joined: Thu May 26, 2016 7:34 pm

Re: Problems with UPSPico

Postby Pimaster » Sun Jul 17, 2016 7:48 pm

Hi,
I'm trying to understand what your problems are, Can you please list them so I will answer one by one. I was thinking that your problems has been solved as far I understand most of them and answered many times in this forum by me, my colleagues, or many others. Anyhow it is my mistake, please just send bullets with each problem so I will answer to them one by one.
BR PiM
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: 1611
Joined: Fri Sep 14, 2012 7:50 am

Re: Problems with UPSPico

Postby jbaumann » Sun Jul 17, 2016 9:47 pm

Hi,

the important thing was to realize that the serial port name has changed as described in my previous post. So if you adapt your scripts and/or add a sticky posting for owners of a RPi 3 then everything is peachy.

Cheers, Joachim
jbaumann
 
Posts: 6
Joined: Thu May 26, 2016 7:34 pm

Re: Problems with UPSPico

Postby GPi » Wed Nov 30, 2016 12:19 pm

@Pimaster: hope you doing fine. As I can see shipping for the new modules has started! Creat job :)
Is there now a chance to give the Raspberry PI 3 vs. HV1.0 a recap or is the recycle bin the only option for the HV1.0?

KR Gregor
GPi
 
Posts: 4
Joined: Sat Jun 04, 2016 11:50 am


Return to UPS PIco

Who is online

Users browsing this forum: No registered users and 2 guests