Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Implementing PPP connection on 8051

Status
Not open for further replies.

mcs51

Newbie level 6
Joined
Jan 27, 2004
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
164
I would like to know if someone is interested in implementing a PPP connection frm a 8051 based controller preferably 89c51. We could perhaps collect materials and start building one rite frm scratch .

I know that someone would have already done it but i would like to try it too.
I hava a strong base in 8051 progamming in ASM/C
I have also worked on RTX51 to some extent. so i wanted to give this a try.
Atleast someone can tell where we can get details about this ...
 

mcs51

Newbie level 6
Joined
Jan 27, 2004
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
164
ppp source for microcontroller

TX pisoiu,
I know i have to do a lot of RFC reading , but this is to be put inside a 4k chip so can u tell me wat specific RFCs are to be studied and which can be left or compramised.
Thank You .
 

pisoiu

Advanced Member level 3
Joined
Dec 31, 2002
Messages
750
Helped
43
Reputation
86
Reaction score
17
Trophy points
1,298
Location
Romania
Activity points
7,883
8051 ppp

Hi,
I do not know exactly the rfc numbers, and unfortunetely not enough time to search, but here are some hints: for implementing the physical layer and low communication layers look for rfcs concerning LCP protocol. The next layer in which you should be concerned is authentication protocol, look for rfcs about PAP or CHAP. There are many auth. protocols, but the others are more complex and not suitable for implementing in a 8bit environment. Further (assuming you want to do IP communications), search for IPCP protocol. Generally, in each rfc, there are some details about other rfcs on the same subject, ant this will narrow your search. I hope it helps.
Best,
pisoiu
 

mcs51

Newbie level 6
Joined
Jan 27, 2004
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
164
c51 ppp tcp/ip

tx man,
i m currently surfing thru uip. looks like he has already done it. Well i also want some inside details of the hardware to be used. Does it require just a modem or do i have to interface the 8051 to some other ethernet hardware . Are there any limitations with the PPP protocol wen we port it to the 8051. Besides we can go upto 64k of code if at all needed (89c51RD2) . I would also like to know whether SLIP is also like PPP. I had seen embedded webservers made of 16f84 using SLIP. Is it the same ??
 

C-Man

Advanced Member level 4
Joined
Jul 19, 2001
Messages
1,059
Helped
90
Reputation
180
Reaction score
17
Trophy points
1,318
Activity points
10,189
ppp source code download

I am no expert at this but SLIP and PPP are two different things.

When using PPP the 8051 has to to everything alone while SLIP uses a serial port to communicate with a PC who does all the work ...

If you use PPP over serial you do not need ethernet hardware just a modem connected to your processor and the PPP software running inside your 8051.

Try connecting Adam Dunkels via E-Mail he is a really nice guy and I am sure he will be able to help you.

best regards
 

mcs51

Newbie level 6
Joined
Jan 27, 2004
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
164
ppp microcontroller

Tx C-Man,
Are u sure that i wont need to interface to an ethernet card. Well may that i think would be a diferent task all together. Is there any simple ebook regarding PPP for embedded systems. Ok if i have to use a modem, should it be a Haynes compatible modem or can it be a custom made FSK modem running at 1200bps.

Thank you
 

C-Man

Advanced Member level 4
Joined
Jul 19, 2001
Messages
1,059
Helped
90
Reputation
180
Reaction score
17
Trophy points
1,318
Activity points
10,189
8051 pppoe c program

mcs51 said:
Tx C-Man,
Are u sure that i wont need to interface to an ethernet card. Well may that i think would be a diferent task all together. Is there any simple ebook regarding PPP for embedded systems. Ok if i have to use a modem, should it be a Haynes compatible modem or can it be a custom made FSK modem running at 1200bps.

Thank you

If you want to do PPP over modem you do not need an ethernet card.

I do not know a simple ebook about PPP.

A Hayes modem should be OK, if speed is not a problem for you and if the system you are connecting supports 1200 baud a custom made FSK modem might also be OK.

If you are willing to use an already existing hardware/software combination check out:
https://www.ethernut.de/en/index.html

It uses an Atmel AVR and should be able to do what you are planning ...

best regards
 

mcs51

Newbie level 6
Joined
Jan 27, 2004
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
164
8051 ppp source example

thanx for the info buddy,
but my main aim in doing this project is to "start frm the scratch". So i have started reading abt the PPP protocol. It looks a bit complicated so i m reading it at my own pace. So what language do i code it in C or ASM ?
 

pisoiu

Advanced Member level 3
Joined
Dec 31, 2002
Messages
750
Helped
43
Reputation
86
Reaction score
17
Trophy points
1,298
Location
Romania
Activity points
7,883
lwip 8051

Hi mcs51,
Take a look at this example, it is ppp/http implementation in ubicom microcontroller. It is not 51 code, but you can see how it works, it might be easier if you read the atached pdf's.
 

mcs51

Newbie level 6
Joined
Jan 27, 2004
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
164
8051 lwip

ubicon deals with the senix controllers i suppose. Is it similar to 8051 . I dont know much abt SX .Can u tell me more about it
 

pisoiu

Advanced Member level 3
Joined
Dec 31, 2002
Messages
750
Helped
43
Reputation
86
Reaction score
17
Trophy points
1,298
Location
Romania
Activity points
7,883
ppp-protocol source-code

mcs, scenix uc are not really like 51, because the architecture on scenix is risc, and at 51 is cisc. Scenix is more like pic. Its main advantage is speed : 50mips on older version and 75 mips on newer. It execute most instructions in 1 clock. its major drawbaks are for example imposibility to add external program memory (internal flash=4kx12bits), and lack of peripherals. It has only 2 timers, everything else you need to write in asm (serial, irda, spi, i2c, etc.). most of peripherals (which ubicom call Virtual Peripheral) are available on the net (including ppp - the posted file is their original relase, ethernet, modems, irda, many others) but as I sad, it is damn fast and not very expensive. Another interesting feature is that you can make in circuit debugging (with the appropriate tools - SX Key from Paralax), and with this it is very easy to see what really happens in your system and make it work.

Best,
 

Boardstiff

Member level 1
Joined
Aug 25, 2001
Messages
34
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
204
ppp for microcontroller

there's available a ppp,tcp,udp & icmp source code available for
the zilog z8 & atmel atmega128 on https://www.avrfreaks.com
academy project 119

works on windows ppp , atmodem's & best of all GPRS cellular tested on Vodafone & Orange networks
 

mcs51

Newbie level 6
Joined
Jan 27, 2004
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
164
uip 8051

thanx for the info pisoiu,
looks like senix is the real controller to do such jobs . Well is it at all posible to do it in 8051.
 

undefined

Newbie level 2
Joined
Dec 28, 2003
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
16
w3100 8051

If you need server implementation, its very easy. I release server on msp430, PIC16.
But real client implementation (to connect with provider) is much more difficulty.
 

pisoiu

Advanced Member level 3
Joined
Dec 31, 2002
Messages
750
Helped
43
Reputation
86
Reaction score
17
Trophy points
1,298
Location
Romania
Activity points
7,883
microcontroller ppp

Undefined, as far as I know, ppp is a symetrical protocol, that means there is no server or client. There are only two peers which act in the same manner. Both peers are mainly identical, and either one can initiate the link. Of course, some differences may exist between those peers (maximum speed, supported protocols, etc) and those differences are the subject of negotiation in the LCP phase of ppp protocol. Please nothe that I am reffering strictly to ppp protocol, not to eventually upper layers (ipcp and then maybe http or ftp), where of course, you can talk about client and server.
Best,
pisoiu
 

Topper

Junior Member level 3
Joined
Jan 31, 2002
Messages
25
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Location
Denmark
Activity points
152
ppp 8051

I'm working on a webserver based on a 89c51RD2 and W3100 from Wiznet (https://www.wiznet.co.kr/e_iinchip/index_e.htm)
The W3100 module will handle all tcp/ip udp protocol stack which gives the poor 89c51 a chance to cope with other things like http and so. I have also seen this done with a CS8900 chip at circuit cellar i think it was Jim Brady hwo did this (try a serch).
I know this post isn't about ppp but I hope you can use it any way.

Topper :)
 

pisoiu

Advanced Member level 3
Joined
Dec 31, 2002
Messages
750
Helped
43
Reputation
86
Reaction score
17
Trophy points
1,298
Location
Romania
Activity points
7,883
8051 tcp/ip ppp

Topper, it was done with cs8900, but unfortunately cs8900 does not have internal sram, so the cpu will need external sram, capacity more than twice of max. eth packet (~3kbytes). A better option is rtl8019as which has 16k of internal sram. You can find rtl8019 on old isa ethernet boards for testing.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top