Multifunctional protocol conversion board and protocol conversion method

By designing a multi-function protocol conversion board, the conversion of multiple communication protocols is achieved, which solves the communication compatibility problem between unmanned vehicles and third-party devices, and improves data transmission efficiency and system flexibility.

CN120223771APending Publication Date: 2025-06-27AIR FORCE COMM SERGEANT SCHOOL OF PLA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510515262.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-23
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

Unmanned vehicles of different brands and models use different communication interfaces and protocols, making it difficult for third-party devices to access and control directly. The existing protocol converter has a single function and cannot meet the complex and changing communication needs.

Method used

A multi-function protocol conversion board is designed, including the main control module, serial port reverse circuit, TTL to 485 circuit, CAN transceiver isolation module and power supply module. These modules realize the conversion of a variety of communication protocols, including MAVLink, SBUS, RS-485, Modbus and CAN bus, etc.

Benefits of technology

It realizes communication compatibility between third-party devices and unmanned vehicles, improves data transmission efficiency and system flexibility, and makes protocol conversion of various non-standard devices possible.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120223771A_ABST
    Figure CN120223771A_ABST
Patent Text Reader

Abstract

The invention discloses a multifunctional protocol conversion board and a conversion method, the protocol conversion board comprises a main control module, a serial port reverse circuit, a TTL-to-485 circuit, a CAN transceiver isolation module, a power supply module and wiring terminals, the input end of the serial port reverse circuit is connected with the main control module, the output end of the serial port reverse circuit is connected with a first wiring terminal, and the output end of the serial port reverse circuit is connected with a second wiring terminal; the input end of the TTL-to-485 circuit is connected with the main control module, the output end of the TTL-to-485 circuit is connected with the third wiring terminal and the fourth wiring terminal, the input end of the CAN transceiver isolation module is connected with the main control module, and the output end of the CAN transceiver isolation module is connected with the third wiring terminal. The protocol conversion method is realized through the multifunctional protocol conversion board, and the multifunctional protocol conversion board and the protocol conversion method can enable the third-party equipment to conveniently communicate with the unmanned vehicle and perform protocol conversion of various non-standard equipment. The problem of communication compatibility between the unmanned vehicle and the third-party equipment is solved, and the data transmission efficiency and the system flexibility are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data protocol conversion, and particularly relates to a multifunctional protocol conversion board and a protocol conversion method. Background Art

[0002] With the rapid development of unmanned vehicle (such as unmanned aerial vehicle, unmanned vehicle, unmanned ship, etc.) technology, its application scenarios are becoming increasingly widespread, covering multiple fields such as environmental monitoring, agricultural plant protection, logistics transportation, security patrol, etc. However, unmanned vehicles of different brands and models often adopt different communication interfaces and protocols, resulting in difficulty for third-party devices to directly access and control. Most of the protocol converters in the prior art have single functions and cannot meet the complex and changeable communication requirements.

[0003] Therefore, how to provide a multifunctional protocol conversion board and a conversion method that can support multiple communication protocol conversions and improve the compatibility and flexibility of the unmanned vehicle communication system is a technical problem to be solved at present. Summary of the Invention

[0004] The purpose of the present invention is to provide a multifunctional protocol conversion board and a protocol conversion method to solve the problems existing in the prior art.

[0005] To achieve the above purpose, the present invention adopts the following technical solutions:

[0006] The present invention provides a multifunctional protocol conversion board, including:

