| Author |
Message |
imarshad
Joined: 04 Jul 2007 Posts: 4
|
04 Jul 2007 9:36 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 http://www.sics.se/~adam/uip/...
It has a TCP/IP stack and can be ported for ATMega162... In fact it has already been done http://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....
|
|
| Back to top |
|
 |
ezshereef
Joined: 05 Jan 2006 Posts: 26 Helped: 3
|
05 Jul 2007 11:29 lwip gprs |
|
|
|
|
check this out it might help
http://www.mil.ufl.edu/~chrisarnold/components/microcontrollerBoard/AVR/avrlib/
these are the supported Network Protocols
ARP
ICMP
IP
UDP
DHCP
shereef
|
|
| Back to top |
|
 |
imarshad
Joined: 04 Jul 2007 Posts: 4
|
05 Jul 2007 12:19 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...
|
|
| Back to top |
|
 |
artem
Joined: 22 May 2003 Posts: 1652 Helped: 91 Location: Turan
|
05 Jul 2007 12:36 tcp ip atmega |
|
|
|
|
lwip and search forum for tcp ip lean book and source code
http://download.savannah.nongnu.org/releases/lwip/lwip-1.2.0.zip
|
|
| Back to top |
|
 |
Google AdSense

|
05 Jul 2007 12:36 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
imarshad
Joined: 04 Jul 2007 Posts: 4
|
05 Jul 2007 13:31 atmega tcp/ip stack for gprs |
|
|
|
|
From lwip website
| Quote: |
| 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....
|
|
| Back to top |
|
 |
artem
Joined: 22 May 2003 Posts: 1652 Helped: 91 Location: Turan
|
05 Jul 2007 13:43 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 wrote: |
From lwip website
| Quote: |
| 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.
|
|
| Back to top |
|
 |
Slammer
Joined: 03 Aug 2001 Posts: 43 Helped: 5 Location: Ios Island
|
05 Jul 2007 14:10 free ppp stack embedded arm7 |
|
|
|
|
| Try a small linux board (usually arm based), tcp/ip and ppp are ready (and tested) in linux.
|
|
| Back to top |
|
 |
simone_pegoraro
Joined: 07 Jul 2007 Posts: 5
|
07 Jul 2007 14:14 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
|
|
| Back to top |
|
 |