softScheck / tplink-smartplug

TP-Link WiFi SmartPlug Client and Wireshark Dissector
Apache License 2.0
1.13k stars 298 forks source link

Flash firmware via tplink-smartplug #30

Open tmeyerinfo opened 6 years ago

tmeyerinfo commented 6 years ago

Hi,

I am having trouble upgrading my firmware on the HS100(EU) with the Kasa App and don't own a Windows PC to use the upgrade tool. So I tried to download the "hs100v1_eu_1.1.3_Build_170608_Rel.204734.bin" from the "iotUpgradeTool_V1.0" tool to my plug via your tool.

python tplink-smartplug.py -t IP -j '{"system":{"download_firmware":{"url":"https://someURL/hs100v1_eu_1.1.3_Build_170608_Rel.204734.bin"}}}'

But I get the following:

Sent: {"system":{"download_firmware":{"url":"https://someURL/hs100v1_eu_1.1.3_Build_170608_Rel.204734.bin"}}} Received: {"system":{"download_firmware":{"err_code":0}}}

and when I try to check the download state I get

Sent: {"system":{"get_download_state":{}}} Received: {"system":{"get_download_state":{"err_code":-7,"err_msg":"unknown error"}}}

Did anybody tried it before? Does the URL need to point to a tplinkcloud.com URL?

syberphunk commented 4 years ago

I've also tried recently updating the firmware using the python script, and it doesn't even return with a download firmware error code, I get no response. pyHS100 also removed the commands to update the firmware.