Modem application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • James Bond
    New Member
    • Jan 2007
    • 12

    Modem application

    Hi everyone

    I want to ask u a very important question. I dont have an idea regarding how i can detect a hardware attached to my system through a java programe.

    Acctually i want to detect a GSM modem through my programme so that my system becomes a server and the mobile cell phones can access its database
    by sending a message to my server.

    Please reply
    Rgds.
  • rengaraj
    New Member
    • Jan 2007
    • 168

    #2
    I'm not sure that "detection" is the word I would use to describe it, but you can communicate with GSM devices via your COM Ports.

    Comment

    • rengaraj
      New Member
      • Jan 2007
      • 168

      #3
      Serial Port APIs
      You'll need either javacomm20-win32.zip from http://www.idicalif.co m/fsun.htm or RTXT from http://www.rxtx.org/
      I used javacomm, but only because I was working away from home without an internet connection an that's all I had downloaded. I also wrapped the SerialPort class in my own one to enable unit testing without having a connection to the phone. This also has the advantage I can easily switch to rxtx at a later date if required.

      You'll have the choice of polling the device, or using an event driven model. Disabling the serial events and polling is easier because you don't have to worry about events occuring while you're in the middle of reading a response.

      Hint: Once installed our phone will be connected to a COM port. Check which one in Control Panel->Phone and Modem Options and viewing the "Modems" tab, then use HyperTerminal to test your connection (START->Accessories->Communicatio ns->HyperTerminal) . When you connect with HyperTerminal you'll just get a blank (white) viewing area. Type ATE1 [return] to enable local echo, then AT&V [return] to test the connection futher.

      Comment

      • rsr
        New Member
        • Dec 2006
        • 25

        #4
        Hi Rengaraj,

        I have written an application that connects with a serial device via a COM port and I specify the port number in an INI file or in an edit box. Now I want my application to recognise itself (rather than me giving the number), as to which port my serial device is connected. Is it possible to do this?

        waiting for your reply
        RAMESH

        Comment

        Working...