* RS485 communicatio
@ 2003-03-13 6:15 Linux PPP
2003-03-14 0:05 ` whitnl73
2003-03-16 23:47 ` Stuart MacDonald
0 siblings, 2 replies; 8+ messages in thread
From: Linux PPP @ 2003-03-13 6:15 UTC (permalink / raw)
To: linux-serial
Hi all,
am currently working on PPP over serial interface (RS485) in linux 2.4.2-2. I believe RS485 half duplex system and hence only one can transmit at a time. And for RS485 we basicaly use Master-Slave or Primary-Secondary kind of communication. I don't know how to achieve the same using PPP since i need to have max of 10 nodes connected via serial interface. I tested with two nodes using PPP daemon it works fine. Following are the commands i issued
In PPP server:
$usr/sbin/pppd -detach crtscts 10.10.10.100:10.10.10.101 115200 /dev/ttyS0 &
In PPP client side :
$/usr/sbin/pppd call ppp-start
where ppp-start file is copied into directory /etc/ppp/peers/ that had the following
-detach /dev/ttyS0 115200 crtscts
noauth
This point to point communication worked fine with RS485 interface. If i had to connect one more node what i need to do. Please clarify with the following
i) Whether the existing pppd takes care of the RS485 with multi node , if so how do i manage giving commands
ii) If there is no direct support how do i go ahead. Is there any other layer 2 protocol allows me to acheive TCP/IP communicattion over RS485 which is my ultimatum.
I will be grateful if anybody of them could help me with my current problem.
Thanx in advance.
Karthik
--
______________________________________________
http://www.indiainfo.com
Now with POP3/SMTP access for only US$14.95/yr
Powered by Outblaze
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: RS485 communicatio
@ 2003-03-13 16:56 Ed Vance
2003-03-13 17:46 ` Richard B. Johnson
2003-03-15 19:46 ` Pavel Machek
0 siblings, 2 replies; 8+ messages in thread
From: Ed Vance @ 2003-03-13 16:56 UTC (permalink / raw)
To: 'Linux PPP'; +Cc: linux-serial, 'linux-kernel'
On Wed, Mar 12, 2003 at 10:15 PM, linuxppp@indiainfo.com wrote:
> Hi all,
> am currently working on PPP over serial interface (RS485) in
> linux 2.4.2-2. I believe RS485 half duplex system and hence
> only one can transmit at a time. And for RS485 we basicaly
> use Master-Slave or Primary-Secondary kind of communication.
> I don't know how to achieve the same using PPP since i need
> to have max of 10 nodes connected via serial interface. I
> tested with two nodes using PPP daemon it works fine.
> Following are the commands i issued
>
> In PPP server:
> $usr/sbin/pppd -detach crtscts 10.10.10.100:10.10.10.101
> 115200 /dev/ttyS0 &
>
> In PPP client side :
> $/usr/sbin/pppd call ppp-start
> where ppp-start file is copied into directory /etc/ppp/peers/
> that had the following
>
> -detach /dev/ttyS0 115200 crtscts
> noauth
>
> This point to point communication worked fine with RS485
> interface. If i had to connect one more node what i need to
> do. Please clarify with the following
>
> i) Whether the existing pppd takes care of the RS485 with
> multi node , if so how do i manage giving commands
> ii) If there is no direct support how do i go ahead. Is there
> any other layer 2 protocol allows me to acheive TCP/IP
> communicattion over RS485 which is my ultimatum.
>
> I will be grateful if anybody of them could help me with my
> current problem.
>
I believe Point-to-Point Protocol only supports point-to-point symmetric
links. Don't think there is any multi-point support in the protocol. IIRC,
PPP also requires a full duplex link, which is not available on an RS-485
link with more than two stations, even if it is a 4-wire link.
I don't know of an easy way around this fundamental limitation.
Maybe somebody on the kernel list has a suggestion.
Cheers
----------------------------------------------------------------
Ed Vance edv (at) macrolink (dot) com
Macrolink, Inc. 1500 N. Kellogg Dr Anaheim, CA 92807
----------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: RS485 communicatio
2003-03-13 16:56 Ed Vance
@ 2003-03-13 17:46 ` Richard B. Johnson
2003-03-15 19:46 ` Pavel Machek
1 sibling, 0 replies; 8+ messages in thread
From: Richard B. Johnson @ 2003-03-13 17:46 UTC (permalink / raw)
To: Ed Vance; +Cc: 'Linux PPP', linux-serial, 'linux-kernel'
On Thu, 13 Mar 2003, Ed Vance wrote:
> On Wed, Mar 12, 2003 at 10:15 PM, linuxppp@indiainfo.com wrote:
> > Hi all,
> > am currently working on PPP over serial interface (RS485) in
> > linux 2.4.2-2. I believe RS485 half duplex system and hence
> > only one can transmit at a time. And for RS485 we basicaly
> > use Master-Slave or Primary-Secondary kind of communication.
> > I don't know how to achieve the same using PPP since i need
> > to have max of 10 nodes connected via serial interface. I
> > tested with two nodes using PPP daemon it works fine.
> > Following are the commands i issued
> >
> > In PPP server:
> > $usr/sbin/pppd -detach crtscts 10.10.10.100:10.10.10.101
> > 115200 /dev/ttyS0 &
> >
> > In PPP client side :
> > $/usr/sbin/pppd call ppp-start
> > where ppp-start file is copied into directory /etc/ppp/peers/
> > that had the following
> >
> > -detach /dev/ttyS0 115200 crtscts
> > noauth
> >
> > This point to point communication worked fine with RS485
> > interface. If i had to connect one more node what i need to
> > do. Please clarify with the following
> >
> > i) Whether the existing pppd takes care of the RS485 with
> > multi node , if so how do i manage giving commands
> > ii) If there is no direct support how do i go ahead. Is there
> > any other layer 2 protocol allows me to acheive TCP/IP
> > communicattion over RS485 which is my ultimatum.
> >
> > I will be grateful if anybody of them could help me with my
> > current problem.
> >
>
> I believe Point-to-Point Protocol only supports point-to-point symmetric
> links. Don't think there is any multi-point support in the protocol. IIRC,
> PPP also requires a full duplex link, which is not available on an RS-485
> link with more than two stations, even if it is a 4-wire link.
>
> I don't know of an easy way around this fundamental limitation.
>
> Maybe somebody on the kernel list has a suggestion.
>
> Cheers
TCP/IP only requires two-way communicaton. It does not even
have to be reliable. There are IP/SCSI adapters and fibre
channel adapters already in the kernel.
Therefore, you just make a driver that substitutes for a
network communications adapter and away you go. PPP does not,
in principle, require simultaneous two-way communications.
However, current implimentations expect that a modem is
attached.
You should be able to use any serial cmmunications device
for a PPP link although one would have to make a serial driver
that handles the TX/RX direction-change in a transparent manner
as well as the RS-485 "address" problem. If the drivers on each
connected host communicate with each other, i.e., resolve their
own address problems,, then the payload between these hosts can
be the communications channels for PPP.
Cheers,
Dick Johnson
Penguin : Linux version 2.4.20 on an i686 machine (797.90 BogoMips).
Why is the government concerned about the lunatic fringe? Think about it.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: RS485 communicatio
2003-03-13 6:15 RS485 communicatio Linux PPP
@ 2003-03-14 0:05 ` whitnl73
2003-03-15 0:36 ` whitnl73
2003-03-16 23:47 ` Stuart MacDonald
1 sibling, 1 reply; 8+ messages in thread
From: whitnl73 @ 2003-03-14 0:05 UTC (permalink / raw)
To: linuxppp; +Cc: linux-serial
|
| Hi all,
| am currently working on PPP over serial interface (RS485) in linux
| 2.4.2-2. I believe RS485 half duplex system and hence only one can
| transmit at a time. And for RS485 we basicaly use Master-Slave or
| Primary-Secondary kind of communication. I don't know how to achieve
| the same using PPP since i need to have max of 10 nodes connected via
| serial interface. I tested with two nodes using PPP daemon it works
| fine. Following are the commands i issued
|
| In PPP server:
| $usr/sbin/pppd -detach crtscts 10.10.10.100:10.10.10.101 115200
| /dev/ttyS0 &
|
| In PPP client side :
| $/usr/sbin/pppd call ppp-start
| where ppp-start file is copied into directory /etc/ppp/peers/ that had
| the following
|
| -detach /dev/ttyS0 115200 crtscts
| noauth
|
| This point to point communication worked fine with RS485 interface. If
| i had to connect one more node what i need to do. Please clarify with
| the following
|
| i) Whether the existing pppd takes care of the RS485 with multi node ,
| if so how do i manage giving commands
AFAIK there is no usable protocol for multidtop serial lines. Ring ten
times for system a, 9 got system b...
| ii) If there is no direct support how do i go ahead. Is there any other
| layer 2 protocol allows me to acheive TCP/IP communicattion over RS485
| which is my ultimatum.
Use a separate serial line between each pair of nodes, or make one a
sort of hub and run a line from it to each other node?
|
| I will be grateful if anybody of them could help me with my current
| problem.
|
| Thanx in advance.
|
| Karthik
|
| --
Lawson
--
---oops---
________________________________________________________________
Sign Up for Juno Platinum Internet Access Today
Only $9.95 per month!
Visit www.juno.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: RS485 communicatio
2003-03-14 0:05 ` whitnl73
@ 2003-03-15 0:36 ` whitnl73
0 siblings, 0 replies; 8+ messages in thread
From: whitnl73 @ 2003-03-15 0:36 UTC (permalink / raw)
To: whitnl73; +Cc: linuxppp, linux-serial
On Thu, 13 Mar 2003 whitnl73@juno.com wrote:
>
> AFAIK there is no usable protocol for multidtop serial lines. Ring ten
> times for system a, 9 got system b...
>
> | ii) If there is no direct support how do i go ahead. Is there any other
> | layer 2 protocol allows me to acheive TCP/IP communicattion over RS485
> | which is my ultimatum.
>
> Use a separate serial line between each pair of nodes, or make one a
> sort of hub and run a line from it to each other node?
> |
> | I will be grateful if anybody of them could help me with my current
> | problem.
> |
> | Thanx in advance.
> |
> | Karthik
> |
> | --
Hmmm, what is this?
PPP multilink support (EXPERIMENTAL)
CONFIG_PPP_MULTILINK
PPP multilink is a protocol (defined in RFC 1990) which allows you
to combine several (logical or physical) lines into one logical PPP
connection, so that you can utilize your full bandwidth.
This has to be supported at the other end as well and you need a
version of the pppd daemon which understands the multilink protocol.
If unsure, say N.
Configure.help line 7235/19377 37%
>
Seem to be some things in man pppd about multilink, too.
> Lawson
> --
> ---oops---
>
>
>
> ________________________________________________________________
> Sign Up for Juno Platinum Internet Access Today
> Only $9.95 per month!
> Visit www.juno.com
> -
> To unsubscribe from this list: send the line "unsubscribe linux-serial" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
---oops---
________________________________________________________________
Sign Up for Juno Platinum Internet Access Today
Only $9.95 per month!
Visit www.juno.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: RS485 communicatio
2003-03-13 16:56 Ed Vance
2003-03-13 17:46 ` Richard B. Johnson
@ 2003-03-15 19:46 ` Pavel Machek
2003-03-16 19:57 ` Alan Cox
1 sibling, 1 reply; 8+ messages in thread
From: Pavel Machek @ 2003-03-15 19:46 UTC (permalink / raw)
To: Ed Vance; +Cc: 'Linux PPP', linux-serial, 'linux-kernel'
Hi!
> > I will be grateful if anybody of them could help me with my
> > current problem.
> >
>
> I believe Point-to-Point Protocol only supports point-to-point symmetric
> links. Don't think there is any multi-point support in the protocol. IIRC,
> PPP also requires a full duplex link, which is not available on an RS-485
> link with more than two stations, even if it is a 4-wire link.
Get scarabd (I don't know *where* it is), it can run TCP/IP over slip over
half-duplex link. Performance is not too good.
Pavel
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: RS485 communicatio
2003-03-15 19:46 ` Pavel Machek
@ 2003-03-16 19:57 ` Alan Cox
0 siblings, 0 replies; 8+ messages in thread
From: Alan Cox @ 2003-03-16 19:57 UTC (permalink / raw)
To: Pavel Machek
Cc: Ed Vance, 'Linux PPP', linux-serial,
'linux-kernel'
On Sat, 2003-03-15 at 19:46, Pavel Machek wrote:
> > I believe Point-to-Point Protocol only supports point-to-point symmetric
> > links. Don't think there is any multi-point support in the protocol. IIRC,
> > PPP also requires a full duplex link, which is not available on an RS-485
> > link with more than two stations, even if it is a 4-wire link.
>
> Get scarabd (I don't know *where* it is), it can run TCP/IP over slip over
> half-duplex link. Performance is not too good.
Robin O'Leary wrote most of it, so its probably somewhere like
caderus.co.uk
Half duplex performance is fine at a sensible speed and with decent
reliability. On radio will collisions its a lot less pretty
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: RS485 communicatio
2003-03-13 6:15 RS485 communicatio Linux PPP
2003-03-14 0:05 ` whitnl73
@ 2003-03-16 23:47 ` Stuart MacDonald
1 sibling, 0 replies; 8+ messages in thread
From: Stuart MacDonald @ 2003-03-16 23:47 UTC (permalink / raw)
To: Linux PPP, linux-serial
From: "Linux PPP" <linuxppp@indiainfo.com>
> am currently working on PPP over serial interface (RS485) in linux
2.4.2-2. I believe RS485 half duplex system and hence only one can transmit
at a time. And for RS485 we basicaly use Master-Slave or Primary-Secondary
kind of communication. I don't know how to achieve the
[snip]
> This point to point communication worked fine with RS485 interface. If i
had to connect one more node what i need to do. Please clarify with the
following
>
> i) Whether the existing pppd takes care of the RS485 with multi node , if
so how do i manage giving commands
PPP is designed to connect two logical endpoints together. 485
multidrop is a one to many setup, which seems to me is logically
incompatible with PPP. At least, simultaneously.
..Stu
--
We make multiport serial boards.
<http://www.connecttech.com>
(800) 426-8979
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-03-16 23:47 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-13 6:15 RS485 communicatio Linux PPP
2003-03-14 0:05 ` whitnl73
2003-03-15 0:36 ` whitnl73
2003-03-16 23:47 ` Stuart MacDonald
-- strict thread matches above, loose matches on Subject: below --
2003-03-13 16:56 Ed Vance
2003-03-13 17:46 ` Richard B. Johnson
2003-03-15 19:46 ` Pavel Machek
2003-03-16 19:57 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).