accessory:power_supply_battery:smartpower2.ko

SmartPower2

SmartPower2 is a power-supply which has WiFi connectivity to control the voltage to and switch on/off a connected device.
You can also monitor the load current and power consumption remotely on your smartphone, tablet and PC.

SmartPower2의 펌웨어를 업데이트 하기 위해서는 아래와 같이 3가지 과정이 필요합니다.
1. 펌웨어 Writing Tool(Platformio) 설치
2. SmartPower2 source code 다운로드
3. 펌웨어와 웹 source를 SmartPower2에 업로드

Linux 유저라면 Linux 부분을, Windows를 사용하고 계시면 Windows를 보십시요.

1. PlatformIO 설치

터미널을 열어 아래 명령을 실행합니다.

host
sudo apt-get install python-pip
sudo pip install -U platformio
platformio --version

2. SmartPower2 소스코드 받기

터미널을 열어 아래 명령을 실행하여 SmartPower2 소스를 다운받습니다.

host
sudo apt-get install git
git clone https://github.com/hardkernel/smartpower2.git

3. Build & Upload

MicroUSB cable로 SmartPower2를 PC에 연결한 후 아래 명령들을 실행합니다.

host
cd smartpower2
sudo platformio run
sudo platformio run --target upload
sudo platformio run --target uploadfs

윈도우에서 PlatformIO를 설치하기 위해서는 두가지 과정이 필요합니다.
1) python2.7 설치
2) pip를 사용해서 PlatformIO 설치

1. Python2.7 설치

아래 링크에서 최신버전의 python2.7을 다운받아 설치합니다.
단, 설치시 아래 이미지와 같이 “Add python.exe to Path”부분을 “Will be installed on local hard drive”로변경해 줍니다.

2. PlatformIO 설치

윈도우에서 터미널을 열어 아래 명령을 실행합니다.

host
pip install -U platformio

2. SmartPower2 소스코드 받기

아래 링크의 소스코드를 다운받아 압축을 풉니다.

master.zip

3. Build & Upload

다운받은 소스파일로 이동한다음 아래 명령을 실행합니다.

host
platformio run
platformio run --target upload
platformio run --target uploadfs
  • accessory/power_supply_battery/smartpower2.ko.txt
  • Last modified: 2018/03/19 11:26
  • by john1117