[0007] A main control module, a serial port reverse circuit, a TTL to 485 circuit, a CAN transceiver isolation module, a power module, and a first wiring terminal, a second wiring terminal, a third wiring terminal, and a fourth wiring terminal. The input end of the serial port reverse circuit is connected to the main control module, and the output end is connected to the first wiring terminal. The input end of the TTL to 485 circuit is connected to the main control module, and the output ends are respectively connected to the third wiring terminal and the fourth wiring terminal. The input end of the CAN transceiver isolation module is connected to the main control module, and the output end is connected to the third wiring terminal. The main control module is respectively connected to the power module and the second wiring terminal, and third-party devices with corresponding interfaces are connected according to the interface types of the first wiring terminal, the second wiring terminal, the third wiring terminal, and the fourth wiring terminal. Among them, the serial port reverse circuit at least includes a triode and a tenth resistor. The base of the triode is connected to the first wiring terminal through the tenth resistor. The TTL to 485 circuit includes an RS-485 transceiver module, an eighteenth resistor, and a nineteenth resistor. The RS-485 transceiver module is connected to the third wiring terminal through the nineteenth resistor, and the RS-485 transceiver module is connected to the fourth wiring terminal through the eighteenth resistor.

[0008] Optionally, the main control module includes a control chip, a first capacitor, a second capacitor, a twelfth resistor, a third capacitor, and a first resistor. The pin 1 of the control chip is grounded. The pin 2 of the control chip is connected to the output terminal of the power supply module, one end of the first capacitor, and one end of the second capacitor respectively. The other end of the first capacitor and the other end of the second capacitor are grounded respectively. The pin 3 of the control chip is connected to one end of the twelfth resistor and one end of the third capacitor respectively. The other end of the twelfth resistor is connected to the output terminal of the power supply module. The other end of the third capacitor is grounded. The first IO pin of the control chip is connected to the second transmitting end in the second wiring terminal through the first resistor. The pin 30 of the control chip is connected to the first receiving end of the second wiring terminal. The pin 31 of the control chip is connected to the first transmitting end of the second wiring terminal. Among them, the model of the control chip is ESP32-WROOM-32;

[0009] The main control module further includes a fourteenth resistor, a fourth resistor, a first on-board indicator light, and a second on-board indicator light. The second IO pin of the control chip is connected to the first on-board indicator light through the fourteenth resistor and then grounded. The third IO pin of the control chip is connected to the second on-board indicator light through the fourth resistor and then grounded.

[0010] Optionally, the main control module further includes a pin header and a filtering circuit, and the pin header and the filtering circuit are respectively connected to the control chip.

[0011] Optionally, the serial port reverse circuit further includes an eleventh resistor. The base of the triode is connected to the first wiring terminal through the tenth resistor, and the eleventh resistor is connected to the pin 1 of the control chip.

[0012] Optionally, the TTL to 485 circuit further includes an RS-485 transceiver module with the model of RSM485_C19724249, a third resistor, and a fifth resistor. The pin 1 of the RS-485 transceiver module is connected to the pin 30 of the control chip through the third resistor. The pin 2 of the RS-485 transceiver module is connected to the pin 31 of the control chip through the fifth resistor. The pin 5 of the RS-485 transceiver module is connected to the 485A wire connection end of the third wiring terminal through the nineteenth resistor. The pin 8 of the RS-485 transceiver module is connected to the 485B wire connection end of the fourth wiring terminal through the eighteenth resistor.

[0013] Optionally, the CAN transceiver isolation module includes a sixth resistor, a seventh resistor, a ninth resistor, and a CAN isolation transceiver of model TD301M CAN_C5451843. The pin 1 of the CAN isolation transceiver is connected to the pin 26 of the control chip through the sixth resistor, the pin 2 of the CAN isolation transceiver is connected to the pin 29 of the control chip through the seventh resistor, the pin 7 of the CAN isolation transceiver is respectively connected to the CANH line connection end of the third terminal and one end of the ninth resistor, and the pin 6 of the CAN isolation transceiver is respectively connected to the CANL line connection end of the third terminal and the other end of the ninth resistor.

[0014] Optionally, the power supply module includes a 9 - 36V to 5V isolated step - down sub - module and a 5V to 3.3V regulated power supply sub - module. The input end of the 9 - 36V to 5V isolated step - down module is connected to direct current, and the output end is connected to the input end of the 5V to 3.3V regulated power supply module. The output end of the 5V to 3.3V regulated power supply module is connected to the main control module.

