Skip to content

Commit 6e97d7e

Browse files
cedrickkukela-cdadbridge
authored andcommitted
changes to support mts dragonfly nano ppp
1 parent 5b83ad8 commit 6e97d7e

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

features/cellular/framework/AT/AT_CellularNetwork.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ nsapi_error_t AT_CellularNetwork::open_data_channel()
388388
{
389389
#if NSAPI_PPP_AVAILABLE
390390
tr_info("Open data channel in PPP mode");
391+
//<<<<<<< HEAD
391392
if (is_supported(AT_CGDATA)) {
392393
_at.cmd_start("AT+CGDATA=\"PPP\",");
393394
_at.write_int(_cid);
@@ -397,6 +398,16 @@ nsapi_error_t AT_CellularNetwork::open_data_channel()
397398
std::sprintf(cmd_buf, "ATD*99***%d#", _cid);
398399
_at.cmd_start(cmd_buf);
399400
}
401+
//=======
402+
//
403+
//#ifdef TARGET_MTS_DRAGONFLY_L471QG
404+
// _at.cmd_start("ATD*99***1#");
405+
//#else
406+
// _at.cmd_start("AT+CGDATA=\"PPP\",");
407+
// _at.write_int(_cid);
408+
//#endif
409+
//
410+
//>>>>>>> changes to support mts dragonfly nano ppp
400411
_at.cmd_stop();
401412

402413
_at.resp_start("CONNECT", true);

features/cellular/framework/common/CellularTargets.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ namespace mbed {
3737
#endif
3838
#elif TARGET_UBLOX_C027
3939
#define CELLULAR_DEVICE UBLOX_PPP
40-
#else
40+
#elif TARGET_DRAGONFLY_L471QG
41+
#define CELLULAR_DEVICE UBLOX_PPP
42+
//#else
4143
//#error Cellular target not defined, see cellular/targets.h
4244
//#define CELLULAR_TARGET <target-modem>
4345
//#define MDMTXD <pin-name>

features/cellular/framework/targets/UBLOX/PPP/UBLOX_PPP_CellularNetwork.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@ bool UBLOX_PPP_CellularNetwork::get_modem_stack_type(nsapi_ip_stack_t requested_
3434

3535
AT_CellularNetwork::RegistrationMode UBLOX_PPP_CellularNetwork::has_registration(RegistrationType reg_type)
3636
{
37+
//<<<<<<< HEAD
3738
return (reg_type == C_REG || reg_type == C_GREG) ? RegistrationModeLAC : RegistrationModeDisable;
39+
//=======
40+
//#ifdef TARGET_DRAGONFLY_L471QG
41+
// return (reg_type == C_REG || reg_type == C_EREG);
42+
//#else
43+
// return (reg_type == C_REG || reg_type == C_GREG || reg_type == C_EREG);
44+
//#endif
45+
//>>>>>>> changes to support mts dragonfly nano ppp
3846
}
3947

4048
nsapi_error_t UBLOX_PPP_CellularNetwork::set_access_technology_impl(RadioAccessTechnology opRat)

0 commit comments

Comments
 (0)