(The AT command function of the GSM module is initialized at startup: such as viewing the connection command ATr, canceling the echo command ATE0, querying the network registration status command AT+CREG?, querying the signal strength command AT+CSQ, setting the SMS format command AT+CMGF=1/0 , command AT+TSIMINS to query SIM card status? Wait. It is best to close the serial port intermittently, and use the method of querying RI to check whether the data returned by the serial port after sending the AT command is accurate.)