From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-130580-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1RMdpL-0002Jj-9E
	for garchives@archives.gentoo.org; Sat, 05 Nov 2011 10:50:19 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 3E5BF21C09A;
	Sat,  5 Nov 2011 10:50:09 +0000 (UTC)
Received: from mail-vx0-f181.google.com (mail-vx0-f181.google.com [209.85.220.181])
	by pigeon.gentoo.org (Postfix) with ESMTP id 5183921C02E
	for <gentoo-user@lists.gentoo.org>; Sat,  5 Nov 2011 10:49:09 +0000 (UTC)
Received: by vcbf11 with SMTP id f11so2952647vcb.40
        for <gentoo-user@lists.gentoo.org>; Sat, 05 Nov 2011 03:49:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :content-type;
        bh=As4lBrLS1zhsCbKUu5MacFCn6Tj0TwyXnhT0jH2JWKY=;
        b=NWr+Aa//PTQE4J4Ac/FL9ZbkMAhuqGSlTxqjdOe2WYHS+Ea6tpw30Quo9TZzlklvJ8
         qy/iH2yu1lnBDKMXQW6tamzF83SP+YztQVzPAyddbUPVaMRYm5viQ6qZoi5VK9kcUmMB
         ZlwF/gy8rDBx1Y0tcCF29a9a/MZ4nRY8jJtzA=
Received: by 10.52.115.74 with SMTP id jm10mr18598997vdb.40.1320490148067;
 Sat, 05 Nov 2011 03:49:08 -0700 (PDT)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.52.107.74 with HTTP; Sat, 5 Nov 2011 03:48:47 -0700 (PDT)
In-Reply-To: <201111051017.24591.michaelkintzios@gmail.com>
References: <CAHNvW1L-rpzhwjjgvtNgGJvaazgSe36SC23ZD8UXuv-np_awUg@mail.gmail.com>
 <201111051017.24591.michaelkintzios@gmail.com>
From: Kfir Lavi <lavi.kfir@gmail.com>
Date: Sat, 5 Nov 2011 12:48:47 +0200
Message-ID: <CAHNvW1+0gR4zdEU=sJp2yXXiBE1AxvKqCnjT84S5_shUoE7AzQ@mail.gmail.com>
Subject: Re: [gentoo-user] [OT] laptop desktop serial connection don't work on
 one direction
To: gentoo-user@lists.gentoo.org
Content-Type: multipart/alternative; boundary=bcaec548a72f347ab104b0fa924c
X-Archives-Salt: fb6bfcdb-2fde-4770-8639-b36884f7a6f7
X-Archives-Hash: 273368670884b89865750074c4a9bc97

--bcaec548a72f347ab104b0fa924c
Content-Type: text/plain; charset=UTF-8

On Sat, Nov 5, 2011 at 12:17 PM, Mick <michaelkintzios@gmail.com> wrote:

> On Saturday 05 Nov 2011 09:20:19 Kfir Lavi wrote:
> > Hi all,
> > I have a problem connecting my laptop to my server at home with a serial
> > cable.
> > I have cable end for /dev/ttyS0 and 2 cable ends for /dev/ttyUSB0.
> > This lets me test the connection between all serial outputs.
> > Desktop1-minicom <-> Desktop2-minicom
> > works with all connections, i.e ttyUSB0 <-> ttyUSB0, or ttyS0 <-> ttyUSB0
> > and viseversa.
> > So when connecting 2 desktop computers everything works as expected.
> >
> > The problem:
> > When I connect my laptop to any of those desktops, I get just one way
> > connection!
> > If I swap the sides of the cable, the one way connection switch side.
> > The laptop doesn't have ttyS0, so it have to be connected via ttyUSB0
> > When I swap sides, it is just between two usb dongles.
> >
> > The usb dongles are PL2303 both sides.
> > Settings of minicom is 38400 8n1  Hardware Flow Control=OFF
> >
> > Laptop setserial:
> > setserial -a /dev/ttyUSB0
> > /dev/ttyUSB0, Line 0, UART: 16654, Port: 0x0000, IRQ: 0
> >         Baud_base: 460800, close_delay: 0, divisor: 0
> >         closing_wait: infinte
> >         Flags: spd_normal
> >
> > Desktop1 setserial:
> > setserial -a /dev/ttyS0
> > /dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
> >         Baud_base: 115200, close_delay: 50, divisor: 0
> >         closing_wait: 3000
> >         Flags: spd_normal skip_test
> >
> > setserial -a /dev/ttyUSB0
> > /dev/ttyUSB0, Line 0, UART: 16654, Port: 0x0000, IRQ: 0
> >         Baud_base: 460800, close_delay: 0, divisor: 0
> >         closing_wait: infinte
> >         Flags: spd_normal
> >
> > I tried to add the skip_test but this seems to be not working.
> > I'm not sure what to do next.
> >
> > Any help will be appreciated,
> > Thanks,
> > Kfir
>
> I think that you will need the pin mapping of a 'null modem' to be able to
> have bidirectional connectivity.
>
> Have a look here:
>
> http://en.wikipedia.org/wiki/Null_modem
>
> I think I still have an RS-232 to D9 null modem adaptor somewhere in my
> bins
> of spares.
>
> HTH.
> --
> Regards,
> Mick
>
Hi and thanks for replaying.
This cable setup is working between the 2 desktop computers
bidirectionally. So, it seems that that part I got right.
The problem is when the laptop use the same cable connection and have just
one direction.

