cancel
Showing results for 
Search instead for 
Did you mean: 

Ethernet Communication

aru
Associate II
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
15 REPLIES 15
frankmeyer9
Associate II
Posted on February 26, 2013 at 15:41

Yes.

It's called DHCP (dynamic host configuration protocol).

You should find plenty of documentation in the internet.

And, by the way: DHCP server generally use MAC addresses to discern it's clients. What happens if two devices in the LAN have the same MAC address ... ?

chethurocks
Associate II
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....

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
Up vote any posts that you find helpful, it shows what's working..
Andrew Neil
Evangelist III
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.''

NaveenK
Associate II

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

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
Up vote any posts that you find helpful, it shows what's working..