Re: serial connexion between 2 machines failed
On Sun, 29 Jul 2012 10:44:24 +0100, abdelkader belahcene wrote: (please, no html posts, thanks...) Thanks a lot for the hint, the difference is there : on the machine where the programs ran i got the ouput: # dmesg |grep ttyS [0.331367] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [0.640601] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A [0.720856] 00:0d: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [0.752633] 00:0e: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A [0.784232] :00:03.3: ttyS4 at I/O 0x1c90 (irq = 17) is a 16550A While on the machine where they didn't , nothing is displayed , I mean # dmesg |grep ttyS Better run dmesg | grep -i -e tty -e serial just in case. So How to activate the ports !!! thanks a lot regards (just a quick note on this because I have not followed the whole thread) RS-232 ports are usually detected automatically (provided the kernel has support for them) with no further steps required from the user. If they are not present, maybe is that your board does not have the serial ports enabled or that you are using a add-on card that requires additional software to detect them or that simply is not compatible with Linux (there are a bunch of PCI cards that only work under windows with the proper driver). Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/jv66fb$ltk$6...@dough.gmane.org
Re: Re: serial connexion between 2 machines failed
Thanks a lot for the hint, the difference is there : on the machine where the programs ran i got the ouput: # dmesg |grep ttyS [0.331367] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [0.640601] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A [0.720856] 00:0d: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [0.752633] 00:0e: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A [0.784232] :00:03.3: ttyS4 at I/O 0x1c90 (irq = 17) is a 16550A While on the machine where they didn't , nothing is displayed , I mean # dmesg |grep ttyS # So How to activate the ports !!! thanks a lot regards bela
Re: Re: serial connexion between 2 machines failed
On Sun, Jul 29, 2012 at 10:44:24AM +0100, abdelkader belahcene wrote: snip While on the machine where they didn't , nothing is displayed , I mean # dmesg |grep ttyS # So How to activate the ports !!! thanks a lot I would start by checking the BIOS setup to be sure they are not disabled. Mike -- Satisfied user of Linux since 1997. O ascii ribbon campaign - stop html mail - www.asciiribbon.org -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120729150423.GA27252@playground
serial connexion between 2 machines failed
Hi, I wrote 2 programs in C to read from a serial port and to write in. When I used one machine, nullmodem ( output and input) the program ran correcly, I wrote caracteres then I read them from the same port. ttyS0 for example. they ran correctly when I used a machine with 2 serial ports ttyS0 and ttyS1, so I send from one port to another. When I tried the same programs from one machine using a crossed cable ( This is what I have to done the output of one machine is an input for the other), it failed I have to wait very long time, may be for ever I remember I didn't once or twice yesterday, but after that no connection. Is there a special configuration, activation or else ??? (on both machines I am using linuxMint, is there any relation with the distro ??) thanks a lot regards bela
Re: serial connexion between 2 machines failed
Hi. On Tuesday 24 July 2012 16:41:57 abdelkader belahcene wrote: Hi, I wrote 2 programs in C to read from a serial port and to write in. When I used one machine, nullmodem ( output and input) the program ran correcly, I wrote caracteres then I read them from the same port. ttyS0 for example. they ran correctly when I used a machine with 2 serial ports ttyS0 and ttyS1, so I send from one port to another. When I tried the same programs from one machine using a crossed cable ( This is what I have to done the output of one machine is an input for the other), it failed I have to wait very long time, may be for ever Usually, nullmodem cable is what you need. Maybee wrong baud rate or something like that? I remember I didn't once or twice yesterday, but after that no connection. Is there a special configuration, activation or else ??? In order to check the connection, I probably would start a serial console on one of the machines and minicom on the other... (on both machines I am using linuxMint, is there any relation with the distro ??) I don't think so. thanks a lot regards bela You're welcome, Hartwig -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201207241719.37862.hartwig.atr...@arcor.de