The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

URGENT Problem with SerialPortEventListener in javax.comm

Posted by Danner on February 06, 2001 at 7:26 AM

Hi people, i have a big problem: Since a few days i try to receive a serial stream from port "com1". I can already send strings through "com1" with only 25 lines of code but i can not receive something.

The way i want to go is the one with the SerialPortEventListener and not a thread (or do i need a thread?). Does anyone can tell me the SHORTEST way to receive Characters into a string from "com1" ??? The examples delivered with the package are too complex and dont work in my program. In case of a serialEvent they produce a NullPointerException and so on.

Does someone has a simple code-example ???
Thanks for your help, bye ...




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us