LAN Tester

ESP32-Based LAN Tester: A Rapid Network Diagnosis Tool

Introduction

In modern IT environments, quick and efficient testing of LAN cables and network connectivity is essential. Traditional methods often involve bulky tools or require connecting laptops, which can be cumbersome in large-scale switch testing scenarios. To address this, I developed the LAN Tester, a portable, ESP32 microcontroller-based tool that instantly displays essential network diagnostics like IP address, subnet, and gateway information when an RJ45 cable is plugged in. This project aims to simplify switch and VLAN testing while offering future expandability, such as WiFi spectrum analysis.

Core Features

  1. Instant DHCP Connectivity
    • Upon connecting an RJ45 cable, the LAN Tester immediately retrieves and displays the IP address, subnet, and gateway information via DHCP.
    • If the cable is disconnected, the device instantly detects it and updates the screen to indicate the cable is unplugged.
    • Reconnecting the cable triggers DHCP again, ensuring seamless testing.
  2. Switch and VLAN Testing
    • The device is designed for mass testing of network switches where connecting a full-fledged computer is impractical.
    • It allows checking VLAN assignments and general connectivity quality efficiently.
  3. Hardware Foundation The core of this project is based on the following hardware:
    • ESP32-S3 Development Board
    • Equipped with a 1.77-inch LCD display for clear visual feedback.
    • Integrated W5500 Ethernet Module for wired LAN connectivity.
    • WiFi and Bluetooth support for future functionality.
    • Additional modules under development:
    • Rotary Control Button (potentiometer-style joystick) for intuitive device navigation.
    • TP4056 Charging Module and 3.7V 600mAh Lithium Battery for portability.
  4. Logical Design and Development Stages
    • Stage 1: Initial setup to ensure the LCD display functions correctly. Matching the appropriate libraries and GPIO pin configurations took effort due to minimal documentation for the board.
    • Stage 2: W5500 Ethernet module support was implemented, and DHCP functionality was successfully tested.
    • Stage 3: Integration of cable detection logic and event handling to display IP information and recognize cable disconnections.
  5. Future Functionality The LAN Tester is designed to be a flexible, expandable tool with additional planned features:
    • ICMP and UDP/TCP Ping Testing: Add comprehensive network diagnostics to validate connectivity.
    • MicroSD Card Configuration: Store custom configuration profiles on an SD card for easier testing setups.
    • Rotary Control Navigation: A joystick-like rotary button will serve as the main input for menu navigation.
    • WiFi Spectrum Analyzer: Leveraging the ESP32’s WiFi capabilities to analyze wireless spectrum and detect interference.

Development Challenges

While building the LAN Tester, several challenges were encountered:

  • Hardware Documentation: The chosen ESP32-S3 development board lacked sufficient documentation, particularly for LCD and W5500 configuration. Resolving these issues required manual testing of libraries and GPIO settings.
  • Case Prototyping: Initial case design is ongoing, with ergonomics being a top priority. The final product must be comfortable for extended use without causing hand fatigue.
  • Battery and Power Management: Integration of the TP4056 charging module and LiPo battery is in progress to ensure reliable power management.

Current Status and Next Steps

lan_tester_v0.0-poc_pav1

The prototype is functional and capable of displaying IP information instantly via DHCP.

Future iterations will focus on:

  1. Finalizing the ergonomic case design.
  2. Adding rotary control for intuitive menu navigation.
  3. Conducting real-world tests to gather user feedback for improvements.
  4. Implementing additional features like ping testing and WiFi analysis.

Conclusion

The LAN Tester is a compact, versatile tool designed to streamline network switch testing and diagnostics. By combining the power of the ESP32 microcontroller with essential network tools, it eliminates the need for bulky equipment while providing a reliable solution for IT professionals. With planned features like WiFi spectrum analysis and advanced diagnostics, the LAN Tester is set to become an indispensable tool for modern network environments.

This project was built using off-the-shelf components, including the ESP32-S3 Development Board with a 1.77-inch LCD display and W5500 Ethernet support. Future updates will integrate advanced functionalities to further enhance its capabilities.

Created on: January 27, 2025

Last modified: January 27, 2025, 12:38 am