-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modem_console get_module_name does not call the SHINY function (IDFGH-11628) #452
Comments
Okay, it seems that this command is overwritten in esp-protocols/components/esp_modem/examples/modem_console/main/my_module_dce.cpp Lines 45 to 46 in 82c2cf8
I'm sorry, I wanted to demonstrate how to handle URC messages in 7547267 and forgot that this would basically replace that overridden command. diff --git a/components/esp_modem/examples/modem_console/main/modem_console_main.cpp b/components/esp_modem/examples/modem_console/main/modem_console_main.cpp
index b703d99..ba8f791 100644
--- a/components/esp_modem/examples/modem_console/main/modem_console_main.cpp
+++ b/components/esp_modem/examples/modem_console/main/modem_console_main.cpp
@@ -132,7 +132,8 @@ extern "C" void app_main(void)
#if defined(CONFIG_EXAMPLE_MODEM_DEVICE_SHINY)
ESP_LOGI(TAG, "Initializing esp_modem for the SHINY module...");
- auto dce = create_shiny_dce(&dce_config, uart_dte, esp_netif);
+ auto dce = esp_modem::dce_factory::Factory::build_unique<MyShinyModem>(&dce_config, uart_dte, esp_netif);
#elif defined(CONFIG_EXAMPLE_MODEM_DEVICE_BG96)
ESP_LOGI(TAG, "Initializing esp_modem for the BG96 module...");
auto dce = create_BG96_dce(&dce_config, uart_dte, esp_netif); I'll fix the example and add more comments! If you just want to modify few commands, you can check the pppos_client example (this is much simpler): esp-protocols/components/esp_modem/examples/pppos_client/main/custom_module.hpp Lines 11 to 42 in 82c2cf8
(unlike the |
1.1.0 Features - Added support for at_raw() command (ae38110, espressif#471) - Added iperf test for PPP netifs (976e98d) - Added test that performs OTA to exercise modem layers (f2223dd) Bug Fixes - Fixed OTA test to gracefully fail with no verification (1dc4299) - Added C-API to configure APN (ce7dadd, espressif#485) - Fixed AT commands to copy strings to prevent overrides (741d166, espressif#463) - Fixed incorrect dial command format (0998f3d, espressif#433) - Fixed documentation and example on creating custom device (577de67, espressif#452) - Removed CI jobs for IDF v4.2 (d88cd61) - Fixed OAT test to verify server cert and CN (edc3e72) - Fixed set_pdp_context() command timeout (1d80cbc, espressif#455) Updated - docs(modem): Added description of manual test procedure (68ce794)
Answers checklist.
General issue report
While trying to implement a custom module by experimenting with the modem_console example I found the SHINY module is not called when using the get_module_name command:
The logging output shows the custom SHINY module is being used, but instead of returning the hard-coded module name from the overridden method it is calling the generic module method which issues an AT command.
The text was updated successfully, but these errors were encountered: