Results 1 to 4 of 4
  1. #1
    rjagan's Avatar
    rjagan is offline Member
    Join Date
    Feb 2011
    Location
    Puducherry
    Posts
    53
    Rep Power
    0

    Exclamation How to open Serial port connection

    Hi friends,,

    I want to communicate the serial port by using GUI (netbeans,java coding).. COM Port number 1 or 2.. How to write the code to Open the serial port from my GUI..

  2. #2
    Jodokus's Avatar
    Jodokus is offline Senior Member
    Join Date
    Jan 2011
    Location
    Amsterdam, the Netherlands
    Posts
    230
    Rep Power
    4

    Default

    Java Code:
    if( port( 1,2) == null ){
         sesam.open();
    }

  3. #3
    rjagan's Avatar
    rjagan is offline Member
    Join Date
    Feb 2011
    Location
    Puducherry
    Posts
    53
    Rep Power
    0

    Default

    what's this friend.. sesam.open() is enough to open the connection..
    How to initialize the com port..??

  4. #4
    Jodokus's Avatar
    Jodokus is offline Senior Member
    Join Date
    Jan 2011
    Location
    Amsterdam, the Netherlands
    Posts
    230
    Rep Power
    4

    Default

    I confess: I tried to be funny.
    But I'll also spell it out:
    1. On a forum you have to show some effort, and then people try to help you out when you're stuck.
    2. It is very tiring to find post after post asking for code without trying to google or looking for one of the many tutorials. In effect you're saying: I'm to lazy to read a book, please do it for me and copy the code you found for me".
    3. A GUI and the problem opening a port have nothing to do with each other. So you give the impression just to dump your specifications here and expect a full blown application in return.

Similar Threads

  1. get data from serial port
    By kishkar20003 in forum New To Java
    Replies: 2
    Last Post: 12-27-2010, 12:33 PM
  2. Replies: 1
    Last Post: 07-30-2010, 09:29 AM
  3. Serial Port
    By radhika in forum New To Java
    Replies: 5
    Last Post: 11-06-2009, 11:40 AM
  4. Serial Port Ethernet
    By nipunreddevil in forum Networking
    Replies: 2
    Last Post: 03-01-2009, 06:22 PM
  5. serial port
    By musiigedeo in forum Advanced Java
    Replies: 0
    Last Post: 07-23-2007, 05:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •