Heterogeneous information conversion method and device
Through heterogeneous information conversion method, the heterogeneous interface data of various devices in the drone ground control vehicle are unified into Ethernet interface data, and the Ethernet control data is converted into heterogeneous interface form, solving the problem of multiple interface types between devices , complex protocol problems realize convenient communication and efficient data processing.
Patent Information
- Application Number
- CN202411685918.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-23
- Publication Date
- 2025-02-14
AI Technical Summary
The interface types and interface protocols of the drone ground control vehicle are numerous and the interface protocols are complex, making communication inconvenient.
Through a heterogeneous information conversion method, heterogeneous interface data such as synchronous 422 serial port, asynchronous 232 serial port, asynchronous 422 serial port, PAL video, etc. are unified into Ethernet interface data with a certain format for call by the upper computer software; send the upper computer The Ethernet control data coming from is distributed to the device in a certain format in the form of heterogeneous interfaces such as synchronous 422 serial port, asynchronous 232 serial port, asynchronous 422 serial port, PAL video, etc.
Solve the problem of many interface types and complex interface protocols between various equipment in the ground control vehicle, which is inconvenient to communication, and provides convenience for data processing of rear sequence software of ground control vehicle, realizing functional modularity, interface uniformity and protocol opening It is designed to facilitate the free combination, cropping or expansion of functions, and the tasks are executed in parallel, making them highly real-time.
Smart Images

Figure CN119449888A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and in particular to a method and device for converting heterogeneous information. Background Art
[0002] The UAV ground control vehicle mainly completes the command and control of the UAV, including the monitoring of the link, the control of the flight platform and the payload platform, mission planning, information processing and distribution, etc. In order to complete these functions, many devices need to be loaded in the ground control vehicle. These devices usually use different interface types. The mission information data uses the synchronous 422 serial port, the meteorological equipment and the positioning and orientation equipment use the asynchronous 232 serial port, the remote control and telemetry data use the asynchronous 422 serial port, and the video data uses the PAL video interface. The comprehensive processing software of the host computer uniformly uses the Ethernet interface. The communication protocols of these interface signals are different, and data communication cannot be carried out between the devices, which has an impact on the expansion of the ground control vehicle system or information compatibility. The patent with application number 201010103598.8 proposes a multifunctional interface conversion device that converts USB interface, asynchronous 232 serial port, asynchronous 422 serial port, RS485 serial port and CAN bus interface into Ethernet interface data. It contains a human-computer interaction module, which needs to be set by the user. The central processing unit performs corresponding parameter settings and interface switching according to the working mode set by the user. Patent application number 201820238579.9 proposes a multifunctional communication interface converter, which realizes the conversion between various communication interfaces such as asynchronous 232, RS485 serial interface, CAN bus interface, optical fiber interface, and Ethernet interface through a mature and reliable communication interface board. Both inventions cannot realize the mutual conversion between synchronous 422 serial port and PAL video and Ethernet, and the former invention needs to be set up before each use, which adds unnecessary operation steps, while the latter invention only involves the conversion of the underlying hardware. Summary of the invention
[0003] The embodiments of the present invention provide a heterogeneous information conversion method and device, which at least solve the technical problems of multiple interface types, complex interface protocols and inconvenient communication between various devices in a ground control vehicle of an unmanned aerial vehicle.
[0004] According to one aspect of an embodiment of the present invention, a heterogeneous information conversion method is provided. The method may include: if there is a host computer and several devices in the UAV ground control vehicle, each device interface type is different, and the host computer and each device interface type are different, each device interface and the host computer interface are initialized; when uploading the data of each device to the host computer and sending the host computer data to each device, simultaneously detect whether there is data update in the receiving buffer area of each device and the host computer interface, when there is data update, the data in the receiving buffer area of each device interface is processed and placed in the network sending buffer area and sent to the host computer; the data in the receiving buffer area of the host computer interface is processed and placed in the data buffer area of each device interface and sent to each device.
[0005] Optionally, each device interface is an asynchronous RS232 serial port, an asynchronous RS422 serial port, a synchronous 422 serial port or a PAL video interface, and the host computer interface is an Ethernet interface.
[0006] Optionally, the data in the receiving buffer area of each device interface is processed and then placed in the network sending buffer area and sent to the host computer, including: when the interface of the device is an asynchronous RS232 serial port, an asynchronous RS422 serial port or a synchronous 422 serial port, the data in the receiving buffer area of the device interface is packaged and encoded and converted into network data of the data type corresponding to the asynchronous RS232 serial port, the asynchronous RS422 serial port or the synchronous 422 serial port, placed in the network sending buffer area and sent to the host computer; when the interface of the device is a PAL video interface, the PAL video data is converted into HD video data and stored in the video data buffer area, an interrupt signal is generated, the HD video data is compressed and encoded, and converted into network data of the data type corresponding to the PAL video interface, placed in the network sending buffer area and sent to the host computer.
[0007] Optionally, the data in the receiving cache area of the host computer interface is processed and placed into the data cache area of each device interface and sent to each device, including: judging the data type of the receiving cache area of the host computer interface based on the characteristics of the data in the receiving cache area of the host computer interface, wherein the data type of the receiving cache area of the host computer interface includes asynchronous RS232 serial port data, asynchronous RS422 serial port data, synchronous 422 serial port data and PAL video interface data; based on the data type of the receiving cache area of the host computer interface, converting the data in the receiving cache area of the host computer interface into data of a corresponding type; placing the converted data in the receiving cache area of the host computer interface into the data cache area of the corresponding device interface and sending it to the corresponding device.
[0008] Optionally, the data type of the receiving cache area of the host computer interface is converted into data of a corresponding type based on the data type of the receiving cache area of the host computer interface, including: when the data type of the receiving cache area of the host computer interface is an asynchronous RS232 serial port, asynchronous RS422 serial port or synchronous 422 serial port data type, encoding and framing the data in the receiving cache area of the host computer interface to obtain corresponding asynchronous RS232 serial port data, asynchronous RS422 serial port data or synchronous 422 serial port data; when the data type of the receiving cache area of the host computer interface is a PAL video interface data type, converting the data in the receiving cache area of the host computer interface into HD video data and sending it to the video data cache area; when there is data update in the video data cache area, converting the HD video data into PAL analog video data.
[0009] Beneficial effects of the present invention: The present invention proposes a heterogeneous information conversion method and device, which unifies heterogeneous interface data such as synchronous 422 serial port, asynchronous 232 serial port, asynchronous 422 serial port, PAL video, etc. into Ethernet interface data with a certain format for host computer software to call; and distributes Ethernet control data sent by the host computer to the device in a certain format in the form of heterogeneous interfaces such as synchronous 422 serial port, asynchronous 232 serial port, asynchronous 422 serial port, PAL video, etc. This solves the problem of multiple interface types and complex interface protocols between various devices in the ground control vehicle, which makes communication inconvenient, and provides convenience for the post-sequence software data processing of the ground control vehicle. The method adopts functional modularization, interface unification and protocol openness design, and can freely combine, cut or expand functions according to needs, which is convenient for secondary development. The device of the present invention can work as soon as it is powered on, without any operation, and each task is executed in parallel, with strong real-time performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings: Figure 1 is a flow chart of a heterogeneous information conversion method according to an embodiment of the present invention; Figure 2 is a workflow diagram for converting heterogeneous data to network data according to an embodiment of the present invention; Figure 3 is a workflow diagram for converting network data into heterogeneous data according to an embodiment of the present invention; Figure 4 is a structural diagram of a heterogeneous information conversion device according to an embodiment of the present invention; Figure 5 is a rear panel diagram of a heterogeneous information conversion device according to an embodiment of the present invention; Figure 6 is a diagram of a door-less front panel of a heterogeneous information conversion device according to an embodiment of the present invention; Figure 7 is a schematic diagram of a heterogeneous information conversion device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0011] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only embodiments of a part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0012] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0013] Example 1 According to an embodiment of the present invention, a method for heterogeneous information conversion is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system containing at least one set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0014] Figure 1 is a flow chart of a heterogeneous information conversion method according to an embodiment of the present invention. Figure 1 As shown, the method may include the following steps: Step S101: if there is a host computer and several devices in the UAV ground control vehicle, and each device has a different interface type, and the host computer and each device interface type are different, initialize each device interface and the host computer interface.
[0015] In the technical solution provided in the above step S101 of the present invention, when there are a host computer and several devices in the UAV ground control vehicle, the interface of the host computer is different from the interface type of each device, and the interface type of each device is different from that of each device. Initialize each device interface: after the serial port number is configured, perform the serial port opening operation. If the serial port is opened normally, set the baud rate and initialize the host computer interface: configure the local address, local port number, multicast address, and multicast port number.
[0016] Step S102, when uploading the data of each device to the host computer and sending the host computer data to each device, simultaneously detect whether there is any data update in the receiving buffer area of each device and the host computer interface. When there is data update, the data in the receiving buffer area of each device interface is processed and placed in the network sending buffer area and sent to the host computer; the data in the receiving buffer area of the host computer interface is processed and placed in the data buffer area of each device interface and sent to each device.
[0017] In the technical solution provided in the above step S102 of the present invention, when the data of each device is uploaded to the host computer and the host computer data is sent to each device, it is simultaneously detected whether there is any data update in the receiving buffer area of each device interface and whether there is any data update in the receiving buffer area of the host computer interface. If there is data update in the receiving buffer area of each device interface and the host computer interface, the data in the receiving buffer area of each device interface is processed and placed in the network sending buffer area and sent to the host computer; the data in the receiving buffer area of the host computer interface is processed and placed in the data buffer area of each device interface and sent to each device.
[0018] The above method of this embodiment is further introduced below.
[0019] As an optional implementation manner, in step S101, each device interface is an asynchronous RS232 serial port, an asynchronous RS422 serial port, a synchronous 422 serial port or a PAL video interface, and the host computer interface is an Ethernet interface.
[0020] As an optional implementation method, step S102, the data in the receiving buffer area of each device interface is processed and placed into the network sending buffer area and sent to the host computer, including: when the interface of the device is an asynchronous RS232 serial port, an asynchronous RS422 serial port or a synchronous 422 serial port, the data in the receiving buffer area of the device interface is packaged and encoded and converted into network data of the data type corresponding to the asynchronous RS232 serial port, the asynchronous RS422 serial port or the synchronous 422 serial port, placed into the network sending buffer area and sent to the host computer; when the interface of the device is a PAL video interface, the PAL video data is converted into HD video data and stored in the video data buffer area, an interrupt signal is generated, the HD video data is compressed and encoded, and converted into network data of the data type corresponding to the PAL video interface, placed into the network sending buffer area and sent to the host computer.
[0021] In this embodiment, Figure 2 1 is a flowchart of the heterogeneous data to network data conversion process according to an embodiment of the present invention. Figure 2 As shown, whether there is data update in the asynchronous RS232 serial port receiving buffer area, if there is data update, the data is unpacked and encoded according to the specified protocol, and converted into network data in a specified format, and it is placed in the network sending buffer area and sent.
[0022] The steps of converting asynchronous RS422 serial port data to network data and the steps of converting synchronous 422 serial port data to network data are the same as the steps of converting asynchronous RS232 serial port data to network data.
[0023] In the step of converting analog video data to network data, when analog video PAL data is input, the PAL video data is converted into 16-bit HD raw video data through the video decoder TVP5158, stored in the video data buffer, and an interrupt signal is generated and sent to the video processor DM8158 for video compression and encoding, and converted into network data in a specified format, placed in the network data sending buffer and sent.
[0024] For example, to convert synchronous 422 serial port data to network data: The first step is to initialize the parameters; The second step is to simultaneously detect whether the receiving buffer area of each device and the host computer interface has data updated; Step 3: When it is detected that there is serial port data update in the synchronous 422 serial port data buffer, the data is packaged every 512 bytes according to the following network protocol format, where 0-3 bytes are the frame header, 4-7 bytes are the frame length, 8-9 bytes are the frame sequence number, 10 bytes are spare, 11 bytes are the data source number, 12-13 bytes are spare, 14-525 bytes are frame data, and 526-527 are the frame tail; The fourth step is to put the packaged data into the network data sending buffer, send it to the pre-set network address and port, and clear the sending buffer at the same time.
[0025] As an optional implementation method, step S102, the data in the receiving cache area of the host computer interface is processed and placed into the data cache area of each device interface and sent to each device, including: judging the data type of the receiving cache area of the host computer interface based on the characteristics of the data in the receiving cache area of the host computer interface, wherein the data type of the receiving cache area of the host computer interface includes asynchronous RS232 serial port data, asynchronous RS422 serial port data, synchronous 422 serial port data and PAL video interface data; based on the data type of the receiving cache area of the host computer interface, converting the data in the receiving cache area of the host computer interface into data of a corresponding type; placing the converted data in the receiving cache area of the host computer interface into the data cache area of the corresponding device interface and sending it to the corresponding device.
[0026] In this embodiment, Figure 3 1 is a flowchart of the network data conversion process according to an embodiment of the present invention. Figure 3 As shown, the type of data in the receive buffer area of the host computer interface is determined based on the characteristics of the data in the receive buffer area of the host computer interface; the data in the receive buffer area of the host computer interface is converted into data of a corresponding type according to the type of data in the receive buffer area of the host computer interface; the converted data in the receive buffer area of the host computer interface is placed into the data buffer area of the corresponding device interface and sent to the corresponding device.
[0027] As an optional implementation method, the data type of the receiving cache area of the host computer interface is converted into data of a corresponding type based on the data type of the receiving cache area of the host computer interface, including: when the data type of the receiving cache area of the host computer interface is an asynchronous RS232 serial port, asynchronous RS422 serial port or synchronous 422 serial port data type, the data in the receiving cache area of the host computer interface is encoded and framed to obtain corresponding asynchronous RS232 serial port data, asynchronous RS422 serial port data or synchronous 422 serial port data; when the data type of the receiving cache area of the host computer interface is a PAL video interface data type, the data in the receiving cache area of the host computer interface is converted into HD video data and sent to the video data cache area; when the video data cache area has data update, the HD video data is converted into PAL analog video data.
[0028] In this embodiment, in the step of converting network data to heterogeneous data, it is detected whether there is data update at the Ethernet receiving buffer area. If there is data update, it is judged according to the network address and port, and the data is classified. If it needs to be converted into an RS232 serial port data type, it is encoded and framed according to the specified format, placed in the RS232 serial port data sending buffer area, and sent; if it needs to be converted into an RS422 serial port data type, it is encoded and framed according to the specified format, placed in the RS422 serial port data sending buffer area, and sent; if it needs to be converted into a synchronous 422 serial port data type, it is encoded and framed according to the specified format, placed in the RS422 serial port data sending buffer area, and sent; if it needs to be converted into a PAL analog video data type, the network data is sent to the video processor DM8158 for decompression processing to obtain the original video data, and the original video data is stored in the video data buffer area. When it is detected that there is data update in the video data buffer area, it is sent to the video decoder TVP5158 to convert the original video data into PAL analog video data of the specified format, put it into the video data sending buffer area, and send it.
[0029] The present invention also provides a heterogeneous information conversion device. Figure 4 is a structural diagram of a heterogeneous information conversion device according to an embodiment of the present invention, such as Figure 4 As shown, the device as a whole adopts a reinforced sealed chassis 1, an integral CPCI rail 2 is provided inside the chassis, the rear bus board is fixed to the rear of the rail 2, and the power board 4, video board 5, serial port board 6, and switch board 7 can be plugged in and fixed through the rail 2. The power board 4, video board 5, serial port board 6, and switch board 7 are inserted into the rear bus board, and the rear bus board is connected to the aviation connector of the rear panel of the chassis to realize data exchange, and the video board 5 and the serial port board 6 store control programs for heterogeneous information conversion.
[0030] Figure 5 is a rear panel diagram of a heterogeneous information conversion device according to an embodiment of the present invention, such as Figure 5 As shown, the rear panel of the chassis 1 is provided with an external aviation connector, a fan 15 and a grounding post 16, and a heat dissipation hole is opened at the fan 16; hanging shafts are installed at the left and right side panels of the chassis.
[0031] The external aviation connectors are power supply connector 9, asynchronous RS232 serial port connector 10, asynchronous 422 serial port connector 11, synchronous 422 serial port connector 12, PAL video interface connector 13, and Ethernet serial port connector 14. The number of various connectors can be increased or decreased according to actual needs. The asynchronous RS232 serial port connector 10, asynchronous 422 serial port connector 11, synchronous 422 serial port connector 12, PAL video interface connector 13, and Ethernet serial port connector 14 are connected to the corresponding interfaces of the rear bus board, the ground wire of connector 9 is connected to the grounding column 15, the live wire and the neutral wire of connector 9 are respectively connected to one end of the power switch 8, and the other end of the power switch is connected to the power board 4.
[0032] When the power switch 8 is pressed, the power indicator light is on, and the external AC220V AC power is converted by the power board 4 and distributed to the video board 5, the serial port board 6, the switch board 7, and the fan 15. The video board 5, the serial port board 6, the switch board 7, and the fan 15 start to work.
[0033] The asynchronous RS232 serial port connector 10, the asynchronous 422 serial port connector 11, the synchronous 422 serial port connector 12, and the PAL video interface connector 13 are respectively connected to several devices in the UAV ground control vehicle, and the Ethernet serial port connector is respectively connected to a host computer and several devices in the UAV ground control vehicle; wherein, the interface of the host computer is different from the interface type of each device, and the interface type of each device is different from that of each device.
[0034] When the power switch 8 is pressed, the power indicator light comes on, and the external AC220V alternating current is converted by the power board 4 and distributed to the video board 5, the serial port board 6, the switch board 7, and the fan 15. The video board 5, serial port board 6, switch board 7 and fan 15 start working and start to initialize each device interface: after the serial port number is configured, perform the serial port opening operation. If the serial port is opened normally, set the baud rate and initialize the host computer interface: configure the local address, local port number, multicast address and multicast port number. At the same time, detect whether there is data update in the receive buffer of each device and host computer interface. When there is data update in the receive buffer of each device interface, send the data in the receive buffer of the asynchronous RS232 serial port, asynchronous RS422 serial port and synchronous 422 serial port through the asynchronous RS232 serial port connector 10, asynchronous 422 serial port connector 11 and synchronous 422 serial port connector 12 to the serial port board 6. The serial port board 6 packages and encodes the data in the receive buffer of the asynchronous RS232 serial port, asynchronous RS422 serial port and synchronous 422 serial port. The code is converted into network data in the target format of asynchronous RS232 serial port, asynchronous RS422 serial port or synchronous 422 serial port, and the data in the receiving buffer area of the PAL video interface is sent to the video board 5 through the PAL video interface connector 13. The video board 5 converts the PAL video data into HD video data and stores it in the video data buffer area, generates an interrupt signal, compresses and encodes the HD video data, and converts it into network data in the target format of the PAL video interface. The serial port board 6 sends the network data in the target format of the asynchronous RS232 serial port, asynchronous RS422 serial port or synchronous 422 serial port, and the video board 5 sends the network data in the target format of the PAL video interface to the switch board 7. The switch board 7 and the Ethernet serial port connector 14 put the data sent by the serial port board 6 and the video board 5 into the network sending buffer area and send it to the host computer.
[0035] When there is data update in the receiving buffer area of the upper computer interface, the data is classified according to the characteristics of the data, and the classified data in the receiving buffer area of the upper computer interface is sent to the switching board 7 through the Ethernet serial port connector 14. The switching board 7 sends the classified data to the serial port board 6 or the video board 5. The serial port board 6 encodes and frames the classified data type into asynchronous RS232 serial port, asynchronous RS422 serial port or synchronous 422 serial port data type according to the asynchronous RS232 serial port, asynchronous RS422 serial port or synchronous 422 serial port target format to obtain the converted data in the receiving buffer area of the upper computer interface. The converted data type is asynchronous RS232 serial port data, asynchronous RS422 serial port data or synchronous 422 serial port data through the asynchronous RS2 32 serial port connector 10, asynchronous 422 serial port connector 11, synchronous 422 serial port connector 12, sent to the data buffer area of the corresponding device interface and sent to the corresponding device; the video board 5 sends the classified data type as PAL format video interface data to the video processor DM8158 for decompression processing to obtain the original video data, and stores the original video data in the video data buffer area. When it is detected that the video data buffer area has data update, it is sent to the video decoder TVP5158 to convert the original video data into PAL analog video data in a specified format, and the converted data type is the PAL analog video data in a specified format. The format is placed in the video data sending buffer area of the corresponding device through the PAL video interface connector 13 and sent to the corresponding device.
[0036] Power board 4 is a standard CPCI6U power module, with AC220V input and output of +5V, 12V, and +3.3V; switch board 7 realizes network data exchange between serial port board 6, video board 5, and the host computer. The Gigabit network port exchange unit is realized by chip 88E6185, which supports up to 10 switching network ports; the core processor of video board 5 is DM8168, which is a high-performance DaVinci video processor of TI company, supports PAL video input and output, has H.264 encoding and decoding functions, and supports Gigabit network interface design; the core processor of serial port board 6 adopts MPC8548, which has data processing capabilities above gigahertz, realizes network and telecommunication transmission exchange, runs VXWorks real-time system, and is convenient for users to conduct secondary development; high-speed synchronous asynchronous 422 serial port data is first pre-processed by Spartan-6 series XC6SLX16, and then sent to the processor to ensure that high-speed data is not lost. The asynchronous multi-channel serial port is expanded through the PCIE bus using the OxPCIE958 chip.
[0037] Figure 6 is a front panel diagram of a heterogeneous information conversion device without a door panel according to an embodiment of the present invention, such as Figure 6As shown, the front panel of the reinforced sealed chassis 1 is provided with a power switch 8 and a square hole. A circle of 3mm wide and 3mm deep grooves is arranged around the square hole. Conductive shielding material is installed in the groove. The square hole is used in conjunction with the door panel 3. The door panel 3 has heat dissipation holes. A shielding dustproof net is installed at the heat dissipation holes. The door panel 3 can rotate vertically around one side of the square hole, and the other side is fixed to the front panel of the chassis 1 with a fastener that does not come out. The square hole is 290mm long and 148mm wide.
[0038] In the embodiment of the present invention, if there is a host computer and several devices in the UAV ground control vehicle, each device interface type is different, and the interface type of the host computer and each device is different, each device interface and the host computer interface are initialized; when uploading the data of each device to the host computer and sending the host computer data to each device, it is simultaneously detected whether there is data update in the receiving buffer area of each device and the host computer interface. When there is data update, the data in the receiving buffer area of each device interface is processed and put into the network sending buffer area and sent to the host computer; the data in the receiving buffer area of the host computer interface is processed and put into the data buffer area of each device interface and sent to each device, thereby solving the technical problems of multiple interface types, complex interface protocols and inconvenient communication between various devices in the UAV ground control vehicle, and achieving the technical effect of freely combining, cutting or expanding functions as needed by adopting functional modularization, interface unification and protocol openness design, facilitating secondary development, and facilitating communication between various devices.
[0039] Example 2 According to an embodiment of the present invention, a heterogeneous information conversion device is also provided. It should be noted that the heterogeneous information conversion device can be used to execute a heterogeneous information conversion method in embodiment 1.
[0040] Figure 7 is a schematic diagram of a heterogeneous information conversion device according to an embodiment of the present invention. Figure 7 As shown, a schematic diagram of a heterogeneous information conversion device may include: an initialization unit and a processing unit.
[0041] An initialization unit is used to initialize each device interface and the host computer interface if there is a host computer and several devices in the UAV ground control vehicle, each device interface type is different, and the host computer interface type is different from each device interface type; The processing unit is used to upload the data of each device to the host computer and send the host computer data to each device, and at the same time detect whether there is data update in the receiving buffer area of each device and the host computer interface. When there is data update, the data in the receiving buffer area of each device interface is processed and placed in the network sending buffer area and sent to the host computer; the data in the receiving buffer area of the host computer interface is processed and placed in the data buffer area of each device interface and sent to each device.
[0042] In this embodiment, an initialization unit is used to initialize each device interface and the host computer interface if there are a host computer and several devices in the UAV ground control vehicle, each device interface type is different, and the host computer interface type is different from each device interface type; a processing unit is used to upload the data of each device to the host computer and send the host computer data to each device, and at the same time detect whether there is data update in the receiving buffer area of each device and the host computer interface. When there is data update, the data in the receiving buffer area of each device interface is processed and put into the network sending buffer area and sent to the host computer; the data in the receiving buffer area of the host computer interface is processed and put into the data buffer area of each device interface and sent to each device, which solves the technical problems of multiple interface types, complex interface protocols and inconvenient communication between various devices in the ground control vehicle of the UAV ground control vehicle, and achieves the technical effect of freely combining, cutting or expanding functions as needed by adopting functional modularization, interface unification and protocol openness design, facilitating secondary development, and facilitating communication between devices.
[0043] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0044] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0045] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0046] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0047] In addition, each functional unit in each embodiment of the present invention may be integrated into a first processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0048] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for converting heterogeneous information, characterized in that: include: If there is a host computer and several devices in the UAV ground control vehicle, and the interface type of each device is different, and the interface type of the host computer and each device is different, initialize each device interface and the host computer interface; When uploading the data of each device to the host computer and sending the data of the host computer to each device, it is detected whether there is data update in the receiving buffer area of each device and the host computer interface. When there is data update, the data in the receiving buffer area of each device interface is processed and put into the network sending buffer area and sent to the host computer; The data in the receiving buffer area of the host computer interface is processed and placed in the data buffer area of each device interface and sent to each device.
2. The method according to claim 1, characterized in that Each device interface is an asynchronous RS232 serial port, an asynchronous RS422 serial port, a synchronous 422 serial port or a PAL video interface, and the host computer interface is an Ethernet interface.
3. The method according to claim 2, characterized in that The processing of the data in the receiving buffer area of each device interface into the network sending buffer area and sending the data to the host computer includes: When the interface of the device is an asynchronous RS232 serial port, an asynchronous RS422 serial port or a synchronous 422 serial port, the data in the receiving buffer area of the device interface is packaged and encoded and converted into network data of the data type corresponding to the asynchronous RS232 serial port, the asynchronous RS422 serial port or the synchronous 422 serial port, and then put into the network sending buffer area and sent to the host computer; When the device interface is a PAL video interface, the PAL video data is converted into HD video data and stored in the video data buffer, an interrupt signal is generated, the HD video data is compressed and encoded, and converted into network data of the data type corresponding to the PAL video interface, placed in the network send buffer and sent to the host computer.
4. The method according to claim 2, characterized in that: The processing of the data in the receiving buffer area of the host computer interface and then placing the data in the data buffer area of each device interface and sending the data to each device includes: Determine the data type of the receive buffer area of the host computer interface based on the characteristics of the data in the receive buffer area of the host computer interface, wherein the data type of the receive buffer area of the host computer interface includes asynchronous RS232 serial port data, asynchronous RS422 serial port data, synchronous 422 serial port data and PAL standard video interface data; Based on the data type of the receiving buffer area of the host computer interface, convert the data in the receiving buffer area of the host computer interface into data of a corresponding type; The converted data in the receiving buffer area of the upper computer interface is placed in the data buffer area of the corresponding device interface and sent to the corresponding device.
5. The method according to claim 4, characterized in that The data type of the receiving buffer area of the host computer interface is converted into data of a corresponding type based on the data type of the receiving buffer area of the host computer interface, including: When the data type of the receiving buffer area of the host computer interface is an asynchronous RS232 serial port, an asynchronous RS422 serial port, or a synchronous 422 serial port data type, the data of the receiving buffer area of the host computer interface is encoded and framed to obtain corresponding asynchronous RS232 serial port data, asynchronous RS422 serial port data, or synchronous 422 serial port data; When the data type of the receiving cache area of the host computer interface is the PAL video interface data type, the data of the receiving cache area of the host computer interface is converted into HD video data and sent to the video data cache area. When the video data cache area has data update, the HD video data is converted into PAL analog video data.
6. A heterogeneous information conversion device, characterized in that: include: An initialization unit is used to initialize each device interface and the host computer interface if there is a host computer and several devices in the UAV ground control vehicle, each device interface type is different, and the host computer interface type is different from each device interface type; The processing unit is used to upload the data of each device to the host computer and send the host computer data to each device, and at the same time detect whether there is data update in the receiving buffer area of each device and the host computer interface. When there is data update, the data in the receiving buffer area of each device interface is processed and put into the network sending buffer area and sent to the host computer; The data in the receiving buffer area of the host computer interface is processed and placed in the data buffer area of each device interface and sent to each device.
7. A computer system, characterized in that include: One or more processors, and a computer-readable storage medium for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method of claim 1.
8. A computer-readable storage medium, characterized in that Computer executable instructions are stored, and when the instructions are executed, they are used to implement the method of claim 1.
9. A computer program product, characterized in that The invention comprises computer executable instructions, which are used to implement the method of claim 1 when being executed.
Citation Information
Patent Citations
Multifunctional interface conversion device
CN101789557A
Multi -functional communication interface converter
CN207819936U