mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-23 15:27:28 +02:00
Merge pull request #391 from david-cermak/fix/modem_usb_dte
[esp-modem]: Added USB runner with ESP32S2 with A7670
This commit is contained in:
8
.github/workflows/modem__target-test.yml
vendored
8
.github/workflows/modem__target-test.yml
vendored
@ -16,6 +16,10 @@ jobs:
|
|||||||
idf_ver: ["latest"]
|
idf_ver: ["latest"]
|
||||||
idf_target: ["esp32c3"]
|
idf_target: ["esp32c3"]
|
||||||
test: [ { app: pppd, path: test/target }, { app: sim800_c3, path: examples/pppos_client }, { app: sim800_cmux, path: examples/simple_cmux_client } ]
|
test: [ { app: pppd, path: test/target }, { app: sim800_c3, path: examples/pppos_client }, { app: sim800_cmux, path: examples/simple_cmux_client } ]
|
||||||
|
include:
|
||||||
|
- idf_ver: "latest"
|
||||||
|
idf_target: "esp32s2"
|
||||||
|
test: { app: usb_a7670_s2, path: examples/pppos_client }
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
container: espressif/idf:${{ matrix.idf_ver }}
|
container: espressif/idf:${{ matrix.idf_ver }}
|
||||||
env:
|
env:
|
||||||
@ -55,6 +59,10 @@ jobs:
|
|||||||
idf_ver: ["latest"]
|
idf_ver: ["latest"]
|
||||||
idf_target: ["esp32c3"]
|
idf_target: ["esp32c3"]
|
||||||
test: [ { app: pppd, path: test/target }, { app: sim800_c3, path: examples/pppos_client }, { app: sim800_cmux, path: examples/simple_cmux_client } ]
|
test: [ { app: pppd, path: test/target }, { app: sim800_c3, path: examples/pppos_client }, { app: sim800_cmux, path: examples/simple_cmux_client } ]
|
||||||
|
include:
|
||||||
|
- idf_ver: "latest"
|
||||||
|
idf_target: "esp32s2"
|
||||||
|
test: { app: usb_a7670_s2, path: examples/pppos_client }
|
||||||
needs: build_esp_modem_tests
|
needs: build_esp_modem_tests
|
||||||
runs-on:
|
runs-on:
|
||||||
- self-hosted
|
- self-hosted
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
CONFIG_IDF_TARGET="esp32s2"
|
||||||
|
# Override some defaults to enable PPP
|
||||||
|
CONFIG_LWIP_PPP_SUPPORT=y
|
||||||
|
CONFIG_LWIP_PPP_NOTIFY_PHASE_SUPPORT=y
|
||||||
|
CONFIG_LWIP_PPP_PAP_SUPPORT=y
|
||||||
|
CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=4096
|
||||||
|
CONFIG_LWIP_PPP_ENABLE_IPV6=n
|
||||||
|
CONFIG_EXAMPLE_SERIAL_CONFIG_USB=y
|
||||||
|
CONFIG_EXAMPLE_MODEM_DEVICE_A7670=y
|
||||||
|
CONFIG_EXAMPLE_MODEM_PPP_APN="lpwa.vodafone.com"
|
||||||
|
CONFIG_EXAMPLE_MODEM_PPP_AUTH_NONE=y
|
||||||
|
CONFIG_EXAMPLE_MQTT_TEST_TOPIC="/ci/esp-modem/pppos-client"
|
||||||
|
CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y
|
||||||
|
CONFIG_ESP32_PANIC_PRINT_HALT=y
|
@ -78,9 +78,9 @@ void DTE::set_command_callbacks()
|
|||||||
if (command_cb.process_line(data, 0, len)) {
|
if (command_cb.process_line(data, 0, len)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// cannot inflate and the processing hasn't finishes in the first iteration -> report a failure
|
// cannot inflate and the processing hasn't finishes in the first iteration, but continue
|
||||||
command_cb.give_up();
|
// (will post next fragments to the parser, since we might be just missing a last token or OK
|
||||||
return true;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
// data == nullptr: Terminals which request users to read current data
|
// data == nullptr: Terminals which request users to read current data
|
||||||
|
Reference in New Issue
Block a user