Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-11-2008, 11:14 AM
Daneel Yaitskov
 
Posts: n/a
How do I make connection per rs-232 without modems directly

Hi,


I have two computers and com cable. I am going to make a connection
between them, using the PPP protocol. But I am dashed that all guides
which I already saw gives examples for modem connections. I don't know
what must I write in the chat file, because I haven't any modems. Also I
will be happy any helpful hints about the question.


Daneel
Reply With Quote
  #2 (permalink)  
Old 07-11-2008, 05:04 PM
Lew Pitcher
 
Posts: n/a
Re: How do I make connection per rs-232 without modems directly

On Jul 11, 6:14*am, Daneel Yaitskov <rtfm.rtfm.r...@gmail.com> wrote:
> Hi,
>
> I have *two computers and com cable. I am going to make a connection
> between them, using the PPP protocol. But I am dashed that all guides
> which I already saw gives examples for modem connections. I don't know
> what must I write in the chat file, because I haven't any modems. Also I
> will be happy any helpful hints about the question.


This can be simple or complicated, depending on *your* setup.

At the simplest, neither serial device is connected to a getty(1), and
you can eliminate the chat script altogether.

At the most complex, one or both serial devices are connected to
getty(1) processes, and your chat script will reflect the necessary
commands to log on and initiate a ppp connection.

Its up to you. Personally, I'd ensure that neither serial device is
run by getty(1), and simply start the ppp daemon on each side,
directed to the local serial device. No chat script at all.
Reply With Quote
  #3 (permalink)  
Old 07-11-2008, 06:37 PM
Clifford Kite
 
Posts: n/a
Re: How do I make connection per rs-232 without modems directly

Daneel Yaitskov <rtfm.rtfm.rtfm@gmail.com> wrote:
> Hi,



> I have two computers and com cable. I am going to make a connection
> between them, using the PPP protocol. But I am dashed that all guides
> which I already saw gives examples for modem connections. I don't know
> what must I write in the chat file, because I haven't any modems. Also I
> will be happy any helpful hints about the question.


What you need depends on what "com cable" means and what OS besides Linux
one of the computers may be running. For a full null-modem cable and
Linux on both computers this should work (without chat):

Computer 1
/usr/sbin/pppd /dev/ttyS1 crtscts 115200 192.168.1.1:192.168.1.2
Computer 2
/usr/sbin/pppd /dev/ttyS1 passive crtscts 115200

The passive option was assigned arbitrarily to computer 2 and pppd needs
to be run there first. Substitute for ttyS1 whatever serial device files
your computers use. If the serial device doesn't have at least a 16550A
UART then 115200 may need to be reduced to, e.g., 38400 or 9600.

If you want computer 2 to always be ready to accept a connection then
this bash script may work (untested):

#! /bin/sh
while [ 0 = 0 ]; do
/usr/sbin/pppd /dev/ttyS1 passive crtscts 115200
sleep 1
done

For a 3-wire null-modem add the pppd local option and replace crtscts
with xonxoff.

For a NT host to initiate a connection to a Linux host, try starting
the Linux side first but instead of the passive option use

connect "chat -t 0 CLIENT CLIENTSERVER"

so that chat waits (forever) for CLIENT and then sends CLIENTSERVER.

For a Linux host to initiate a connection to a NT host, you probably
just need to add

connect "chat CLIENTSERVER CLIENT"

Cheers-
--
Clifford Kite
/* For PPP debugging in Linux add the line
daemon.*;local2.* /var/log/ppp.log
to /etc/syslog.conf, do "killall -HUP syslogd" to get syslogd to reread
that file, and use the chat -v and pppd debug options. */
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:02 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Online Advertising | Debt Help | Charity | Problem Mortgage | Mortgage Loans



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114