Skip to content

Latest commit

 

History

History
213 lines (173 loc) · 34.5 KB

File metadata and controls

213 lines (173 loc) · 34.5 KB

Documentation Status

Try it with ESP Launchpad

Espressif IoT Solution 概述

ESP-IoT-Solution 包含物联网系统开发中常用的外设驱动和代码框架,提供了 ESP-IDF 的扩展组件,方便用户实现更简单的开发。

ESP-IoT-Solution 包含的内容如下:

  • 传感器、显示屏、音频设备、输入设备、电机控制等设备驱动;
  • 低功耗、安全加密、存储方案等代码框架或说明文档;
  • 从实际应用的角度出发,为乐鑫开源解决方案提供了入口指引。

文档中心

版本说明

release/v2.0 起,ESP-IoT-Solution 采用组件化管理,各组件与示例独立迭代,不再绑定仓库分支。具体依赖的 ESP-IDF 版本请查阅组件 idf_component.yml 文件中的声明。Release 分支仅用于维护组件的历史大版本,例如 button v3.x 版本在 release/v2.0 分支中维护,master 分支中维护最新的 button 版本(例如 v4.x)。

ESP-IoT-Solution 依赖的 ESP-IDF 主要变更 文档 支持状态
master >= v5.3 新芯片支持 Docs online 新功能开发分支
release/v2.0 <= v5.3, >= v4.4 支持组件管理器 Docs online 仅限组件历史版本 Bugfix,维护到 v5.3 EOL
release/v1.1 v4.0.1 IDF 版本更新,删除已经移动到其它仓库的代码 v1.1 Overview 备份,停止维护
release/v1.0 v3.2.2 历史版本 v1.0 Overview 备份,停止维护

Note

不同芯片推荐的 ESP-IDF 首选版本也不同,具体可参考 ESP-IDF 版本与乐鑫芯片版本兼容性

快速参考

硬件准备

您可以选择任意 ESP 系列开发板使用 ESP-IoT-Solution,或者选择esp-bsp中支持的开发板快速开始。

ESP 系列 SoC 采用先进工艺制程,提供业界领先的射频性能、低功耗特性和稳定可靠性,适用于物联网、工业控制、智能家居、可穿戴设备等多种应用场景。各系列芯片的具体规格和功能请参考 ESP 产品选型工具

组件使用或二次开发

请参考 ESP-IDF 详细安装步骤 先完成 ESP-IDF 开发环境的搭建。

从 ESP 组件注册表获取组件

如果您只想使用 ESP-IoT-Solution 中的组件,我们建议您从 ESP 组件注册表 ESP Component Registry 中使用它。

可以在项目根目录下使用 idf.py add-dependency 命令直接将组件从 Component Registry 添加到项目中。例如,执行 idf.py add-dependency "espressif/button" 命令添加 button,该组件将在 CMake 步骤中自动下载。

请参考 IDF Component Manager 查看更多关于组件管理器的细节.

ESP-IoT-Solution 中注册的组件如下:

