changes to support mts dragonfly nano ppp

pull/7304/head
cedrick kukela 2018-06-22 20:41:48 -04:00 committed by Leon Lindenfelser
parent 7f29f837d1
commit 59dda88e05
3 changed files with 22 additions and 1 deletions

View File

@ -388,6 +388,7 @@ nsapi_error_t AT_CellularNetwork::open_data_channel()
{
#if NSAPI_PPP_AVAILABLE
tr_info("Open data channel in PPP mode");
//<<<<<<< HEAD
if (is_supported(AT_CGDATA)) {
_at.cmd_start("AT+CGDATA=\"PPP\",");
_at.write_int(_cid);
@ -397,6 +398,16 @@ nsapi_error_t AT_CellularNetwork::open_data_channel()
std::sprintf(cmd_buf, "ATD*99***%d#", _cid);
_at.cmd_start(cmd_buf);
}
//=======
//
//#ifdef TARGET_MTS_DRAGONFLY_L471QG
// _at.cmd_start("ATD*99***1#");
//#else
// _at.cmd_start("AT+CGDATA=\"PPP\",");
// _at.write_int(_cid);
//#endif
//
//>>>>>>> changes to support mts dragonfly nano ppp
_at.cmd_stop();
_at.resp_start("CONNECT", true);

View File

@ -37,7 +37,9 @@ namespace mbed {
#endif
#elif TARGET_UBLOX_C027
#define CELLULAR_DEVICE UBLOX_PPP
#else
#elif TARGET_DRAGONFLY_L471QG
#define CELLULAR_DEVICE UBLOX_PPP
//#else
//#error Cellular target not defined, see cellular/targets.h
//#define CELLULAR_TARGET <target-modem>
//#define MDMTXD <pin-name>

View File

@ -34,7 +34,15 @@ bool UBLOX_PPP_CellularNetwork::get_modem_stack_type(nsapi_ip_stack_t requested_
AT_CellularNetwork::RegistrationMode UBLOX_PPP_CellularNetwork::has_registration(RegistrationType reg_type)
{
//<<<<<<< HEAD
return (reg_type == C_REG || reg_type == C_GREG) ? RegistrationModeLAC : RegistrationModeDisable;
//=======
//#ifdef TARGET_DRAGONFLY_L471QG
// return (reg_type == C_REG || reg_type == C_EREG);
//#else
// return (reg_type == C_REG || reg_type == C_GREG || reg_type == C_EREG);
//#endif
//>>>>>>> changes to support mts dragonfly nano ppp
}
nsapi_error_t UBLOX_PPP_CellularNetwork::set_access_technology_impl(RadioAccessTechnology opRat)