Giter Club home page Giter Club logo

Comments (6)

SmallPond avatar SmallPond commented on June 1, 2024

是的,当前还没实现这一部分,后续将会加入 OTA 。

from x-knob.

SmallPond avatar SmallPond commented on June 1, 2024

实际上在 PlatformIO 下是可以通过 USB 直接烧写程序(无需手动按住 boot 进入下载模式)的,使用以下方法:

C:\Users\${username}\.platformio\platforms\espressif32\builder\main.py 找到下面这一行

"--before", board.get("upload.before_reset", "default_reset"),

替换为:

                "--before", board.get("upload.before_reset", "usb_reset"),

from x-knob.

SmallPond avatar SmallPond commented on June 1, 2024

通过这种方式可以让 X-Knob 自动进入下载模式,下载完成后会自动重启。

这样更加方便,也不用再给程序增加额外的 OTA 逻辑。所以当前不会考虑增加 WiFi OTA 了。

后续还要继续研究如何通过 platformio 传入这个参数,而不用这种 hack 模式。我参考文档试了一下在 platformio.ini 文件中增加参数会报错:

upload_flags = 
	--before usb_reset

from x-knob.

jwxa avatar jwxa commented on June 1, 2024

测试了一下 失败了
ZQEB}_C)F7LKV{5)0ZZ}ANG
EX1ZY4I ~AK4U`E$PS26RNV
还有就是目前刷了固件后S-Dial选中直接会重启?我按45大佬指导的方式是直接ota(本来是45大佬的固件)刷入你的master分支代码编译后的firmware.bin文件

from x-knob.

SmallPond avatar SmallPond commented on June 1, 2024

我按45大佬指导的方式是直接ota(本来是45大佬的固件)刷入你的master分支代码编译后的firmware.bin文件

不知道你这里的最新master分支是否同步了我最新的 commit fc59180

由于我之前是把 usb 初始化了 cdc 设备,所以没办法通过 usb 直接下载,取消 cdc 的初始化就可以了。

所以,在这种情况下,你可能需要先手动刷入最新的固件,以后就可以通过 usb 下载了。

from x-knob.

jwxa avatar jwxa commented on June 1, 2024

回家试试谢谢

from x-knob.

Related Issues (17)

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.