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 ) 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 ; Sat, 5 Nov 2011 10:49:09 +0000 (UTC) Received: by vcbf11 with SMTP id f11so2952647vcb.40 for ; 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: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail 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: <201111051017.24591.michaelkintzios@gmail.com> From: Kfir Lavi Date: Sat, 5 Nov 2011 12:48:47 +0200 Message-ID: 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 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


On Sat, Nov 5, 2011 at = 12:17 PM, Mick <michaelkintzios@gmail.com> wrote:
On Saturday 05 Nov 2011 09:20:19 Kf= ir Lavi wrote:
> Hi all,
> I have a problem connecting my laptop to my server at home with a seri= al
> 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 &l= t;-> 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<= br> > connection!
> If I swap the sides of the cable, the one way connection switch side.<= br> > The laptop doesn't have ttyS0, so it have to be connected via ttyU= SB0
> When I swap sides, it is just between two usb dongles.
>
> The usb dongles are PL2303 both sides.
> Settings of minicom is 38400 8n1 =C2=A0Hardware Flow Control=3DOFF
>
> Laptop setserial:
> setserial -a /dev/ttyUSB0
> /dev/ttyUSB0, Line 0, UART: 16654, Port: 0x0000, IRQ: 0
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Baud_base: 460800, close_delay: 0, divisor= : 0
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 closing_wait: infinte
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Flags: spd_normal
>
> Desktop1 setserial:
> setserial -a /dev/ttyS0
> /dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Baud_base: 115200, close_delay: 50, diviso= r: 0
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 closing_wait: 3000
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Flags: spd_normal skip_test
>
> setserial -a /dev/ttyUSB0
> /dev/ttyUSB0, Line 0, UART: 16654, Port: 0x0000, IRQ: 0
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Baud_base: 460800, close_delay: 0, divisor= : 0
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 closing_wait: infinte
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 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 bin= s
of spares.

HTH.
--
Regards,
Mick
Hi and thanks for replaying.
This cabl= e 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 th= e 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--