Send sms to GPRS/GSM mobile from PC

I want to send sms from computer using GPRS/GSM mobile using AT commands.
so i want to use java API for programing .....can anybody tell me which java API used for this purpose?
thanku

Hi,
I think you posting the same question across many forums ... SMSLib gives you the source code for sending and receiving messages. For example the below program scan all the COM Ports and prints the Model Information using AT commands.. So download the source code from their website..
package misc;
//import gnu.io.*;
import javax.comm.*;
import java.util.*;
import java.io.*;
public class CommTest
     static CommPortIdentifier portId;
     static Enumeration portList;
     static int bauds[] = { 19200 };
     public static void main(String[] args)
          portList = CommPortIdentifier.getPortIdentifiers();
          while (portList.hasMoreElements())
               portId = (CommPortIdentifier) portList.nextElement();
               if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL)
                    System.out.println("Found port: " + portId.getName());
                    for (int i = 0; i < bauds.length; i++)
                         System.out.print("     Trying at " + bauds[i] + "...");
                         try
                              SerialPort serialPort;
                              InputStream inStream;
                              OutputStream outStream;
                              int c;
                              String response;
                              serialPort = (SerialPort) portId.open("SMSLibCommTester", 1971);
                              serialPort.setFlowControlMode(SerialPort.FLOWCONTROL_RTSCTS_IN);
                              serialPort.setSerialPortParams(bauds, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
                              inStream = serialPort.getInputStream();
                              outStream = serialPort.getOutputStream();
                              serialPort.enableReceiveTimeout(1000);
                              c = inStream.read();
                              while (c != -1) c = inStream.read();
                              outStream.write('A');
                              outStream.write('T');
                              outStream.write('\r');
                              try { Thread.sleep(1000); } catch (Exception e) {}
                              response = "";
                              c = inStream.read();
                              while (c != -1)
                                   response += (char) c;
                                   c = inStream.read();
                              if (response.indexOf("OK") >= 0)
                                   try
                                        System.out.print(" Getting Info...");
                                        outStream.write('A');
                                        outStream.write('T');
                                        outStream.write('+');
                                        outStream.write('C');
                                        outStream.write('G');
                                        outStream.write('M');
                                        outStream.write('M');
                                        outStream.write('\r');
                                        response = "";
                                        c = inStream.read();
                                        while (c != -1)
                                             response += (char) c;
                                             c = inStream.read();
                                        System.out.println(" Found: " + response.replaceAll("\\s+OK\\s+", "").replaceAll("\n", ""). replaceAll("\r", ""));
                                   catch (Exception e)
                                        System.out.println(" Nobody here!");
                              else System.out.println(" Nobody here!");
                              serialPort.close();
                         catch (Exception e)
                              System.out.println(" Nobody here!");

Similar Messages

  • Cannot send SMS or make a call from Macbook Air 2013

    i have an iphone 5 (ios 8.0.2) and macbook air 2013 with osx yosemite installed.
    from mac to iphone, continuity is working. i can see safari which was opened on my mac.
    from iphone to mac, continuity is not working. i cant see anything on mac if i open safari, mail or anything else on iphone.
    also cannot send SMS from my mac, cannot make or receive calls.
    when i try to call somebody it says : your phone and computer should be in the same WI-FI connection which they already are.
    any help would be appreciated
    Thanks

    Hey canozkurt,
    Thanks for the question. I understand that you are experiencing issues with Continuity and Handoff. For help, check out this resource:
    Get help using Continuity with iOS 8 and OS X Yosemite
    http://support.apple.com/kb/TS5458
    Also, please not that SMS requires an iPhone with iOS 8.1 which should debut later today.
    Thanks,
    Matt M.

  • Is it possible to send SMS text msgs(Not IMessages) from my IPad Air with Wi-Fi/cellular?

    Can you send an SMS text msg from an IPad Air that has Wi-Fi and Cellular network? It has its own phone number.. Just wondering.. Thanks

    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    How to Receive SMS Messages on an iPad
    http://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.html
    Apps for Texting http://appadvice.com/appguides/show/apps-for-texting
     Cheers, Tom

  • Previously I had 2 iphone 4s work and private, I diverted the private to work ph and found that I was receiving sms's on both mobiles, from the a sender? Is there an option to do so for an IPhone 5 and Iphone 4? Jules

    Previously I had 2 iphones 4 and diverted private to work (calls) and found out the sms (from iphones and both phones had same contacts) that went to my private also registered to my work ph (different number)??!
    Is there a procedure to do from iphone 5 and 4??

    Are you using the same apple id in imessage? If so this is why.
    You need to sign out or uncheck the email in settings > messages

  • I Cant Send SMS on my iPhone 5 from Claro Chile in Argentina

    Hello guys, i just bought an unlocked iPhone from Claro Chile, and i tryed to use it in Argentina. I have no problems using every app on the iPhone but the SMS has been some trouble. I just cant send any sms, i can't therefore, activate imessage or facetime. my iPhone model is the A1428 GSM, and im running iOS 6.1 i tryed everything, checking the sms data, restore the iPhone, and nothing i've reading that is a frecuent problem in the sprint iphone 5's, but mine is from Claro Chile.... I need some answers and solutions... if there's any... i contact Claro Chile and they told me that the problem is whit Apple... and here i'm, i also tryed to send a mail to [email protected] and i receive an automatic response.
    Thank You and sorry for my english.

    Confirm that you have MMS Messaging set to On in Settings>Messages.  If it is, check with your carrier to confirm that your messaging plan is properly provisioned for MMS.

  • Send SMS From Oracle To GSM Mobile Device

    Dear All,
    My concern is that I want to send a SMS using a GSM mobile device from database when ever a record is updated or inserted. I have searched the forum but does not find any convenient method with easy steps.
    please share your valuable views and solutions that are easy to follow for me.
    I am using
    Operating System Linux Redhat 4.6
    Database Oracle Database 10g Release 10.2.0.1.0 - 64bit
    Regards,
    Zafar Iqbal
    Edited by: Zafar Iqbal on Jun 8, 2012 3:48 PM

    Zafar Iqbal wrote:
    Is there no any alternative solution??Numerous solutions.
    as I have searched the forum or Google only find above solutions. Above solution is costly and other more above solution is only for nokia phone and dependent on Linus machine only
    There is no any Oracle recommended solution????Why would Oracle recommend a solution? It is like saying that Oracle needs to recommend what keyboard manufacturer to use for keyboards used to enter data and commands for SQL-Developer and TOAD...
    The "solution" depends entirely on the SMS interface(s) available for use.
    One can manually create the SMS transmission infrastructure - by hooking up a mobile via USB to a server and sending SMS's via it.
    One can use existing infrastructure from a cellular provider for sending bulk SMS's. This can be, for example, done via a web service of the provider.
    We use a TCP network service ourselves - where our PL/SQL code (using the UTL_TCP interface) sends a special formatted messages (including a service tag, mobile numbers, message) to the service and this service delivers this as SMS's.
    Some cellular provides used to support a SMTP interface - allowing you to send an e-mail to a specific address (sometimes with the mobile number as e-mail subject), where the e-mail body contains the SMS to send.
    So there is no single recommended solution. There is wide variety of solutions. And it would be advisable to talk to cellular providers about the SMS bulk-send interface services they provide. These comes with discounts, SLAs, support, service reports and so on.

  • Send SMS from XD01 tcode

    Hi Experts,
    We have a requirement that " Send SMS from XD01 (customer Master)". Send SMS to customer's mobile after successfully creating customer master record by pressing SAVE button in XD01 tcode.
    Successfully, sending SMS through the ABAP program.
    How to send SMS from XD01 tcode? I tried using USER-EXIT "SAPMF02D", but it is not sending and giving error message. If I send through the program, it is sending and working fine.
    Whether I have to use Work Flows or any other solutions?
    Please help me out.
    thanks in advance.
    Regards
    Saray.

    hai saray,
    is the user exit called after the the number is generated , check for user exit which is called after saving
    else u can use workflwo to trigger the same
    when ever the customer is created capture created event and then call ur program that would be better
    for this u have to create a z method and  delegate the object , in that method u can call ur code for sms
    m.a

  • Send a msg to Mobile from Oracle DB

    Hi All,
    Could you please let me know how to send a message to a mobile from Oracle Database.
    Thank you,
    Aush..

    check this, you will find complete steps to send sms on mobile.
    Send Message From Oracle To Mobile Device

  • SEND SMS FROM SAP B1

    HI EVERYBODY,
    MY QUESTION IS RELATED WITH THE SEND SMS TO THE BUSINESS PARTNER FROM SAP B1, I'M FROM EL SALVADOR, SOMEBODY SAID ME THAT IS ONLY VIABLE IN PANAMA AND ISRAEL. BUT MY BUSINESS PARTNER, SECURED THAT WE CAN HAVE THIS SERVICE.
    IF, SOMEBODY CAN ENLARGE MY INFORMACION, I WOULD APPRECIATE

    Hi,
    Welcome you post on the English forum. Please not use all capital letter for you posting. That is not polite.
    As for your question. SMS function in B1 is indeed limited to Isreal and Panama only.
    Thanks,
    Gordon

  • Send sms e-mail

    Hello folks, with all my nokia phones (nokia 6230, nokia 6300 and many other models with s40) ive had an option to send sms e-mail that is very usefull to me cause i have a 4000 sms monthly plan.
    Now i bought a nokia e51 and i cant find this option... all of the mail options are done via the email app and i cant use that because it uses gprs, edge, 3g or wifi data and that is very expensive for me.
    Examples of send sms email
    http://www.mobile-review.com/review/image/nokia/6230/part2/pic34-5.jpg
    http://www.mobile-review.com/review/image/nokia/6233/scr05-3.jpg
    So is there any way of doing this? via another aplication ?maybe? Thanks in advance

    Had a chance to play with the 6700 and stumbled on the answer. You can send an image or similar to an e-mail address without connecting to the internet or having e-mail set up in your phone as follows:
    Open contacts. Select names. Scroll to the contact you want to send the image to and press 'details'.
    Select options, then add detail, and move right using menu key. You should then have a sub-page that says 'number' and 'internet' and 'multimedia' and 'personal information'.  Scroll to 'internet' and move right again.
    Then another page appears saying 'Web address' and E-mail address'.
    Scroll to e-mail address.and then 'select'.
    You should be back in the contacts page and have the option to add an e-mail address to the contact details. Do this and press 'save'.
    Close the contacts list and select 'Messaging'.
    Start to create a text message to the same person. Enter their name and leave the next text entry box blank unless needed.
    Under the text entry box should be a left and right scroll box. Scroll down to this using the menu key and highlight 'image'. The option above the menu key should have changed from 'send' to 'insert'.
    Select 'insert' and that should show the Gallery menu. Find the image wherever it is, the memory card in my case, so Open that, then select images until you find the picture required. Select 'insert'.
    It will then say ' message changed to multimedia.'
    The 'send' option should have returned above the menu key.Press it.
    Match the entry if needed to make sure you have the correct recipient.
    Once that's done, you should have the option at the bottom of the screen to either scroll to the phone number or the e-mail address.
    Scroll to the e-mail address and then press select. Add any text if needed and press send.
    Job done!
    Disclaimers- this was done on a factory unlocked Nokia 6700 with no Operator programmes installed. O2 include an MMS message as 4 texts from the allowance but your Network may charge you.
    I use Windows Mail. When you receive the message, there is no attachment shown for the image. To find it, right click on the message title and select open. You'll find the link there.

  • Send SMS while creating Customer Master Record using XD01?

    Hi Experts,
    We have a requirement that " Send SMS from XD01 (customer Master)".  Send SMS to customer's mobile after successfully creating customer master  record by pressing SAVE button in XD01 tcode.
    Successfully, sending SMS through the ABAP program.
    How to send SMS from XD01 tcode? I tried using USER-EXIT "SAPMF02D", but it is not sending and giving error message. If I send through the program, it is sending and working fine.
    Whether I have to use Work Flows or any other solutions?
    Please help me out.
    thanks in advance.
    Regards
    Saray.

    Hi,
    Can you please paste your code here?
    Also check BADI CUSTOMER_ADD_DATA in se18.
    Regards,
    Amit

  • Can't send SMS to contact's work number

    I have imported contacts from blackberry and most of my contact numbers are saved under work section.
    i am unable to send any sms to contacts whose number is listed under work. I can send SMS to only contacts listed under mobile.
    I do not want to manually set all my contacts from work to mobile one by one. Is there any solution?
    Thanks
    RR

    Unfortunately not.
    it is actually a good thing that it disallows home and work numbers because generally speaking, unless you have Comcast in the USA, you cannot send SMS to landline phones which are home/work. Otherwise everytime you go to send SMS to people with mobile and work, etc., you would have to choose the number to send to.
    in order to get to send these SMS, you'll have to change them appropriately.

  • Problem to send sms

    We have made a test application in j2me which sends sms.
    The mobile server is "nokia 6681".
    Following is the result when we send sms to various other mobile
    Nokia 1100 message come but content says 'message can't be displayed'.
    Nokia 3310 sms reaches properly.
    Nokia 3120 sms never reaches and no other customize message come.
    will any body guide us what possiblily is the problem my id:[email protected]

    Hello ,
    I have the same problem, but on the nokia N70 and N90 ;
    the error message displayed is " ... security problem etc.... " but I have disabled all security setting on the phone and my App is compiled with a sign ; I don't understand why the App is run on some phone but doesn't it on nokia N90 e 9300 Communicator.
    Help me please!?

  • SMS via GPRS

    Does anyone know how to make a MIDLET that can send sms through GPRS?
    Can i use HTTPConnection to do that and how....
    Please Help...

    Dear printisor,
    Based on your reply, does it means that i should send parameters through gprs to my php script, then php script process parameters sent by j2me, then sends it through sms gateway??? Does the process runs like this???
    i'm able to send parameters via gprs to php, but i dont know how to send sms via php... :-D

  • Sending sms to a specific port using j2se

    Hi,
    I want to send sms to a specific port from j2se platform not from j2me.Is there any way to send it through a modem or through a third party service provider like SMSJunction or Clickatell?If anyone have the code of doing this,plzz help me.
    Arnab.

    I don�t know but i use the JAVA ME JSR 120
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import javax.wireless.messaging.*;
    public class SmsConnecter // implements MessageListener
         String port = "5001";
         public SmsConnecter()
    public boolean sendSMS(byte data[]) {
         try {
              String destAddress = "sms://4681234567:5001";
              MessageConnection smsConnection =
                   (MessageConnection)Connector.open(destAddress);
              //Create binary message
              BinaryMessage binaryMSG = (BinaryMessage)smsConnection.newMessage(
                   MessageConnection.BINARY_MESSAGE);
              //Setting destination add
              binaryMSG.setAddress(destAddress);
              //Add payload data
              binaryMSG.setPayloadData(data);
              //Now send the message
              smsConnection.send(binaryMSG);
              smsConnection.close();
              return true;
         } catch(Exception e) {
              //System.out.println("e="+e);
             return false;   
    }Ad about port...
    Port number Description
    2805 WAP WTA secure connection-less session service
    2923 WAP WTA secure session service
    2948 WAP Push connectionless session service (client side)
    2949 WAP Push secure connectionless session service (client side)
    5502 Service Card reader
    5503 Internet access configuration reader
    5508 Dynamic Menu Control Protocol
    5511 Message Access Protocol
    5512 Simple Email Notification
    9200 WAP connectionless session service
    9201 WAP session service
    9202 WAP secure connectionless session service
    9203 WAP secure session service
    9207 WAP vCal Secure
    49996 SyncML OTA configuration
    49999 WAP OTA configuration
    //Mickenull

Maybe you are looking for

  • Can't burn a CD from purchased

    I have a redeem cupon for 15 songs and have chosen them. I have tried to burn 3 CD's and all of thm failed (it burns the first song and all others show in the Cd list, but don't play and hangs.Of course there was an error msg when burning the CD. Her

  • Message 615

    Dear Experts I have an error Delivery item is not or only partially packed while doing Inbound delivery. I want to received goods partially when required. Whether it is possible in SAP. But Item categories are picking different 1st  is customizing an

  • Can't Re-Install quicktime X

    I have macbook pro with snow leopard and I accidentally deleted quicktime x. I have searched around and found that some others are having some of the same difficulties that I am experiencing so I tried the- 1) Dowload and install Pacifist (2) Insert

  • Installation of Elements 12 Trial

    I'm having trouble with Elements 12. I just downloaded it tonight and I am already getting a message upon opening that my trial has expired...? Also, I cannot get past the sign in screen when clicking Photo Editor...does the trial not allow editing?

  • Searching page content as well as content area content

    We wanted to be able to search the text in HTML portlets on pages to locate the page. The search mechanism seems only to search the content in content areas. Is there anyway to do this? Is Oracle Ultra-search any solution?