1 |
On Sat, Nov 5, 2011 at 12:48 PM, Kfir Lavi <lavi.kfir@×××××.com> wrote: |
2 |
|
3 |
> |
4 |
> |
5 |
> On Sat, Nov 5, 2011 at 12:17 PM, Mick <michaelkintzios@×××××.com> wrote: |
6 |
> |
7 |
>> On Saturday 05 Nov 2011 09:20:19 Kfir Lavi wrote: |
8 |
>> > Hi all, |
9 |
>> > I have a problem connecting my laptop to my server at home with a serial |
10 |
>> > cable. |
11 |
>> > I have cable end for /dev/ttyS0 and 2 cable ends for /dev/ttyUSB0. |
12 |
>> > This lets me test the connection between all serial outputs. |
13 |
>> > Desktop1-minicom <-> Desktop2-minicom |
14 |
>> > works with all connections, i.e ttyUSB0 <-> ttyUSB0, or ttyS0 <-> |
15 |
>> ttyUSB0 |
16 |
>> > and viseversa. |
17 |
>> > So when connecting 2 desktop computers everything works as expected. |
18 |
>> > |
19 |
>> > The problem: |
20 |
>> > When I connect my laptop to any of those desktops, I get just one way |
21 |
>> > connection! |
22 |
>> > If I swap the sides of the cable, the one way connection switch side. |
23 |
>> > The laptop doesn't have ttyS0, so it have to be connected via ttyUSB0 |
24 |
>> > When I swap sides, it is just between two usb dongles. |
25 |
>> > |
26 |
>> > The usb dongles are PL2303 both sides. |
27 |
>> > Settings of minicom is 38400 8n1 Hardware Flow Control=OFF |
28 |
>> > |
29 |
>> > Laptop setserial: |
30 |
>> > setserial -a /dev/ttyUSB0 |
31 |
>> > /dev/ttyUSB0, Line 0, UART: 16654, Port: 0x0000, IRQ: 0 |
32 |
>> > Baud_base: 460800, close_delay: 0, divisor: 0 |
33 |
>> > closing_wait: infinte |
34 |
>> > Flags: spd_normal |
35 |
>> > |
36 |
>> > Desktop1 setserial: |
37 |
>> > setserial -a /dev/ttyS0 |
38 |
>> > /dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4 |
39 |
>> > Baud_base: 115200, close_delay: 50, divisor: 0 |
40 |
>> > closing_wait: 3000 |
41 |
>> > Flags: spd_normal skip_test |
42 |
>> > |
43 |
>> > setserial -a /dev/ttyUSB0 |
44 |
>> > /dev/ttyUSB0, Line 0, UART: 16654, Port: 0x0000, IRQ: 0 |
45 |
>> > Baud_base: 460800, close_delay: 0, divisor: 0 |
46 |
>> > closing_wait: infinte |
47 |
>> > Flags: spd_normal |
48 |
>> > |
49 |
>> > I tried to add the skip_test but this seems to be not working. |
50 |
>> > I'm not sure what to do next. |
51 |
>> > |
52 |
>> > Any help will be appreciated, |
53 |
>> > Thanks, |
54 |
>> > Kfir |
55 |
>> |
56 |
>> I think that you will need the pin mapping of a 'null modem' to be able to |
57 |
>> have bidirectional connectivity. |
58 |
>> |
59 |
>> Have a look here: |
60 |
>> |
61 |
>> http://en.wikipedia.org/wiki/Null_modem |
62 |
>> |
63 |
>> I think I still have an RS-232 to D9 null modem adaptor somewhere in my |
64 |
>> bins |
65 |
>> of spares. |
66 |
>> |
67 |
>> HTH. |
68 |
>> -- |
69 |
>> Regards, |
70 |
>> Mick |
71 |
>> |
72 |
> Hi and thanks for replaying. |
73 |
> This cable setup is working between the 2 desktop computers |
74 |
> bidirectionally. So, it seems that that part I got right. |
75 |
> The problem is when the laptop use the same cable connection and have just |
76 |
> one direction. |
77 |
> |
78 |
> Basically, I need to cross pin 2 and 3, and I have the setup open, so I |
79 |
> can cross whatever pin I want. |
80 |
> |
81 |
> Regards, |
82 |
> Kfir |
83 |
> |
84 |
|
85 |
I have checked this with another laptop, and everything works as expected. |
86 |
(serial connection ttyUSB0 from laptop to ttyUSB0 or ttyS0 on the desktop1). |
87 |
setserial and stty shows the same output on both laptops, so my guess, it |
88 |
is something related to the USB system?! |
89 |
Can someone have a guess on this? |
90 |
|
91 |
Regards, |
92 |
Kfir |