BestParts CH9121

BestParts CH9121 Microcomputer Networking Module Instruction Manual

Model: CH9121

Brand: BestParts

Introduction

The BestParts CH9121 Microcomputer Networking Module is a serial port to Ethernet adapter designed for transparent data transmission between serial devices and a network. It integrates a TCP/IP protocol stack, enabling seamless communication for various applications.

Key Features:

  • Equipped with CH9121 network serial port transparent transmission chip.
  • Supports two-way transparent transmission of network data packets and serial port data.
  • Serial port TTL level compatible with 3.3V and 5V systems.
  • Supports full-duplex and half-duplex serial port communication, including RS485 transceiver automatic switching.
  • Adjustable serial port baud rate from 300bps to 921600bps.
  • Operates on 3.3V/5V power supply.
  • Features 4 working modes: TCP CLIENT, TCP SERVER, UDP CLIENT, and UDP SERVER.

Setup

This section guides you through the physical setup and initial connections of your CH9121 module.

Two BestParts CH9121 Microcomputer Networking Modules with pin headers

Figure 1: Two CH9121 modules and pin headers included in the package.

CH9121 module with dimensions 43mm (1.69 inch) length and 23mm (0.91 inch) width

Figure 2: Physical dimensions of the CH9121 module.

Close-up view of the CH9121 module showing the RJ45 Ethernet port and the CH9121 chip

Figure 3: Detailed view of the RJ45 port and the CH9121 chip on the module.

Pinout diagram for the CH9121 module, showing various pins for power, serial communication, and configuration

Figure 4: Pinout diagram for connecting the module to a microcontroller or other devices.

Connection Steps:

  1. Power Supply: Connect 3.3V or 5V power to the appropriate pins on the module. Ensure correct polarity.
  2. Serial Connection: Connect the module's TXD, RXD, and GND pins to your microcontroller (e.g., STM32 UART) or other serial device. For RS485, ensure the transceiver automatic switching is correctly configured.
  3. Ethernet Connection: Plug a standard RJ45 Ethernet cable into the module's Ethernet port and connect it to your network.
  4. Configuration: Use the provided upper computer software or serial AT commands to set network parameters such as IP address, port, and operating mode.
Diagrams showing MCU connected to the module for UDP Server, TCP Server, and TCP Client modes

Figure 5: Example connection diagrams for different operating modes.

Video 1: This video demonstrates the unboxing and initial connection process for a similar serial-to-Ethernet development board. While not the exact CH9121, it illustrates general setup principles.

Video 2: This video shows another example of connecting a development board to a power source and network. It provides visual guidance for physical connections.

Video 3: This video further illustrates the connection of a similar ESP32-based Ethernet development board, including wiring details.

Operating Modes and Configuration

The CH9121 module supports four primary operating modes, configurable via AT commands or dedicated software.

  • TCP CLIENT Mode: The module actively connects to a TCP SERVER. Once connected, it enables bidirectional transparent transmission of network and serial data. The TCP SERVER's IP must be accessible to the module. This mode supports random local ports and domain name access for remote services.
  • TCP SERVER Mode: The module listens for client connection requests on a specified local port. Upon connection, it facilitates two-way transparent data transmission. The TCP CLIENT's IP must be able to reach the module. Configurable parameters include operating mode, device IP, subnet mask, default gateway, and device port. This mode supports only one TCP client connection.
  • UDP CLIENT Mode: The module sends and receives UDP packets to a specified remote UDP server.
  • UDP SERVER Mode: The module listens for incoming UDP packets on a specified local port.

AT Command Configuration:

The module's parameters can be set using AT commands sent over the serial port. The baud rate for serial communication can be configured from 300bps to 921600bps.

Video 4: This video demonstrates using AT commands to configure a similar serial-to-Ethernet development board. It shows the software interface and command input.

Video 5: Another demonstration of AT command usage for configuration, providing visual context for the process.

Video 6: This video includes further details on configuring a similar module using AT commands, including specific command examples.

Maintenance

To ensure the longevity and optimal performance of your CH9121 module, follow these maintenance guidelines:

  • Keep Clean: Regularly inspect the module for dust or debris. Use a soft, dry brush or compressed air to gently clean the board and connectors.
  • Environmental Conditions: Operate the module within its specified temperature and humidity ranges. Avoid exposure to extreme conditions, moisture, or corrosive substances.
  • Secure Connections: Periodically check all cable connections (power, serial, Ethernet) to ensure they are secure and free from damage. Loose connections can lead to intermittent operation or data loss.
  • Power Supply: Use a stable and appropriate power supply (3.3V/5V) to prevent damage to the module.
  • Firmware Updates: Check the manufacturer's website for any available firmware updates. Updates can improve performance, add features, or fix bugs. Follow update instructions carefully.

Troubleshooting

If you encounter issues with your CH9121 module, refer to the following troubleshooting tips:

  • No Power/LEDs Off:
    • Verify the power supply voltage (3.3V or 5V) and ensure it is correctly connected.
    • Check for any short circuits on the power lines.
  • No Network Connection:
    • Ensure the Ethernet cable is securely plugged into both the module and the network device.
    • Check network settings (IP address, subnet mask, gateway) configured on the module.
    • Confirm that the network device (router/switch) is functioning correctly.
    • If using DHCP, ensure the DHCP server is active and assigning IP addresses.
  • Serial Communication Issues:
    • Verify the serial port connections (TXD, RXD, GND) are correct.
    • Check the baud rate settings on both the module and your serial device; they must match.
    • Ensure the serial port level (TTL 3.3V/5V) is compatible with your device.
    • If using RS485, confirm the automatic switching is correctly handled.
  • Module Unresponsive to AT Commands:
    • Confirm the serial connection and baud rate are correct.
    • Ensure the module is in a state where it can receive AT commands (e.g., not actively transmitting data in a transparent mode).
    • Check the AT command format and termination characters.

Specifications

FeatureSpecification
ModelCH9121
Serial Port Baud Rate300bps ~ 921600bps
Serial Port LevelTTL (compatible with 3.3V and 5V)
Ethernet Interface10/100M, Full Duplex/Half Duplex Adaptive, RJ45
Data Link ProtocolEthernet
Working ModesTCP CLIENT, TCP SERVER, UDP CLIENT, UDP SERVER
Power Supply Voltage3.3V/5V
Package Dimensions1.69 x 0.91 x 0.08 inches
Item Weight1.38 ounces

Warranty and Support

For warranty information and technical support, please refer to the product packaging or contact BestParts customer service directly. Specific warranty terms may vary by region and retailer.

© 2023 BestParts. All rights reserved.

Related Documents - CH9121

Preview Raspberry Pi Pico Ethernet to UART Converter User Manual
User manual for the Raspberry Pi Pico Ethernet to UART Converter, detailing its features, application scenarios, and pinout definitions for 10/100M Ethernet connectivity.
Preview WCH Product Selection Manual: Communication Interface ICs and MCUs
Explore the comprehensive product selection manual from WCH (WinChipHead), detailing a wide range of Communication Interface ICs and Microcontrollers (MCUs) including RISC-V and E8051 core-based solutions. Discover products for USB, Bluetooth, and Ethernet applications.
Preview WCH Product Selection Manual: Communication Interface ICs and MCUs
Comprehensive product selection manual from WCH (WinChipHead) detailing their range of communication interface ICs and microcontrollers (MCUs), featuring RISC-V and Cortex-M cores, USB, Bluetooth, Ethernet, and PD/Type-C solutions.

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.