/hal_espressif-3.6.0/examples/protocols/pppos_client/components/modem/src/ |
D | esp_modem_dce_service.c | 223 modem_dte_t *dte = dce->dte; in esp_modem_dce_sync() local 225 …DCE_CHECK(dte->send_cmd(dte, "AT\r", MODEM_COMMAND_TIMEOUT_DEFAULT) == ESP_OK, "send command faile… in esp_modem_dce_sync() 235 modem_dte_t *dte = dce->dte; in esp_modem_dce_echo() local 238 …DCE_CHECK(dte->send_cmd(dte, "ATE1\r", MODEM_COMMAND_TIMEOUT_DEFAULT) == ESP_OK, "send command fai… in esp_modem_dce_echo() 242 …DCE_CHECK(dte->send_cmd(dte, "ATE0\r", MODEM_COMMAND_TIMEOUT_DEFAULT) == ESP_OK, "send command fai… in esp_modem_dce_echo() 253 modem_dte_t *dte = dce->dte; in esp_modem_dce_store_profile() local 255 …DCE_CHECK(dte->send_cmd(dte, "AT&W\r", MODEM_COMMAND_TIMEOUT_DEFAULT) == ESP_OK, "send command fai… in esp_modem_dce_store_profile() 265 modem_dte_t *dte = dce->dte; in esp_modem_dce_set_flow_ctrl() local 267 int len = snprintf(command, sizeof(command), "AT+IFC=%d,%d\r", dte->flow_ctrl, flow_ctrl); in esp_modem_dce_set_flow_ctrl() 270 …DCE_CHECK(dte->send_cmd(dte, command, MODEM_COMMAND_TIMEOUT_DEFAULT) == ESP_OK, "send command fail… in esp_modem_dce_set_flow_ctrl() [all …]
|
D | bg96.c | 63 modem_dte_t *dte = dce->dte; in bg96_set_working_mode() local 68 if (dte->send_cmd(dte, "+++", MODEM_COMMAND_TIMEOUT_MODE_CHANGE) != ESP_OK) { in bg96_set_working_mode() 73 …DCE_CHECK(dte->send_cmd(dte, "AT\r", MODEM_COMMAND_TIMEOUT_DEFAULT) == ESP_OK, "send command faile… in bg96_set_working_mode() 83 …DCE_CHECK(dte->send_cmd(dte, "ATD*99***1#\r", MODEM_COMMAND_TIMEOUT_MODE_CHANGE) == ESP_OK, "send … in bg96_set_working_mode() 89 …DCE_CHECK(dte->send_cmd(dte, "ATO\r", MODEM_COMMAND_TIMEOUT_MODE_CHANGE) == ESP_OK, "send command … in bg96_set_working_mode() 115 modem_dte_t *dte = dce->dte; in bg96_power_down() local 117 …DCE_CHECK(dte->send_cmd(dte, "AT+QPOWD=1\r", MODEM_COMMAND_TIMEOUT_POWEROFF) == ESP_OK, "send comm… in bg96_power_down() 136 if (dce->dte) { in bg96_deinit() 137 dce->dte->dce = NULL; in bg96_deinit() 143 modem_dce_t *bg96_init(modem_dte_t *dte) in bg96_init() argument [all …]
|
D | sim800.c | 52 modem_dte_t *dte = dce->dte; in sim800_power_down() local 54 …DCE_CHECK(dte->send_cmd(dte, "AT+CPOWD=1\r", MODEM_COMMAND_TIMEOUT_POWEROFF) == ESP_OK, "send comm… in sim800_power_down() 73 modem_dte_t *dte = dce->dte; in sim800_set_working_mode() local 78 if (dte->send_cmd(dte, "+++", MODEM_COMMAND_TIMEOUT_MODE_CHANGE) != ESP_OK) { in sim800_set_working_mode() 83 …DCE_CHECK(dte->send_cmd(dte, "AT\r", MODEM_COMMAND_TIMEOUT_DEFAULT) == ESP_OK, "send command faile… in sim800_set_working_mode() 94 …DCE_CHECK(dte->send_cmd(dte, "ATD*99#\r", MODEM_COMMAND_TIMEOUT_MODE_CHANGE) == ESP_OK, "send comm… in sim800_set_working_mode() 100 …DCE_CHECK(dte->send_cmd(dte, "ATO\r", MODEM_COMMAND_TIMEOUT_MODE_CHANGE) == ESP_OK, "send command … in sim800_set_working_mode() 127 if (dce->dte) { in sim800_deinit() 128 dce->dte->dce = NULL; in sim800_deinit() 134 modem_dce_t *sim800_init(modem_dte_t *dte) in sim800_init() argument [all …]
|
D | esp_modem_netif.c | 18 modem_dte_t *dte; /*!< ptr to the esp_modem objects (DTE) */ member 24 modem_dte_t *dte = arg; in on_ppp_changed() local 28 esp_modem_notify_ppp_netif_closed(dte); in on_ppp_changed() 44 modem_dte_t *dte = h; in esp_modem_dte_transmit() local 45 if (dte->send_data(dte, (const char *)buffer, len) > 0) { in esp_modem_dte_transmit() 64 modem_dte_t *dte = driver->dte; in esp_modem_post_attach_start() local 68 .handle = dte in esp_modem_post_attach_start() 80 …_ERROR_CHECK(esp_event_handler_register(NETIF_PPP_STATUS, ESP_EVENT_ANY_ID, &on_ppp_changed, dte)); in esp_modem_post_attach_start() 81 return esp_modem_start_ppp(dte); in esp_modem_post_attach_start() 100 void *esp_modem_netif_setup(modem_dte_t *dte) in esp_modem_netif_setup() argument [all …]
|
D | esp_modem.c | 85 esp_err_t esp_modem_set_rx_cb(modem_dte_t *dte, esp_modem_on_receive receive_cb, void *receive_cb_c… in esp_modem_set_rx_cb() argument 87 esp_modem_dte_t *esp_dte = __containerof(dte, esp_modem_dte_t, parent); in esp_modem_set_rx_cb() 241 static esp_err_t esp_modem_dte_send_cmd(modem_dte_t *dte, const char *command, uint32_t timeout) in esp_modem_dte_send_cmd() argument 244 modem_dce_t *dce = dte->dce; in esp_modem_dte_send_cmd() 248 esp_modem_dte_t *esp_dte = __containerof(dte, esp_modem_dte_t, parent); in esp_modem_dte_send_cmd() 272 static int esp_modem_dte_send_data(modem_dte_t *dte, const char *data, uint32_t length) in esp_modem_dte_send_data() argument 275 esp_modem_dte_t *esp_dte = __containerof(dte, esp_modem_dte_t, parent); in esp_modem_dte_send_data() 293 err = dce->dte->process_cmd_done(dce->dte); in esp_modem_dte_send_wait_default_handler() 296 err = dce->dte->process_cmd_done(dce->dte); in esp_modem_dte_send_wait_default_handler() 313 static esp_err_t esp_modem_dte_send_wait(modem_dte_t *dte, const char *data, uint32_t length, in esp_modem_dte_send_wait() argument [all …]
|
D | sim7600.c | 98 modem_dte_t *dte = dce->dte; in sim7600_get_battery_status() local 103 …DCE_CHECK(dte->send_cmd(dte, "AT+CBC\r", MODEM_COMMAND_TIMEOUT_DEFAULT) == ESP_OK, "send command f… in sim7600_get_battery_status() 121 modem_dte_t *dte = dce->dte; in sim7600_power_down() local 123 …DCE_CHECK(dte->send_cmd(dte, "AT+CPOF\r", MODEM_COMMAND_TIMEOUT_POWEROFF) == ESP_OK, "send command… in sim7600_power_down() 135 modem_dce_t *sim7600_init(modem_dte_t *dte) in sim7600_init() argument 137 modem_dce_t *dce = bg96_init(dte); in sim7600_init() 138 dte->dce->get_battery_status = sim7600_get_battery_status; in sim7600_init() 139 dte->dce->power_down = sim7600_power_down; in sim7600_init()
|
D | esp_modem_compat.c | 63 esp_err_t esp_modem_add_event_handler(modem_dte_t *dte, esp_event_handler_t handler, void *handler_… in esp_modem_add_event_handler() argument 71 … return esp_modem_set_event_handler(dte, on_modem_compat_handler, ESP_EVENT_ANY_ID, handler_args); in esp_modem_add_event_handler() 74 esp_err_t esp_modem_setup_ppp(modem_dte_t *dte) in esp_modem_setup_ppp() argument 94 void *modem_netif_adapter = esp_modem_netif_setup(dte); in esp_modem_setup_ppp() 100 esp_err_t esp_modem_exit_ppp(modem_dte_t *dte) in esp_modem_exit_ppp() argument 103 return esp_modem_stop_ppp(dte); in esp_modem_exit_ppp()
|
/hal_espressif-3.6.0/examples/protocols/pppos_client/main/ |
D | pppos_client_main.c | 66 modem_dte_t *dte = dce->dte; in example_send_message_text() local 69 if (dte->send_cmd(dte, "AT+CMGF=1\r", MODEM_COMMAND_TIMEOUT_DEFAULT) != ESP_OK) { in example_send_message_text() 80 if (dte->send_cmd(dte, "AT+CSCS=\"GSM\"\r", MODEM_COMMAND_TIMEOUT_DEFAULT) != ESP_OK) { in example_send_message_text() 93 dte->send_wait(dte, command, length, "\r\n> ", MODEM_PROMPT_TIMEOUT_MS); in example_send_message_text() 97 if (dte->send_cmd(dte, command, MODEM_COMMAND_TIMEOUT_SMS_MS) != ESP_OK) { in example_send_message_text() 245 modem_dte_t *dte = esp_modem_dte_init(&config); in app_main() local 247 ESP_ERROR_CHECK(esp_modem_set_event_handler(dte, modem_event_handler, ESP_EVENT_ANY_ID, NULL)); in app_main() 254 void *modem_netif_adapter = esp_modem_netif_setup(dte); in app_main() 261 dce = sim800_init(dte); in app_main() 263 dce = bg96_init(dte); in app_main() [all …]
|
/hal_espressif-3.6.0/tools/test_apps/protocols/pppos/main/ |
D | null_dce.c | 47 if (dce->dte) { in null_dce_deinit() 48 dce->dte->dce = NULL; in null_dce_deinit() 54 modem_dce_t *null_dce_init(modem_dte_t *dte) in null_dce_init() argument 56 if (!dte) return NULL; in null_dce_init() 61 null_dce->parent.dte = dte; in null_dce_init() 62 dte->dce = &(null_dce->parent); in null_dce_init()
|
D | pppos_client_main.c | 228 modem_dte_t *dte = esp_modem_dte_init(&config); in app_main() local 230 ESP_ERROR_CHECK(esp_modem_set_event_handler(dte, modem_event_handler, ESP_EVENT_ANY_ID, NULL)); in app_main() 232 modem_dce_t *dce = null_dce_init(dte); in app_main() 234 void *modem_netif_adapter = esp_modem_netif_setup(dte); in app_main() 258 ESP_ERROR_CHECK(esp_modem_stop_ppp(dte)); in app_main() 268 ESP_ERROR_CHECK(dte->deinit(dte)); in app_main()
|
D | null_dce.h | 23 modem_dce_t *null_dce_init(modem_dte_t *dte);
|
/hal_espressif-3.6.0/examples/protocols/pppos_client/components/modem/include/ |
D | esp_modem_dte.h | 55 …esp_err_t (*send_cmd)(modem_dte_t *dte, const char *command, uint32_t timeout); /*!< Send command … 56 …int (*send_data)(modem_dte_t *dte, const char *data, uint32_t length); /*!< Send data to … 57 esp_err_t (*send_wait)(modem_dte_t *dte, const char *data, uint32_t length, 59 esp_err_t (*change_mode)(modem_dte_t *dte, modem_mode_t new_mode); /*!< Changing working mode */ 60 …esp_err_t (*process_cmd_done)(modem_dte_t *dte); /*!< Callback when DCE process … 61 esp_err_t (*deinit)(modem_dte_t *dte); /*!< Deinitialize */
|
D | esp_modem.h | 118 esp_err_t esp_modem_set_event_handler(modem_dte_t *dte, esp_event_handler_t handler, int32_t event_… 129 esp_err_t esp_modem_remove_event_handler(modem_dte_t *dte, esp_event_handler_t handler); 139 esp_err_t esp_modem_start_ppp(modem_dte_t *dte); 149 esp_err_t esp_modem_stop_ppp(modem_dte_t *dte); 160 esp_err_t esp_modem_set_rx_cb(modem_dte_t *dte, esp_modem_on_receive receive_cb, void *receive_cb_c… 171 esp_err_t esp_modem_notify_ppp_netif_closed(modem_dte_t *dte);
|
D | esp_modem_compat.h | 48 esp_err_t esp_modem_add_event_handler(modem_dte_t *dte, esp_event_handler_t handler, void *handler_… 53 esp_err_t esp_modem_setup_ppp(modem_dte_t *dte) __attribute__ ((deprecated)); 58 esp_err_t esp_modem_exit_ppp(modem_dte_t *dte) __attribute__ ((deprecated));
|
D | esp_modem_dce_service.h | 34 return dce->dte->process_cmd_done(dce->dte); in esp_modem_process_command_done()
|
D | bg96.h | 29 modem_dce_t *bg96_init(modem_dte_t *dte);
|
D | sim7600.h | 29 modem_dce_t *sim7600_init(modem_dte_t *dte);
|
D | sim800.h | 29 modem_dce_t *sim800_init(modem_dte_t *dte);
|
D | esp_modem_netif.h | 27 void *esp_modem_netif_setup(modem_dte_t *dte);
|
D | esp_modem_dce.h | 83 …modem_dte_t *dte; /*!< DTE which c… member
|
/hal_espressif-3.6.0/examples/protocols/pppos_client/ |
D | sdkconfig.defaults | 6 # Do not enable IPV6 in dte<->dce link local
|
/hal_espressif-3.6.0/examples/cxx/experimental/esp_modem_cxx/ |
D | sdkconfig.defaults | 6 # Do not enable IPV6 in dte<->dce link local
|