Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firmware Updates. Where do we find them in order to be able to update? #1

Open
TeDeVPrime opened this issue Apr 13, 2023 · 56 comments
Open

Comments

@TeDeVPrime
Copy link

Hello!
i have downloaded the apk and installed it but from what i understand, i need to upload the firmware to nspanel.
but there are no instructions where we can find these files

thank you

@nassermahrous
Copy link

I have the same problem, can you please help

@redford-jones
Copy link

I'd be interested to hear where I can find the files too. I managed to pull the eWeLink binaries from the panel and tried to search them for a firmware download path, but no such luck so far.

@seaky
Copy link
Owner

seaky commented Apr 22, 2023

Somebody ;) uploaded the firmware files here
https://drive.google.com/drive/folders/1bHLLJy8vYUjkCCnyUmrHgEFWi_2cxywv

Use at your own risk

I personally do not reccomend to upgrade above 1.5.0 because in 1.5.6+ lot of usefull commands were removed such as chown, chmod, dd, df, getprop, setprop etc..

Could not downgrade actual firmware due to the android OTA restriction!

@nassermahrous
Copy link

nassermahrous commented Apr 22, 2023

thank you, is there a way to disable developer mode on nspanel pro
also how do I upload the file, I can't find the folder /storage/emulated/0/

@nassermahrous
Copy link

I added home assistant webpage and it worked, thank youuuu :)

@seaky
Copy link
Owner

seaky commented Apr 23, 2023

Nice 👍 What version did you update to?

@nassermahrous
Copy link

nassermahrous commented Apr 23, 2023 via email

@shajek
Copy link

shajek commented May 12, 2023

Is there any benefit to update FW for "sideloaded" nspanel ? I ask because when i load HA companion app with dashboard what i use for mobile device it is very sluggish, like animation of on/off slider for light animate for 1-2s.

@seaky
Copy link
Owner

seaky commented May 12, 2023

Hi,

I've analyzed all the system updates so far including 1.7.
From OS perspective it is intact and still the AOSP 8.1 Oreo so for example the fw 1.3 android binaries are equivallent to 1.7.
The rockchip drivers also looks the same.
Of course the vendor part is different for example the ControlApp and the internal zigbee server.

As a "sideload user" definitely there is no reason to upgrade to higher version or I assume that the performance will be the same looks like the rockchip drivers are the same in every version. If you want to mix Sonoff Ecosystem and HA usage could be a benefit. But some new feature is limited to a "non-rooted" user such as intercom calling between the devices even if you upgrade fw and force ugrade the apk (normally if you are rooted wont get any update).

btw nowadays dont have to root the device to sideload apps I have 2 rooted and 3 unrooted (but sideloaded) device.

@TeDeVPrime
Copy link
Author

The main thing that i would like to update at some point is having the nspanel pro as a zigbee router.
has anyone found a solution to use the nspanel pro as a zigbee router or coordinator without the Sonoff software?

@frayos
Copy link

frayos commented Oct 14, 2023

Hello,
A) FY 2.1.0 file name is : CoolKit_Sonoff_480P_20230926_2.1.0-ota.zip
B) Found URL to Download : ZIP + APK
/data/data/com.eWeLinkControlPanel/files/log/controlPanelLog_20231014_1.log
(grep zip in this file)

C) Happy to share send those to someone, but not to host them :)

@TeDeVPrime
Copy link
Author

why not host them? use a megaupload or w/e. can i have it?

@frayos
Copy link

frayos commented Oct 14, 2023

here it is for 30 days :
ZIP https://transfert.free.fr/zzq7RPI
APK https://transfert.free.fr/ISbDMwU

FYI not sure if the APK was needed as I tried to install it before ZIP and it failed.

WARNING : I lost the ADB over TCP after the upgrade, I had to register to ewelink and request it there in the Phone app by clicking a lot of times on the build to get Developer and Toggle ADB which loses warranty and future updates ...

@TeDeVPrime
Copy link
Author

yeap i know about the warranty. i really can't justify the purchase of the NSPanel Pro.... and i have two.
we can't use it as a zigbee router... or a bluetooth proxy.... we can't use it as an actual wall switch..... you can't easily ADB to it to make it useful...... it is just a pain in the butt device.

since i flashed the NSPanel with Blackyamas esp solution.... it became my favorite device. so much potential and useful wall switch.... i bought 3 of them in the last two weeks. before flashing them.... they were almost useless.

