Skip to main content
aru
Associate II
February 20, 2013
Question

Ethernet Communication

Posted on February 20, 2013 at 06:33

I am using STM32F107RB for Ethernet Communication. If i am using only one STM32F107RB module there is no problem but when i connect two modules to two different systems via modscan32, one of the module responds properly and the other module does not responds, and after some time the other modules responds properly but the first module hangs up. This process continuous every time...

The corresponding code has been attached, please go through it and let me know where this problem can be tackled......

Thanks in advance........

#time-waster #cross-post #do-it-right
    This topic has been closed for replies.

    15 replies

    chethurocks
    Associate II
    March 1, 2013
    Posted on March 01, 2013 at 11:02

    Thanks a lot it worked when i enabled DHCP.... 

    Well if two modules have the same mac address then at a time a single module will be responding i.e if A is responding then B will be idle and B starts responds A will be idle....

    Tesla DeLorean
    Guru
    March 1, 2013
    Posted on March 01, 2013 at 13:33

    You're supposed to purchase unique MAC addresses for each device. Doing it some other half-assed way pollutes the whole ecosystem.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Andrew Neil
    Super User
    March 1, 2013
    Posted on March 01, 2013 at 15:35

    ''Well if two modules have the same mac address then at a time a single module will be responding''

    And how will you control which one responds?!

    As clive1 says, this is a fundamentally flawed idea and will only lead to trouble...

    http://en.wikipedia.org/wiki/MAC_address

    Note the ''Lecture'' in the preamble to this page

    http://www.jmarshall.com/easy/http/

    ''Writing ... network programs requires more care than programming for a single machine. Of course, you have to follow standards, or no one will understand you. But even more important is the burden you place on other machines. Write a bad program for your own machine, and you waste your own resources (CPU time, bandwidth, memory). Write a bad network program, and you waste other people's resources. Write a really bad network program, and you waste many thousands of people's resources at the same time. Sloppy and malicious network programming forces network standards to be modified, made safer but less efficient. So be careful, respectful, and cooperative, for everyone's sake.''

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    Associate II
    May 10, 2024

    Hi aru,

    I am working on same MCU for ethernet, but its not working. I want to know which firmware package should be used.

    Could you please share the firmware package version used?

     

    Regards,

    NaveenK

    Tesla DeLorean
    Guru
    May 10, 2024

    You're asking on an 11-year old thread, don't do that.

    Stick with this one

    https://community.st.com/t5/stm32-mcus-other-solutions/ethernet-is-not-working-on-stm32f107rb/td-p/672492

    Aren't there Ethernet examples for the STM3210C-EVAL board. There was a Golden Dragon board using the F107

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..