Skip to content

Commit deaafa8

Browse files
authored
Merge pull request #11902 from AriParkkila/cell-bg96-epco
Cellular: Enable ePCO IE for BG96 driver
2 parents 9dc0c37 + 2301af3 commit deaafa8

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularNetwork.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ nsapi_error_t QUECTEL_BG96_CellularNetwork::set_access_technology_impl(RadioAcce
4343
_at.at_cmd_discard("+QCFG", "=\"nwscanseq\",030201");
4444
_at.at_cmd_discard("+QCFG", "=\"nwscanmode\",3,1");
4545
_at.at_cmd_discard("+QCFG", "=\"iotopmode\",1,1");
46+
#ifdef MBED_CONF_CELLULAR_OFFLOAD_DNS_QUERIES
47+
// enable ePCO IE for DNS address
48+
_at.cmd_start("AT+QNVFW=");
49+
_at.write_string("/nv/item_files/modem/nas/nas_ciot_capability_config");
50+
_at.write_string("0101", false);
51+
#endif
4652
break;
4753
case RAT_GSM:
4854
case RAT_GSM_COMPACT:

features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ using namespace mbed;
3232

3333
QUECTEL_BG96_CellularStack::QUECTEL_BG96_CellularStack(ATHandler &atHandler, int cid, nsapi_ip_stack_t stack_type) : AT_CellularStack(atHandler, cid, stack_type)
3434
#ifdef MBED_CONF_CELLULAR_OFFLOAD_DNS_QUERIES
35+
#if (MBED_CONF_CELLULAR_OFFLOAD_DNS_QUERIES != 1)
36+
#error Define cellular.offload-dns-queries to null or 1.
37+
#endif
3538
, _dns_callback(NULL), _dns_version(NSAPI_UNSPEC)
3639
#endif
3740
, _tls_sec_level(0)

0 commit comments

Comments
 (0)