Skip to main content
Visitor II
January 21, 2008
Question

Getting data sent from ethernet

  • January 21, 2008
  • 6 replies
  • 1360 views
Posted on January 21, 2008 at 15:12

Getting data sent from ethernet

    This topic has been closed for replies.

    6 replies

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:49

    For the str9 comstick, does anyone know how to get the data that is sent to the ethernet port.

    It is to read from Pin 0.2 to 0.5 which is the MII_RXD0,

    PHY Rx data?

    Thank you for any replies.

    Lazycat.

    [ This message was edited by: lazycat1049 on 09-01-2008 10:39 ]

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:49

    Hi Lazycat

    The RXD lines of the MII interface are used by the Ethernet controller to receive the data from the external PHY device. The MII interface must be configured to operate in this mode and the interneal Ethernet controller must be configured to automatically receive the data and save it to internal RAM. To do this its buffer descriptors must be correctly programmed.

    The SW doesn't use the MII data interface except for the serial lines to configure the PHY and read its status.

    Regards

    Mark

    www.uTasker.com

    http://www.uTasker.com

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:49

    Hi Mjbc,

    Thanx for ur help!! So i get the data from the address in the buffer descriptor rite ?

    Thanx alot

    Regards

    lazycat

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:49

    Hi

    Yes, this is correct, but it is up to you to first configure the Ethernet controller to correctly use the buffer descriptors.

    Regards

    Mark

    PS. Check out the following page for some demo code for the STR91 - with FTP, Web Server, HTTP etc. There is one for the ST STR91 dongle, which may run also on the COM stick(?). There is also a demo inline at

    http://84.75.9.2

    For more details visit

    http://www.uTasker.com

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:49

    Hi mjbc,

    Thanks alot

    Regards,

    Lazycat

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:49

    Hi ,

    i am using a winsock application to send a short data like ''cc'' to the uip web server. But i cannot find the data in the buffer. it only acknowlege the connection. Could i know what may be the problem?

    Thanks

    lazycat