Page 1 of 1

Firmware updates for Smart Power 2

Posted: Tue Jan 31, 2017 9:55 am
by odroid
F/W v1.1 has been released.
http://odroid.com/dokuwiki/doku.php?id= ... of_f_w_v11

New features.
* Console logging with telnet
* Possible Unique SSID on each device


To update the firmware, you need to install "platformIO" and build the latest source code.
And download the compiled code to your Smart Power 2.

Re: Firmware updates for Smart Power 2

Posted: Sat Feb 10, 2018 12:58 pm
by Raymond Day
Need more info then this:
To update the firmware, you need to install "platformIO" and build the latest source code.
And download the compiled code to your Smart Power 2.
Just don't get how. Got it on a Ubuntu plug in the USB to the smart power 2 micro USB plug. It does show up in the lsusb.

I am looking at:

https://wiki.odroid.com/accessory/power ... ild_upload

I did download viewtopic.php?f=86&t=28761 but just don't get how to install it on the smart power 2.

I did this:

Code: Select all

platformio run --target /media/6TB/USBdisk2-3TB/root/smartpower2/FW-upload
That is were I put the folder of the smartpower2.tar.gz that I un tar.gz it to FW-upload folder.

Then ran just

Code: Select all

platformio run --target uploadfs
I don't know maybe it worked looked like this:

Code: Select all

