Set command

The command sets locked bands and bitmasks to limit supported bands.

Supported bands are masked with permanent and runtime masks. The command returns ERROR at an attempt to disable all supported bands.

Note:
  • Set band lock before activating modem with +CFUN.
  • Permanent mask is written to flash when UE is powered down.
Syntax:
%XBANDLOCK=<operation>[,<band_mask>]
+CME error code
518 – Not allowed in active state

The set command parameters and their defined values are the following:

<operation>
0 – Remove band locks
1 – Set permanent band mask
2 – Set run-time band mask
<band_mask><permanent_lock><run-time_lock>
String. Bit string, LSB is band 1. Leading zeroes can be omitted. Maximum length 88 characters.

The example command sets permanent band 4 lock:

AT%XBANDLOCK=1,"1000"
OK

The example command sets run-time band 4 and 13 lock:

AT%XBANDLOCK=2,"1000000001000"
OK