[0015] Correspondingly, the present application also provides a protocol conversion method, which is implemented through a protocol conversion board and includes:

[0016] Receiving data from different external devices;

[0017] Performing protocol analysis on the received data from different external devices to obtain valid data, writing the valid data into the corresponding interface, and sending the data according to the protocol format of the corresponding interface.

[0018] Advantageous effects:

[0019] The present application proposes a multi - functional protocol conversion board and a protocol conversion method, which can enable third - party devices to communicate with unmanned vehicles conveniently and perform protocol conversion for various non - standard devices. It solves the communication compatibility problem between unmanned vehicles and third - party devices, and improves data transmission efficiency and system flexibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings constituting a part of this application are used to provide a further understanding of this application, making other features, objectives, and advantages of this application more obvious. The schematic embodiments and descriptions of the drawings of this application are used to explain this application and do not constitute an improper limitation of this application. In the drawings:

[0021] Figure 1 is a schematic structural diagram of a multi - functional protocol conversion board provided by an embodiment of this application;

[0022] Figure 2 is a circuit diagram of a main control module provided by an embodiment of this application;

[0023] Figure 3A circuit diagram of a pin header provided by an embodiment of the present application;

[0024] Figure 4 A circuit diagram of a filter circuit provided by an embodiment of the present application;

[0025] Figure 5 A circuit diagram of a serial port reverse circuit provided by an embodiment of the present application;

[0026] Figure 6 A circuit diagram of a TTL to 485 provided by an embodiment of the present application;

[0027] Figure 7 A circuit diagram of a CAN transceiver isolation module provided by an embodiment of the present application;

[0028] Figure 8 A circuit diagram of a 9 - 36V to 5V isolation buck sub - module provided by an embodiment of the present application;

[0029] Figure 9 A 5V to 3.3V regulated power supply sub - module provided by an embodiment of the present application;

[0030] Figure 10 A circuit diagram of each wiring terminal provided by an embodiment of the present application;

[0031] Figure 11 A flow schematic diagram of a protocol conversion method provided by an embodiment of the present application.

[0032] In the figure: P1, the first wiring terminal; P2, the second wiring terminal; P3, the third wiring terminal; P4, the fourth wiring terminal; U7, the control chip; C1, the first capacitor; C2, the second capacitor; R12, the twelfth resistor; C3, the third capacitor; R1, the first resistor; R14, the fourteenth resistor; R4, the fourth resistor; L1, the first on - board indicator; L2, the second on - board indicator; J1, the pin header; C4, the fourth capacitor; R11, the eleventh resistor; R13, the thirteenth resistor; Q2, the triode; R10, the tenth resistor; R11, the eleventh resistor; U6, the RS - 485 transceiver module; R3, the third resistor; R5, the fifth resistor; R18, the eighteenth resistor; R19, the nineteenth resistor; R6, the sixth resistor; R7, the seventh resistor; R9, the ninth resistor; U8, the CAN isolation transceiver. Detailed implementation manners

[0033] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the present invention in combination with the accompanying drawings and the description of the embodiments or the prior art. Obviously, the following description of the structures of the accompanying drawings is only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings. It should be noted here that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation to the present invention.

[0034] It should be understood that although terms such as first and second may be used herein to describe various units, these units should not be limited by these terms. These terms are only used to distinguish one unit from another. For example, the first unit can be called the second unit, and similarly, the second unit can be called the first unit, without departing from the scope of the exemplary embodiments of the present invention.

[0035] It should be understood that for the term "and / or" that may appear in this text, it is only a description of the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, B exists alone, and both A and B exist at the same time; for the term " / and" that may appear in this text, it is a description of another association object relationship, indicating that two relationships can exist. For example, A / and B can represent: A exists alone, and both A and B exist; in addition, for the character " / " that may appear in this text, generally, it means that the front and back associated objects are in an "or" relationship.

[0036] Embodiment 1:

[0037] 1. MAVLink communication protocol

