Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Serial comm reading freeze

  1. #1
    Junior Member
    Join Date
    Jan 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Serial comm reading freeze

    Hi guys!
    I have a problem with a java program reading from a serial com port. I read sentences and handle some of them (!) in a database. Another application is querying the database. The problem is that the com port reading program freezes after some time (1day, 2 days...). It does not respond any more. Is it possible that there are to many incoming sentences filling the com buffer and freezing the com reading and database writing program? May this be due to slow database writing? What can be the cause?
    The program restarts if any exception (com or database) is encountered.
    Many many thanks for your help!
    Best.


  2. #2
    Junior Member
    Join Date
    Jan 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Serial comm reading freeze

    Also the serial ports are through ethernet converters or USB to serial converters.
    It handles exceptions and closes the port when exception occurs.
    Thanks.

Similar Threads

  1. jSSC library - for easy work with serial ports
    By scream3r in forum Java SE API Tutorials
    Replies: 4
    Last Post: July 19th, 2011, 09:36 AM
  2. reading stream of bytes from serial port
    By KrisTheSavage in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: January 3rd, 2011, 11:02 AM
  3. List serial com ports of computer
    By mickey in forum Java Networking
    Replies: 2
    Last Post: August 6th, 2010, 01:44 AM
  4. Help with reading from file
    By drazenmd in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: June 15th, 2010, 03:43 AM
  5. theory about serial / parallel port & java
    By wolfgar in forum Java Theory & Questions
    Replies: 5
    Last Post: January 4th, 2010, 10:08 PM

Tags for this Thread