Networking Forums

Networking Forums > Computer Networking > Linux Networking > How can I Network using a microcontroller

Reply
Thread Tools Display Modes

How can I Network using a microcontroller

 
 
Omid Ghayour
Guest
Posts: n/a

 
      01-29-2004, 11:50 AM
I have a microcontroller and I want to make a connection with a lan
card (a pc on a lan) using TCP/IP. I think to use the lan card IC to
control the protocol, but I need to write a driver for it on my
hardware. Can anybody help me to write the driver. I am experinced
(almost) on 8051 microcontroller.

Thanks,
Omid.
 
Reply With Quote
 
 
 
 
Fernando Gont
Guest
Posts: n/a

 
      01-29-2004, 04:40 PM
On 29 Jan 2004 04:50:40 -0800, (E-Mail Removed) (Omid Ghayour)
wrote:

[Follow-up's set to: comp.protocols.tcp-ip,comp.arch.embedded]

>I have a microcontroller and I want to make a connection with a lan
>card (a pc on a lan) using TCP/IP. I think to use the lan card IC to
>control the protocol, but I need to write a driver for it on my
>hardware. Can anybody help me to write the driver. I am experinced
>(almost) on 8051 microcontroller.


Not only will you need to write the packet driver, but you'll have to
write the TCP/IP stack, too.

If you ask for "help to write the driver", then you probably need to
hire a programmer. If you have *specific* questions, ask post them to
the newsgroups.

--
Fernando Gont
e-mail: (E-Mail Removed)

[To send a personal reply, please remove the ANTISPAM tag]
 
Reply With Quote
 
Bob Stephens
Guest
Posts: n/a

 
      01-29-2004, 04:49 PM
On 29 Jan 2004 04:50:40 -0800, Omid Ghayour wrote:

> I have a microcontroller and I want to make a connection with a lan
> card (a pc on a lan) using TCP/IP. I think to use the lan card IC to
> control the protocol, but I need to write a driver for it on my
> hardware. Can anybody help me to write the driver. I am experinced
> (almost) on 8051 microcontroller.
>
> Thanks,
> Omid.


Rabbit makes an 8051 development board complete with 10 base-t ethernet and
includes a TCPIP stack with source - I think.

Check out Digikey
 
Reply With Quote
 
Robert Wessel
Guest
Posts: n/a

 
      01-29-2004, 09:36 PM
(E-Mail Removed) (Omid Ghayour) wrote in message news:<(E-Mail Removed). com>...
> I have a microcontroller and I want to make a connection with a lan
> card (a pc on a lan) using TCP/IP. I think to use the lan card IC to
> control the protocol, but I need to write a driver for it on my
> hardware. Can anybody help me to write the driver. I am experinced
> (almost) on 8051 microcontroller.



Get the book "TCP/IP Lean, 2nd Ed", by Jeremy Bentham, CMP Books.
Nice discussion of how to implement a really small TCP/IP stack. He
doesn't provide an 8051 implementation, but his C code will work on a
PIC.
 
Reply With Quote
 
Dan
Guest
Posts: n/a

 
      01-30-2004, 01:25 AM
On 29 Jan 2004 04:50:40 -0800, (E-Mail Removed) (Omid Ghayour)
wrote:

>I have a microcontroller and I want to make a connection with a lan
>card (a pc on a lan) using TCP/IP.


You'll need a tcp-ip stack. You might consider using embedded Linux
or uCLinux.

You can also have a look at
http://www.dunkels.com/adam/uip/


Dan

 
Reply With Quote
 
Mike V.
Guest
Posts: n/a

 
      01-30-2004, 02:49 AM
(E-Mail Removed) (Robert Wessel) wrote in message news:<(E-Mail Removed) om>...
> (E-Mail Removed) (Omid Ghayour) wrote in message news:<(E-Mail Removed). com>...
> > I have a microcontroller and I want to make a connection with a lan
> > card (a pc on a lan) using TCP/IP. I think to use the lan card IC to
> > control the protocol, but I need to write a driver for it on my
> > hardware. Can anybody help me to write the driver. I am experinced
> > (almost) on 8051 microcontroller.

>
>
> Get the book "TCP/IP Lean, 2nd Ed", by Jeremy Bentham, CMP Books.
> Nice discussion of how to implement a really small TCP/IP stack. He
> doesn't provide an 8051 implementation, but his C code will work on a
> PIC.



The PICDEM.net demo board from Microchip and TCP/IP Lean go hand in
hand. There is a also an Atmel solution that my former colleague did.
If i had to implement it, i'd probably purchase a picdem.net board and
try to reuse the code.
 
Reply With Quote
 
Marko
Guest
Posts: n/a

 
      01-30-2004, 05:34 PM

> You'll need a tcp-ip stack. You might consider using embedded Linux
> or uCLinux.>


or eCos.


 
Reply With Quote
 
Mike V.
Guest
Posts: n/a

 
      01-30-2004, 07:53 PM
(E-Mail Removed) (Omid Ghayour) wrote in message news:<(E-Mail Removed). com>...
> I have a microcontroller and I want to make a connection with a lan
> card (a pc on a lan) using TCP/IP. I think to use the lan card IC to
> control the protocol, but I need to write a driver for it on my
> hardware. Can anybody help me to write the driver. I am experinced
> (almost) on 8051 microcontroller.
>
> Thanks,
> Omid.


I found a one-chip solution that looks like an exact fit for what you
want. Look at www.maxim-ic.com

The DSC80C400 is an 8051-based microcontroller that has a MAC
peripheral built in the chip. It also comes with the TINI TCP/IP stack
in ROM. I don't know how to use it though, but for an 8bit chip, this
is something i'm definitely going to be looking into now.

-Mike
 
Reply With Quote
 
Albert Lee Mitchell
Guest
Posts: n/a

 
      01-31-2004, 01:26 AM
On Fri, 30 Jan 2004 02:25:21 +0000, Dan wrote:

> On 29 Jan 2004 04:50:40 -0800, (E-Mail Removed) (Omid Ghayour)
> wrote:
>
>>I have a microcontroller and I want to make a connection with a lan
>>card (a pc on a lan) using TCP/IP.

>
> You'll need a tcp-ip stack. You might consider using embedded Linux
> or uCLinux.
> -------snip----------


Normally, yes, you would have to but recent components like the W3100A do
much of the toil in h/w. An 8051 is severly underpowered, and
under-RAM'ed, to handle even low speed ethernet let alone multiple sockets.

-- Regards, Albert
----------------------------------------------------------------------
AM Research, Inc. The Embedded Systems Experts
http://www.amresearch.com 916.780.7623
----------------------------------------------------------------------

 
Reply With Quote
 
Richard
Guest
Posts: n/a

 
      01-31-2004, 02:31 AM
Omid Ghayour wrote:
> I have a microcontroller and I want to make a
> connection with a lan card (a pc on a lan) using
> TCP/IP. I think to use the lan card IC to control
> the protocol, but I need to write a driver for it
> on my hardware. Can anybody help me to write the
> driver.


This can be a very big effort, especially the TCP stack.

See http://www.edtp.com for cheap LAN prototyping cards and C code.

Google on 8051 and one of these controllers: NE2000, RTL8019AS, CS8900A,
91C111, AX88796, DM9000

Best, look at one of these turnkey solutions that translate a serial
interface to TCP:
http://www.lantronix.com/products/eds/xport/index.html
http://www.digi.com/products/embedde...iconnectme.jsp
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
best wireless architecture for microcontroller application Dr. Honeydew Wireless Internet 5 01-26-2007 11:18 PM
"What time is it?" aksed the microcontroller Linux Networking 13 06-02-2004 02:02 AM



1 2 3 4 5 6 7 8 9 10 11