[0038] MAVLink is a communication protocol commonly used in the field of unmanned aerial vehicles, and data is transmitted through the CAN interface. The sending end (third-party device) packs the data into MAVLink messages, and the receiving end (protocol conversion board) receives the data through the serial port or CAN interface, parses the MAVLink messages, and sends the useful information to the unmanned vehicle after extraction.

[0039] 2. SBUS protocol

[0040] SBUS is a digital signal transmission protocol for unmanned aerial vehicle remote controllers, and a single signal line is used to transmit data of up to 16 channels. The SBUS data has a total of 25 bytes, including a start byte, channel data bytes, a flag bit, and an end byte. The receiving end receives the SBUS data through the serial port and parses out the channel values according to the protocol format.

[0041] 3. RS-485 interface

[0042] The RS-485 interface adopts a balanced differential circuit, supports long-distance transmission and multi-device connection. It works in a half-duplex mode and transmits data through differential signals. To ensure the reliability of data transmission, the RS-485 interface usually includes algorithms such as data buffering, error detection and correction.

[0043] 4. Modbus Protocol

[0044] Modbus is a protocol based on serial communication and supports master-slave communication technology. The master device sends query or operation instructions to the slave device, and the slave device executes corresponding operations according to the instructions and returns the results. The Modbus message includes parts such as an address field, a function code, a data field, and a checksum, and the communication process includes steps such as message sending, receiving, and parsing.

[0045] 5. CAN Bus Communication Principle

[0046] CAN bus is a controller area network technology that uses differential signals for data transmission and has advantages such as strong anti-interference ability and long transmission distance. The CAN bus message includes parts such as a frame start, an arbitration field, a control field, a data field, a CRC check field, and a frame end. The sending node encapsulates the message into a CAN frame and sends it to the bus, and the receiving node listens to the messages on the bus and filters and receives them.

[0047] 6. Pelcod Protocol

[0048] Pelcod is a fieldbus protocol based on RS485 as the physical layer and is used to control the monitoring pan-tilt of unmanned vehicles to perform actions such as rotation and zoom. The Pelcod message includes parts such as a frame start, an address field, a control field, a data field, and a frame end.

[0049] Such as Figure 1 shown is a schematic structural diagram of a multi-functional protocol conversion board proposed in an embodiment of the present invention, including:

[0050] The main control module, serial port reverse circuit, TTL to 485 circuit, CAN transceiver isolation module, power supply module, and the first terminal P1, the second terminal P2, the third terminal P3, and the fourth terminal P4. The main control module is used to realize the functions of data reading, sending, data packing, and distribution of each interface / module. The core of the main control module is the control chip U7 of the ESP32-WROOM-32 model, which has the characteristics of being expandable and adaptive. The serial port reverse circuit is used to realize SBUS protocol communication. For example, it can perform level logic inversion on the SBUS signal output by the remote control receiver of the drone remote control, and finally realize SBUS protocol communication through the main program of the protocol conversion board. The TTL to 485 circuit is used to convert the received TTL level signal into a 485 signal for protocol conversion. The power supply module is used to provide power support for the whole board. The core of the CAN transceiver isolation module is the isolation transceiver U8 of the TD301M CAN model. Its main function is to convert the logic level into the differential level of the CAN bus to realize signal isolation. The product comes with a constant voltage isolation power supply, which can achieve 2500VDC electrical isolation. The CAN transceiver isolation module can be easily embedded in third-party devices, enabling third-party devices to easily realize the connection function of the CAN bus network. The isolation transceiver U8 transmits the data on the CAN bus to the main control module, and the main control module interprets the received data and performs protocol conversion.

[0051] Among them, the input end of the serial port reverse circuit in the multifunctional protocol conversion board is connected to the main control module, and the output end is connected to the first terminal P1. The input end of the TTL to 485 circuit is connected to the main control module, and the output ends are respectively connected to the third terminal P3 and the fourth terminal P4. The input end of the CAN transceiver isolation module is connected to the main control module, and the output end is connected to the third terminal P3. The main control module is respectively connected to the power supply module and the second terminal P2.

