File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
features/cellular/framework/targets/QUECTEL/EC2X Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,11 @@ using namespace events;
46
46
#define MBED_CONF_QUECTEL_EC2X_POLARITY 1 // active high
47
47
#endif
48
48
49
+ #if !defined(MBED_CONF_QUECTEL_EC2X_START_TIMEOUT)
50
+ #define MBED_CONF_QUECTEL_EC2X_START_TIMEOUT 15000
51
+ #endif
52
+
53
+
49
54
static const intptr_t cellular_properties[AT_CellularDevice::PROPERTY_MAX] = {
50
55
AT_CellularNetwork::RegistrationModeLAC, // C_EREG
51
56
AT_CellularNetwork::RegistrationModeLAC, // C_GREG
@@ -128,7 +133,7 @@ nsapi_error_t QUECTEL_EC2X::soft_power_on()
128
133
129
134
_at.lock ();
130
135
131
- _at.set_at_timeout (5000 );
136
+ _at.set_at_timeout (MBED_CONF_QUECTEL_EC2X_START_TIMEOUT );
132
137
_at.resp_start ();
133
138
_at.set_stop_tag (" RDY" );
134
139
bool rdy = _at.consume_to_stop_tag ();
Original file line number Diff line number Diff line change 33
33
"help" : " Serial connection baud rate" ,
34
34
"value" : 115200
35
35
},
36
+ "start-timeout" : {
37
+ "help" : " How long to wait for modem to start after reset (milliseconds)" ,
38
+ "value" : 15000
39
+ },
36
40
"provide-default" : {
37
41
"help" : " Provide as default CellularDevice [true/false]" ,
38
42
"value" : false
You can’t perform that action at this time.
0 commit comments