Skip to content

GSM: allow retry if connection fails #975

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

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
TEMP: libmbed rebuild for EDGE CONTROL and PORTENTA
  • Loading branch information
pennam committed Nov 15, 2024
commit f1ed5124d30774c17b73a0ce3bd5f843e3cdc76f
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,17 @@ class CellularDevice {
*/
virtual nsapi_error_t soft_power_off() = 0;

/** Resets the modem via AT command
*
* @remark CellularStateMachine disconnect or destruct does not reset the modem,
* but you need to do that yourself.
*
* @pre You must call shutdown to prepare the modem for reset.
*
* @return NSAPI_ERROR_OK on success
*/
virtual nsapi_error_t soft_reset() = 0;

/** Open the SIM card by setting the pin code for SIM.
*
* @param sim_pin PIN for the SIM card
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ class AT_CellularDevice : public CellularDevice {

virtual nsapi_error_t soft_power_off();

virtual nsapi_error_t soft_reset();

virtual nsapi_error_t set_pin(const char *sim_pin);

virtual nsapi_error_t get_sim_state(SimState &state);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ class GEMALTO_CINTERION : public AT_CellularDevice {

protected:
virtual nsapi_error_t init();
virtual nsapi_error_t shutdown();
virtual nsapi_error_t soft_power_off();
virtual nsapi_error_t soft_reset();

private:
static Module _module;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class GEMALTO_CINTERION_CellularStack : public AT_CellularStack {
void stopGNSS();
void PSMEnable();
void PSMDisable();
int ping(const char *host, int ttl);

protected:

Expand Down
2 changes: 1 addition & 1 deletion variants/EDGE_CONTROL/defines.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
-DFEATURE_STORAGE=1
-D__FPU_PRESENT=1
-D__MBED__=1
-DMBED_BUILD_TIMESTAMP=1730381417.6527145
-DMBED_BUILD_TIMESTAMP=1731671206.1357086
-D__MBED_CMSIS_RTOS_CM
-DMBED_MPU_CUSTOM
-DMBED_TICKLESS
Expand Down
Binary file modified variants/EDGE_CONTROL/libs/libmbed.a
Binary file not shown.
2 changes: 1 addition & 1 deletion variants/PORTENTA_H7_M7/defines.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
-D__FPU_PRESENT=1
-DLSE_STARTUP_TIMEOUT=200
-D__MBED__=1
-DMBED_BUILD_TIMESTAMP=1730381437.8008306
-DMBED_BUILD_TIMESTAMP=1731671285.3762867
-D__MBED_CMSIS_RTOS_CM
-DMBED_TICKLESS
-DMBEDTLS_FS_IO
Expand Down
Binary file modified variants/PORTENTA_H7_M7/libs/libmbed.a
Binary file not shown.