Skip to contentSkip to conversation

RS485 communication

DISCUSSION Cigol C 2 participants 2 messages Mar 24, 2003 – Mar 25, 2003 TTY layer and serial drivers

lore
Share & tools
lore

Cigol C

author
#0 lore raw

Hi all,
Regarding RS485 communication I thank all of them for their responses. I finally decided to write a custom Layer 2 char driver or protocol to pave way for my IP over RS485 communication. I will like to get some inputs/docs/references on linux-ppp implementation. ISo am in the process of browsing the PPP code and exploring the interface it has with the serial driver which is crucial for me. Regarding this I request for more clarity on following:
i) Linux PPP interface with IP: Registration, Packet send/receive/close
ii) Linux PPP interface with serial driver:Registration, Packet send/receive/close
iii) Linux PPP server configuration and initial sequence of working. i.e. associating a IP address with serial device and ppp0

I will be grateful if somebody could help me on this. Thanks and Best Regards
Karthik

Signature · 5 lines
______________________________________________
http://www.indiainfo.com
Now with POP3/SMTP access for only US$14.95/yr

Powered by Outblaze
#1 lore raw
Quoted 2 lines · Cigol C

i) Linux PPP interface with IP: Registration, Packet send/receive/close ii) Linux PPP interface with serial driver:Registration, Packet send/receive/close

See Documentation/networking/ppp_generic.txt in any recent linux kernel source tree.

Quoted 1 line

iii) Linux PPP server configuration and initial sequence of working. i.e. associating a IP address with serial device and ppp0

You will need a plugin for pppd that provides a new channel type. See the rp-pppoe plugin for an example of how this is done.

However, given that rs485 is multidrop, I really don't think PPP is the best protocol to use.