The program needs the following java files to function.
1. SerialConnection.java - This file is used to connect to your COM port from your java program

2. SerialConnectionException.java -This file is for handling serial connection exceptions in your Java program.

3. SerialParameters.java - This program is used to set your COM port properties for connecting to your com port from your java program

4. Sender.java - This is the program that implements runnable and sends SMS using the serial connection

5. SMSClient.java - This java class is the main class that can be instantiated in your own java program and called to send SMS. This program in turn will use all the above four files internally to send out your SMS.

Download send SMS program files


In the Sender.java file you have to modify two lines, find the following code line and replace it by your message center number according to your service provider. According to my service provider it's +9477000003


After that you have to find out your COM port which is used to connect your GSM modem and replace this code by your COM Port number. According to my computer it's COM5.



After adding these files, you can send messages using an object like this




How to send SMS using Java ( Part I )
How to send SMS using Java ( Part II )
You've been here 1 times.

Popular Posts

Labels

Latest Comments

The last comments for

Java for Developers

Java Runtime

Great informative article....

March 10, 2016 14:02:54 Jump to

Java Runtime

Nice post thanks for sharing...

March 10, 2016 14:02:04 Jump to

java runtime

Nice stuff, thank you for sharing.......

April 22, 2015 09:14:43 Jump to

The last comments for

How to fix : Windows 7 Gadgets not displaying properly

Photochopcs3

It was a great solution and people suffer from these kind of experience. Thank you so much for the help....

December 16, 2014 11:13:27 Jump to

Zeusjack

I have the same problem with my Windows. Thank you so much for finding the solution.

December 16, 2014 05:26:11 Jump to

Blog Archive

Followers

Total Pageviews