Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Serial port

  Asked By: Juana    Date: Oct 12    Category: Java    Views: 1354
  

I am trying to communicate with serial port using java on Linux 9

The problem is i dont get a ETX bit while receiving a reply from my
device.

The same program works fine with windows enviorment.

Is there a problem with ETX in Linux.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Vilhelm Fischer     Answered On: Oct 12

Yes, It is Obsolete as far as I know and not supported by linux. Was it
ever supported in some older kernel at all that you mension rh9 (2.6/2.4
kernel? ), or it is first linux port  iteration try?

Try alternative handshaking for inserting waits in communication with
slow devices in your java  code.

If you don't want to change your java code, you should adjust your
native code behaviour, overriding the device-drivers, (userspace
alternatives?) .
All these will be native solutions anyway when your java code can not be
modified, with a fair amount of labor.

 
Answer #2    Answered By: Kyle Fox     Answered On: Oct 12

I also read it's Obsolete.

What can be the alternative handshaking options i
could not find any other way.And also my device
firmware should understand it.

How can i put waits for slow devices.

I am now getting the desired ouput by changing the
PARITY of the serial  port config to NONE.In windows  it
was working with EVEN PARITY.

I have just put loops to wait for the device to
respond.Suggest any other way...

 
Didn't find what you were looking for? Find more on Serial port Or get search suggestion and latest updates.




Tagged: