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.

TCP/IP and PPP for Controller.....

Status
Not open for further replies.

imarshad

Newbie level 3
Joined
Jul 4, 2007
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,315
atmega ppp

Hi all!
I am doing a project with Atmel AVR and Wavecom GPRS modems. Unfortunately the GPRS modem I am using, doesnot have a TCP/IP stack or PPP. So I need to build/use my own stack. The controller I am using is ATMega162.

Now I thoroughly searched the internet for open source TCP/IP stacks for controllers.... Here is my research...
1) The best one that I found was Ethernut... It has a TCP/IP stack plus a PPP stack and fulfills all the requirements.... Unfortunately it requires ATMega128 or higher. I am not in a position to change my hardware design to incorporate the 64 pin ATMega128 in my design...
2) UIP from https://www.sics.se/~adam/uip/...
It has a TCP/IP stack and can be ported for ATMega162... In fact it has already been done https://www.laskater.com/projects/uipAVR.htm
The problem here is that it doesnot have a PPP stack in it.... So I am stuck again....

What other options am I left with?
Is there any PPP stack that be used with uipAVR?
Any other free PPP stack for low RAM microcontrollers?
Any other free/open source TCP/IP stack with PPP for my microcontroller?
Please help me in this regard....
 

imarshad

Newbie level 3
Joined
Jul 4, 2007
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,315
lwip atmega128

Unfortunately it doesnot have the PPP stack.... Anyways it was a very good reference and I will try to use many libraries from this resource.... But my quest for PPP stack continues...
 

imarshad

Newbie level 3
Joined
Jul 4, 2007
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,315
atmega tcp/ip stack for gprs

From lwip website
The focus of the lwIP TCP/IP implementation is to reduce the RAM usage while still having a full scale TCP. This makes lwIP suitable for use in embedded systems with tens of kilobytes of free RAM and room for around 40 kilobytes of code ROM.
Although it has all what I need but again it requires more RAM/ROM then what ATMega 162 has.... If I am going to change my Controller then definitely I will go for Ethernut....
Thanks for the link anyways....
 

artem

Advanced Member level 4
Joined
May 22, 2003
Messages
1,350
Helped
126
Reputation
252
Reaction score
32
Trophy points
1,328
Location
Turkey
Activity points
13,461
ppp lwip

Get the code for tcp lean book as it uses the PIC with less ram i guess.

Regarding code quality it could be not the complete tcp stack implementation as there is trade between code size and implemented functionality. Also for small RAM implementation there could be problem with high speed due to limited buffer for message processing.
I would not use 16 KB flash chip for ppp and the rest stuff unless i am not forced to do that .

Added after 1 minutes:

imarshad said:
From lwip website
The focus of the lwIP TCP/IP implementation is to reduce the RAM usage while still having a full scale TCP. This makes lwIP suitable for use in embedded systems with tens of kilobytes of free RAM and room for around 40 kilobytes of code ROM.
If I am going to change my Controller then definitely I will go for Ethernut....

Ethernet as far as i know does not need ppp.
 

Slammer

Member level 3
Joined
Aug 3, 2001
Messages
56
Helped
5
Reputation
10
Reaction score
0
Trophy points
1,286
Location
Ios Island
Activity points
330
free ppp stack embedded arm7

Try a small linux board (usually arm based), tcp/ip and ppp are ready (and tested) in linux.
 

simone_pegoraro

Newbie level 3
Joined
Jul 7, 2007
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,313
lwip avr gprs

Wavecom GPRS modems have it's own stack implemented inside: you can access using APIs or socket (just like socket programming on PC). I think this is the best solution, because I have implemented my own TCP/IP stack on board accessing the Wavecom modem (GR64) and I got crazy: the modem was buggy on GPRS transparent data transmission. But (later!!!!) I realize that the embedded stack works really properly.
Hope this could be a precious advice
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top