HI,
I need help regarding Ethernet communication. I am using stm32f107 arm microcontroller for ethernet communication.the commincation between pc to single microcontroller works fine.When multiple microcontrollers are connected to single pc occurs problem.
How to overcome this isuue.Please help.thank you
Obviously, you first need to work out what the actual issue (or issues) is (or are)
As you have not given any information at all about how you're connecting all your nodes, nor your network environment, nor what "problems" you're seeing - it is impossible for anyone to help you.
Your post as just like saying, "My car doesn't work - what's wrong with it?" - when we have no further information to go on!
So it's time for you to get debugging:
www.8052.com/.../120313
www.ganssle.com/.../developingagoodbedsidemanner.htm
Wild guess (to match your wild description).
Do the two boards have different IP addresses and MAC identities?
Hi,
The communication between single microcontroller and pc is works fine through ethernet tcp/ip . problem occurs only when i connect two microcontroller to a single pc via ethenet cable,Here d-link 5-port 10/100 desktop (www.etcuae.com/d-link-des1005a-5-port-10-100-switch-fast-ethernet.html) is used for multiple connection.when connection made for multiple microcontroller ,the communication doesn't work properly.Either one connection will be in active condition other will be inactive.
I need solution to overcome this issue.My requirment is from pc it sends query to microcontroller-1 after receiving response from microcontroller-1 .It has to send next query to Microcontroller-2.Process should be repeat.
I gave different ip address for microcontroller. I have two microcontroller boars ie stm32f107 arm microcontrollers.
1.First controller having ip address for one microcontroller to 192.168.1.252, port number 23 and modbus communication slave id 1.
2.Second microcontroller having an ip address 192.168.1.251, port number 22 and modbus communication slave id 2.
Pc ip address 192.168.1.154.
Is it possible? If yes please please guide me. Please anyone reply as soon as possible......
Thanking You....
Are MAC addresses also different? If not, you have a collision on the network.
Again, that tells us nothing!
It's like saying, "my car's not working properly; what's wrong with it?"
It's your project; you have the code and the hardware in front of you - nobody else does. So you are going to have to debug it
Start by examining what happens when it does work.
Then look at what happens when it fails - see where it goes wrong; how does it differ from the "working" case?
Think what that tells you ...
Use tools like Wireshark to see what's happening on the links ...
https://www.wireshark.org/
Debugging is a key skill in any form of development! Those links again:
"Is it possible?"
Of course it is - the internet relies upon it!
Thanks to everyone...
Resolved issue by assigning unique Mac address to two microcontroller.
Thank you....