root@server:~/smartpower2# platformio run --target uploadfs
[Fri Feb  9 22:54:15 2018] Processing esp12e (build_flags: -Wl,-Tesp8266.flash.4m.ld; lib_deps: WebSockets, Simpletimer, LiquidCrystal_I2C; board_f_cpu: 160000000L; platform: espressif; upload_speed: 921600; board: esp12e; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Warning! Platform `espressif` is deprecated and will be removed in the next release! Please use `espressif8266` instead.
Verbose mode can be enabled via `-v, --verbose` option
Converting smartpower2.ino
Collected 30 compatible libraries
Scanning dependencies...
Library Dependency Graph ( http://bit.ly/configure-pio-ldf )
|-- <WebSockets> v2.1.0
|   |-- <Hash> v1.0
|   |-- <Ethernet(esp8266)> v1.0.4
|   |   |-- <SPI> v1.0
|   |-- <ESP8266WiFi> v1.0
|   |-- <SPI> v1.0
|-- <LiquidCrystal_I2C>
|   |-- <Wire> v1.0
|-- <Hash> v1.0
|-- <ESP8266WebServer> v1.0
|   |-- <ESP8266WiFi> v1.0
|-- <SimpleTimer>
|-- <Wire> v1.0
|-- <mcp4652>
|   |-- <Wire> v1.0
|-- <ESP8266WiFi> v1.0
Building SPIFFS image from 'data' directory to .pioenvs/esp12e/spiffs.bin
/css/jquerymobile145.css
/css/images/ajax-loader.gif
/txt/settings.txt
/index.html
/js/jquery.mobile-1.4.5.min.js
/js/settings.js
/js/sevenSeg.js
Looking for upload port...

Warning! Please install `99-platformio-udev.rules` and check that your board's PID and VID are listed in the rules.
https://raw.githubusercontent.com/platformio/platformio/develop/scripts/99-platformio-udev.rules
Auto-detected: /dev/ttyUSB0
Uploading .pioenvs/esp12e/spiffs.bin
Uploading 3125248 bytes from .pioenvs/esp12e/spiffs.bin to flash at 0x00100000
................................................................................ [  2% ]
................................................................................ [  5% ]
................................................................................ [  7% ]
................................................................................ [ 10% ]
................................................................................ [ 13% ]
................................................................................ [ 15% ]
................................................................................ [ 18% ]
................................................................................ [ 20% ]
................................................................................ [ 23% ]
................................................................................ [ 26% ]
................................................................................ [ 28% ]
................................................................................ [ 31% ]
................................................................................ [ 34% ]
................................................................................ [ 36% ]
................................................................................ [ 39% ]
................................................................................ [ 41% ]
................................................................................ [ 44% ]
................................................................................ [ 47% ]
................................................................................ [ 49% ]
................................................................................ [ 52% ]
................................................................................ [ 55% ]
................................................................................ [ 57% ]
................................................................................ [ 60% ]
................................................................................ [ 62% ]
................................................................................ [ 65% ]
................................................................................ [ 68% ]
................................................................................ [ 70% ]
................................................................................ [ 73% ]
................................................................................ [ 76% ]
................................................................................ [ 78% ]
................................................................................ [ 81% ]
................................................................................ [ 83% ]
................................................................................ [ 86% ]
................................................................................ [ 89% ]
................................................................................ [ 91% ]
................................................................................ [ 94% ]
................................................................................ [ 96% ]
................................................................................ [ 99% ]
............                                                                     [ 100% ]
======================================================================== [SUCCESS] Took 65.26 seconds ========================================================================
root@server:~/smartpower2#
If this is the way to do it?

-Raymond Day

Re: Firmware updates for Smart Power 2

Posted: Sat Feb 10, 2018 1:17 pm
by Raymond Day
I unplugged the micro USB and plugged 12 volt power in it and hooked up my WiFi from my cell phone to it. It works the same so I don't think the Firmware changed.
Screenshot_20180209-230542.jpg
Screenshot_20180209-230542.jpg (115.33 KiB) Viewed 2361 times
Screenshot_20180209-230553.jpg
Screenshot_20180209-230553.jpg (116.7 KiB) Viewed 2361 times
I want this so I can get it to connect to my LAN WiFi so all the computers on my LAN can get to it's data. That Firmware I guess will do it. But just don't know how to install it.

-Raymond Day

Re: Firmware updates for Smart Power 2

Posted: Sun Feb 11, 2018 9:05 pm
by Raymond Day
Made a folder "default-data" and moved the "data", "src", folders to it and the "platformio.ini" file.

Then put them files from the "Smart Power 2 fireware with wifi client" file "smartpower2.tar.gz" were the same named files were. Only now the other F/W "data", "src", folders and "platformio.ini" from the wifi client F/W.

It came back with a lot of red lines but I did it any way here is the all the command line.

Code: Select all

root@server:~/smartpower2# platformio run
[Sun Feb 11 06:50:05 2018] Processing esp12e (build_flags: -Wl,-Tesp8266.flash.4m.ld; lib_deps: WebSockets, Simpletimer, LiquidCrystal_I2C; board_f_cpu: 160000000L; platform: espressif8266; upload_speed: 921600; board: esp12e; framework: arduino; monitor_baud: 115200)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Converting smartpower2.ino
Collected 30 compatible libraries
Scanning dependencies...
Library Dependency Graph ( http://bit.ly/configure-pio-ldf )
|-- <WebSockets> v2.1.0
|   |-- <ESP8266WiFi> v1.0
|   |-- <Hash> v1.0
|   |-- <SPI> v1.0
|   |-- <Ethernet(esp8266)> v1.0.4
|   |   |-- <SPI> v1.0
|-- <LiquidCrystal_I2C>
|   |-- <Wire> v1.0
|-- <mcp4652>
|   |-- <Wire> v1.0
|-- <ESP8266WiFi> v1.0
|-- <ESP8266WebServer> v1.0
|   |-- <ESP8266WiFi> v1.0
|-- <Hash> v1.0
|-- <SimpleTimer>
|-- <Wire> v1.0
Compiling .pioenvs/esp12e/src/smartpower2.ino.o
/media/6TB/USBdisk2-3TB/root/smartpower2/src/smartpower2.ino: In function 'void webserver_init()':
/media/6TB/USBdisk2-3TB/root/smartpower2/src/smartpower2.ino:268:15: error: use of deleted function 'ESP8266WebServer& ESP8266WebServer::operator=(const ESP8266WebServer&)'
webServer =  ESP8266WebServer(current_ip, 80);
^
In file included from /media/6TB/USBdisk2-3TB/root/smartpower2/src/smartpower2.ino:5:0:
/media/6TB/USBdisk2-3TB/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WebServer/src/ESP8266WebServer.h:69:7: note: 'ESP8266WebServer& ESP8266WebServer::operator=(const ESP8266WebServer&)' is implicitly deleted because the default definition would be ill-formed:
class ESP8266WebServer
^
/media/6TB/USBdisk2-3TB/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WebServer/src/ESP8266WebServer.h:69:7: error: use of deleted function 'std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = HTTPUpload; _Dp = std::default_delete<HTTPUpload>]'
In file included from /media/6TB/USBdisk2-3TB/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/memory:81:0,
from /media/6TB/USBdisk2-3TB/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.h:28,
from /media/6TB/USBdisk2-3TB/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:28,
from /media/6TB/USBdisk2-3TB/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:34,
from /media/6TB/USBdisk2-3TB/root/smartpower2/src/smartpower2.ino:2:
/media/6TB/USBdisk2-3TB/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/unique_ptr.h:274:19: error: declared here
unique_ptr& operator=(const unique_ptr&) = delete;
^
*** [.pioenvs/esp12e/src/smartpower2.ino.o] Error 1
========================================================================== [ERROR] Took 4.01 seconds ==========================================================================
root@server:~/smartpower2# platformio run --target upload
[Sun Feb 11 06:50:42 2018] Processing esp12e (build_flags: -Wl,-Tesp8266.flash.4m.ld; lib_deps: WebSockets, Simpletimer, LiquidCrystal_I2C; board_f_cpu: 160000000L; platform: espressif8266; upload_speed: 921600; board: esp12e; framework: arduino; monitor_baud: 115200)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Converting smartpower2.ino
Collected 30 compatible libraries
Scanning dependencies...
Library Dependency Graph ( http://bit.ly/configure-pio-ldf )
|-- <WebSockets> v2.1.0
|   |-- <ESP8266WiFi> v1.0
|   |-- <SPI> v1.0
|   |-- <Hash> v1.0
|   |-- <Ethernet(esp8266)> v1.0.4
|   |   |-- <SPI> v1.0
|-- <LiquidCrystal_I2C>
|   |-- <Wire> v1.0
|-- <mcp4652>
|   |-- <Wire> v1.0
|-- <SimpleTimer>
|-- <ESP8266WebServer> v1.0
|   |-- <ESP8266WiFi> v1.0
|-- <Hash> v1.0
|-- <ESP8266WiFi> v1.0
|-- <Wire> v1.0
Compiling .pioenvs/esp12e/src/smartpower2.ino.o
/media/6TB/USBdisk2-3TB/root/smartpower2/src/smartpower2.ino: In function 'void webserver_init()':
/media/6TB/USBdisk2-3TB/root/smartpower2/src/smartpower2.ino:268:15: error: use of deleted function 'ESP8266WebServer& ESP8266WebServer::operator=(const ESP8266WebServer&)'
webServer =  ESP8266WebServer(current_ip, 80);
^
In file included from /media/6TB/USBdisk2-3TB/root/smartpower2/src/smartpower2.ino:5:0:
/media/6TB/USBdisk2-3TB/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WebServer/src/ESP8266WebServer.h:69:7: note: 'ESP8266WebServer& ESP8266WebServer::operator=(const ESP8266WebServer&)' is implicitly deleted because the default definition would be ill-formed:
class ESP8266WebServer
^
/media/6TB/USBdisk2-3TB/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WebServer/src/ESP8266WebServer.h:69:7: error: use of deleted function 'std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = HTTPUpload; _Dp = std::default_delete<HTTPUpload>]'
In file included from /media/6TB/USBdisk2-3TB/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/memory:81:0,
from /media/6TB/USBdisk2-3TB/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.h:28,
from /media/6TB/USBdisk2-3TB/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:28,
from /media/6TB/USBdisk2-3TB/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h:34,
from /media/6TB/USBdisk2-3TB/root/smartpower2/src/smartpower2.ino:2:
/media/6TB/USBdisk2-3TB/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/unique_ptr.h:274:19: error: declared here
unique_ptr& operator=(const unique_ptr&) = delete;
^
*** [.pioenvs/esp12e/src/smartpower2.ino.o] Error 1
========================================================================== [ERROR] Took 1.48 seconds ==========================================================================
root@server:~/smartpower2# platformio run --target uploadfs
[Sun Feb 11 06:50:55 2018] Processing esp12e (build_flags: -Wl,-Tesp8266.flash.4m.ld; lib_deps: WebSockets, Simpletimer, LiquidCrystal_I2C; board_f_cpu: 160000000L; platform: espressif8266; upload_speed: 921600; board: esp12e; framework: arduino; monitor_baud: 115200)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Converting smartpower2.ino
Collected 30 compatible libraries
Scanning dependencies...
Library Dependency Graph ( http://bit.ly/configure-pio-ldf )
|-- <WebSockets> v2.1.0
|   |-- <ESP8266WiFi> v1.0
|   |-- <Hash> v1.0
|   |-- <SPI> v1.0
|   |-- <Ethernet(esp8266)> v1.0.4
|   |   |-- <SPI> v1.0
|-- <LiquidCrystal_I2C>
|   |-- <Wire> v1.0
|-- <ESP8266WiFi> v1.0
|-- <ESP8266WebServer> v1.0
|   |-- <ESP8266WiFi> v1.0
|-- <Hash> v1.0
|-- <mcp4652>
|   |-- <Wire> v1.0
|-- <SimpleTimer>
|-- <Wire> v1.0
Building SPIFFS image from 'data' directory to .pioenvs/esp12e/spiffs.bin
/css/jquerymobile145.css
/css/images/ajax-loader.gif
/txt/settings.txt
/index.html
/js/jquery.mobile-1.4.5.min.js
/js/settings.js
/js/sevenSeg.js
Looking for upload port...

Warning! Please install `99-platformio-udev.rules` and check that your board's PID and VID are listed in the rules.
https://raw.githubusercontent.com/platformio/platformio/develop/scripts/99-platformio-udev.rules
Auto-detected: /dev/ttyUSB0
Uploading .pioenvs/esp12e/spiffs.bin
Uploading 3125248 bytes from .pioenvs/esp12e/spiffs.bin to flash at 0x00100000
................................................................................ [  2% ]
................................................................................ [  5% ]
................................................................................ [  7% ]
................................................................................ [ 10% ]
................................................................................ [ 13% ]
................................................................................ [ 15% ]
................................................................................ [ 18% ]
................................................................................ [ 20% ]
................................................................................ [ 23% ]
................................................................................ [ 26% ]
................................................................................ [ 28% ]
................................................................................ [ 31% ]
................................................................................ [ 34% ]
................................................................................ [ 36% ]
................................................................................ [ 39% ]
................................................................................ [ 41% ]
................................................................................ [ 44% ]
................................................................................ [ 47% ]
................................................................................ [ 49% ]
................................................................................ [ 52% ]
................................................................................ [ 55% ]
................................................................................ [ 57% ]
................................................................................ [ 60% ]
................................................................................ [ 62% ]
................................................................................ [ 65% ]
................................................................................ [ 68% ]
................................................................................ [ 70% ]
................................................................................ [ 73% ]
................................................................................ [ 76% ]
................................................................................ [ 78% ]
................................................................................ [ 81% ]
................................................................................ [ 83% ]
................................................................................ [ 86% ]
................................................................................ [ 89% ]
................................................................................ [ 91% ]
................................................................................ [ 94% ]
................................................................................ [ 96% ]
................................................................................ [ 99% ]
............                                                                     [ 100% ]
======================================================================== [SUCCESS] Took 64.83 seconds ========================================================================
root@server:~/smartpower2#
Unplugged it from my server and plug in 12 volt power and no change so looks like it don't work. I must be doing it wrong. How do you update the F/W on this with new data you have?

-Raymond Day

Re: Firmware updates for Smart Power 2

Posted: Sun Feb 11, 2018 9:17 pm
by Raymond Day
Mostly got this error in red:

/media/6TB/USBdisk2-3TB/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WebServer/src/ESP8266WebServer.h:69:7: error: use of deleted function 'std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = HTTPUpload; _Dp = std::default_delete<HTTPUpload>]'

Maybe they need to update that Smart Power 2 firmware with wifi client

Or I am not doing it right.

-Raymond Day

Re: Firmware updates for Smart Power 2

Posted: Mon Feb 12, 2018 12:28 pm
by lsc1117
Hi Raymond,

The smartpower2 firmware has updated to v1.3 because of that errors.

Please get the latest firmware with this link and try again.
https://github.com/hardkernel/smartpowe ... master.zip

Thank you,
-John-

Re: Firmware updates for Smart Power 2

Posted: Mon Feb 12, 2018 5:53 pm
by joerg
Hi John,
Raymond wants to use the alternative FW with wifi client. See this post: viewtopic.php?f=86&t=29990#p214531
Or does this FW 1.3 include this? If yes, the question is how to use it.

Re: Firmware updates for Smart Power 2

Posted: Mon Feb 12, 2018 6:25 pm
by odroid
According to the FW revision history, there is no WiFi Client mode support so far.
https://wiki.odroid.com/accessory/power ... on_history

Someone needs to check @palich2000's github repo.

Re: Firmware updates for Smart Power 2

Posted: Tue Feb 13, 2018 9:33 pm
by Raymond Day
I got the https://github.com/hardkernel/smartpowe ... master.zip and run it and got no errors just a just a yellow error like this.

Warning! Please install `99-platformio-udev.rules` and check that your board's PID and VID are listed in the rules.
https://raw.githubusercontent.com/platf ... udev.rules

But it's just the firmware it came with I went to install the
alternative FW with wifi client. See this post: viewtopic.php?f=86&t=29990#p214531
but it gives me red errors. I posted about.

All I did was download that to my Windows 10 and then from there uploaded it to my Ubuntu server and this is the last commands from my .bash_history:

Code: Select all

unzip smartpower2-master\ \(1\).zip 
cd smartpower2-master/
platformio run
platformio run --target upload
platformio run --target uploadfs
Like I said with that it don't get any errors just the Yellow one and just the same Firmware I all ready have in my SmartPower2.
-Raymond Day

Re: Firmware updates for Smart Power 2

Posted: Wed Feb 14, 2018 1:12 pm
by Raymond Day
I got it working with F/W Version: 1.21.

Not sure were I downloaded that version.

It works real good connected to my WiFi now. So I can just go to it's IP on my LAN and see and set it.

-Raymond Day

Re: Firmware updates for Smart Power 2

Posted: Wed Feb 14, 2018 1:16 pm
by odroid
Do you mean your SmartPower2 WiFi works in a client mode, not a host mode?
Can you please try to recall where you could find the firmware v1.21?
It must be very useful to monitor multiple SmartPower2 nodes.

Re: Firmware updates for Smart Power 2

Posted: Wed Feb 14, 2018 1:32 pm
by rooted
odroid wrote:Do you mean your SmartPower2 WiFi works in a client mode, not a host mode?
Can you please try to recall where you could find the firmware v1.21?
It must be very useful to monitor multiple SmartPower2 nodes.
I'm certain it is this:

https://github.com/palich2000/smartpower2

With this change:

viewtopic.php?p=214836#p214836

Re: Firmware updates for Smart Power 2

Posted: Wed Feb 14, 2018 4:25 pm
by joerg
The user @palich2000 made this FW. I only made correction to make it compile with actual libraries. Someone should unite this, maybe HK guys can overtake it with new branch 'wifi-client'?

Re: Firmware updates for Smart Power 2

Posted: Thu Feb 15, 2018 2:18 am
by Raymond Day
rooted wrote:
odroid wrote:Do you mean your SmartPower2 WiFi works in a client mode, not a host mode?
Can you please try to recall where you could find the firmware v1.21?
It must be very useful to monitor multiple SmartPower2 nodes.
I'm certain it is this:

https://github.com/palich2000/smartpower2

With this change:

viewtopic.php?p=214836#p214836
Thank you.

You are right looking at the folder more in .git/config it will show this:

https://github.com/palich2000/smartpower2.git

I hope who know how can add the Max Voltage, Ampere, and Watt under the big Red numbers like the first SmartPower does. I guess it my be just editing the /data/index.html file not sure.

-Raymond Day

Re: Firmware updates for Smart Power 2

Posted: Thu Jan 31, 2019 6:26 pm
by hrexha
Hello,
I was wondering if i could change the output voltage to 12V or 15V, is it possible?
Thanks.

Re: Firmware updates for Smart Power 2

Posted: Thu Jan 31, 2019 8:17 pm
by Raymond Day
On there ODROID Wiki it says "Terminal block DC output 5.3V/5A maximum" I guess what ever chip they use that's it's limit.

15 volts I guess you want to power a net book or something.

-Raymond Day

Re: Firmware updates for Smart Power 2

Posted: Thu Jan 31, 2019 9:02 pm
by hrexha
Actually i was trying to power another board which requires at least 12V input. I thought is something programmable in the firmware.

Re: Firmware updates for Smart Power 2

Posted: Fri Feb 01, 2019 10:00 am
by odroid
There is no way to change the maximum output via firmware modification.
If you can desolder/solder a couple of small SMD resistors on the board to change the divider values, you can change the output voltage range up to 13Volt.

Re: Firmware updates for Smart Power 2

Posted: Fri Feb 01, 2019 8:32 pm
by Raymond Day
I think they did it to just 5 volts or a little over so you would not burn up a 5 volt input to something. Get a pop type sound and not work any more.

-Raymond Day