mirror of https://github.com/ARMmbed/mbed-os.git
changes to support mts dragonfly nano ppp
parent
7f29f837d1
commit
59dda88e05
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue