How to communicate between two embedded devices via Ethernet?

I am not an expert on this issue, you need your suggestions. I have several devices on ethernet / LAN. I wanted these devices to communicate over the local network without going into their network configurations. Below is my plan, please let me know if this can be achieved:

1) I install the TCP / IP stack on these devices

2) I give them their host names, such as device1, device 2, etc.

3) I configure these devices for the local network so that they can configure themselves and receive their IP addresses.

4) I use socket programming and access to each device using host names.

Please let me know if this can be done without much hassle, and let me know if I missed something in the above points. Thanks in advance.

+3
source share
1 answer

This is basically a good approach.

IPv6, IPv4. IPv6. IPv4 , DHCP , , . DHCP , , DHCP . , DHCP . DHCP-, DHCP, , , DHCP-, - . , IPv6, , IP- ( autoconf DHCPv6) .

, dns-sd (mDNS, zeroconf) . Linux, avahi dns-sd.

, , , dns-sd. , tpe dns-sd.

+2

All Articles