Basically, I need to cross pin 2 and 3, and I have the setup open, so I can
cross whatever pin I want.

Regards,
Kfir

--bcaec548a72f347ab104b0fa924c
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br><div class=3D"gmail_quote">On Sat, Nov 5, 2011 at =
12:17 PM, Mick <span dir=3D"ltr">&lt;<a href=3D"mailto:michaelkintzios@gmai=
l.com">michaelkintzios@gmail.com</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex;">

<div class=3D"HOEnZb"><div class=3D"h5">On Saturday 05 Nov 2011 09:20:19 Kf=
ir Lavi wrote:<br>
&gt; Hi all,<br>
&gt; I have a problem connecting my laptop to my server at home with a seri=
al<br>
&gt; cable.<br>
&gt; I have cable end for /dev/ttyS0 and 2 cable ends for /dev/ttyUSB0.<br>
&gt; This lets me test the connection between all serial outputs.<br>
&gt; Desktop1-minicom &lt;-&gt; Desktop2-minicom<br>
&gt; works with all connections, i.e ttyUSB0 &lt;-&gt; ttyUSB0, or ttyS0 &l=
t;-&gt; ttyUSB0<br>
&gt; and viseversa.<br>
&gt; So when connecting 2 desktop computers everything works as expected.<b=
r>
&gt;<br>
&gt; The problem:<br>
&gt; When I connect my laptop to any of those desktops, I get just one way<=
br>
&gt; connection!<br>
&gt; If I swap the sides of the cable, the one way connection switch side.<=
br>
&gt; The laptop doesn&#39;t have ttyS0, so it have to be connected via ttyU=
SB0<br>
&gt; When I swap sides, it is just between two usb dongles.<br>
&gt;<br>
&gt; The usb dongles are PL2303 both sides.<br>
&gt; Settings of minicom is 38400 8n1 =C2=A0Hardware Flow Control=3DOFF<br>
&gt;<br>
&gt; Laptop setserial:<br>
&gt; setserial -a /dev/ttyUSB0<br>
&gt; /dev/ttyUSB0, Line 0, UART: 16654, Port: 0x0000, IRQ: 0<br>
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 Baud_base: 460800, close_delay: 0, divisor=
: 0<br>
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 closing_wait: infinte<br>
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 Flags: spd_normal<br>
&gt;<br>
&gt; Desktop1 setserial:<br>
&gt; setserial -a /dev/ttyS0<br>
&gt; /dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4<br>
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 Baud_base: 115200, close_delay: 50, diviso=
r: 0<br>
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 closing_wait: 3000<br>
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 Flags: spd_normal skip_test<br>
&gt;<br>
&gt; setserial -a /dev/ttyUSB0<br>
&gt; /dev/ttyUSB0, Line 0, UART: 16654, Port: 0x0000, IRQ: 0<br>
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 Baud_base: 460800, close_delay: 0, divisor=
: 0<br>
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 closing_wait: infinte<br>
&gt; =C2=A0 =C2=A0 =C2=A0 =C2=A0 Flags: spd_normal<br>
&gt;<br>
&gt; I tried to add the skip_test but this seems to be not working.<br>
&gt; I&#39;m not sure what to do next.<br>
&gt;<br>
&gt; Any help will be appreciated,<br>
&gt; Thanks,<br>
&gt; Kfir<br>
<br>
</div></div>I think that you will need the pin mapping of a &#39;null modem=
&#39; to be able to<br>
have bidirectional connectivity.<br>
<br>
Have a look here:<br>
<br>
<a href=3D"http://en.wikipedia.org/wiki/Null_modem" target=3D"_blank">http:=
//en.wikipedia.org/wiki/Null_modem</a><br>
<br>
I think I still have an RS-232 to D9 null modem adaptor somewhere in my bin=
s<br>
of spares.<br>
<br>
HTH.<br>
<span class=3D"HOEnZb"><font color=3D"#888888">--<br>
Regards,<br>
Mick<br>
</font></span></blockquote></div>Hi and thanks for replaying. <br>This cabl=
e setup is working between the 2 desktop computers bidirectionally. So, it =
seems that that part I got right. <br>The problem is when the laptop use th=
e same cable connection and have just one direction.<br>

<br>Basically, I need to cross pin 2 and 3, and I have the setup open, so I=
 can cross whatever pin I want. <br><br>Regards,<br>Kfir<br></div>

--bcaec548a72f347ab104b0fa924c--