[0052] The serial interfaces of drones include SBUS and mavlink protocols with TTL interfaces, and droncan and other protocols with CAN interfaces; the communication interface of industrial control PLC is the modbus protocol of 485, and the 485 interface of vehicle-mounted pan-tilt is the Pelcod_D / P protocol; there are also various sensors, and the interfaces and protocols of actuators are very different. When these devices are connected to unmanned vehicles for use, the interfaces and protocols are not interoperable and cannot be used. However, this application realizes the protocol conversion of SBUS, mavlink, dronecan, modbus, and PelcoD / P for each TTL, 485, and CAN interface, enabling third-party devices to communicate with unmanned vehicles very conveniently. And protocol conversion of various non-standard devices. Specifically, for example, it can achieve:

[0053] 1. After the Mavlink protocol of the UAV flight controller is converted to Modbus, the PLC can directly read and write the flight controller data;

[0054] 2. The SBUS signal of the UAV remote controller is converted to the Pelcod / P protocol to control the vehicle-mounted pan-tilt;

[0055] 3. The SBUS signal of the UAV remote controller is converted to CAN to control the brushless motor drive and steering gear with CAN interface;

[0056] 4. The SBUS signal of the UAV remote controller is converted to 485 to control a certain servo motor;

[0057] 5. The SBUS signal of the UAV remote controller is converted to the Modbus protocol, and the PLC reads it to control the industrial control equipment;

[0058] 6. The servo motor with CAN interface of a certain device is converted to 485 and connected to the PLC;

[0059] 7. The Modbus protocol of a certain sensor is converted to the Mavlink protocol of the unmanned boat to realize water quality data monitoring;

[0060] 8. The Mavlink protocol of the unmanned boat is converted to the Modbus protocol and uploaded to the cloud platform to realize remote data interaction.

[0061] As an embodiment of the present application, Figure 2 is the circuit diagram of the main control module of the present application, Figure 10The circuit diagram of each terminal block, the main control module includes a control chip U7, a first capacitor C1, a second capacitor C2, a twelfth resistor R12, a third capacitor C3 and a first resistor R1, the No. 1 pin of the control chip U7 is grounded, the No. 2 pin of the control chip U7 is respectively connected to the output end of the power module, one end of the first capacitor C1 and one end of the second capacitor C2, the other end of the first capacitor C1 and the other end of the second capacitor C2 are respectively grounded, the No. 3 pin of the control chip U7 is respectively connected to one end of the twelfth resistor R12 and one end of the third capacitor C3, the other end of the twelfth resistor R12 is connected to the output end of the power module, the other end of the third capacitor C3 is connected Grounded, the first IO pin of the control chip U7 is connected to the second transmitting terminal TX2 in the second wiring terminal P2 through the first resistor R1, the No. 30 pin of the control chip U7 is connected to the first receiving terminal RX1 of the second wiring terminal P2, and the No. 31 pin of the control chip U7 is connected to the first transmitting terminal TX1 of the second wiring terminal P2. The core of the main control module is the control chip U7 of model ESP32-WROOM-32, which has the characteristics of scalability and adaptability, and also integrates a wealth of peripherals, including capacitive touch sensors, SD card interfaces, TTL interfaces, CAN interfaces, high-speed SDIO / SPI, UART interfaces and 485 interfaces. All the interfaces with TX~ in the circuit are TTL interfaces. The main control module can write the received data into the corresponding interface storage and send data out through the corresponding interface.

[0062] The main control module also includes a fourteenth resistor R14, a fourth resistor R4, a first onboard indicator light L1, and a second onboard indicator light L2. The second IO pin of the control chip U7 is connected to the first onboard indicator light through the fourteenth resistor R14 and then to ground. The third IO pin of the control chip U7 is connected to the second onboard indicator light through the fourth resistor R4 and then to ground. The onboard indicator light of the present application is an LED status display light, which indicates the corresponding working status of the multi-function protocol conversion board through different flashing frequencies or display colors.

