Circuit for solving conflict problem of half-duplex communication sending and receiving
By introducing analog switches into the circuit of the agricultural machinery and vehicle auxiliary driving control system, automatic switching of communication lines between the MCU control unit, radio module and positioning and directional board is achieved, and the conflict problem between half-duplex communication and full-duplex communication is solved, and the working efficiency and product automation level are improved.
Patent Information
- Application Number
- CN202421442458.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2034-06-24
AI Technical Summary
In the agricultural machinery and vehicle assisted driving control system, the radio module of half-duplex communication cannot send and receive data simultaneously, resulting in a communication conflict with the positioning and directional board card of full-duplex communication.
By introducing analog switches into the circuit, automatic switching of the communication line between the MCU control unit, the radio module and the positioning and orientation board can be achieved, avoiding the problems of unstable connection and poor communication effects caused by manual operation.
It improves the work efficiency of production and debugging, avoids the problems of unstable communication line connection and poor communication effect caused by manual operations, and makes the product more automated and intelligent.
Smart Images

Figure CN222674321U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of electronic circuits, in particular to a circuit for solving the conflict problem between sending and receiving in half-duplex communication. Background Art
[0002] At present, the auxiliary driving control system of agricultural machinery vehicles includes power supply, MCU control unit, radio module, positioning and directional board, analog and digital detection, etc. In this system, the radio module is half-duplex communication, and the positioning and directional board is full-duplex communication. When the MCU control unit configures the radio and receives radio data, the hardware needs to connect the serial port transmitter of the radio module to the serial port receiver of the MCU control unit, and the serial port receiver of the radio module to the serial port transmitter of the MCU control unit. When the system is working normally, the radio module sends and receives data from the positioning and directional board in real time. The hardware needs to connect the serial port transmitter of the radio module to the serial port receiver of the positioning and directional board, and the serial port receiver of the radio module to the serial port transmitter of the positioning and directional board. Since the radio module is half-duplex communication, the radio cannot communicate with the positioning and directional board at the same time when the MCU control unit configures the radio through the serial port. When the serial port of the radio module configured by the MCU control unit is the same serial port as the serial port of the radio module connected to the positioning and directional board, it is necessary to solve the problem that the radio half-duplex communication transmission and reception cannot be performed simultaneously, that is, the following scenario needs to be implemented: during the process of configuring the radio module by the MCU control unit, the connection between the serial port and the positioning and directional board is disconnected; when the radio module configuration is completed, the system automatically disconnects the connection between the serial port sending end of the MCU control unit and the serial port receiving end of the radio module, and realizes the connection between the serial port receiving end of the radio module and the serial port sending end of the positioning and directional board.
[0003] In view of the above technical problems, the prior art usually adopts the method of leading out the communication pins with pin headers, and then using jumper caps or DuPont wires to externally switch on and off to solve the communication conflict between the half-duplex communication mode of such radio modules and the communication between the MCU control unit and the positioning and directional board. Figure 3As shown, the pins of the MCU control unit serial port 1 transmitting end TX1 and the radio module serial port receiving end D_RX, the MCU control unit serial port 1 receiving end RX1 and the radio module serial port transmitting end D_TX, the radio module serial port transmitting end D_TX and the positioning and directional board receiving end B_RX, and the radio module serial port receiving end D_RX and the positioning and directional board transmitting end B_TX are respectively led out to the pin header, and then the pins that need to communicate are connected by jumper caps or DuPont wires. Among them, the MCU control unit serial port 2 transmitting end TX2 and the positioning and directional board receiving end B_RX and the MCU control unit serial port 2 receiving end RX2 and the positioning and directional board transmitting end B_TX are directly connected. However, this solution can only be used in the product debugging stage, or before the complete product leaves the factory, the radio module and the positioning and directional board are connected to the MCU control unit and configured, and then the connection method is changed to the normal working mode, which not only greatly reduces the work efficiency of production and debugging, but also repetitive manual operations will bring defects such as unstable product communication line connection and poor communication effect. Therefore, it is urgent to develop a circuit for solving the conflict problem of half-duplex communication sending and receiving to solve the above technical problems.
[0004] In view of this, the present utility model is proposed. Utility Model Content
[0005] The purpose of the utility model is to provide a circuit for solving the conflict problem of sending and receiving half-duplex communication, abandoning the traditional way of externally controlling the communication connection through pin headers or Dupont lines, and realizing the signal switching function by adding an analog switch inside the circuit, which not only greatly improves the work efficiency of production and debugging, but also can effectively avoid the defects of unstable product communication line connection, poor communication effect and the like caused by repetitive manual operations, making the product more automated and intelligent, having broad application prospects, and being conducive to popularization and application.
[0006] In order to achieve the above-mentioned purpose, the utility model provides a circuit for solving the problem of conflict between sending and receiving in half-duplex communication, including an MCU control unit, an analog switch, a radio module and a positioning and directional board. The MCU control unit configures the radio module and receives radio module data through serial port 1, configures the positioning and directional board and receives and processes the positioning and directional board data through serial port 2, the radio module serves as a data transmission module, and realizes the sending and receiving of positioning and directional board data through the serial port, the positioning and directional board is connected to the radio module through the serial port, obtains radio data and outputs data, and the analog switch realizes the switching of communication lines between the MCU control unit, the radio module and the positioning and directional board.
[0007] Preferably, the model of the analog switch U1 is 74CBTLV3125PW,118, and it has a four-way analog bus switch, and the four-way switches are: controlling the connection and disconnection between the serial port transmitting end D_TX of the radio module and the serial port receiving end B_RX of the positioning and directional board through OE2, controlling the connection and disconnection between the serial port receiving end D_RX of the radio module and the serial port transmitting end B_TX of the positioning and directional board through OE1, controlling the connection and disconnection between the serial port transmitting end D_TX of the radio module and the serial port receiving end RX1 of the MCU control unit through OE4, and controlling the selection and disconnection between the serial port receiving end D_RX of the radio module and the serial port transmitting end TX1 of the MCU control unit through OE3, and the filter capacitor C1 connected at 3.3V of the analog switch power supply is 0.1UF.
[0008] Preferably, the model of the radio module is U30, with serial port half-duplex communication.
[0009] Preferably, the positioning and orientation board is of model K728, with full-duplex serial port communication.
[0010] Preferably, the MCU control unit model is STM32F407ZET6, and the serial port has full-duplex communication.
[0011] Preferably, the control pins OE1, OE2, OE3, and OE4 of the analog switch U1 are connected to the I / O port of the MCU control unit, the 14th pin of the analog switch U1 is connected to 3.3V and 3.3V passes through the filter capacitor C1 to GND, the serial port 1 transmitting end TX1 of the MCU control unit is connected to the 9th pin of the analog switch U1, the serial port 1 receiving end RX1 is connected to the 12th pin of the analog switch U1, the serial port transmitting end D_TX of the radio module is connected to the 5th and 11th pins of the analog switch U1, the serial port receiving end D_RX is connected to the 2nd and 8th pins of the analog switch U1, and the serial port transmitting end B_TX of the positioning and directional board is connected to the analog switch The 3rd pin of switch U1, the serial port receiving end B_RX is connected to the 6th pin of analog switch U1, the serial port 2 transmitting end TX2 of the MCU control unit is connected to the board serial port receiving end B_RX of the positioning and directional board, and the serial port 2 receiving end RX2 is connected to the board serial port receiving end B_TX of the positioning and directional board. When the enable control pins OE1, OE2, OE3, and OE4 of the four-way switches in the analog switch U1 receive a high-level control instruction, the corresponding controlled switches are connected; when the enable control pins OE1, OE2, OE3, and OE4 of the four-way switches in the analog switch U1 receive a low-level control instruction, the corresponding controlled switches are disconnected.
[0012] The utility model provides a circuit for solving the conflict problem between sending and receiving in half-duplex communication, which has the following beneficial effects.
[0013] 1. The utility model not only greatly improves the work efficiency of production and debugging, but also can effectively avoid defects such as unstable product communication line connection and poor communication effect caused by repetitive manual operations, making the product more automated and intelligent.
[0014] 2. The utility model does not need to manually switch the jumper cap during use, which is convenient for personnel to debug. The analog switch has the advantages of low power consumption, high speed, no mechanical contacts, small size, long service life, etc., and can be widely used in circuits that require hardware line switching.
[0015] 3. The utility model can better adapt to the characteristics of the radio module half-duplex communication that can only send or receive one channel, and solve the logic conflict problem when sending and receiving from the perspective of hardware circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of a circuit for solving the conflict problem of sending and receiving in half-duplex communication provided by the utility model;
[0017] Figure 2 A circuit diagram of a circuit for solving the conflict problem of sending and receiving in half-duplex communication provided by the utility model;
[0018] Figure 3 The present invention is a circuit diagram for solving the communication conflict problem between the half-duplex communication mode of the radio module and the MCU control unit and the positioning and directional board in the prior art. DETAILED DESCRIPTION
[0019] The present invention will be further described below in conjunction with specific embodiments and drawings to help understand the content of the present invention.
[0020] like Figure 1 As shown, it is a schematic diagram of a circuit for solving the conflict problem of sending and receiving half-duplex communication provided by the utility model. The circuit for solving the conflict problem of sending and receiving half-duplex communication includes an MCU control unit, an analog switch, a radio module and a positioning and directional board. The MCU control unit configures the radio module and receives radio module data through serial port 1, configures the positioning and directional board and receives and processes the positioning and directional board data through serial port 2, and the radio module is used as a data transmission module to realize the transmission and reception of the positioning and directional board data through the serial port. The positioning and directional board is connected to the radio module through the serial port, obtains the radio data and outputs the data, and the analog switch realizes the switching of the communication lines between the MCU control unit, the radio module and the positioning and directional board.
[0021] like Figure 2As shown, it is a circuit diagram of a circuit for solving the conflict problem of sending and receiving half-duplex communication provided by the utility model. The model of the analog switch U1 is 74CBTLV3125PW,118, which has four analog bus switches, and the four switches are respectively: through OE2 to control the connection and disconnection between the serial port sending end D_TX of the radio module and the serial port receiving end B_RX of the positioning and directional board card, through OE1 to control the connection and disconnection between the serial port receiving end D_RX of the radio module and the serial port sending end B_TX of the positioning and directional board card, through OE4 to control the connection and disconnection between the serial port sending end D_TX of the radio module and the serial port receiving end RX1 of the MCU control unit, and through OE3 to control the selection and disconnection between the serial port receiving end D_RX of the radio module and the serial port sending end TX1 of the MCU control unit, and the filter capacitor C1 connected at 3.3V of the analog switch power supply is 0.1UF.
[0022] The model of the radio module is U30, with half-duplex serial communication. The model of the positioning and orientation board is K728, with full-duplex serial communication. The model of the MCU control unit is STM32F407ZET6, with full-duplex serial communication. The analog switch U1 control pins OE1, OE2, OE3, and OE4 are connected to the I / O port of the MCU control unit, the 14th pin of the analog switch U1 is connected to 3.3V and 3.3V passes through the filter capacitor C1 to GND, the serial port 1 transmitting end TX1 of the MCU control unit is connected to the 9th pin of the analog switch U1, the serial port 1 receiving end RX1 is connected to the 12th pin of the analog switch U1, the serial port transmitting end D_TX of the radio module is connected to the 5th and 11th pins of the analog switch U1, the serial port receiving end D_RX is connected to the 2nd and 8th pins of the analog switch U1, and the serial port transmitting end B_TX of the positioning and orientation board is connected to the analog switch U 1, the serial port receiving end B_RX is connected to the 6th pin of the analog switch U1, the serial port 2 transmitting end TX2 of the MCU control unit is connected to the board serial port receiving end B_RX of the positioning and directional board, and the serial port 2 receiving end RX2 is connected to the board serial port receiving end B_TX of the positioning and directional board. When the enable control pins OE1, OE2, OE3, and OE4 of the four-way switches in the analog switch U1 receive a high-level control instruction, the corresponding controlled switches are connected; when the enable control pins OE1, OE2, OE3, and OE4 of the four-way switches in the analog switch U1 receive a low-level control instruction, the corresponding controlled switches are disconnected.
[0023] The working principle of the utility model is:
[0024] When the equipment is working normally, when the MCU control unit configures the radio module, the MCU control unit disconnects the connection between the radio module and the positioning and directional board by controlling the analog switch. When the radio module is configured, the MCU control unit disconnects the connection between the serial port sending end of the MCU control unit and the serial port receiving end of the radio module by controlling the analog switch, and realizes the connection between the serial port receiving end of the radio module and the serial port sending end of the positioning and directional board, thereby realizing normal communication between the radio module and the positioning and directional board.
[0025] The utility model not only greatly improves the work efficiency of production and debugging, but also can effectively avoid the defects of unstable product communication line connection and poor communication effect caused by repetitive manual operations, making the product more automated and intelligent. The utility model does not need to manually switch the jumper cap during use, which is convenient for personnel to debug. The analog switch has the advantages of low power consumption, high speed, no mechanical contacts, small size, and long service life, and can be widely used in circuits that require hardware line switching. The utility model can better adapt to the characteristics of the radio module half-duplex communication that can only send or receive one-way, and solves the logic conflict problem when sending and receiving from the perspective of the hardware circuit.
[0026] This article uses specific examples to explain the concept of the utility model in detail, and the description of the above embodiments is only used to help understand the core idea of the utility model. It should be pointed out that for ordinary technicians in this technical field, any obvious modifications, equivalent substitutions or other improvements made without departing from the concept of the utility model should be included in the scope of protection of the utility model.
Claims
1. A circuit for solving the conflict problem of sending and receiving in half-duplex communication, characterized in that: It includes an MCU control unit, an analog switch, a radio module and a positioning and directional board. The MCU control unit configures the radio module and receives radio module data through serial port 1, configures the positioning and directional board and receives and processes the positioning and directional board data through serial port 2. The radio module serves as a data transmission module and realizes the transmission and reception of positioning and directional board data through the serial port. The positioning and directional board is connected to the radio module through the serial port to obtain radio data and output data. The analog switch realizes the switching of communication lines among the MCU control unit, the radio module and the positioning and directional board.
2. A circuit for solving the conflict problem of sending and receiving in half-duplex communication according to claim 1, characterized in that: The model of the analog switch U1 is 74CBTLV3125PW,118, which has four analog bus switches, and the four switches are: controlling the connection and disconnection between the serial port transmitting end D_TX of the radio module and the serial port receiving end B_RX of the positioning and directional board through OE2, controlling the connection and disconnection between the serial port receiving end D_RX of the radio module and the serial port transmitting end B_TX of the positioning and directional board through OE1, controlling the connection and disconnection between the serial port transmitting end D_TX of the radio module and the serial port receiving end RX1 of the MCU control unit through OE4, and controlling the selection and disconnection between the serial port receiving end D_RX of the radio module and the serial port transmitting end TX1 of the MCU control unit through OE3. The filter capacitor C1 connected at 3.3V of the analog switch power supply is 0.1UF.
3. A circuit for solving the conflict problem of sending and receiving in half-duplex communication according to claim 2, characterized in that: The model of the radio module is U30, with serial port half-duplex communication.
4. A circuit for solving the conflict problem of sending and receiving in half-duplex communication according to claim 3, characterized in that: The model of the positioning and orientation board is K728, with full-duplex serial port communication.
5. A circuit for solving the conflict problem of sending and receiving in half-duplex communication according to claim 4, characterized in that: The MCU control unit model is STM32F407ZET6, and the serial port has full-duplex communication.
6. A circuit for solving the conflict problem of sending and receiving in half-duplex communication according to claim 5, characterized in that: The control pins OE1, OE2, OE3, and OE4 of the analog switch U1 are connected to the I / O port of the MCU control unit. The 14th pin of the analog switch U1 is connected to 3.3V and 3.3V passes through the filter capacitor C1 to GND. The serial port 1 transmitting end TX1 of the MCU control unit is connected to the 9th pin of the analog switch U1, and the serial port 1 receiving end RX1 is connected to the 12th pin of the analog switch U1. The serial port transmitting end D_TX of the radio module is connected to the 5th and 11th pins of the analog switch U1, and the serial port receiving end D_RX is connected to the 2nd and 8th pins of the analog switch U1. The serial port transmitting end B_TX of the positioning and directional board is connected to the analog switch U 1, the serial port receiving end B_RX is connected to the 6th pin of the analog switch U1, the serial port 2 transmitting end TX2 of the MCU control unit is connected to the board serial port receiving end B_RX of the positioning and directional board, and the serial port 2 receiving end RX2 is connected to the board serial port receiving end B_TX of the positioning and directional board. When the enable control pins OE1, OE2, OE3, and OE4 of the four-way switches in the analog switch U1 receive a high-level control instruction, the corresponding controlled switches are connected; when the enable control pins OE1, OE2, OE3, and OE4 of the four-way switches in the analog switch U1 receive a low-level control instruction, the corresponding controlled switches are disconnected.