# AT$QCFG

Source: [https://docs.qualcomm.com/doc/80-63441-4/topic/AT-QCFG.html](https://docs.qualcomm.com/doc/80-63441-4/topic/AT-QCFG.html)

This command sets the location technology and Aware server key.

A valid set of Aware server key + location method configuration must be present on the device
      before any subsequent LaaS AT commands is issued.

The configurations are persistent across device reboots. However, a device boot is required
      for the configuration to take effect.

| Set command: `AT$QCFG=<configuration>` | Response: `OK`<br><br><br>              <br>If there is any error, response: `+CME ERROR: 1000` |
| --- | --- |
| Maximum response time | 5s |
| Parameter saving mode | `AUTO_SAVE_REBOOT` |

**Parameters**

| &lt;configuration&gt; | Device configuration is in the following JSON<br>                format:<br><br>    {<br>     “LaaSConfig”:{<br>     “ServerKey”: <serverkey>,<br>     “LocationMethod”: [<br>      <method><br>     ]<br>     }<br>     }<br>    Copy to clipboard<br><br><br>The<br>                JSON format is case-sensitive, but white spaces are ignored. AT command client must<br>                encode the device configuration in **base64** format.<br><br><br>When used with this<br>                AT command, client must first remove all whitespaces and code the configuration in<br>                  **base64** format. |
| --- | --- |
| &lt;serverkey&gt; | Aware Server Key that is provided as part of the provisioning process.<br><br><br>              <br>&lt;serverkey&gt; must start with `-----BEGIN PUBLIC KEY-----\n` and<br>                end with `-----END PUBLIC KEY-----\n`. |
| &lt;method&gt; | Possible location methods are:<ul class="ul"><br>                <li class="li"><code class="ph codeph">ServingCell</code></li><br><br>                <li class="li"><code class="ph codeph">ECID</code></li><br><br>                <li class="li"><code class="ph codeph">WiFi</code>, <code class="ph codeph">ECID</code></li><br><br>              </ul> |

**Example**

    AT$QCFG=e+KAnExhYXNDb25maWfigJ06e+KanFNlcnZlcktleeKAnTog4oCcLS0tLUJFR0lOIFBVQkxJQyBLRVktLS0tXG5bd1xEM3dyMyRgSzhcYTIqTGssSWUpK1IxRVlUendZNFxuLS0tLUVORCBQVUJMSUMgS0VZLS0tLVxu4oCdLOKAnExvY2F0aW9uTWV0aG9k4oCdOlvigJxFQ0lE4oCdXX19
    OK
    Copy to clipboard

The above input corresponds to the following configuration in JSON
      format.

    {
    “LaaSConfig”:{
       “ServerKey”: <serverkey>,
       “LocationMethod”: [
         <method>
        ]
       }
    }
    Copy to clipboard

**Parent Topic:** [LaaS AT commands](https://docs.qualcomm.com/doc/80-63441-4/topic/LaaS-AT-commands.html)

Last Published: Jul 16, 2025

[Previous Topic
LaaS AT commands](https://docs.qualcomm.com/bundle/publicresource/80-63441-4/topics/LaaS-AT-commands.md) [Next Topic
AT$QCRLC](https://docs.qualcomm.com/bundle/publicresource/80-63441-4/topics/AT-QCRLC.md)