All of lore.kernel.org
 help / color / mirror / Atom feed
* 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

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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.