Home
last modified time | relevance | path

Searched refs:dce (Results 1 – 14 of 14) sorted by relevance

/hal_espressif-3.5.0/examples/protocols/pppos_client/components/modem/src/
Desp_modem_dce_service.c34 esp_err_t esp_modem_dce_handle_response_default(modem_dce_t *dce, const char *line) in esp_modem_dce_handle_response_default() argument
38 err = esp_modem_process_command_done(dce, MODEM_STATE_SUCCESS); in esp_modem_dce_handle_response_default()
40 err = esp_modem_process_command_done(dce, MODEM_STATE_FAIL); in esp_modem_dce_handle_response_default()
49 static esp_err_t esp_modem_dce_handle_csq(modem_dce_t *dce, const char *line) in esp_modem_dce_handle_csq() argument
52 esp_modem_dce_t *esp_dce = __containerof(dce, esp_modem_dce_t, parent); in esp_modem_dce_handle_csq()
54 err = esp_modem_process_command_done(dce, MODEM_STATE_SUCCESS); in esp_modem_dce_handle_csq()
56 err = esp_modem_process_command_done(dce, MODEM_STATE_FAIL); in esp_modem_dce_handle_csq()
71 static esp_err_t esp_modem_dce_handle_cbc(modem_dce_t *dce, const char *line) in esp_modem_dce_handle_cbc() argument
74 esp_modem_dce_t *esp_dce = __containerof(dce, esp_modem_dce_t, parent); in esp_modem_dce_handle_cbc()
76 err = esp_modem_process_command_done(dce, MODEM_STATE_SUCCESS); in esp_modem_dce_handle_cbc()
[all …]
Desp_modem.c104 modem_dce_t *dce = esp_dte->parent.dce; in esp_dte_handle_line() local
105 MODEM_CHECK(dce, "DTE has not yet bind with DCE", err); in esp_dte_handle_line()
106 if (separator != '\n' && dce->handle_line) { in esp_dte_handle_line()
108 … MODEM_CHECK(dce->handle_line(dce, line) == ESP_OK, "handle line failed", post_event_unknown); in esp_dte_handle_line()
118 if (dce->handle_line == NULL) { in esp_dte_handle_line()
124 if (dce->handle_line(dce, p) != ESP_OK) { in esp_dte_handle_line()
148 if (esp_dte->parent.dce->mode != MODEM_PPP_MODE && length) { in esp_handle_uart_data()
152 … char separator = esp_dte->parent.dce->prompt == NULL ? '\n' : (esp_dte->parent.dce->prompt)[strle… in esp_handle_uart_data()
156 if (esp_dte->parent.dce->handle_line) { in esp_handle_uart_data()
191 if (esp_dte->parent.dce == NULL) { in uart_event_task_entry()
[all …]
Dbg96.c41 static esp_err_t bg96_handle_power_down(modem_dce_t *dce, const char *line) in bg96_handle_power_down() argument
47 err = esp_modem_process_command_done(dce, MODEM_STATE_SUCCESS); in bg96_handle_power_down()
61 static esp_err_t bg96_set_working_mode(modem_dce_t *dce, modem_mode_t mode) in bg96_set_working_mode() argument
63 modem_dte_t *dte = dce->dte; in bg96_set_working_mode()
67 dce->handle_line = esp_modem_dce_handle_exit_data_mode; in bg96_set_working_mode()
72 dce->handle_line = esp_modem_dce_handle_response_default; in bg96_set_working_mode()
74 DCE_CHECK(dce->state == MODEM_STATE_SUCCESS, "sync failed", err); in bg96_set_working_mode()
76 DCE_CHECK(dce->state == MODEM_STATE_SUCCESS, "enter command mode failed", err); in bg96_set_working_mode()
79 dce->mode = MODEM_COMMAND_MODE; in bg96_set_working_mode()
82 dce->handle_line = esp_modem_dce_handle_atd_ppp; in bg96_set_working_mode()
[all …]
Dsim800.c33 static esp_err_t sim800_handle_power_down(modem_dce_t *dce, const char *line) in sim800_handle_power_down() argument
37 err = esp_modem_process_command_done(dce, MODEM_STATE_SUCCESS); in sim800_handle_power_down()
50 static esp_err_t sim800_power_down(modem_dce_t *dce) in sim800_power_down() argument
52 modem_dte_t *dte = dce->dte; in sim800_power_down()
53 dce->handle_line = sim800_handle_power_down; in sim800_power_down()
55 DCE_CHECK(dce->state == MODEM_STATE_SUCCESS, "power down failed", err); in sim800_power_down()
71 static esp_err_t sim800_set_working_mode(modem_dce_t *dce, modem_mode_t mode) in sim800_set_working_mode() argument
73 modem_dte_t *dte = dce->dte; in sim800_set_working_mode()
76 dce->handle_line = esp_modem_dce_handle_exit_data_mode; in sim800_set_working_mode()
82 dce->handle_line = esp_modem_dce_handle_response_default; in sim800_set_working_mode()
[all …]
Dsim7600.c44 static esp_err_t sim7600_handle_cbc(modem_dce_t *dce, const char *line) in sim7600_handle_cbc() argument
47 esp_modem_dce_t *esp_modem_dce = __containerof(dce, esp_modem_dce_t, parent); in sim7600_handle_cbc()
49 err = esp_modem_process_command_done(dce, MODEM_STATE_SUCCESS); in sim7600_handle_cbc()
51 err = esp_modem_process_command_done(dce, MODEM_STATE_FAIL); in sim7600_handle_cbc()
72 static esp_err_t sim7600_handle_cpof(modem_dce_t *dce, const char *line) in sim7600_handle_cpof() argument
76 err = esp_modem_process_command_done(dce, MODEM_STATE_SUCCESS); in sim7600_handle_cpof()
80 err = esp_modem_process_command_done(dce, MODEM_STATE_FAIL); in sim7600_handle_cpof()
96 static esp_err_t sim7600_get_battery_status(modem_dce_t *dce, uint32_t *bcs, uint32_t *bcl, uint32_… in sim7600_get_battery_status() argument
98 modem_dte_t *dte = dce->dte; in sim7600_get_battery_status()
99 esp_modem_dce_t *esp_modem_dce = __containerof(dce, esp_modem_dce_t, parent); in sim7600_get_battery_status()
[all …]
/hal_espressif-3.5.0/examples/protocols/pppos_client/components/modem/include/
Desp_modem_dce_service.h31 static inline esp_err_t esp_modem_process_command_done(modem_dce_t *dce, modem_state_t state) in esp_modem_process_command_done() argument
33 dce->state = state; in esp_modem_process_command_done()
34 return dce->dte->process_cmd_done(dce->dte); in esp_modem_process_command_done()
62 esp_err_t esp_modem_dce_handle_response_default(modem_dce_t *dce, const char *line);
73 esp_err_t esp_modem_dce_handle_exit_data_mode(modem_dce_t *dce, const char *line);
84 esp_err_t esp_modem_dce_handle_atd_ppp(modem_dce_t *dce, const char *line);
94 esp_err_t esp_modem_dce_sync(modem_dce_t *dce);
105 esp_err_t esp_modem_dce_echo(modem_dce_t *dce, bool on);
115 esp_err_t esp_modem_dce_store_profile(modem_dce_t *dce);
126 esp_err_t esp_modem_dce_set_flow_ctrl(modem_dce_t *dce, modem_flow_ctrl_t flow_ctrl);
[all …]
Desp_modem_dce.h84 …esp_err_t (*handle_line)(modem_dce_t *dce, const char *line); /*!< Handle line…
85 …esp_err_t (*sync)(modem_dce_t *dce); /*!< Synchroniza…
86 …esp_err_t (*echo_mode)(modem_dce_t *dce, bool on); /*!< Echo comman…
87 …esp_err_t (*store_profile)(modem_dce_t *dce); /*!< Store user …
88 …esp_err_t (*set_flow_ctrl)(modem_dce_t *dce, modem_flow_ctrl_t flow_ctrl); /*!< Flow contro…
89 …esp_err_t (*get_signal_quality)(modem_dce_t *dce, uint32_t *rssi, uint32_t *ber); /*!< Get signal …
90 esp_err_t (*get_battery_status)(modem_dce_t *dce, uint32_t *bcs,
92 esp_err_t (*get_operator_name)(modem_dce_t *dce); /*!< Get operator name */
93 esp_err_t (*define_pdp_context)(modem_dce_t *dce, uint32_t cid,
95 esp_err_t (*set_working_mode)(modem_dce_t *dce, modem_mode_t mode); /*!< Set working mode */
[all …]
Desp_modem_dte.h54 …modem_dce_t *dce; /*!< DCE which con… member
/hal_espressif-3.5.0/examples/protocols/pppos_client/main/
Dpppos_client_main.c36 static esp_err_t example_default_handle(modem_dce_t *dce, const char *line) in example_default_handle() argument
40 err = esp_modem_process_command_done(dce, MODEM_STATE_SUCCESS); in example_default_handle()
42 err = esp_modem_process_command_done(dce, MODEM_STATE_FAIL); in example_default_handle()
47 static esp_err_t example_handle_cmgs(modem_dce_t *dce, const char *line) in example_handle_cmgs() argument
51 err = esp_modem_process_command_done(dce, MODEM_STATE_SUCCESS); in example_handle_cmgs()
53 err = esp_modem_process_command_done(dce, MODEM_STATE_FAIL); in example_handle_cmgs()
64 static esp_err_t example_send_message_text(modem_dce_t *dce, const char *phone_num, const char *tex… in example_send_message_text() argument
66 modem_dte_t *dte = dce->dte; in example_send_message_text()
67 dce->handle_line = example_default_handle; in example_send_message_text()
73 if (dce->state != MODEM_STATE_SUCCESS) { in example_send_message_text()
[all …]
/hal_espressif-3.5.0/tools/test_apps/protocols/pppos/main/
Dnull_dce.c28 static esp_err_t null_dce_set_working_mode(modem_dce_t *dce, modem_mode_t mode) in null_dce_set_working_mode() argument
30 dce->mode = mode; in null_dce_set_working_mode()
34 static esp_err_t null_dce_define_pdp_context(modem_dce_t *dce, uint32_t cid, const char *type, cons… in null_dce_define_pdp_context() argument
39 esp_err_t null_dce_dce_hang_up(modem_dce_t *dce) in null_dce_dce_hang_up() argument
44 static esp_err_t null_dce_deinit(modem_dce_t *dce) in null_dce_deinit() argument
46 null_modem_dce_t *bg96_dce = __containerof(dce, null_modem_dce_t, parent); in null_dce_deinit()
47 if (dce->dte) { in null_dce_deinit()
48 dce->dte->dce = NULL; in null_dce_deinit()
62 dte->dce = &(null_dce->parent); in null_dce_init()
Dpppos_client_main.c232 modem_dce_t *dce = null_dce_init(dte); in app_main() local
267 ESP_ERROR_CHECK(dce->deinit(dce)); in app_main()
/hal_espressif-3.5.0/examples/cxx/experimental/esp_modem_cxx/main/
Dsimple_client.cpp51 std::unique_ptr<DCE> dce = create_BG96_dce(&dce_config, uart_dte, esp_netif); in app_main() local
53 std::unique_ptr<DCE> dce = create_SIM800_dce(&dce_config, uart_dte, esp_netif); in app_main() local
55 std::unique_ptr<DCE> dce = create_SIM7600_dce(&dce_config, uart_dte, esp_netif); in app_main() local
59 assert(dce); in app_main()
64 if (dce->read_pin(pin_ok) == command_result::OK && !pin_ok) { in app_main()
65 if (dce->set_pin(CONFIG_EXAMPLE_SIM_PIN) == command_result::OK) { in app_main()
74 …if (dce->set_mode(esp_modem::modem_mode::CMUX_MODE) && dce->set_mode(esp_modem::modem_mode::DATA_M… in app_main()
83 while (dce->get_operator_name(str) != esp_modem::command_result::OK) { in app_main()
134 if (dce->get_imsi(str) == esp_modem::command_result::OK) { in app_main()
/hal_espressif-3.5.0/examples/protocols/pppos_client/
Dsdkconfig.defaults6 # Do not enable IPV6 in dte<->dce link local
/hal_espressif-3.5.0/examples/cxx/experimental/esp_modem_cxx/
Dsdkconfig.defaults6 # Do not enable IPV6 in dte<->dce link local