Files
esp-protocols/components/esp_modem
David Cermak 4cf9e505e1 feat(modem): Add factory method for simple creation of custom DCEs
This allows calling directly:
auto dce = dce_factory::Factory::create_unique_dce_from<SIM7600>(&dce_config, uart_dte, esp_netif);
instead of:
auto dce = create_SIM7600_dce(&dce_config, uart_dte, esp_netif);
Which is very useful when adding a custom module, so we won't need to
update factory layers and add the new device to enums, etc.
To add a new module, you just:
1) Define the module class NewModule: public GenericModule { };
2) Implement the specific commands:
command_result do_work_new_module(CommandableIf *t, params) {}
3) Connect 1) and 2)
command_result NewModule::do_work_new_module(params...)
{
    return dce_commands::do_work_new_module(dte.get(), params...);
}
2023-08-28 10:27:16 +02:00
..
2023-06-22 09:50:23 +02:00
2023-06-22 09:50:23 +02:00
2023-06-22 09:50:23 +02:00
2021-10-04 11:32:55 +02:00

ESP MODEM

Component Registry

The esp-modem component is a managed component for esp-idf that is used for communication with GSM/LTE modems that support AT commands and PPP protocol as a network interface.

Examples

Get started with one of the examples:

  • examples/pppos_client -- simple client implemented in C
  • examples/modem_console -- C++ example implementing simple terminal console with DCE commands
  • examples/ap_to_pppos -- this example focuses on the network connectivity of the esp-modem and provides a WiFi AP that forwards packets (and uses NAT) to and from the PPPoS connection.
  • examples/simple_cmux_client -- this example sets up the CMUX mode to talk to the modem using AT commands with simultaneously maintaining active network connection.

Documentation