Search found 156 matches

by ESP_Penguin_Helper
Wed Aug 16, 2023 11:37 am
Forum: ESP-IDF 中文讨论版
Topic: esp32s3如何更改默认的128bit UUID
Replies: 1
Views: 706

Re: esp32s3如何更改默认的128bit UUID

要改变 UUID 的长度,更改 esp_attr_desc_t 中的 uuid_length,只能更改为 16-bit 或 128-bit 要改变 UUID 的值,更改 esp_attr_desc_t 中的 *uuid_p。注意:Base UUID 是唯一的,你只可以更改 16 进制的第五个到第八个。例如: Bluetooth Base UUID: 0000 0000 -0000-1000-8000-00805F9B34FB 128_bit_value = 16_bit_value * 2^96 + Bluetooth Base UUID 参考:https://docs.espressif.c...
by ESP_Penguin_Helper
Wed Aug 16, 2023 6:29 am
Forum: ESP-IDF 中文讨论版
Topic: 怎么向组件库提交 component ?
Replies: 10
Views: 2900

Re: 怎么向组件库提交 component ?

你好,刚才检查了一下。应该是本地解析的时候遇到的错误,不过上传的内容并无问题,不会影响使用。

此外,你可以考虑通过 GitHub Actions 自动上传你的库,乐鑫提供脚本对内容进行检查。只要在库中包含 upload_component.yml,参考:https://github.com/espressif/esp-iot-so ... ponent.yml
by ESP_Penguin_Helper
Wed Aug 16, 2023 2:11 am
Forum: ESP-IDF 中文讨论版
Topic: 怎么向组件库提交 component ?
Replies: 10
Views: 2900

Re: 怎么向组件库提交 component ?

大概率是 token 的权限问题。你现在使用的是哪个 token?更换 token 种类试一下呢?
by ESP_Penguin_Helper
Tue Aug 15, 2023 9:53 am
Forum: ESP-IDF 中文讨论版
Topic: 有没有稳定版esp-idf 5.1 的镜像?
Replies: 3
Views: 1002

Re: 有没有稳定版esp-idf 5.1 的镜像?

你好,刚才相关团队去测试了一下,测试结果 espressif/idf:v5.1 下载下来的内容依然是是 v5.1 版本。

Code: Select all

$ docker run --rm espressif/idf:v5.1 git -C /opt/esp/idf describe
...
v5.1
$ docker run --rm espressif/idf:v5.1 idf.py --version  
...
v5.1
请问你是如何得到下载下来的版本是 v5.2 呢
by ESP_Penguin_Helper
Tue Aug 15, 2023 9:00 am
Forum: ESP-IDF 中文讨论版
Topic: 【已解决】esp32s3 在windows上通过USB烧写失败
Replies: 4
Views: 2415

Re: esp32s3 在windows上通过USB烧写失败

是的,如果可以在另一台设备上进行烧写和 monitor 那大概率是台式机 USB 驱动的问题。如果你依然想使用 USB_SERIAL_JTAG, 可以通过 Zadig https://zadig.akeo.ie/ 工具 安装驱动程序。安装好后按照下方图片操作。参考:https://docs.espressif.com/projects/esp-idf/zh_CN/latest/esp32s3/api-guides/dfu.html?highlight=usb#usb-windows 此外,你还可以考虑使用 UART 进行烧录:https://docs.espressif.com/project...
by ESP_Penguin_Helper
Tue Aug 15, 2023 6:36 am
Forum: ESP-IDF 中文讨论版
Topic: 【已解决】引用项目文件夹以外的外部组件错误
Replies: 2
Views: 974

Re: 引用项目文件夹以外的外部组件错误

使用 REQUIRES 会默认从 IDF 目录下的 components 文件夹和项目中的 components 文件夹(如有)寻找组件,如果组件在别的位置,则需要使用 EXTRA_COMPONENT_DIRS。 参考如下: set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/bluetooth/esp_ble_mesh/common_components/button) 参考文档: https://docs.espressif.com/projects/esp-idf/zh_CN/latest/esp32/api-guides/build-sys...
by ESP_Penguin_Helper
Mon Aug 14, 2023 9:22 am
Forum: ESP-IDF 中文讨论版
Topic: <ERROR HELP>No such file or directory 文件缺失错误
Replies: 1
Views: 545

Re: <ERROR HELP>No such file or directory 文件缺失错误

你好,目前看来是你的工具链不完整,请问你确定在安装的过程中工具链全部完整的安装了吗?有可能是在安装时并没有安装成功,可以尝试一下重新安装 IDF 插件后检查问题是否依然存在吗?
by ESP_Penguin_Helper
Mon Aug 14, 2023 3:11 am
Forum: ESP IoT Solution 中文讨论版
Topic: vscode环境下使用idf开发的组件问题
Replies: 4
Views: 5809

Re: vscode环境下使用idf开发的组件问题

手动加组件的话,把下载的 component 放入你项目的 component 文件夹中,然后在 CMakeLists.txt 中使用 idf_component_register 注册该组件。例如:

Code: Select all

idf_component_register(SRCS "spi_lcd_touch_example_main.c" "lvgl_demo_ui.c"
                       INCLUDE_DIRS ".")
by ESP_Penguin_Helper
Mon Aug 14, 2023 2:15 am
Forum: ESP IoT Solution 中文讨论版
Topic: vscode环境下使用idf开发的组件问题
Replies: 4
Views: 5809

Re: vscode环境下使用idf开发的组件问题

在组件管理器描述文件 idf_component.yml 中,按照下方示例,添加组件在 Github 的地址: dependencies: esp-gsl: git: https://github.com/leeebo/esp-gsl.git version: "*" button: git: https://github.com/espressif/esp-iot-solution.git path: components/button version: "*" 或者你可以直接把需要的组件包下载下来后手动放入工程文件夹中。
by ESP_Penguin_Helper
Fri Aug 11, 2023 9:48 am
Forum: ESP-IDF 中文讨论版
Topic: esp32-c3 喂狗问题
Replies: 2
Views: 937

Re: esp32-c3 喂狗问题

你好,看门狗设计的逻辑就是为了避免在一个任务中滞留时间过长。请参考:https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/wdts.html?highlight=watchdog#task-watchdog-timer-twdt 根据你的描述,是因为网络问题在 HA_Esp_Sntp_Init() 花费了过长的时间。遇到这种情况建议优化代码逻辑。你也可以在 HA_Esp_Sntp_Init() 中添加喂狗机制,调高看门狗 timeout 的时长,或者调高另一个 task 的优先级跳到另一...