# Common Commands

In this section, you'll learn some common commands to setup modules:

* **ATI**: query brand, model anf firmware version;
* **AT+CIMI**: query the number of SIM card;
* **AT+CPIN?**: query the number of SIM card;
* **AT+QGPS?**: query the status of GPS but it's necessary to connect GPS antenna;
* **AT+QGPSLOC?**: query GPS location but it's necessary to connect GPS antenna;
* **AT+CSQ**: query signal value;
* **AT+QGPS=1**: send command to enable GPS because by default or powered off it's disabled;
* **AT+QGPS=0**: send command to disable GPS;
* **AT+CFUN=1,1**: send command to reboot the module;
* **AT+QPRTPARA=3**: send command to restore it to the default factory settings;
* **AT+CGDCONT?**: send command to read PDP context
* **AT+CGDCONT=\<cid>\[,\<PDP\_type>\[,\<APN>\[,\<PDP\_addr>\[,\<data\_comp>\[,\<head\_comp>]]]]]**: send command to define PDP context with APN;
