JAVA - sending an SMS using Java application using a dongle - java

I have developed a JAVA application and I need it to send reports/notifications through SMS. How can I do it using a GSM dongle?

You need to make use of AT commands for sending SMS from GSM Modem. This article explains in brief about AT commands.
Sample command might be something like this:
AT
OK
AT+CMGF=1
OK
AT+CMGW="+12345678922"
> A simple demo of SMS text messaging.
+CMGW: 1
OK
AT+CMSS=1
+CMSS: 20
OK

Related

Launch App before sending SMS

My idea: have an hook to force Android to call a function of my App before an SMS will be sent.
What I want to do is to ask the user (that wrote the SMS using an arbitrary App or the standard App) if he wants to send the SMS using GSM (= normal way) or an other provider over Internet.
Is it possible? I found some information about ContentObserver, but I'm not sure how I can cancel the send of the "normal GSM send" after I sent the SMS via Internet...
Thanks for any help!
Luca
There is no such hook available to call your app function before sending the SMS. You may have to customise Android framework to achieve this.

How to use iphone as a gateway in SMSLib?

I want to use SMSLib in a Java application in order to send an SMS to my iPhone without using an external gateway, So, i want to deal with the phone as the gateway and make it receive the message, node that I'm considering the GSM of the mobile as the modem.
You can't access any of iOS SMS settings nor the messages. Java is also not support natively on iOS. It is also not possible to do any low level GSM calls like SMS.
If you want to send a SMS in iOS you will need to use the MFMessageComposeViewController

Sending SMS from Java Application using communications API

I am using Java Communications API. Want to know that is it compulsory to set CSCA (Service Center Address) using the AT command: AT+CSCA= for sending sms through java application? Or we can just skip that part and send the AT Command AT+CMGS= to send the message? Any help would be appreciated. Thanks!
Presumably your sending via a hardware device with a SIM card; that card will most likely come configured with a profile that specifies the home networks service centre number - after all you don't have to enter one yourself when you acquire a SIM for your own phone.
You can test for one with +CSCA?.
It’s been a while since I messed around with GSM but I think you only need to configure the service center if you intend to send messages in text format. When using binary PDUs the SMSC number needs to be specified for each SMS you send.
I've written an example for sending sms with AT commands some time ago on my blog. It's in C# but the AT commands should stay the same, have a look at http://www.softwarepassion.com/your-personal-sms-gateway-with-c/

Is it possible to send/recieve Message via GSM Modem in Java?

Using RXTX library im doing serial communication.I want to do it in swing based application
Write an AT commands to read received SMS in GSM modem
I need to send the messages to mobiles from java application
Is there any Java API which send/receive SMS using RxTx libraries.
There is a Java API called smslib.

I want to send and receive sms through serial comport using gsm modem in java

I want to implement Java code to send and receive sms through serial comport using gsm modem. Before implementing this I need Java communication api for this. If so please let me know from where I have to download for Windows Xp?
Here is the download link for Java Communication API:
http://www.oracle.com/technetwork/java/index-jsp-141752.html
Don't know if it helps but on one of my previous project we were using http://www.kannel.org/ to manage sms.
Don't remember exactly how it worked but i think we can set a kannel server that would receive REST requests to send sms for exemple.
You can download the Java communication api from http://smslib.org/download/. There are some other useful links on that page also like the RXTX library also.

Categories

Resources