Skip to content

Commit

Permalink
AT_CellularContext: Fix ^SCFG commands to configure bands and URCs
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Nov 7, 2023
1 parent ae470a5 commit 8dd642c
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions connectivity/cellular/source/framework/AT/AT_CellularContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,26 +452,21 @@ void AT_CellularContext::enable_access_technology()
{
case CATM1:
_at.at_cmd_discard("^SXRAT", "=","%d", _rat);
_at.cmd_start_stop("^SCFG", "=","%s%s", "Radio/Band/CatM",buffer);
_at.resp_start("^SCFG");
_at.cmd_start_stop("^SCFG", "=","%s%d%d", "Radio/Band/CatNB",0,0);
_at.resp_start("^SCFG");
_at.at_cmd_discard("^SCFG", "=","%s%s", "Radio/Band/CatM",buffer);
_at.at_cmd_discard("^SCFG", "=","%s%d%d", "Radio/Band/CatNB",0,0);
break;

case CATNB:
_at.at_cmd_discard("^SXRAT", "=","%d", _rat);
_at.cmd_start_stop("^SCFG", "=","%s%s", "Radio/Band/CatNB",buffer);
_at.resp_start("^SCFG");
_at.cmd_start_stop("^SCFG", "=","%s%d%d", "Radio/Band/CatM",0,0);
_at.resp_start("^SCFG");
_at.at_cmd_discard("^SCFG", "=","%s%s", "Radio/Band/CatNB",buffer);
_at.at_cmd_discard("^SCFG", "=","%s%d%d", "Radio/Band/CatM",0,0);
break;

default:
break;
}

_at.cmd_start_stop("^SCFG", "=", "%s%s", "Tcp/withURCs", "on");
_at.resp_start("^SCFG");
_at.at_cmd_discard("^SCFG", "=", "%s%s", "Tcp/withURCs", "on");
free(buffer);

}
Expand Down

0 comments on commit 8dd642c

Please sign in to comment.