How to read a message from com port

i have a gsm modem connect to my pc though a serial port
how can i read the output from modem and use them in my java program
many thanks....

http://java.sun.com/products/javacomm/

Similar Messages

  • How to read a data from USB port using JAVA

    hi all,
    i need to know how to read a data from USB port using java. any API are available for java ?.........please give your valuable ideas !!!!!!!!!
    Advance Thanks!!

    You can do this. Please use this link
    [http://www.google.co.in/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=uHu&q=java+read+data+from+usb+port&btnG=Search&meta=&aq=f&oq=]
    What research did you do of your own? Have you done some testing application and tried yourself??

  • Would like to know how to read SOAP Messages from SOAP Client

    Hello,
    I am new to Webservices. Here is what I want to do.
    I need to develop a Web Service provider application.
    Here are the tools I am using to develop this application.
    a) WSAD 5.1.2
    b) Axis 1.0 built within WebSphere.
    I do have a WSDL file and I generated the code by using WSAD ==>WebService ==> Generate Java bean skeleton option. I want to know, how I can read the SOAP request message from the generated code and to add new SOAP header element.
    Any help you can provide would be greatly appreciated.

    Depending on the version of WebSphere you are using, there should be a menu option to create a dynamic web project. This will set up the basic structure of the application for you. Also, right-click on the newly created web application and there should be a context menu something like Web Services -> Deploy Web Service. This will do some more under-the-covers work for you.
    The webservices.xml deployment descriptor is only created when you generate your Java interfaces and helper classes. For example, if you are starting with a WSDL, you would right-click on the document, select Web Services -> Generate Java Bean Skeleton, and then follow the couple of dialog boxes afterwards. The webservices.xml document will then be created under the WEB-INF directory.
    I�d be wary of introducing any external web service software into a WebSphere environment. On my last project we ran into a few tricky SOAP API conflicts so we decided to stick with pure IBM implementations wherever possible. That said, this is some sample code that I've recycled from the Monson-Haefel book I've mentioned before:
    package sandbox;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.handler.MessageContext;
    import javax.xml.rpc.handler.soap.SOAPMessageContext;
    import javax.xml.soap.*;
    public class MessageHandlerID extends javax.xml.rpc.handler.GenericHandler{
      QName [] headerNames = null;
      public QName [] getHeaders(){
        if(headerNames == null){
          QName myHeader = new QName("http://speck.net.au/message-id", "message-id");
          headerNames = new QName[] { myHeader };
        return headerNames;
      public boolean handleRequest(MessageContext context){
        String messageID = new java.rmi.dgc.VMID().toString();
        try{
          SOAPMessageContext soapCntxt = (SOAPMessageContext)context;
          SOAPMessage message = soapCntxt.getMessage();
          SOAPHeader header = message.getSOAPPart().getEnvelope().getHeader();
          Name blockName = SOAPFactory.newInstance().createName("message-id","mi","http://speck.net.au/message-id");
          SOAPHeaderElement headerBlock = header.addHeaderElement(blockName);
          headerBlock.setActor("http://speck.net.au/message-id/logger");
          headerBlock.addTextNode( messageID );
          return true;
        } catch(javax.xml.soap.SOAPException se){
              throw new javax.xml.rpc.JAXRPCException(se);
    }It doesn't do much but might give you some ideas.
    You may have already come across this, but I found the following RedBook invaluable:
    Wahli, U., Garcia, G. O., Cocasse, S. and Muetschard, M. (2004). WebSphere Version 5.1 Application Developer 5.1.1 Web Services Handbook. IBM.

  • How to read the messages from the processed Batch session log

    Hi All,
    I am posting an accounting document through FB01 by submitting the report RFBIBL00 along with the file through which a Batch session gets generated in SM35.The Batch session is then processed by submitting the report RSBDCSUB. My code is as shown below:
    SUBMIT rfbibl00 WITH  ds_name = co_file_output
                      WITH callmode = co_batch AND RETURN.
    Process Batch session
      SUBMIT rsbdcsub
        WITH mappe = gv_name_jd
        WITH von   = sy-datlo
        WITH bis   = sy-datlo
         AND RETURN
    My requirement is to capture the document number from the log of the processed batch session. Can anyone suggest me how to go about this.
    Thanks in Advance,
    Vinay B

    Hi,
    check the routine read_bdc_log_plain in program rsbdc_protocol.
    get the data from table APQL and then use the logic.
            bapiret2-id = logtable-logmessage+74(16).
            bapiret2-number = logtable-logmessage+94(3).
            bapiret2-message_v1 = logtable-logmessage+100(20).
            CALL FUNCTION 'BAPI_MESSAGE_GETDETAIL'
              EXPORTING
                id         = bapiret2-id
                number     = bapiret2-number
                textformat = 'ASC'
                message_v1 = bapiret2-message_v1
              IMPORTING
                message    = bapiret2-message.
            WRITE: (60) bapiret2-message.
    Edited by: Keshav.T on Apr 7, 2010 4:23 PM

  • How to read email messages from ms outlook 2003

    i am trying to access emails from MS outlook
    my email account uses MS exchange server and it supports only mapi
    Could anybody please help us to find a solution to acces mails from MS outlook or via mapi in java mail
    please reply faster

    Faster, faster, faster! I'm going as fast as I can! :-)
    JavaMail doesn't support MAPI directly. Search for "JEC" in the
    [JavaMail Third Part Products|http://java.sun.com/products/javamail/Third_Party.html] page.
    Exchange will also support IMAP, if you can convince your mail server administrator
    to enable it.

  • HELP. How to read unread message from Gmail?

    Folder inbox = store.getFolder("INBOX");
              inbox.open(Folder.READ_ONLY);
              FetchProfile profile = new FetchProfile();
         profile.add(FetchProfile.Item.ENVELOPE);
    System.out.println(inbox.getUnreadMessageCount());
    It print out the number of all messages. I just want to get it number of unread message.
    I have bean searching for a long time. Is there any one can help me. I just want to make a Gmail notifier. Ring me when I get unread email.

    Are you using IMAP or POP?
    Did you read the JavaMail FAQ entries about Gmail?

  • How to transfer contacts, messages from Android Samsung glaaxy, htc, lg to computer

    If the back-up utility just doesn't do what you need it to then you're going to have to divide the back-up process into separate parts, starting with your contacts. learn how to transfer messages, contacts from samsung galaxy, htc, lg to computer.and print text messages from samsung galaxy phone. There are several third-party SIM back-up programs that let you stick your SIM card into your PC via an adaptor and back up all your contacts and text messages from Android phone to computer, and print text messages from samsung galaxy phone.This first backup copy is all well and good, and you'll be thankful you have it if anything goes wrong, but it's not likely to be updated too often. So for your second backup, I recommend choosing a method that will update more frequently to ensure you have all the most recent photos, texts, settings, and everything else stored on your Android.learn how to transfer messages, contacts from samsung galaxy, htc, lg to computer.and print text messages from samsung galaxy phone.
    After installation of applications on computer and Android phone we need to make important change in the settings of the application on the computer. Settings can be found in File/Settings, here in the connection section we need to select the phone type as ‘Phone with Google Android-OS’, in connect via… select ‘Autodetect’ option and finally click OK.
    I recommend use Vibosoft Android Mobile Manager for making the first backup of your Android data be a copy of the SD card you keep on your computer. I'll list the basic steps here, but note that, with Android devices, there may be slight variations in the exact wording or steps and learn how to transfer messages, contacts from samsung galaxy, htc, lg to computer.and print text messages from samsung galaxy phone.
    1.Connect your Android device to your computer (Windows or Mac should both work) via the USB cable.
    2. On your Android, pull down the main menu (swipe down from the top of the screen) and select "USB connection."
    3. On the next page and preview text messages, contats
    Using this application is very simple and backup procedure is also very easy. It is not necessary that only USB cable is required for connecting an Android phone to the computer but we can also use Wi – Fi connection or we can also use Bluetooth connectivity options. There are two parts of the software; they are Android client application and a server application that will be installed on a personal computer. Once the applications are installed simply follow the instructions:learn how to transfer messages, contacts from samsung galaxy, htc, lg to computer.and print text messages from samsung galaxy phone.
    Leran: http://www.vibosoft.com/mobile-phone/print-out-text-messages-from-android-mobile-phone.html

    If you want to Transfer contacts, messages from Android Samsung galaxy, htc, lg to computer,it is not difficult to solve it. Follow the following steps:First, connect your Android phone to your computer.Then go to the notifications area on your Android phone and tap on the one that says USB something.Then click on Mount. Then, when it appears on your computer's screen, select the action that you want to do.Finally,To disconnect your phone, just go to the notifications area on your Android phone and tap on the USB sign to disconnectHowever,it is slow and complex,If you want to directly transfer contacts from Android Samsung galaxy, htc, lg to computer,You can use iStonsoft Android File Manager and iStonsoft  Mac Android File Manager to transfer contacts, messages from Android Samsung galaxy, htc, lg to computer and more quickly,you will very quickly to solve it,,it is a very powerful tool,and very popular,You can also use its other functions, such as Transfer text message/music from Android to Computer,copy/save contacts from Android to Computer.etc,Hope this helps!!! resource:How to Transfer Text Messages from Samsung Galaxy to Computer  

  • How can i  remove messages from faces context

    hi
    how can i remove messages from faces context
    with regards
    shannu sarma

    I'm also looking to find a way to remove message/s from FacesContext, and so far I've not been able to do this.
    The issues described below (if you have the patience to understand it) may uncover some JSF issues when combining different functionalities in JSF to come up with a solution.
    I have a requirement to display (let's just say error) messages in a message board. I do this in 2 steps: field-level validations are done first, and if all corrected (by the user), I do multi-field-level as well as business logic validation after model update (the way JSF seems to be designed to handle different types of validations). Let's say I have a combination of 3 combo-boxes that are dependent on one another. Selection from (1) requires dynamically filtering and setting a list for two and that in turn requires dynamically filtering and setting a list for 3, so the first two have valueChangeListener (try doing this in JSF!!!, I had to hack my way through to set this up with JSF, but that is not the issue). I have business rules associated with items within combo (1) and other entry fields entered by users (i.e. for simplicity let's just say, if material 'chain' is selected from combo 1, I should set combo (2) and (3), and validate that user entered at least four in # used entry field). Let's say I have a table with many rows of above combination of combo-boxes specified. Again for simplicity, assume we only have business rule violations (not field-level that would not go through model update):
    * User selects many combination of entried before submit (with no field-level error)
    * Business rules are checked and messages added to FacesContext and displayed in a message board
    * Next, all these messages disappear from the view when selecting any item from any combo-box (with valueChangeListeners attached to them) - 2 reasons: 1. a new FacesContext is created per valueChangeEvent 2. Business model update does not happen (so we don't generate these messages again and add them to FacesContext, it is not efficient to do so anyways)
    * we would like to display all those business logic validation messages so the user could correct them all (and not lose them by any combo-box selection)
    * As a workaround, I add these messages to session (which is another issue, since FacesMessages are not serializable) at the end of business logic validation, and retrieve and display them by (a.) forcing combo-boxes go through (field-level) validation, (b.) adding a new hidden field at the end of all fields in JSP page with a custom-validator that all it does is to get messages saved to session (from the last business logic validation) and add them to the FacesContext - this ensures that messages are not lost due to combo-box selections
    * The problem is that when user submits (to validate the business rules again), since the old Business validations messages are added to FacesContext at the end of field-level validation, I need to clear them, before adding the newly generated messages
    * But....I can't remove messages from FacesContext
    So here's a reason for this 'needed' functionality, based on whatever is available (as of JSF 1.1.01). Is there a better way to this, I'll be delighted to hear it (as I have tried different solutions myself with above combination of issuses), and have wasted some time trying to work-around the issues I've faced using JSF (in every one of those ways I've tried) ....part of which is described here...
    Thanks...

  • How do I send messages from iPad to non apple devices?

    How do I send messages from iPad to non apple devices?

    Found a good article explaning why the iPad doesn't send texts over iMessage the way you would think.  Turns out that the iPad isn't a phone and doesn't use 3G or Wifi the same way a phone would so you can't really send texts from iMessage on your iPad the same way you can on your iPhone.
    http://blog.chron.com/helpline/2011/12/sending-text-messages-from-an-ipad/

  • HT201269 how do i transfer messages from one iphone to another

    how do i transfer messages from one iphone to new iphone

    "There is nothing there when I go to it."
    What does "there" mean?  What does "it" mean?
    If you saved a backup in iCloud or iTunes, and then restored that backup to a newer device, you would see the messages ... assuming the newer device uses the same telephone number and cellular carrier as the old one did.

  • How to save a datas from serial port?

    How to save a datas from serial port?

    Hi
    I need some help about rs-232 communication. I want to make a vi witch can do this things:
    -read a txt file (to simulate a serial port like when the datas are coming)
    i will get 3 different data in serial port (like this: 121 213 135)
    i want to save in a txt file what datas get my vi
    so
    -write in a txt file or draw in a diagram (or both)
    so my problem is: read in serial port and save in a file and draw a diagram.
    if anybody can help pls HELP ME because im a beginner in this problem.
    I already do something but Im not sure that good.
    Thx for all.

  • How to delete the messages from sxmb_moni with status cancelled

    Hi ,
    how to delete the messages from sxmb_moni with status cancelled
    Is there any report for this
    Regards
    Suman

    I think just for deleting the jobs you can do this only
    Scheduling Delete Jobs
    To schedule delete jobs, proceed as follows:
           1.      In the Integration Engine -
    > Administration menu, choose Schedule Delete Jobs.
           2.      Select the job(s) to be scheduled.
           3.      Specify the start time and date.
           4.      Specify the period you want to use and choose Schedule.
    For an overview of all jobs, choose Jobs.

  • How to delete the messages from JMS Queue

    Hi,Can anybody help how to delete the messages from the JMS Queue.Thanks in advance.

    You can dequeue the message using a JMS client or delete it using Weblogic Admin Console -
    http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e13952/taskhelp/jms_modules/queues/ManageQueues.html
    Regards,
    Anuj

  • TS1347 Need to know how transfer contacts and messages from an Iphone 3Gs to an iPhone 5s

    how transfer contacts and messages from an Iphone 3Gs to an iPhone 5s

    http://support.apple.com/kb/HT1766

  • How 2 read two files from 2 diff. directories, using single adapter

    How 2 read two files from 2 diff. directories in same system, using single file adapter.

    you can use advanced selection for source file
    see
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm

Maybe you are looking for