@@ -56,7 +56,7 @@ nsapi_error_t GEMALTO_CINTERION::init()
56
56
if (!information) {
57
57
return NSAPI_ERROR_NO_MEMORY;
58
58
}
59
- char model[sizeof (" ELS61 " ) + 1 ]; // sizeof need to be long enough to hold just the model text
59
+ char model[sizeof (" EHS5-E " ) + 1 ]; // sizeof need to be long enough to hold just the model text
60
60
nsapi_error_t ret = information->get_model (model, sizeof (model));
61
61
close_information ();
62
62
if (ret != NSAPI_ERROR_OK) {
@@ -70,6 +70,8 @@ nsapi_error_t GEMALTO_CINTERION::init()
70
70
init_module_bgs2 ();
71
71
} else if (memcmp (model, " EMS31" , sizeof (" EMS31" ) - 1 ) == 0 ) {
72
72
init_module_ems31 ();
73
+ } else if (memcmp (model, " EHS5-E" , sizeof (" EHS5-E" ) - 1 ) == 0 ) {
74
+ init_module_ehs5e ();
73
75
} else {
74
76
tr_error (" Cinterion model unsupported %s" , model);
75
77
return NSAPI_ERROR_UNSUPPORTED;
@@ -147,6 +149,23 @@ void GEMALTO_CINTERION::init_module_ems31()
147
149
_module = ModuleEMS31;
148
150
}
149
151
152
+ void GEMALTO_CINTERION::init_module_ehs5e ()
153
+ {
154
+ // EHS5-E
155
+ static const intptr_t cellular_properties[AT_CellularBase::PROPERTY_MAX] = {
156
+ AT_CellularNetwork::RegistrationModeDisable, // C_GREG
157
+ AT_CellularNetwork::RegistrationModeDisable, // C_REG
158
+ 1 , // AT_CGSN_WITH_TYPE
159
+ 1 , // AT_CGDATA
160
+ 1 , // AT_CGAUTH
161
+ 1 , // PROPERTY_IPV4_STACK
162
+ 1 , // PROPERTY_IPV6_STACK
163
+ 1 , // PROPERTY_IPV4V6_STACK
164
+ };
165
+ AT_CellularBase::set_cellular_properties (cellular_properties);
166
+ _module = ModuleEHS5E;
167
+ }
168
+
150
169
#if MBED_CONF_GEMALTO_CINTERION_PROVIDE_DEFAULT
151
170
#include " UARTSerial.h"
152
171
CellularDevice *CellularDevice::get_default_instance ()
0 commit comments