[0063] refer to Figure 3 This is the circuit diagram of pin header J1. Figure 4 The circuit diagram of the filter circuit is shown in FIG. 1 . The main control module further includes a pin header J1 and a filter circuit. The pin header J1 is used for signal transmission and can be connected to an external controller for program download. The pin header J1 and the filter circuit are respectively connected to the control chip U7. The filter circuit includes a fourth capacitor C4, an eleventh resistor R111 and a thirteenth resistor R13. The filter circuit is used to filter the entire circuit.

[0064] As an embodiment of the present application, refer to Figure 5It is a circuit diagram of a serial port reverse circuit. The serial port reverse circuit at least includes a triode Q2, a tenth resistor R10, an eleventh resistor R11, and a twelfth resistor R12. The base of the triode Q2 is connected to the SUBS pin of the first terminal P1 through the tenth resistor R10, and the eleventh resistor R11 is connected to the 1st pin of the control chip U7. When SBUS communicates, data needs to be transmitted through reverse levels. Therefore, the data recognition of the main control module is realized through the set serial port reverse circuit, and the SBUS communication of the TTL interface is realized through the connection between the serial port reverse circuit and the main control module.

[0065] As an embodiment of the present application, refer to Figure 6 It is a circuit diagram of a TTL to 485 converter. The TTL to 485 circuit is used to convert the received TTL level signal into a 485 signal for protocol conversion. The TTL to 485 circuit includes an RS-485 transceiver module U6, a third resistor R3, a fifth resistor R5, an eighteenth resistor R18, and a nineteenth resistor R19. The model of the RS-485 transceiver module U6 is RSM485M. The 1st pin of the RS-485 transceiver module U6 is connected to the 30th pin of the control chip U7 through the third resistor R3. The 2nd pin of the RS-485 transceiver module U6 is connected to the 31st pin of the control chip U7 through the fifth resistor R5. The 5th pin of the RS-485 transceiver module U6 is connected to the 485A line connection end of the third terminal (P3) through the nineteenth resistor R19. The 8th pin of the RS-485 transceiver module U6 is connected to the 485B line connection end of the fourth terminal P4 through the eighteenth resistor R18.

[0066] As an embodiment of the present application, refer to Figure 7 It is a circuit diagram of a CAN transceiver isolation module. The CAN transceiver isolation module includes a sixth resistor R6, a seventh resistor R7, a ninth resistor R9, and a CAN isolation transceiver U8. The 1st pin of the CAN isolation transceiver U8 is connected to the 26th pin of the control chip U7 through the sixth resistor R6. The 2nd pin of the CAN isolation transceiver U8 is connected to the 29th pin of the control chip U7 through the seventh resistor R7. The 7th pin of the CAN isolation transceiver U8 is respectively connected to the CANH line connection end of the third terminal P3 and one end of the ninth resistor R9. The 6th pin of the CAN isolation transceiver U8 is respectively connected to the CANL line connection end of the third terminal P3 and the other end of the ninth resistor R9.

[0067] As an embodiment of the present application, refer to Figure 8 It is a circuit diagram of a 9 - 36V to 5V isolated buck sub-module Figure 9It is a circuit diagram of a 5V to 3.3V regulated power supply sub-module. The power supply module includes a 9 - 36V to 5V isolated buck module and a 5V to 3.3V regulated power supply module. The input end of the 9 - 36V to 5V isolated buck module is connected to direct current, and the output end is connected to the input end of the 5V to 3.3V regulated power supply module. The output end of the 5V to 3.3V regulated power supply module is connected to the main control module. The power supply module provides a 5V power supply and a 3.3V power supply, and the 5V power supply and the 3.3V power supply respectively provide power for each chip or circuit module on the protocol conversion board, without the need to connect a battery, a charging plug, etc. additionally.

