Interface And Application Programming

Networking and communications

For this week I use the Neal card.....

In this week's assignment, we are going to design, build, and connect wired or wireless nodes that communicate with each other over a network (addresses). The purpose is to know how to integrate components in a network and how to make them interact with each other through the network. Earlier we designed a board that reads the value from a distance sensor and displays it on a screen.

This week we decided to add more wireless components and exchange the information via WiFi.

This task was very difficult and frustrating for me, at first I designed and designed... Then I tried to read the example of the program, in this case my slaves worked fine, but the programmer did not allow me to compile because it was too heavy.

Networking Strategy

My goal was to establish a wireless link between two nodes using ESP8266 WiFi modules. I implemented a UDP protocol for fast, connectionless data transfer. Key technical steps included:

  • IP Addressing: Assigned static IPs to both the "Sensor Node" (Server) and the "Display Node" (Client) to ensure reliable discovery.
  • Communication: The sensor node reads data from an ultrasonic sensor and broadcasts the distance value over the local network.
  • Security: Configured the modules using WPA2 encryption to secure the local network access point.

I also explored SoftAP mode, where one ESP8266 acts as a mini router, allowing other nodes to connect directly without an external WiFi router.

Weekly documentation

Orange and Violet Simple Startup Business Animated Presentation de Cindy Marilyn

References