Git Product home page Git Product logo

Comments (5)

hcouplet avatar hcouplet commented on July 28, 2024 1

Thanks for your response. It helped a lot.
Now I can flash it and it's working.

Here are my findings.

  1. As the link to the russian site for rtltool.py was dead, so I used rtltool.py from https://hackaday.io/project/182205-py-ft10/log/206206-rtltool or https://github.com/cyber-murmel/rtltool. They are both the same and may be you could update the reference.
  2. for the rtltool.py, no need for the "RTL8762x MP Tool Kits(ZIP)". Just run trltool.py with pyton2.7
    3
    I have issue with OTA. It says that the Auth is not correct.
    I had to flash in twice (not sure if the is correct) at 0xb000 and at 0x100000
/Users/hcouplet/.pyenv/versions/2.7.18/bin/python2 /Users/hcouplet/prg/projects/other/homeassistant/solis-stick/rtltool.py \
    -p /dev/tty.usbserial-0001 wf 0xb000 \
    /Users/hcouplet/prg/projects/other/homeassistant/solis-stick/libretiny-esphome/.esphome/build/solis2-stick/.pioenvs/solis2-stick/image_ota1.0x00B000.bin

/Users/hcouplet/.pyenv/versions/2.7.18/bin/python2 /Users/hcouplet/prg/projects/other/homeassistant/solis-stick/rtltool.py \
    -p /dev/tty.usbserial-0001 wf 0x100000 \
    /Users/hcouplet/prg/projects/other/homeassistant/solis-stick/libretiny-esphome/.esphome/build/solis2-stick/.pioenvs/solis2-stick/image_ota2.0x100000.bin

I ended up disabling OTA Password and OTA is working fine (I needed this before putting back the S3 card into the case to be able to update remotely the firmware).
I updated ota_component.cpp to bypass the wrong ota password commenting line at 239 :
image
After that flashing is working fine but the response is not valid (bypass error message).
it's some kind of digest auth with nonce and cnonce, may be the version in that tree has something wrong.

  1. I did all the initial flash on my mac but after installed LibreTiny ESPHOME on my HA. ESPHome was already there and I can use both of them :
    image

For this I used the add repository button on https://github.com/libretiny-eu/esphome-hass-addon
So now I am using the libretiny version only for my solis S3.
OTA (without password) is working fine.

from ginlong-solis.

hn avatar hn commented on July 28, 2024

Please try to solely flash the app alone using the Python2 version of rtltool:

python2 ./rtltool2.py -p /dev/ttyUSB0 wf 0xb000 ./.esphome/build/solis-inv/.pioenvs/solis-inv/image_0x00B000.ota1.bin

from ginlong-solis.

hn avatar hn commented on July 28, 2024
  • You are Solis S3 stick open source registered user # 3 :)
  • Updated rtltool2 link. The one I use was created by @pvvx, the ones you mention differ (but probably work just as well)
  • I never had any OTA password issues, that's strange.
  • Don't know why ltchiptool fails for you, maybe @kuba2k2 has an approach on how to fix/debug this.

from ginlong-solis.

kuba2k2 avatar kuba2k2 commented on July 28, 2024

Hi, thanks for the ping.

  1. It seems that some people have issues with ltchiptool flashing (I don't, but others do...). Since there are many versions of rtltool scattered around the Internet (on github, forums, etc), both for Python 2 and 3... can you send the version which you've found to work the most reliably? It's possible that I broke the one used in ltchiptool somehow, or maybe it was broken since I got it in the first place.
  2. @hcouplet you're actually the second person reporting OTA issues lately (see libretiny-eu/libretiny#142). @hn do you have the latest version of LibreTiny (AND esphome) installed? Maybe there's something that changed in latest ESPHome versions that needs a fix on Realtek.

from ginlong-solis.

hn avatar hn commented on July 28, 2024

@kuba2k2

I use this rtltool version for python2, created by @pvvx, It always worked so far.

If I remember correctly, I re-installed both LibreTiny and ESPhome when you released LT 1.0.2 (May 11). Unlike @hcouplet, I don't have any (OTA-)problems with these versions, so everything is fine (except the strange ModBus sync problem, but that's a different story).

from ginlong-solis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.