Merge pull request #11902 from AriParkkila/cell-bg96-epco

Cellular: Enable ePCO IE for BG96 driver
pull/11915/head
Martin Kojtal 2019-11-21 09:14:18 +01:00 committed by GitHub
commit deaafa84ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -43,6 +43,12 @@ nsapi_error_t QUECTEL_BG96_CellularNetwork::set_access_technology_impl(RadioAcce
_at.at_cmd_discard("+QCFG", "=\"nwscanseq\",030201"); _at.at_cmd_discard("+QCFG", "=\"nwscanseq\",030201");
_at.at_cmd_discard("+QCFG", "=\"nwscanmode\",3,1"); _at.at_cmd_discard("+QCFG", "=\"nwscanmode\",3,1");
_at.at_cmd_discard("+QCFG", "=\"iotopmode\",1,1"); _at.at_cmd_discard("+QCFG", "=\"iotopmode\",1,1");
#ifdef MBED_CONF_CELLULAR_OFFLOAD_DNS_QUERIES
// enable ePCO IE for DNS address
_at.cmd_start("AT+QNVFW=");
_at.write_string("/nv/item_files/modem/nas/nas_ciot_capability_config");
_at.write_string("0101", false);
#endif
break; break;
case RAT_GSM: case RAT_GSM:
case RAT_GSM_COMPACT: case RAT_GSM_COMPACT:

View File

@ -32,6 +32,9 @@ using namespace mbed;
QUECTEL_BG96_CellularStack::QUECTEL_BG96_CellularStack(ATHandler &atHandler, int cid, nsapi_ip_stack_t stack_type) : AT_CellularStack(atHandler, cid, stack_type) QUECTEL_BG96_CellularStack::QUECTEL_BG96_CellularStack(ATHandler &atHandler, int cid, nsapi_ip_stack_t stack_type) : AT_CellularStack(atHandler, cid, stack_type)
#ifdef MBED_CONF_CELLULAR_OFFLOAD_DNS_QUERIES #ifdef MBED_CONF_CELLULAR_OFFLOAD_DNS_QUERIES
#if (MBED_CONF_CELLULAR_OFFLOAD_DNS_QUERIES != 1)
#error Define cellular.offload-dns-queries to null or 1.
#endif
, _dns_callback(NULL), _dns_version(NSAPI_UNSPEC) , _dns_callback(NULL), _dns_version(NSAPI_UNSPEC)
#endif #endif
, _tls_sec_level(0) , _tls_sec_level(0)