Comments (6)
是的,当前还没实现这一部分,后续将会加入 OTA 。
from x-knob.
实际上在 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.
通过这种方式可以让 X-Knob 自动进入下载模式,下载完成后会自动重启。
这样更加方便,也不用再给程序增加额外的 OTA 逻辑。所以当前不会考虑增加 WiFi OTA 了。
后续还要继续研究如何通过 platformio 传入这个参数,而不用这种 hack 模式。我参考文档试了一下在 platformio.ini 文件中增加参数会报错:
upload_flags =
--before usb_reset
from x-knob.
测试了一下 失败了
还有就是目前刷了固件后S-Dial选中直接会重启?我按45大佬指导的方式是直接ota(本来是45大佬的固件)刷入你的master分支代码编译后的firmware.bin文件
from x-knob.
我按45大佬指导的方式是直接ota(本来是45大佬的固件)刷入你的master分支代码编译后的firmware.bin文件
不知道你这里的最新master分支是否同步了我最新的 commit fc59180
由于我之前是把 usb 初始化了 cdc 设备,所以没办法通过 usb 直接下载,取消 cdc 的初始化就可以了。
所以,在这种情况下,你可能需要先手动刷入最新的固件,以后就可以通过 usb 下载了。
from x-knob.
回家试试谢谢
from x-knob.
Related Issues (17)
- 程序编译错误 HOT 11
- l老哥,嘉立创开源的那个是最新版的吗?那个bom能够直接用吗? HOT 5
- 接入 Home Assistant 控制智能家居 HOT 2
- X-Knob 发现 Home Assistant 中的智能设备 HOT 1
- 使用platfromio编译后内存占用过多 HOT 3
- bug: 重入 Surface Dial 模式无法正常连接和控制 PC
- Error: Unknown board ID 'esp32-s3-devkitc-1' HOT 4
- 关于X-Knob的编译和上传 HOT 1
- 对于ESP32芯片的代码来说需要修改那些地方呢? HOT 1
- 出现找不到ffat分区的情况 HOT 4
- WEB后台MQTT填写超长密码之后,进OTA功能会复位 HOT 2
- 创建.bin文件 HOT 6
- 选择super-dial蓝牙连接之后旋钮无法回到主界面 HOT 1
- [UI] 重新实现 Smart Home 的 UI
- 是否有bom和购买链接
- 立创开源平台找不到开源的项目 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from x-knob.