Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > java program read serial port data unstable at linux

Reply
Thread Tools

java program read serial port data unstable at linux

 
 
Raine Wang
Guest
Posts: n/a
 
      11-02-2004
Hi,

My application needs to communicate with one external device at
windows and linux. At windows, I use the package sun provided and run
stably. But when the same program( of course, there is different with
the device's name ) runs at linux(Redhat) using RxTx package, it
always can't get data from port. My program need to send a lot of
times quest to the device and read the response(data) from the serial
port after each request. This process will repeat hundred times. But
the program always can't fully executed. It sometimes will just stay
at the read sentence and wait for data( I am sure the data should be
arrived). When will the program blocked at the read sentence is not
fixed.
program sometimes is blocked at the first time, sometimes after read
several times, sometimes no block at all. But my program running at
windows don't have this kind of problem.

Please give me some ideas. Thanks in advance.

Raine
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Com Port 1 unstable jim fisher Computer Support 3 06-15-2007 08:28 PM
Cisco 1721 Fast Ethernet Port unstable ITCOM Cisco 1 04-23-2007 05:22 AM
Reading data from serial port on Linux using a C program Vivek Menon C Programming 8 12-06-2006 01:29 AM
Can I connect router Serial interface directly to a PC serial port? Faustino Dina Cisco 2 08-18-2004 02:30 AM
Re: Serial port and PS/2 port schematics °Mike° Computer Support 1 07-09-2003 10:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57