[0068] Correspondingly, the present application also provides a protocol conversion method, which is implemented through a protocol conversion board, as Figure 11 shown in the flowchart of a protocol conversion method proposed in an embodiment of the present invention, including:

[0069] S1. Receive data from different external devices;

[0070] S2. Parse the protocols of the data received from different external devices to obtain valid data, write the valid data into the corresponding interface, and send the data according to the protocol format of the corresponding interface.

[0071] Specifically, since the interfaces and protocols of third - party devices are incompatible when accessing an unmanned vehicle and cannot be used. The present application provides a protocol conversion method, which is implemented through a protocol conversion board. By parsing the protocols of the data received from different external devices to obtain valid data, writing the valid data into the corresponding interface, and sending the data according to the protocol format of the corresponding interface.

[0072] Now, it will be described in combination with a specific application scenario:

[0073] Application scenario 1: Spectrum analyzer to mavlink protocol:

[0074] The data output by the spectrum analyzer is a custom non - standard protocol, and the hardware interface is TTL. The hardware interface of the multifunctional protocol conversion board of the present application is two - way TTL. One way is connected to the spectrum analyzer, and the other way is connected to the flight controller serial port for mavlink communication. Scheme principle: The serial port of the multifunctional conversion board receives the data sent by the spectrum analyzer and decodes it. The decoded original data is assigned to the variable of the mavlink custom message. The mavlink library is called to pack this message and send it to the flight controller through the other serial port. The data transmission link of the flight controller superimposes and sends this message to the ground station software, and the software displays the spectrum analyzer data in real time and generates a waveform window.

[0075] Application Scenario 2: In the field of drones, this multifunctional protocol conversion board and conversion method can transmit information such as the flight status and battery power of the drone to the ground station or remote controller through the MAVLink protocol; at the same time, it can also transmit the control instructions of the remote controller to the drone flight control system through the SBUS protocol.

[0076] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the essence of the above technical solution, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of each embodiment or some parts of the embodiments.

[0077] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of each embodiment of the present invention.

[0078] The above are only the preferred embodiments of the present invention, and are not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A multifunctional protocol conversion board, characterized in that: include: A main control module, a serial port reverse circuit, a TTL to 485 circuit, a CAN transceiver isolation module, a power supply module, and a first wiring terminal (P1), a second wiring terminal (P2), a third wiring terminal (P3) and a fourth wiring terminal (P4), wherein the input end of the serial port reverse circuit is connected to the main control module, and the output end is connected to the first wiring terminal (P1), the input end of the TTL to 485 circuit is connected to the main control module, and the output end is respectively connected to the third wiring terminal (P3) and the fourth wiring terminal (P4), the input end of the CAN transceiver isolation module is connected to the main control module, and the output end is connected to the third wiring terminal (P3), the main control module is respectively connected to the power supply module and the second wiring terminal (P2), according to the first wiring terminal (P1) ), the second wiring terminal (P2), the third wiring terminal (P3) and the fourth wiring terminal (P4) are connected to a third-party device of a corresponding interface, wherein the serial port reverse circuit at least includes a transistor (Q2) and a tenth resistor (R10), the base of the transistor (Q2) is connected to the first wiring terminal (P1) through the tenth resistor (R10), the TTL to 485 circuit includes an RS-485 transceiver module (U6), an eighteenth resistor (R18) and a nineteenth resistor (R19), the RS-485 transceiver module (U6) is connected to the third wiring terminal (P3) through the nineteenth resistor (R19), and the RS-485 transceiver module (U6) is connected to the fourth wiring terminal (P3) through the eighteenth resistor (R18).

