UPS PIco HV3.0B+ : firmware update issue

Need some help with your shiny new breakout board, or something not working right? Let us help you here!
Post Reply
JuliusYO
n00b
Posts: 4
Joined: Tue Jul 03, 2018 8:32 pm

UPS PIco HV3.0B+ : firmware update issue

Post by JuliusYO » Tue Jul 03, 2018 8:49 pm

Hello,

I've tried to update my UPS Pico HV3.0B+ (on RaspPi 3 B+) firmware following procedure from 24_0x40_W_UPS PIco HV3.0.pdf page 69... editing /boot/config.txt and so on.

But the upload firmware script throw an error :

Code: Select all

pi@raspberrypi:~/Documents/Install UPS Pico/FW $ sudo python 9600_picofuHV3.0.py -v -f UPS_PIco_0x5C_25_02_2016.hex
Validating firmware: OK
Checking communication with bootloader: OK
Uploading firmware: 0% **************************************************************************************** 4.0% ***************************************************************************************** 9.0% ***************************************************************************************** 14.0% ***************************************************************************************** 19.0% ***************************************************************************************** 24.0% ***************************************************************************************** 29.0% ***************************************************************************************** 34.0% ***************************************************************************************** 39.0% ***************************************************************************************** 44.0% ***************************************************************************************** 49.0% ***************************************************************************************** 54.0% ***************************************************************************************** 59.0% ***************************************************************************************** 64.0% ***************************************************************************************** 69.0% ***************************************************************************************** 74.0% ***************************************************************************************** 79.0% ***************************************************************************************** 84.0% ***************************************************************************************** 89.0% ***************************************************************************************** 94.0% ***************************************************************************************** 99.0% **** Done uploading...
Invoking factory reset of PIco...
send factory reset command ...
Traceback (most recent call last):
  File "9600_picofuHV3.0.py", line 545, in <module>
    FWUpdate()	
  File "9600_picofuHV3.0.py", line 189, in __init__
    self.factory_reset()
  File "9600_picofuHV3.0.py", line 533, in factory_reset
    i2c.write_byte_data(0x6b, 0x00, 0xdd) 
IOError: [Errno 121] Remote I/O error
After that UPSPIco blue user led stays always ON and all others are OFF.

I've tried UR+F combinaison to retry FW update but always ends with error.
I've tried UR+KeyA combinason but no effect.

Could you tell me how to recover ?

.YO.

User avatar
Dave
ModMyPi
Posts: 2515
Joined: Wed Jul 22, 2015 11:36 am
Contact:

Re: UPS PIco HV3.0B+ : firmware update issue

Post by Dave » Wed Jul 04, 2018 8:21 am

Has I2C been enabled on the Raspberry Pi?

Have all the packages on the installation guide been installed (these are required for FW updates) - https://github.com/modmypi/PiModules/wi ... stallation

Has the python-smbus package been installed? - https://github.com/modmypi/PiModules/wi ... are-Update

If you run the following command, could you post the output please:

Code: Select all

sudo i2cdetect -y 1
Forum Administrator & Technical Support

JuliusYO
n00b
Posts: 4
Joined: Tue Jul 03, 2018 8:32 pm

Re: UPS PIco HV3.0B+ : firmware update issue

Post by JuliusYO » Wed Jul 04, 2018 12:19 pm

Hi Dave,
Dave wrote:
Wed Jul 04, 2018 8:21 am
Has I2C been enabled on the Raspberry Pi?
Yes it was.
Have all the packages on the installation guide been installed (these are required for FW updates) - https://github.com/modmypi/PiModules/wi ... stallation
Yes it was. As mentionned in the link you give, I followed this http://www.pimodules.com/_pdf/24_0x40_W ... 0HV3.0.pdf
Has the python-smbus package been installed? - https://github.com/modmypi/PiModules/wi ... are-Update
Yes it was.

I'm not a linux specialist. But how could i check if all required modules are installed or not.
Could you give a linux command to test if module is or not activated : I'll check and recheck all points mentionned in these docs.
If you run the following command, could you post the output please:

Code: Select all

