If you want to send advertising SMS or spam SMS to a lot of recipient, I will show you in this article how to do that through a GSM modem or DCOM 3G using AT commands without using any third party library. (What is AT commands? You can reference on other document)
To send SMS messages, first place a valid SIM card into DCOM 3G or GSM modem, which is then connected to a computer. There are several ways to connect GSM modem to a computer. For example, they can be connected through a serial cable, a USB cable etc. No matter what way you use, computer still communicates modem via serial port interface.
You can check the serial port that connect with modem by go to Device manager program. In below picture, I connected my DCOM 3G to PC and it communicating as serial port (COM 10).
Download and install RealTerm on https://sourceforge.net/projects/realterm/ A RealTerm’s function is like this: It sends the characters you typed to the GSM modem. It then displays the response it receives from the GSM modem on the screen. Alter install RealTerm, run it and go to Port tab:
Select Baud is 9600, the port is 10 (corresponding with serial port of GSM modem) then click Change button, then go to Send tab:
Type “AT” command and check “+CR” to tell us that send a CR control character bellow. Click Send ASCII button and wait for “OK” response message.
The other lines are responses returned from the GSM modem
AT OK AT+CMGF=1 OK AT+CMGS="+8409xxxxxxx" >Hello word 0x1A
Here are descriptions of what is done:
That are all commands to send a SMS message. If you want to collect them and send SMS automatically, you can write the source code for connecting to and sending AT commands to the GSM modem, just like what a terminal program does.
Would you like to work with the coolest IT guys in Vietnam? Apply to one of the following jobs:
Job requires a high level of technical skills and experience within Microsoft technologies and offers high salary, exciting projects, and constant challenges in terms of technology and design.Tell me more
Want to have fun developing innovative Xamarin products? We are developing a number of exciting games and social applications of our own as well as supporting third party clients.Tell me more
Job requires both good English as well as the ability to understand complex technical subjects and systems. You will mainly be writing SEO articles and guidelines for our many products.Tell me more
Knowing Ionic framework or NodeJs is a plus, but is not mandatory.
2 Senior Developer positions in an Offshore Development Center team. You will work directly with a Danish Project Manager at our Vietnam office. The initial project is for a multinational French company.Tell me more
1 Senior QA/Test Engineer in an Offshore Development Center team. You will work directly with a Danish Project Manager at our Vietnam office. The initial project is for a multinational French company.Tell me more