How to Send SMS from A9G Board by Sending AT Commands from Ai Thinker Serial Tool

Introduction:

In this tutorial, we’ll explore how to utilize the AI Thinker Serial Tool to send SMS messages via an A9G board using AT commands. The A9G board, developed by AI Thinker, is a versatile GSM/GPRS and GPS module that enables various communication functionalities.

Prerequisites:

  • A9G board

Steps:

  • Connect the A9G board to your computer using the USB-to-Serial adapter. Ensure the connections are properly made.

  • Launch the AI Thinker Serial Tool on your computer.

  • Select the correct COM port associated with your USB-to-Serial adapter within the AI Thinker Serial Tool.

  • Power on the A9G board.

  • Once the board is powered on and connected, you can start sending AT commands through the Serial Tool.

  • To send an SMS using AT commands, type the following command into the terminal window:

				
					AT+CMGS="[recipient_number]"

AT+CMGS=+917XXXXXXXXX
				
			
  • Replace “[recipient_number]” with the phone number of the recipient, including the country code and area code if applicable.
  • Press Enter. You’ll see a “>” prompt indicating that the module is ready to receive the SMS text.
  • Type your desired SMS message content.
  • Disable “Send a new line” and tick the “HEX” option in the terminal settings to ensure proper message formatting.
  • Finally, send 0x1a to signify the end of the message and initiate the SMS transmission.

Conclusion:

In this tutorial, we’ve demonstrated how to send SMS messages using the AI Thinker Serial Tool and the A9G board with AT commands. By following these steps, you can leverage the A9G board’s GSM/GPRS capabilities to automate SMS-related tasks in your projects. Experiment with different AT commands to unlock further functionalities and possibilities with the A9G board. Happy experimenting!