sudo i2cdetect -y 1

Code: Select all

pi@raspberrypi:~ $ sudo 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: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
pi@raspberrypi:~ $ 
Thanks for your help Dave. .YO.

User avatar
Dave
ModMyPi
Posts: 2515
Joined: Wed Jul 22, 2015 11:36 am
Contact:

Re: UPS PIco HV3.0B+ : firmware update issue

Post by Dave » Thu Jul 05, 2018 8:30 am

Ok that's your problem... The Raspberry Pi can't seem to see the PIco on the I2C interface.

Could you try doing a factory reset on the PIco please.

With the PIco plugged into the Pi, and the Pi being powered via micro USB mains, please do the following:

1. Press and HOLD the UR button
2. Continue to hold the UR button, press and HOLD the C button
3. Continue to hold the the C button, release the UR button.
4. Release the C button

Wait for the UPS led to flash again and then reboot the Pi.

Once the Pi has rebooted, please run the i2cdetect command again and post the results.
Forum Administrator & Technical Support

JuliusYO
n00b
Posts: 4
Joined: Tue Jul 03, 2018 8:32 pm

Re: UPS PIco HV3.0B+ : firmware update issue

Post by JuliusYO » Thu Jul 05, 2018 11:37 am

Hi Dave,

UR+C keys done. But nothing change on the UPS led state.
Only the blue user led is on. The UPS led doesn't flash.

I reboot Pi and i2cdetect says nothing more :

Code: Select all

pi@raspberrypi:~ $ sudo 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: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
pi@raspberrypi:~ $ 
.YO.

User avatar
Dave
ModMyPi
Posts: 2515
Joined: Wed Jul 22, 2015 11:36 am
Contact:

Re: UPS PIco HV3.0B+ : firmware update issue

Post by Dave » Thu Jul 05, 2018 1:07 pm

Hmm something isn't quite right then... Would you mind posting a picture of the setup please.
Forum Administrator & Technical Support

JuliusYO
n00b
Posts: 4
Joined: Tue Jul 03, 2018 8:32 pm

Re: UPS PIco HV3.0B+ : firmware update issue [resolved]

Post by JuliusYO » Thu Jul 05, 2018 5:26 pm

Dave,

It's OK now, I took a wrong hex file...

Thanks for your help.

User avatar
Dave
ModMyPi
Posts: 2515
Joined: Wed Jul 22, 2015 11:36 am
Contact:

Re: UPS PIco HV3.0B+ : firmware update issue [resolved]

Post by Dave » Fri Jul 06, 2018 8:10 am

JuliusYO wrote:
Thu Jul 05, 2018 5:26 pm
Dave,

It's OK now, I took a wrong hex file...

Thanks for your help.
Oh yeah, sorry I should have noticed that in your original post!

Glad you are up and running though.
Forum Administrator & Technical Support

Camen
n00b
Posts: 1
Joined: Sat Jul 07, 2018 3:46 pm

Re: UPS PIco HV3.0B+ : firmware update issue

Post by Camen » Sat Jul 07, 2018 3:50 pm

I'm having the exact same issue. However, the link to download the latest firmware is down (this is such a pain in the ### with the Pi3+

Link not working:
http://forum.modmypi.com/technical-supp ... t1106.html

Can someone please post a mirror to the latest firmware - especially the file: 9600_picofuHV3.0.py

Thanks!

User avatar
Dave
ModMyPi
Posts: 2515
Joined: Wed Jul 22, 2015 11:36 am
Contact:

Re: UPS PIco HV3.0B+ : firmware update issue

Post by Dave » Mon Jul 09, 2018 8:34 am

Camen wrote:
Sat Jul 07, 2018 3:50 pm
I'm having the exact same issue. However, the link to download the latest firmware is down (this is such a pain in the ### with the Pi3+

Link not working:
http://forum.modmypi.com/technical-supp ... t1106.html

Can someone please post a mirror to the latest firmware - especially the file: 9600_picofuHV3.0.py

Thanks!
viewtopic.php?f=33&t=1106
Forum Administrator & Technical Support

Post Reply