2. The multifunctional protocol conversion board according to claim 1, characterized in that: The main control module comprises a control chip (U7), a first capacitor (C1), a second capacitor (C2), a twelfth resistor (R12), a third capacitor (C3) and the first resistor (R1), wherein pin 1 of the control chip (U7) is grounded, pin 2 of the control chip (U7) is respectively connected to the output end of the power module, one end of the first capacitor (C1) and one end of the second capacitor (C2), the other end of the first capacitor (C1) and the other end of the second capacitor (C2) are respectively grounded, and pin 3 of the control chip (U7) is respectively connected to one end of the twelfth resistor (R12) and the third capacitor (C3) one end of the twelfth resistor (R12) is connected to the output end of the power module, the other end of the third capacitor (C3) is grounded, the first IO pin of the control chip (U7) is connected to the second transmitting end (TX2) of the second wiring terminal (P2) through the first resistor (R1), the No. 30 pin of the control chip (U7) is connected to the first receiving end (RX1) of the second wiring terminal (P2), and the No. 31 pin of the control chip (U7) is connected to the first transmitting end (TX1) of the second wiring terminal (P2), wherein the model of the control chip (U7) is ESP32-WROOM-32; The main control module also includes a fourteenth resistor (R14), a fourth resistor (R4), a first onboard indicator light (L1) and a second onboard indicator light (L2); the second IO pin of the control chip (U7) is connected to the first onboard indicator light through the fourteenth resistor (R14) and then to ground; the third IO pin of the control chip (U7) is connected to the second onboard indicator light through the fourth resistor (R4) and then to ground.

3. The multifunctional protocol conversion board according to claim 2, characterized in that: Also includes: The main control module also includes a pin header and a filter circuit, and the pin header and the filter circuit are respectively connected to the control chip (U7).

4. The multifunctional protocol conversion board according to claim 1, characterized in that: The serial port reverse circuit also includes an eleventh resistor (R11), and the eleventh resistor (R11) is connected to the control chip (U7).

5. The multifunctional protocol conversion board according to claim 1, characterized in that: The TTL to 485 circuit further comprises an RS-485 transceiver module (U6) of model RSM485_C19724249, a third resistor (R3) and a fifth resistor (R5); pin 1 of the RS-485 transceiver module (U6) is connected to pin 30 of the control chip (U7) through the third resistor (R3); pin 2 of the RS-485 transceiver module (U6) is connected to pin 31 of the control chip (U7) through the fifth resistor (R5); pin 5 of the RS-485 transceiver module (U6) is connected to a 485A line connection end of the third wiring terminal (P3) through a nineteenth resistor (R19); and pin 8 of the RS-485 transceiver module (U6) is connected to a 485B line connection end of the fourth wiring terminal (P3) through an eighteenth resistor (R18).

6. The multifunctional protocol conversion board according to claim 1, characterized in that: The CAN transceiver isolation module comprises a sixth resistor (R6), a seventh resistor (R7), a ninth resistor (R9) and a CAN isolation transceiver (U8) of model TD301MCAN_C5451843, wherein pin 1 of the CAN isolation transceiver (U8) is connected to pin 26 of a control chip (U7) through the sixth resistor (R6), pin 2 of the CAN isolation transceiver (U8) is connected to pin 29 of the control chip (U7) through the seventh resistor (R7), pin 7 of the CAN isolation transceiver (U8) is respectively connected to a CANH line connection end of a third wiring terminal (P3) and one end of a ninth resistor (R9), and pin 6 of the CAN isolation transceiver (U8) is respectively connected to a CANL line connection end of a third wiring terminal (P3) and the other end of the ninth resistor (R9).

7. The multifunctional protocol conversion board according to claim 1, characterized in that: The power supply module includes a 9-36V to 5V isolation and step-down submodule and a 5V to 3.3V regulated power supply submodule. The input end of the 9-36V to 5V isolation and step-down module is connected to direct current, and the output end is connected to the input end of the 5V to 3.3V regulated power supply module. The output end of the 5V to 3.3V regulated power supply module is connected to the main control module.

8. A protocol conversion method, characterized in that: The method is implemented by the multifunctional protocol conversion board according to any one of claims 1 to 7, comprising: Receive data from different external devices; The data received from different external devices are analyzed by protocol to obtain valid data, the valid data is written into the corresponding interface, and the data is sent according to the protocol format of the corresponding interface.