@@ -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,24 @@ 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_EREG
157
+ AT_CellularNetwork::RegistrationModeLAC, // C_GREG
158
+ AT_CellularNetwork::RegistrationModeLAC, // C_REG
159
+ 0 , // AT_CGSN_WITH_TYPE
160
+ 1 , // AT_CGDATA
161
+ 1 , // AT_CGAUTH
162
+ 1 , // PROPERTY_IPV4_STACK
163
+ 1 , // PROPERTY_IPV6_STACK
164
+ 0 , // PROPERTY_IPV4V6_STACK
165
+ };
166
+ AT_CellularBase::set_cellular_properties (cellular_properties);
167
+ _module = ModuleEHS5E;
168
+ }
169
+
150
170
#if MBED_CONF_GEMALTO_CINTERION_PROVIDE_DEFAULT
151
171
#include " UARTSerial.h"
152
172
CellularDevice *CellularDevice::get_default_instance ()
0 commit comments