Having 8051 connected to home router through Ethernet - Where to start from

Discussion in 'Embedded Systems and Microcontrollers' started by alphacat, Feb 28, 2010.

  1. alphacat

    Thread Starter Active Member

    Jun 6, 2009
    186
    0
    Hello.

    I'd like to start basically from zero to learn how to have an 8051 Uc to communicate with home Router through an Ethernet cable.

    Where shall I start from?

    Since its very new to me, i'd like to receive your guidance at this first stage.

    Thanks a lot.
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
  3. alphacat

    Thread Starter Active Member

    Jun 6, 2009
    186
    0
    Thanks fellow.

    I understand that I need to purchase an ethernet module.
    The Ethernet module will communicate with the 8051 Uc through SPI.

    How will the Ethernet module communicate with the Router?
    Will it come with a software built in, and all I'll need to do is having the Uc to use this software's API in order to communicate with the Router?
     
  4. n9352527

    AAC Fanatic!

    Oct 14, 2005
    1,198
    4
    The ethernet module communicate with the router using, of course, ethernet protocol. TCP/IP. Depending on the router, you need the module to support either static IP address configuration, if the router does not have a DHCP server. Or a dynamic IP address configuration (DHCP), if the router supports DHCP protocol.

    Then you just need to connect the router to the internet or intranet and send the data to the address of your choice. The module will have a manual on how to send/receive data through TCP/IP and on how to configure and establish TCP/IP connection.
     
  5. alphacat

    Thread Starter Active Member

    Jun 6, 2009
    186
    0
    Thanks.

    I read the TCP IP article that beenthere mentioned here.
    It was pretty much theoretical.
    I'm looking for how to really learn to communicate with a Router, since i'm going to purchase an Ehternet module and integrate it with my 8051 Uc.

    Could you please direct me to such manual or even a code so I could really experience it?

    Thanks again.
     
  6. blueroomelectronics

    AAC Fanatic!

    Jul 22, 2007
    1,758
    98
    Get an XPORT, easiest way to connect Ethernet to a microcontroller.
     
  7. alphacat

    Thread Starter Active Member

    Jun 6, 2009
    186
    0
    Thanks i'll be reading on that.

    Could you still refer me to some API or code that are used to communicate with Router?
    Seeing the functions would help me understanding the concept better.
     
  8. n9352527

    AAC Fanatic!

    Oct 14, 2005
    1,198
    4
    Alphacat, there are no standard API or functions. All the communication is done through TCP/IP. Now, get your ethernet module, read the manual and find how to set up the TCP/IP connection and send data through TCP/IP using that module. Each different module will have it's own implementation on how to do this.
     
  9. alphacat

    Thread Starter Active Member

    Jun 6, 2009
    186
    0
    I see.

    The thing is that I need to pass my knowledge about how to communicate with router to the one in charge here before we purchase one.

    As you can understand, its very abstract to me at this stage.
    Could you refer me to some manual please so i'll read it and see how it works?


    Thank you.
     
  10. blueroomelectronics

    AAC Fanatic!

    Jul 22, 2007
    1,758
    98
    Good time to read up on TCP/IP.
     
  11. alphacat

    Thread Starter Active Member

    Jun 6, 2009
    186
    0
    Hey.
    I read the article on TCP/IP that beenthere refered me to.
    It was very theoretical, and it still remains abstract to me.

    Perhaps you could refer me to something more practical to read?
     
  12. alphacat

    Thread Starter Active Member

    Jun 6, 2009
    186
    0
    Anyone please?
     
  13. alphacat

    Thread Starter Active Member

    Jun 6, 2009
    186
    0
    help please :(
     
  14. bertus

    Administrator

    Apr 5, 2008
    15,645
    2,344
Loading...