[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rxtx
Subject:    [Rxtx] Fw:  In Linux,
From:       Ferry Sumendap <ferry_new2004 () yahoo ! com>
Date:       2009-04-14 4:15:04
Message-ID: 948418.50805.qm () web33103 ! mail ! mud ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


----- Forwarded Message ----
From: Ferry Sumendap <ferry_new2004@yahoo.com>
To: Trent Jarvi <tjarvi@qbang.org>
Sent: Tuesday, April 14, 2009 11:10:04 AM
Subject: Re: [Rxtx] In Linux, RXTX serial port lib cannot send character which hex is \
more than 127.


Thank you for your answer.

I use the same machine, cable and devices to test.
My PC is installed with Linux Mandriva and WINDOWS.
The serial port physically have no problem since using Windows, it works.

I also tested the serial port using MONI (tcl based program).
MONI is linux based program to send some characters to serial port.
Using MONI, I sent the characters to /dev/ttyS0, and it works because the device \
which is plugged in /dev/ttyS0 received and answered the message.

But for RXTX, some how, java based program cannot send those characters.
With the same java based program, it works properly in WINDOWS and the same cable, \
devices, hardware specification. That's why I am curious about RXTX.



Here is the serial port configuration I used.

Com Port /dev/ttyS0
Baud rate 19200
Data bits 8 ( value = 8)
Stop bits 1   ( value = 1)
Parity None  ( value = 0)



Thank you very much for your response.

Regards,
Ferry





________________________________
From: Trent Jarvi <tjarvi@qbang.org>
To: Ferry Sumendap <ferry_new2004@yahoo.com>
Cc: rxtx@qbang.org
Sent: Tuesday, April 14, 2009 11:01:04 AM
Subject: Re: [Rxtx] In Linux, RXTX serial port lib cannot send character which hex is \
more than 127.



On Mon, 13 Apr 2009, Ferry Sumendap wrote:

> Hello everybody,
> 
> I have just tested the RXTXserial port library version  RXTX2-1-7pre20 to
> send two characters which are character ascii  230 and 234. It seems that
> the driver somehow did not send the two characters into serial port if the
> Operating System is Linux Mandriva 2007 (kernel version 2.6.17-13mdv
> ) or Linux Mandriva 2009.
> I also tried the driver using  same java code (java class file of the
> program I wrote), in Windows XP,  it does work.
> 
> Should I configure something (special configuration in Linux)  or did I miss
> something ?
> I also have tested the latest RXTX 2.2pre2 driver, but it still have that
> problem.
> 

Hello Ferry

This sounds like an unlikely problem.

Even with USB dongle issues, I can't think of a reason that would be a 
problem.  Is this a connection at 9600 8N1?

Sometimes it really is the cable.

--
Trent Jarvi
tjarvi@qbang.org



      


[Attachment #5 (text/html)]

<html><head><style type="text/css"><!-- DIV {margin:0px;} \
--></style></head><body><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt"><div><br></div><div style="font-family: times new \
roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new \
roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2">----- \
Forwarded Message ----<br><b><span style="font-weight: bold;">From:</span></b> Ferry \
Sumendap &lt;ferry_new2004@yahoo.com&gt;<br><b><span style="font-weight: \
bold;">To:</span></b> Trent Jarvi &lt;tjarvi@qbang.org&gt;<br><b><span \
style="font-weight: bold;">Sent:</span></b> Tuesday, April 14, 2009 11:10:04 \
AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Rxtx] In Linux, \
RXTX serial port lib cannot send character which hex is more than 127.<br></font><br> \
<div style="font-family: times new roman,new york,times,serif; font-size: \
12pt;"><div>Thank you for your answer.<br><br>I use the same machine, cable and \
devices to test.<br>My PC is installed with Linux Mandriva and WINDOWS.<br>The serial \
port physically have no problem since using Windows, it works.<br><br>I also tested \
the serial port using MONI (tcl based program).<br>MONI is linux based program to \
send some characters to serial port.<br>Using MONI, I sent the characters to \
/dev/ttyS0, and it works because the device which is plugged in /dev/ttyS0 received \
and answered the message.<br><br>But for RXTX, some how, java based program cannot \
send those characters.<br>With the same java based program, it works properly in \
WINDOWS and the same cable, devices, hardware specification.<br>That's why I am \
curious about RXTX.<br><br><br><br>Here is the serial port configuration I  \
used.<br><br>Com Port /dev/ttyS0<br>Baud rate 19200<br>Data bits 8 ( value = \
8)<br>Stop bits 1&nbsp;&nbsp; ( value = 1)<br>Parity None&nbsp; ( value = \
0)<br><br><br><br>Thank you very much for your \
response.<br><br>Regards,<br>Ferry<br><br></div><div style="font-family: times new \
roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: \
arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr \
size="1"><b><span style="font-weight: bold;">From:</span></b> Trent Jarvi \
&lt;tjarvi@qbang.org&gt;<br><b><span style="font-weight: bold;">To:</span></b> Ferry \
Sumendap &lt;ferry_new2004@yahoo.com&gt;<br><b><span style="font-weight: \
bold;">Cc:</span></b> rxtx@qbang.org<br><b><span style="font-weight: \
bold;">Sent:</span></b> Tuesday, April 14, 2009 11:01:04 AM<br><b><span \
style="font-weight: bold;">Subject:</span></b> Re: [Rxtx] In Linux, RXTX serial port \
lib cannot send character which hex is more than 127.<br></font><br> <br><br>On Mon, \
13 Apr 2009, Ferry Sumendap wrote:<br><br>&gt; Hello everybody,<br>&gt; <br>&gt; I \
have just tested the RXTXserial port library version&nbsp; RXTX2-1-7pre20 to<br>&gt; \
send two characters which are character ascii&nbsp; 230 and 234. It seems \
that<br>&gt; the driver somehow did not send the two characters into serial port if \
the<br>&gt; Operating System is Linux Mandriva 2007 (kernel version \
2.6.17-13mdv<br>&gt; ) or Linux Mandriva 2009.<br>&gt; I also tried the driver \
using&nbsp; same java code (java class file of the<br>&gt; program I wrote), in \
Windows XP,&nbsp; it does work.<br>&gt; <br>&gt; Should I configure something \
(special configuration in Linux)&nbsp; or did I miss<br>&gt; something ?<br>&gt; I \
also have tested the latest RXTX 2.2pre2 driver, but it still have that<br>&gt; \
problem.<br>&gt;<br><br>Hello Ferry<br><br>This sounds like an unlikely \
problem.<br><br>Even with USB dongle issues, I can't think of a reason that would be \
a  <br>problem.&nbsp; Is this a connection at 9600 8N1?<br><br>Sometimes it really is \
the cable.<br><br>--<br>Trent Jarvi<br><a rel="nofollow" \
ymailto="mailto:tjarvi@qbang.org" target="_blank" \
href="mailto:tjarvi@qbang.org">tjarvi@qbang.org</a></div></div></div><br>

      </div></div></div><br>

      </body></html>



_______________________________________________
Rxtx mailing list
Rxtx@qbang.org
http://mailman.qbang.org/mailman/listinfo/rxtx


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic