Protocol adapter for six-element information collector and serial port screen
By using the STM32F030F4P6 main control chip and the MAX3232 level conversion chip as a protocol adapter, the communication incompatibility problem between the six-element information collector and the serial display screen was solved, realizing real-time data display and timed power-on/off control of the display screen, reducing operational complexity and cost, and possessing versatility.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- 张正
- Filing Date
- 2025-04-30
- Publication Date
- 2026-05-08
AI Technical Summary
The six-element information collector and the serial port display screen cannot directly interact with each other due to different communication protocols. Existing solutions are complex to operate, costly, and lack universality. Furthermore, they cannot achieve timed power-on and power-off control of the display screen to reduce energy consumption.
The STM32F030F4P6 main control chip and MAX3232 level conversion chip are used to realize data protocol conversion. Combined with relay control of the display power supply, data transmission and timed power-on and power-off control are realized through data transmission, analysis and reconstruction programs.
Stable communication between the six-element information collector and the serial port display screen has been achieved, reducing the difficulty and cost of operation, making it versatile, and reducing equipment energy consumption and extending the service life of the display screen through timed control.
Smart Images

Figure CN224218413U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of data transmission technology, specifically a protocol adapter for a six-element information collector and a serial port screen. Background Technology
[0002] In the field of meteorological data acquisition, the six-element data collector is widely used due to its ability to simultaneously collect data from multiple meteorological elements. This collector is equipped with an RS232 interface and is often used in conjunction with a serial display screen to show the collected meteorological data in real time. However, because the six-element data collector and the serial display screen use different communication protocols, they cannot directly interact with each other, severely limiting the real-time display and application of meteorological data.
[0003] Current methods for resolving such protocol incompatibility issues often require complex modifications to the internal programs of the data acquisition unit or display screen. This is not only difficult to implement but may also negatively impact the stability and compatibility of the equipment. Furthermore, some solutions are costly, lack versatility, and fail to meet the needs of diverse users. Additionally, existing solutions rarely include timed power-on / off control functionality for the display screen, failing to meet the requirements for reduced energy consumption and flexible equipment management. Therefore, developing a simple, efficient, and low-cost protocol adapter capable of timed power-on / off control for the display screen, enabling stable communication between the six-element information acquisition unit and the serial display screen, is of significant practical importance. Utility Model Content
[0004] In view of the problems existing in the prior art, this invention includes a data transceiver module, a data analysis module, a power-on / off control module, a level conversion circuit, a power supply module, an interface, and a control circuit. The data transceiver module is connected to the six-element information collector via an RS232 interface to receive and transmit meteorological data sent by the collector. The level conversion circuit converts the RS232 protocol data into TTL level data for transmission to the STM32 main control chip for processing. The TTL level data is then converted back to RS232 protocol data and transmitted to the serial display screen via the RS232 interface. The data analysis module parses the received TTL level data, identifies the data type and format, and extracts time information. The power-on / off control module uses the time information extracted from the six-element data to control the onboard relay switch, thereby achieving timed power-on / off control of the display screen.
[0005] The control circuit uses an STM32F030F4P6 as the main control chip. Ports 2, 3, and 14 are connected to a switch and then grounded; port 4 is connected to resistor R4 and then to VCC; port 6 is connected to VCC via LED1 and resistor R5; port 7 is connected to VCC via LED2 and resistor R6; port 18 is connected to VCC via LED3 and resistor R8; ports 11, 12, 13, and 17 are connected to H2; ports 19 and 20 are connected to H1; ports 5 and 16 are connected to VCC; and ports 8, 9, and 10 are connected to MCU_TXD, MCU_RXD, and SWITCH, respectively.
[0006] The level conversion circuit uses the MAX3232 chip as the level conversion chip. Ports 1 and 3 are connected to both ends of C1; ports 4 and 5 are connected to both ends of C2; port 2 is connected to C8 and then to +5V; port 6 is connected to C9 and then to ground; ports 15 and 16 are connected to both ends of C14, with port 15 grounded and port 16 connected to +5V; port 14 is connected to R1 and D3 and then to ground, with R1 and D3 connected to RS232_TX; port 13 is connected to R2 and D2 and then to ground, with R2 and D2 connected to RS232_RX; ports 11 and 12 are connected to MCU_TXD and MCU_RXD respectively.
[0007] The power supply module includes a step-down module and a voltage regulator module; the step-down module converts 12V voltage to 5V output; the voltage regulator module uses an AMS1117 chip to convert 5V voltage to 3.3V voltage, with port 1 grounded, port 3 connected to +5V, and port 4 connected to VCC; C3 and C4 are connected in parallel to ports 1 and 3; C5, C7, and C11 are connected in parallel to port 4 at one end and grounded at the other end.
[0008] The interface is equipped with two rows of 4P terminals. One row is "12V input, ground, RS232_RX1, RS232_TX1" and the other row is "screen power +, ground, RS232_RX2, RS232_TX2".
[0009] The control circuit uses an SRD-05VDC-SL-C relay, with port 1 connected to +5V, port 2 connected to +12V, and port 4 connected to Q1 and then grounded; both ends of D5 are connected to ports 1 and 4; one end of R7 is connected to Q1, and the other end is connected to SWITCH.
[0010] As a preferred embodiment of this utility model, the GPIO pin of the main control chip STM32F030F4P6 is connected to the relay switch control terminal to control the power supply of the display screen.
[0011] As a preferred technical solution of this utility model, each module includes a data receiving program, a data analysis program, a data reconstruction program, a data sending program, and a timing control program;
[0012] Data receiving program: Receives RS232 data sent by the six-element information collector in real time, converts it into TTL level data through the MAX3232 chip, and then transmits it to the STM32 main control chip.
[0013] Data analysis program: Based on the communication protocol of the six-element information collector, the received TTL level data is parsed to extract meteorological data and time information.
[0014] Data reconstruction program: The extracted meteorological data is repackaged according to the communication protocol of the serial port display.
[0015] Data transmission program: The reconstructed TTL level data is converted into RS232 protocol data through the MAX3232 chip and sent to the serial port display.
[0016] Timing control program: Based on the extracted time information, control the GPIO pins of the STM32 main control chip to drive the relay switch and realize the timed power-on and power-off control of the display screen.
[0017] The beneficial effects of this utility model are as follows:
[0018] Solving the communication problem: This utility model protocol adapter can effectively solve the problem that the six-element information collector and the serial port display screen cannot communicate due to different protocols, and realize the real-time display of meteorological data.
[0019] Timed control function: Enables timed power-on and power-off control of the display screen, reducing equipment energy consumption and extending the lifespan of the display screen.
[0020] Easy to operate: No modification is required to the internal programs of the six-element information collector and the serial port display. Simply connect the protocol adapter between the two to achieve communication and timing control. The operation is simple and convenient.
[0021] Low cost: It uses the common STM32F030F4P6 main control chip, MAX3232 level conversion chip and relay switch, which has low hardware cost and simple software design, reducing development cost.
[0022] High versatility: The program can be modified to be applicable to various models of information acquisition devices and serial port displays, demonstrating strong versatility. Attached Figure Description
[0023] To more clearly illustrate the specific embodiments of this utility model or the technical solutions in the prior art, the accompanying drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. In all the drawings, the elements or parts are not necessarily drawn to actual scale.
[0024] Figure 1 This is the circuit diagram of the main control part of this utility model;
[0025] Figure 2 This is the circuit diagram for the TTL to RS232 converter of this utility model;
[0026] Figure 3 This is the circuit diagram of the power module of this utility model;
[0027] Figure 4 This is the interface circuit diagram of this utility model;
[0028] Figure 5 This is the power control circuit diagram for the display of this utility model; Detailed Implementation Example 1
[0029] like Figures 1 to 5 As shown, this utility model discloses a protocol converter between a six-element information collector and a serial port display screen, including a data transceiver module, a data analysis module, a power-on / off control module, a level conversion circuit, a power supply module, an interface, and a control circuit. The data transceiver module is connected to the six-element information collector via an RS232 interface, used to receive and send meteorological data sent by the collector, and converts the RS232 protocol data into TTL level data through the level conversion circuit for transmission to the STM32 main control chip for processing, then converts the TTL level data back into RS232 protocol data, and sends it to the serial port display screen through the RS232 interface. The data analysis module parses the received TTL level data, identifies the data type and format, and extracts time information. The power-on / off control module uses the time information extracted from the six-element data to control the onboard relay switch, realizing the timed power-on / off control of the display screen.
[0030] The control circuit uses an STM32F030F4P6 as the main control chip. Ports 2, 3, and 14 are connected to a switch and then grounded; port 4 is connected to resistor R4 and then to VCC; port 6 is connected to VCC via LED1 and resistor R5; port 7 is connected to VCC via LED2 and resistor R6; port 18 is connected to VCC via LED3 and resistor R8; ports 11, 12, 13, and 17 are connected to H2; ports 19 and 20 are connected to H1; ports 5 and 16 are connected to VCC; and ports 8, 9, and 10 are connected to MCU_TXD, MCU_RXD, and SWITCH, respectively.
[0031] The level conversion circuit uses the MAX3232 chip as the level conversion chip. Ports 1 and 3 are connected to both ends of C1; ports 4 and 5 are connected to both ends of C2; port 2 is connected to C8 and then to +5V; port 6 is connected to C9 and then to ground; ports 15 and 16 are connected to both ends of C14, with port 15 grounded and port 16 connected to +5V; port 14 is connected to R1 and D3 and then to ground, with R1 and D3 connected to RS232_TX; port 13 is connected to R2 and D2 and then to ground, with R2 and D2 connected to RS232_RX; ports 11 and 12 are connected to MCU_TXD and MCU_RXD respectively.
[0032] The power supply module includes a step-down module and a voltage regulator module; the step-down module converts 12V voltage to 5V output; the voltage regulator module uses an AMS1117 chip to convert 5V voltage to 3.3V voltage, with port 1 grounded, port 3 connected to +5V, and port 4 connected to VCC; C3 and C4 are connected in parallel to ports 1 and 3; C5, C7, and C11 are connected in parallel to port 4 at one end and grounded at the other end.
[0033] The interface is equipped with two rows of 4P terminals. One row is "12V input, ground, RS232_RX1, RS232_TX1" and the other row is "screen power +, ground, RS232_RX2, RS232_TX2".
[0034] The control circuit uses an SRD-05VDC-SL-C relay, with port 1 connected to +5V, port 2 connected to +12V, and port 4 connected to Q1 and then grounded; both ends of D5 are connected to ports 1 and 4; one end of R7 is connected to Q1, and the other end is connected to SWITCH.
[0035] The working principle of this utility model is as follows: The main control section uses an STM32F030F4P6 as the main control chip. This chip has rich peripheral interfaces and strong data processing capabilities, enabling it to efficiently process serial port data input from the data acquisition unit and perform corresponding conversions according to the data format requirements of the LED display screen. The level conversion section utilizes a MAX232 chip to implement two-channel TTL to RS232 conversion. The MAX232 chip, together with external capacitors (such as C1-C4), forms a level conversion circuit that converts TTL level signals to RS232 level signals to adapt to the communication interface level standards of different devices, ensuring accurate data transmission between devices with different level requirements.
[0036] Power Module Section: 12V to 5V: Utilizing a common step-down module, the input 12V external power supply is converted to 5V, providing a stable operating voltage for subsequent circuits. 5V to 3.3V: The 5V voltage is further converted to 3.3V using an AMS1117 chip to meet the operating voltage requirements of the main control chip STM32F030F4P6 and some peripheral circuits. Simultaneously, multiple filter capacitors (such as C5-C12) are incorporated into the power supply circuit to filter out noise and interference signals, improving power stability. Interface Section: Provides power input for the LED display screen and enables a second RS232 data exchange. Control Section: Utilizes a relay driven by a 9014 transistor to control the display screen's power supply. The control signal output from the main control chip is amplified by the 9014 transistor and then drives the relay, thereby controlling the on / off state of the LED display screen's power supply. This allows for flexible power management of the display screen under different operating modes, reducing power consumption and protecting the equipment.
[0037] Components not described in detail in this article are existing technologies.
[0038] While the specific embodiments of this utility model have been described in detail above, this utility model is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of this utility model. Modifications or variations that do not involve creative labor are still within the protection scope of this utility model.
Claims
1. A protocol adapter for a six-element information collector and a serial port screen, characterized in that: The system includes a data transceiver module, a data analysis module, a power-on / off control module, a level conversion circuit, a power supply module, an interface, and a control circuit. The data transceiver module is connected to the six-element information collector via an RS232 interface. It receives and transmits meteorological data sent by the collector, converts the RS232 protocol data to TTL level data via the level conversion circuit, transmits the data to the STM32 main control chip for processing, then converts the TTL level data back to RS232 protocol data and sends it to the serial display screen via the RS232 interface. The data analysis module parses the received TTL level data, identifies the data type and format, and extracts time information. The power on / off control module extracts time information from the six-element data and controls the onboard relay switch to realize timed power on / off control of the display screen. The control circuit uses an STM32F030F4P6 as the main control chip. Ports 2, 3, and 14 are connected to a switch and then grounded; port 4 is connected to resistor R4 and then to VCC; port 6 is connected to VCC via LED1 and resistor R5; port 7 is connected to VCC via LED2 and resistor R6; port 18 is connected to VCC via LED3 and resistor R8; ports 11, 12, 13, and 17 are connected to H2; ports 19 and 20 are connected to H1; ports 5 and 16 are connected to VCC; and ports 8, 9, and 10 are connected to MCU_TXD, MCU_RXD, and SWITCH, respectively. The level conversion circuit uses the MAX3232 chip as the level conversion chip. Ports 1 and 3 are connected to both ends of C1; ports 4 and 5 are connected to both ends of C2; port 2 is connected to C8 and then to +5V; port 6 is connected to C9 and then to ground; ports 15 and 16 are connected to both ends of C14, with port 15 grounded and port 16 connected to +5V; port 14 is connected to R1 and D3 and then to ground, with R1 and D3 connected to RS232_TX; port 13 is connected to R2 and D2 and then to ground, with R2 and D2 connected to RS232_RX; ports 11 and 12 are connected to MCU_TXD and MCU_RXD respectively. The power supply module includes a step-down module and a voltage regulator module; the step-down module converts 12V voltage to 5V output; the voltage regulator module uses an AMS1117 chip to convert 5V voltage to 3.3V voltage, with port 1 grounded, port 3 connected to +5V, and port 4 connected to VCC; C3 and C4 are connected in parallel to ports 1 and 3; C5, C7, and C11 are connected in parallel to port 4 at one end and grounded at the other end. The interface is equipped with two rows of 4P terminals. One row is "12V input, ground, RS232_RX1, RS232_TX1" and the other row is "screen power +, ground, RS232_RX2, RS232_TX2". The control circuit uses an SRD-05VDC-SL-C relay, with port 1 connected to +5V, port 2 connected to +12V, and port 4 connected to Q1 and then grounded; both ends of D5 are connected to ports 1 and 4; one end of R7 is connected to Q1, and the other end is connected to SWITCH.
2. The protocol adapter for the six-element information collector and serial port screen according to claim 1, characterized in that: The GPIO pins of the main control chip STM32F030F4P6 are connected to the relay switch control terminal to control the power supply of the display screen.
3. The protocol adapter for the six-element information collector and serial port screen according to claim 1, characterized in that: Each module includes a data receiving program, a data analysis program, a data reconstruction program, a data sending program, and a timing control program; Data receiving program: Receives RS232 data sent by the six-element information collector in real time, converts it into TTL level data through the MAX3232 chip, and then transmits it to the STM32 main control chip; Data analysis program: Based on the communication protocol of the six-element information collector, the received TTL level data is parsed to extract meteorological data and time information; Data reconstruction program: Repackages the extracted meteorological data according to the communication protocol of the serial port display screen; Data transmission program: The reconstructed TTL level data is converted into RS232 protocol data through the MAX3232 chip and sent to the serial port display screen; Timing control program: Based on the extracted time information, control the GPIO pins of the STM32 main control chip to drive the relay switch and realize the timed power-on and power-off control of the display screen.