Skip to content

Commit

Permalink
feat(esp_modem_usb_dte): add esp32p4 support & add cat.4 ec20 modem
Browse files Browse the repository at this point in the history
  • Loading branch information
leeebo committed Apr 22, 2024
1 parent 4b6a798 commit 25022bb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
4 changes: 4 additions & 0 deletions host/class/cdc/esp_modem_usb_dte/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
## Unreleased

## 1.2.0

- Fixed C++ build error for `usb_host_config_t` backward compatibility
- Added default configuration for SimCom SIM7070G, SIM7080 and SIMA7672E modems
- Added default configuration for Quectel EC20
- Added ESP32-P4 support

## 1.1.0

Expand Down
2 changes: 1 addition & 1 deletion host/class/cdc/esp_modem_usb_dte/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
idf_component_register(SRCS "esp_modem_usb.cpp" "esp_modem_usb_api_target.cpp" "esp_modem_usb_c_api.cpp"
REQUIRED_IDF_TARGETS esp32s2 esp32s3
REQUIRED_IDF_TARGETS esp32s2 esp32s3 esp32p4
PRIV_INCLUDE_DIRS "private_include"
INCLUDE_DIRS "include")

Expand Down
3 changes: 2 additions & 1 deletion host/class/cdc/esp_modem_usb_dte/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Then, you can pass these constants to [ESP_MODEM_DEFAULT_USB_CONFIG](https://git

## List of tested modems
The following modems were tested with this component, their configurations can be found in [esp_modem_usb_config.h](https://github.com/espressif/idf-extra-components/blob/master/usb/esp_modem_usb_dte/include/esp_modem_usb_config.h):
* Quactel BG96
* Quectel BG96
* Quectel EC20
* SimCom SIM7600E
* SimCom A7670E
2 changes: 1 addition & 1 deletion host/class/cdc/esp_modem_usb_dte/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## IDF Component Manager Manifest File
version: "1.1.0~1"
version: "1.2.0"
description: USB DTE plugin for esp_modem component
url: https://github.com/espressif/esp-usb/tree/master/host/class/cdc/esp_modem_usb_dte

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct esp_modem_usb_term_config {
#define ESP_MODEM_DEFAULT_USB_CONFIG(_vid, _pid, _intf) ESP_MODEM_DEFAULT_USB_CONFIG_DUAL(_vid, _pid, _intf, -1)

/**
* @brief Default configuration of Quactel BG96 modem
* @brief Default configuration of Quectel BG96 modem
*/
#define ESP_MODEM_BG96_USB_CONFIG() ESP_MODEM_DEFAULT_USB_CONFIG(0x2C7C, 0x0296, 2)

Expand Down Expand Up @@ -88,3 +88,8 @@ struct esp_modem_usb_term_config {
* @brief Default configuration of SimCom SIMA7672E modem
*/
#define ESP_MODEM_SIMA7672E_USB_CONFIG() ESP_MODEM_DEFAULT_USB_CONFIG_DUAL(0x1E0E, 0x9011, 4, 5)

/**
* @brief Default configuration of Quectel EC20 modem
*/
#define ESP_MODEM_EC20_USB_CONFIG() ESP_MODEM_DEFAULT_USB_CONFIG(0x2C7C, 0x0125, 3)

0 comments on commit 25022bb

Please sign in to comment.