@Tasshack
Copy link

@frayos can I have that zip/apk too? Or preferably v2.2.0 if you have it.
Thanks.

@TeDeVPrime
Copy link
Author

yeah i think i read that in the latest firmwares Sonoff let's u use ADB?
also with the latest firmware, you can set the zigbee as a repeater / router instead of a coordinator!

@frayos
Copy link

frayos commented Nov 25, 2023

Unfortunately since i enabled ADB in ewelink I lost "power" to get updates ...

If someone has not enabled ADB in ewelink and get this file :
/data/data/com.eWeLinkControlPanel/files/log/controlPanelLog_*log
then we can get the zip ...

Wondering if full reset will allow to upgrade though

@tommolling
Copy link

Here you go for v2.2

https://global-otadl2bsy.coolkit.cc/nspanel-pro/rom/25/CoolKit_Sonoff_480P_20231109_2.2.0-ota.zip

@Tasshack
Copy link

Wondering if full reset will allow to upgrade though

I have tried reset but even system recovery does not restore the adb state from the app.
I think Developer Mode check can be bypassed from device apk itself using a tool like frida (this will require a little bit of reverse engineering but I have already decompiled the app and since it is a react native app it can be modified easily without needing to recompile the whole apk) but that may not even recover the OTA ability of the device if the cloud stores a flag for each device.
When I first got the device I have upgraded it to v2.2.0 and then enabled the Developer Mode but trying to install Xposed bricked the device and after the restoration I got v1.5.4 without ability to upgrade with OTA.

@nikosillo
Copy link

Unfortunately since i enabled ADB in ewelink I lost "power" to get updates ...

If someone has not enabled ADB in ewelink and get this file : /data/data/com.eWeLinkControlPanel/files/log/controlPanelLog_*log then we can get the zip ...

Wondering if full reset will allow to upgrade though

I have a panel that does not have adb installed and is not yet updated, it comes from the factory with firmware 1.7. How can I access that file, or how can I find out the path to the ficehro of the next updates? It's already on version 2.3 I think

@frayos
Copy link

frayos commented Dec 21, 2023

So you need ADB access from command line
then
adb shell
then
su
then cd /data/data/com.eWeLinkControlPanel/files/log/

then log is here (once ewelink has been started once)

yet maybe a comment will give us the link to 2.3.0 :)

@nikosillo
Copy link

So you need ADB access from command line then adb shell then su then cd /data/data/com.eWeLinkControlPanel/files/log/

then log is here (once ewelink has been started once)

yet maybe a comment will give us the link to 2.3.0 :)

Ok but if I enable ADB I can no longer see future updates. I understand that this would only serve to rescue the link to the latest version, and for the next update would require a new device updated to the latest version and repeat the method, right?

@frayos
Copy link

frayos commented Dec 21, 2023

if you are in 1.7 it s probably already enabled or you may need the dismount to usb connect the first time (i did this but realized i may not have needed it)

Indeed should you still need ADB once upgrade you ll need to lose access to next versions until someone posts a link

@nikosillo
Copy link

I am trying to access and adb by IP is closed, I have opened the device and by usb is also closed. It's weird.

@biwizit
Copy link

biwizit commented Dec 25, 2023

@nikosillo Did you follow this step ?
#1 (comment)

had to register to ewelink and request it there in the Phone app by clicking a lot of times on the build to get Developer and Toggle ADB which loses warranty and future updates ...

@seaky
Copy link
Owner

seaky commented Dec 29, 2023

I've uploaded

  • the last released 1.x vetrsion fw (1.11.0)
  • and the latest 2.x version (2.3.0)

Good luck

@seaky
Copy link
Owner

seaky commented Dec 29, 2023

But I'll write it down here too:
I don't understand why everyone wants to update to newer firmware. In every new firmware case, the OS is Android 8.1 AOSP. Even the build number is the same since 1.2. So simple there is no reason to update to newer firmware except if you want to go back somehow to Sonoff mode.