组件 版本
adc_battery_estimation Component Registry
adc_mic Component Registry
adc_tp_calibration Component Registry
aht20 Component Registry
apds9960 Component Registry
at24c02 Component Registry
at581x Component Registry
avi_player Component Registry
ble_anp Component Registry
ble_conn_mgr Component Registry
ble_hci Component Registry
ble_hrp Component Registry
ble_htp Component Registry
ble_midi Component Registry
ble_ota Component Registry
ble_ota_raw Component Registry
ble_otp Component Registry
ble_services Component Registry
bme280 Component Registry
bme690 Component Registry
bootloader_support_plus Component Registry
bq27220 Component Registry
bthome Component Registry
button Component Registry
cmake_utilities Component Registry
drv10987 Component Registry
elf_loader Component Registry
esp_lcd_axs15231b Component Registry
esp_lcd_co5300 Component Registry
esp_lcd_ek79007 Component Registry
esp_lcd_er88577 Component Registry
esp_lcd_gc9107 Component Registry
esp_lcd_gc9b71 Component Registry
esp_lcd_gc9d01 Component Registry
esp_lcd_hx8399 Component Registry
esp_lcd_jd9165 Component Registry
esp_lcd_jd9365 Component Registry
esp_lcd_nv3022b Component Registry
esp_lcd_nv3052 Component Registry
esp_lcd_panel_io_additions Component Registry
esp_lcd_sh8601 Component Registry
esp_lcd_spd2010 Component Registry
esp_lcd_st7123 Component Registry
esp_lcd_st7701 Component Registry
esp_lcd_st7703 Component Registry
esp_lcd_st77903_qspi Component Registry
esp_lcd_st77903_rgb Component Registry
esp_lcd_st77916 Component Registry
esp_lcd_st77922 Component Registry
esp_lcd_touch_ili2118 Component Registry
esp_lcd_touch_spd2010 Component Registry
esp_lcd_touch_st7123 Component Registry
esp_lcd_usb_display Component Registry
esp_lv_decoder Component Registry
esp_lv_eaf_player Component Registry
esp_lv_fs Component Registry
esp_lv_lottie_player Component Registry
esp_lvgl_adapter Component Registry
esp_mmap_assets Component Registry
esp_msc_ota Component Registry
esp_sensorless_bldc_control Component Registry
esp_simplefoc Component Registry
esp_tinyuf2 Component Registry
esp_weaver Component Registry
extended_vfs Component Registry
gprof Component Registry
hdc2010 Component Registry
i2c_bus Component Registry
ina236 Component Registry
iot_eth Component Registry
iot_usbh Component Registry
iot_usbh_cdc Component Registry
iot_usbh_ecm Component Registry
iot_usbh_modem Component Registry
iot_usbh_rndis Component Registry
ir_learn Component Registry
keyboard_button Component Registry
knob Component Registry
led_indicator Component Registry
lightbulb_driver Component Registry
lis2dh12 Component Registry
log_router Component Registry
max17048 Component Registry
mcp-c-sdk Component Registry
mcp23017 Component Registry
mcp3201 Component Registry
modem_at Component Registry
mvh3004d Component Registry
ntc_driver Component Registry
openai Component Registry
power_measure Component Registry
pwm_audio Component Registry
sensor_hub Component Registry
servo Component Registry
sht3x Component Registry
spi_bus Component Registry
touch_button Component Registry
touch_button_sensor Component Registry
touch_ic_bs8112a3 Component Registry
touch_proximity_sensor Component Registry
touch_slider_sensor Component Registry
usb_device_uac Component Registry
usb_device_uvc Component Registry
usb_stream Component Registry
veml6040 Component Registry
veml6075 Component Registry
xz Component Registry
zero_detection Component Registry

从 ESP-IoT-Solution 仓库获取组件

如果您想为 ESP-IoT-Solution 中的组件或示例贡献代码,或者想基于 ESP-IoT-Solution 中的示例开发项目,您可以通过以下步骤下载 ESP-IoT-Solution 代码仓库:

  • 如果选择 master 版本,可使用以下指令获取代码:

    git clone --recursive https://github.com/espressif/esp-iot-solution
    
  • 如果选择 release/v2.0 版本,可使用以下指令获取代码:

    git clone -b release/v2.0 --recursive https://github.com/espressif/esp-iot-solution
    

构建和烧录示例

我们强烈建议构建您的第一个项目 以熟悉 ESP-IDF 并确保环境已经设置正确。

在 ESP-IoT-Solution 和 ESP-IDF 中构建和烧录示例没有区别。 在大多数情况下,您可以按照以下步骤在 ESP-IoT-Solution 中构建和烧录示例:

  1. 将当前目录更改为示例目录,例如 cd examples/usb/host/usb_audio_player
  2. 运行 idf.py set-target TARGET 设置目标芯片。 例如 idf.py set-target esp32s3 将目标芯片设置为 ESP32-S3
  3. 运行 idf.py build 来构建示例;
  4. 运行 idf.py -p PORT flash monitor 烧录示例,并查看串口输出。 例如 idf.py -p /dev/ttyUSB0 flash monitor 将示例烧录到 /dev/ttyUSB0 端口,并打开串口监视器。

某些示例可能需要额外的步骤来设置 ESP-IoT-Solution 环境变量,您可以在 Linux/MacOS 中运行 export IOT_SOLUTION_PATH=~/esp/esp-iot-solutionset IOT_SOLUTION_PATH=C:\esp\esp- iot-solution 在 Windows 中设置环境。

其它参考资源