But allways there is a but... if you already unlocked the OS via Sonoff official method you simply lost new serverside features forever by default because your ewlink account register the device as a rooted device (You've been warned by the App).

You can update by my tool to newer firmware but there is allways a risk to completely brick your device because if the new fw does not support adb and if you unlocked your device it will be useless.
From 1.3 to 1.11 is safe. I have not check the 2.x versions yet.

Btw there is way more easier method to unlock the device without loosing any support forever.

@pvklink
Copy link

pvklink commented Dec 30, 2023

Hi, finally found a thread about the ns panel pro.
I bought my ns panel pro yesterday and activated adb..
Everything went ok till i clicked the wrong file with the launcher.
After that i only get a chinese menu where i can test al parts of my device or some qrcode with a chipid
My panel is unusable now...

Is there a way to flash this device without the ewelink app and adb?
I want to use it with the hass app. No problem if something goes wrong...
It is useless anyway with the current chinese test environment

@svanrossem
Copy link

But I'll write it down here too: I don't understand why everyone wants to update to newer firmware. In every new firmware case, the OS is Android 8.1 AOSP. Even the build number is the same since 1.2. So simple there is no reason to update to newer firmware except if you want to go back somehow to Sonoff mode.

But allways there is a but... if you already unlocked the OS via Sonoff official method you simply lost new serverside features forever by default because your ewlink account register the device as a rooted device (You've been warned by the App).

You can update by my tool to newer firmware but there is allways a risk to completely brick your device because if the new fw does not support adb and if you unlocked your device it will be useless. From 1.3 to 1.11 is safe. I have not check the 2.x versions yet.

Btw there is way more easier method to unlock the device without loosing any support forever.

I've just wanted V2.2.0 for the new router mode. I've enabled it and saw all this is handled by MQTT...

/vendor/bin/siliconlabs_host/mosquitto_sub -h 127.0.0.1 -i debug -v -t '#'
zigbee/system/availability {"online":true,"reason":"zigbee app start"}
zigbee/system/transmit-power-updated {"transmitPower":9}
zigbee/system/network-role/information {"role":"Repeater"}
zigbee/system/pair {"pair":true}
zigbee/system/pairing {"pairing":true,"countdown":180,"reason":"Pair request"}
zigbee/system/pairing {"pairing":false,"countdown":0,"reason":"Countdown is over"}

@seaky
Copy link
Owner

seaky commented Dec 31, 2023

Hi, finally found a thread about the ns panel pro. I bought my ns panel pro yesterday and activated adb.. Everything went ok till i clicked the wrong file with the launcher. After that i only get a chinese menu where i can test al parts of my device or some qrcode with a chipid My panel is unusable now...

Is there a way to flash this device without the ewelink app and adb? I want to use it with the hass app. No problem if something goes wrong... It is useless anyway with the current chinese test environment

What does it mean "I clicked the wrong file" If you accidentally started the test app it does not need to reflash the device jus run the
adb shell input keyevent 3

@seaky
Copy link
Owner

seaky commented Dec 31, 2023

But I'll write it down here too: I don't understand why everyone wants to update to newer firmware. In every new firmware case, the OS is Android 8.1 AOSP. Even the build number is the same since 1.2. So simple there is no reason to update to newer firmware except if you want to go back somehow to Sonoff mode.
But allways there is a but... if you already unlocked the OS via Sonoff official method you simply lost new serverside features forever by default because your ewlink account register the device as a rooted device (You've been warned by the App).
You can update by my tool to newer firmware but there is allways a risk to completely brick your device because if the new fw does not support adb and if you unlocked your device it will be useless. From 1.3 to 1.11 is safe. I have not check the 2.x versions yet.
Btw there is way more easier method to unlock the device without loosing any support forever.

I've just wanted V2.2.0 for the new router mode. I've enabled it and saw all this is handled by MQTT...

/vendor/bin/siliconlabs_host/mosquitto_sub -h 127.0.0.1 -i debug -v -t '#'
zigbee/system/availability {"online":true,"reason":"zigbee app start"}
zigbee/system/transmit-power-updated {"transmitPower":9}
zigbee/system/network-role/information {"role":"Repeater"}
zigbee/system/pair {"pair":true}
zigbee/system/pairing {"pairing":true,"countdown":180,"reason":"Pair request"}
zigbee/system/pairing {"pairing":false,"countdown":0,"reason":"Countdown is over"}

Have you updated to 2.2.0 for zigbee router mode?

If yes, can you tell me more about this because I can pull any binary from 2.2fw without having to install the firmware so I could make an installable package. thanks in advance

@pvklink
Copy link

pvklink commented Jan 1, 2024

Hi, finally found a thread about the ns panel pro. I bought my ns panel pro yesterday and activated adb.. Everything went ok till i clicked the wrong file with the launcher. After that i only get a chinese menu where i can test al parts of my device or some qrcode with a chipid My panel is unusable now...
Is there a way to flash this device without the ewelink app and adb? I want to use it with the hass app. No problem if something goes wrong... It is useless anyway with the current chinese test environment

What does it mean "I clicked the wrong file" If you accidentally started the test app it does not need to reflash the device jus run the adb shell input keyevent 3

I think, i selected a wrong file instead of the launcher or the original nspanel pro startupfile. I thought i selected the original nspanelpro startup file but it seems i selected something wrong. as i get a strange chinese test interface with two options as described before.

Problem is that adb does not seem to be active anymore, so no options to put it back to another state so that i can use the device for example the hass app, i dont need the rest ...

So want to now if the device is useless, then it goes straight to the garbage...
Strange that a manufacturer sells a device with an developer option and then has problems when you use it
Will ask my collegae at the court if this is legal...

@seaky
Copy link
Owner

seaky commented Jan 1, 2024

But I reather assumed that you have faced with this screen:
nspanel_pro_recovery

or something like that a QR code in the middle!

Luckily you dont have to reflash your device. If you see a qrcode in the middle you somehow lost your ewelink licence.

Try the following

  • disassemble the unit
  • power it up by usb otg cable
  • try to access it via adb

@bdherouville
Copy link

Hi,

I installed 2.3, enabled Zigbee router mode and paired to my Z2M. Everything looks fine. I enabled turbo mode through the mobile app.

@seaky
Copy link
Owner

seaky commented Jan 3, 2024

Hi,

I installed 2.3, enabled Zigbee router mode and paired to my Z2M. Everything looks fine. I enabled turbo mode through the mobile app.

Is the Adb still accessible?

@bdherouville
Copy link

Yes. Surprisingly the 2.3 upgrade is not persisted. When rebooting on recovery it reinstall 1.7.

@seaky
Copy link
Owner

seaky commented Jan 3, 2024

Yes. Surprisingly the 2.3 upgrade is not persisted. When rebooting on recovery it reinstall 1.7.

Lets continue here:
Forum

@pvklink
Copy link

pvklink commented Jan 7, 2024

But I reather assumed that you have faced with this screen: nspanel_pro_recovery

or something like that a QR code in the middle!

Luckily you dont have to reflash your device. If you see a qrcode in the middle you somehow lost your ewelink licence.

Try the following

  • disassemble the unit
  • power it up by usb otg cable
  • try to access it via adb

hi @seaky
excuses for the late reaction... got corona, so no energy for this problem :-(
And yess, this is the screen and logo i got. I disabled the unit and i you mentioned a otg usb cable
Is that a special usb cable ?
I do have a usb mico to
https://www.allekabels.nl/usb_accessoires/usb_micro_kabel.html to usb a male and plugged it in my windows 11 pc.
i also installed the adb platform tools
but the adb device is not recognized when i plug my usb cable in.
https://www.allekabels.nl/usb_accessoires/usb_micro_kabel.html
do i need a specia cable?

@seaky
Copy link
Owner

seaky commented Jan 10, 2024

U definitely need OTG USB cable stuff like that
I prefer to buy micro to USB-A if you've got one, write me on email and I help you to get out from the rabbit hole.

@pvklink
Copy link

pvklink commented Jan 11, 2024 via email

@seaky
Copy link
Owner

seaky commented Jan 11, 2024

How to get out from rabbit hole.

  • Disassemble the unit
  • Connect +5V to the 5V pin and ground to GND pin min 2A DC powersource is required
    nspanel

Caution

Make sure of the proper connection, you can see the pinout labels under the pinheader!

  • Connect the OTG cable with a connected keyboard thats why I suggested to buy a USB-micro to USB-A
  • After the device is booted and the ewelink pair app appeared press Windows + N key on your keyboard
  • Navigate to Quick settings and enter
  • Under Settings go to Wifi and connect device to Wifi
  • Under Setting go to System -> Developer options -> USB debugging enbale
  • Check ip address

Now without reboot do the adb connect and install a custom launcher
https://github.com/seaky/nspanel_pro_tools_apk?tab=readme-ov-file#install-custom-launcher

Now you have a working device, good luck

@pvklink
Copy link

pvklink commented Jan 12, 2024 via email

@seaky
Copy link
Owner

seaky commented Jan 12, 2024

Ohh yes i forgot if you dont have Developer options. Just tap the About -> Build number multiple times!!

After you can enable status bar int the display -> show status bar option.

Btw what is About tablet -> Build number?

You are close... be patient ;)

@seaky
Copy link
Owner

seaky commented Jan 12, 2024

@pvklink
Copy link

pvklink commented Jan 12, 2024 via email

@pvklink
Copy link

pvklink commented Jan 12, 2024 via email

@seaky
Copy link
Owner

seaky commented Jan 12, 2024

Have you tried what I wrote?
"Ohh yes i forgot if you dont have Developer options. Just tap the About -> Build number multiple times!!"

It will solve your issue!

@pvklink
Copy link

pvklink commented Jan 12, 2024 via email

@seaky
Copy link
Owner

seaky commented Jan 16, 2024

yes, that did the trick!

pvklink could you please send me an email seaky77(at)gmail(dt)com

I'd like to investigate what caused your issue especially why your licence data has been corrupted.

@seaky
Copy link
Owner

seaky commented Jan 30, 2024

The firmware what you uploaded is corrupt or not compatible with this unit.

Do you really want to upgrade firmware or do you want to sideload apps?

If you want to upgrade fw just download one of them from the google drive above or u can find the link in the manual (frontpage)

Rename file which begins with Coolkit or NSPanel86 to system_update.zip and copy to the proper folder.
After the verification it will update the device.

@kosmosnautti
Copy link

kosmosnautti commented Mar 5, 2024

FYI, did some digging around on other stuff and stumbled on the licensing details of the eWeLink/Sonoff -app.

The license information is stored in Rockchip vendor storage (/dev/vendor_storage ?). It has different "slots" to store data which are accessed with IDs, and to access this storage the eWeLink dev-app is using their own "ioctrl" library. I don't know how to access this storage via another way, but according to this document there seems to be a Windows-app which can at least do it. There's also some code regarding it in this rktoolkit-repository.

So, in case you want to (I don't know why anybody would) revert back to the Sonoff/eWeLink control panel after you've lost your license data, you need to write a license string to vendor storage slot ID 7, and a product ID to slot ID 8. At a quick peek the control panel app seems to just check if those slots are empty or not, so I'm not sure if anything really validates if the license is correct or not. Could be that it's happy if theres at least something stored in those IDs.

If somebody wants to test this somehow, here are two valid license strings and product IDs:
License string
Y 1001ea223e 3622bf95-0405-42f3-b72a-b8f315321a2e d0:27:03:4b:04:4e d0:27:03:4b:04:4f SN-RKPX30-NSP-01 195
Product ID
23006700008071

License string
Y 1001ed01c8 ad422421-5e64-4459-a914-5bc4c7148da5 d0:27:03:50:c3:62 d0:27:03:50:c3:63 SN-RKPX30-NSP-01 195
Product ID
23013900005543

@seaky
Copy link
Owner

seaky commented Mar 5, 2024

Yes you right in certain cases when the licenced data has been lost can cause the "rabbit hole" situation.
link

But never touch the vendor storage if you are not aware what you are doing eg item 4-5 in slot 7 contains the mac addresses.

@Leecavturbo
Copy link

The firmware what you uploaded is corrupt or not compatible with this unit.

Do you really want to upgrade firmware or do you want to sideload apps?

If you want to upgrade fw just download one of them from the google drive above or u can find the link in the manual (frontpage)

Rename file which begins with Coolkit or NSPanel86 to system_update.zip and copy to the proper folder. After the verification it will update the device.

What google drive ? Link please

@seaky
Copy link
Owner

seaky commented Mar 16, 2024

The firmware what you uploaded is corrupt or not compatible with this unit.
Do you really want to upgrade firmware or do you want to sideload apps?
If you want to upgrade fw just download one of them from the google drive above or u can find the link in the manual (frontpage)
Rename file which begins with Coolkit or NSPanel86 to system_update.zip and copy to the proper folder. After the verification it will update the device.

What google drive ? Link please

" u can find the link in the manual" :
https://github.com/seaky/nspanel_pro_roottool_apk?tab=readme-ov-file#where-can-i-download-the-official-update-packages

@dpozimski
Copy link

@katironni
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests