Serial port equipment control device and system

Through the FPGA-based serial device control device and the use of network data transmission components and priority control modules, low-cost control of hundreds of serial device devices is achieved, which solves the problems of complexity and high cost of multi-channel serial device connection in the existing technology. , suitable for large-scale serial device control scenarios.

CN118689797APending Publication Date: 2024-09-24GUSU LAB OF MATERIALS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410818774.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing serial port device control methods increase system complexity and cost when connecting multiple serial port devices. Especially in serial port collection applications of a large number of distributed sensor data, there is a lack of efficient serial port servers with hundreds of channels on the market and the cost of customization is high.

Method used

Using an FPGA-based serial port device control device, through network data transmission components, priority control modules, bridge modules and multiple serial port data transmission components, low-cost control of hundreds of serial port devices is achieved. By parsing and encapsulating network interaction data, Determine the serial port data transmission component whose destination port number matches, and send data according to the preset protocol priority.

Benefits of technology

It achieves low-cost and efficient control of hundreds of serial port devices, reduces system complexity and cost, and is suitable for serial port collection scenarios of a large number of distributed sensor data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689797A
    Figure CN118689797A
Patent Text Reader

Abstract

The invention relates to the technical field of communication, and discloses a serial port equipment control device and system. The device comprises the following steps: analyzing first network interaction data through a network data transmission component, obtaining an equipment message and a destination port number, sending the equipment message and the destination port number to a bridging module, packaging serial data and the destination port number sent by the bridging module, obtaining second network interaction data, and sending the second network interaction data to a priority control module; a serial port data transmission assembly matched with the destination port number is determined through a bridging module, the equipment message is sent to the serial port data transmission assembly, and serial data and the destination port number are sent to a network data transmission assembly; sending a device message to a corresponding serial port device through a serial port data transmission component, and sending serial data to a bridging module; and sending the second network interaction data to the host device through the priority control module according to the preset protocol priority. According to the scheme of the embodiment, hundreds of serial port devices can be controlled at low cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a serial port device control device and system. Background Art

[0002] As the most basic communication interface, the serial port uses two lines, send and receive, to complete transmission and reception. It is most commonly used in the control of many devices, especially small devices.

[0003] At present, the existing serial device control method usually uses a multi-channel serial port server to control multiple serial port devices when a system needs to connect multiple serial port devices. However, the use of a multi-channel serial port server not only increases the complexity of the system, but also increases the cost; moreover, in some large-scale distributed sensor data serial port acquisition application scenarios, the number of serial ports can reach hundreds, and there are few serial port servers with hundreds of channels on the market and the customization cost is high. If a serial port server with a small number of channels is used for cascading, the cost is not low and the system is bloated. Summary of the invention

[0004] The present invention provides a serial port device control device and system, which can realize the control of hundreds of serial port devices at low cost.

[0005] According to one aspect of the present invention, there is provided a serial port device control device, comprising a network data transmission component, a priority control module, a bridge module and a plurality of serial port data transmission components, wherein the priority control module is connected to each of the serial port data transmission components through the network data transmission component and the bridge module, and the serial port data transmission components correspond to serial port devices one by one;

[0006] The network data transmission component is used to parse the first network interaction data sent by the host device, obtain the device message and the destination port number, and send the device message and the destination port number to the bridge module, and encapsulate the serial data and the destination port number sent by the bridge module, obtain the second network interaction data, and send the second network interaction data to the priority control module;

[0007] The bridging module is used to determine the serial port data transmission component that matches the destination port number, and send the device message to the serial port data transmission component, and when receiving the serial data sent by the serial port data transmission component, send the serial data and the destination port number to the network data transmission component;

[0008] The serial port data transmission component is used to send the device message to the corresponding serial port device when receiving the device message sent by the bridge module, and send the serial data to the bridge module when receiving the serial data sent by the serial port device;

[0009] The priority control module is used to send the second network interaction data to the host device according to a preset protocol priority.

[0010] Optionally, the serial port device control device further includes a media access control module;

[0011] The medium access control module is connected to the network data transmission component and the priority control module respectively, and is used to receive first network interaction data sent by the host device, and send the first network interaction data to the network data transmission component, and receive second network interaction data sent by the priority control module, and send the second network interaction data to the host device;

[0012] The network data transmission component is further used to parse the first network interaction data sent by the media access control module to obtain a device message and a destination port number;

[0013] The priority control module is further used to send the second network interaction data to the media access control module according to a preset protocol priority.

[0014] Optionally, the serial port device control device further includes a status query module;

[0015] The status query module is connected to the media access control module and the priority control module respectively, and is used to generate status response data and send it to the priority control module when receiving the device status query instruction sent by the media access control module, and the status response data and the network interaction data adopt different Ethernet protocols;

[0016] The media access control module is further used to send the device status query instruction sent by the host device to the status query module, and send the status response data sent by the priority control module to the host device;

[0017] The priority control module is further used to send the status response data to the media access control module according to a preset protocol priority.

[0018] Optionally, the network data transmission component includes a network data receiving module and a network data sending module;

[0019] The network data receiving module is connected to the media access control module and the bridge module respectively, and is used to parse the first network interaction data sent by the media access control module, obtain the device message and the destination port number, and send the device message and the destination port number to the bridge module;

[0020] The network data sending module is connected to the bridge module and the priority control module respectively, and is used to encapsulate the serial data and the destination port number sent by the bridge module, obtain the second network interaction data, and send the second network interaction data to the priority control module.

[0021] Optionally, the serial port data transmission component includes a serial port data sending module and a serial port data receiving module;

[0022] The serial port data sending module is used to send the device message to the corresponding serial port device when receiving the device message sent by the bridge module;

[0023] The serial port data receiving module is used to send the serial data to the bridge module when receiving the serial data sent by the serial port device.

[0024] Optionally, the bridging module is specifically used for:

[0025] According to a mapping relationship between a preset destination port number and a serial port data transmission component identifier, a serial port data transmission component matching the destination port number is determined.

[0026] According to another aspect of the present invention, a serial port device control system is provided, comprising a host device, multiple serial port devices and the serial port device control device according to any embodiment of the present invention, wherein the host device is connected to each of the serial port devices through the serial port device control device.

[0027] The technical solution of the embodiment of the present invention is to parse the first network interaction data sent by the host device through the network data transmission component, obtain the device message and the destination port number, and send the device message and the destination port number to the bridge module, and encapsulate the serial data and the destination port number sent by the bridge module to obtain the second network interaction data, and send the second network interaction data to the priority control module; determine the serial port data transmission component matching the destination port number through the bridge module, and send the device message to the serial port data transmission component, and when receiving the serial data sent by the serial port data transmission component, send the serial data and the destination port number to the network data transmission component; when the serial port data transmission component receives the device message sent by the bridge module, the device message is sent to the corresponding serial port device, and when receiving the serial data sent by the serial port device, the serial data is sent to the bridge module; send the second network interaction data to the host device according to the preset protocol priority through the priority control module; by realizing the serial port device control device based on the field programmable gate array (Field-ProgrammableGate Array, FPGA), the serial port data transmission component and the serial port device are one-to-one corresponding, and the control of hundreds of serial port devices can be realized at a low cost.

[0028] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0030] Figure 1 is a structural schematic diagram of a serial port device control device provided according to Embodiment 1 of the present invention;

[0031] Figure 2 is a structural schematic diagram of another serial port device control device provided according to Embodiment 1 of the present invention;

[0032] Figure 3 is a structural schematic diagram of another serial port device control device provided according to Embodiment 1 of the present invention;

[0033] Figure 4 is a schematic diagram of the structure of a network data transmission component provided according to Embodiment 1 of the present invention;

[0034] Figure 5 is a structural diagram of a serial port data transmission component provided according to Embodiment 1 of the present invention;

[0035] Figure 6 It is a structural diagram of a serial port device control system provided according to the second embodiment of the present invention. DETAILED DESCRIPTION

[0036] 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 part of the embodiments of the present invention, not all of the 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.

[0037] It should be noted that the terms "first", "second", "target", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data 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 clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0038] Embodiment 1

[0039] Figure 1 A structural diagram of a serial port device control device is provided for the first embodiment of the present invention. The serial port device control device 10 may include a network data transmission component 11, a priority control module 12, a bridge module 13 and multiple serial port data transmission components 14. The priority control module 12 is connected to each of the serial port data transmission components 14 through the network data transmission component 11 and the bridge module 13. The serial port data transmission components 14 correspond one-to-one to the serial port devices 22. In this embodiment, the serial port device control device 10 may be implemented based on FPGA.

[0040] The network data transmission component 11 is used to parse the first network interaction data sent by the host device 21, obtain the device message and the destination port number, and send the device message and the destination port number to the bridge module 13, and encapsulate the serial data and the destination port number sent by the bridge module 13, obtain the second network interaction data, and send the second network interaction data to the priority control module 12.

[0041] In this embodiment, different Ethernet transport layer protocols may be used for data exchange between the host device 21 and the serial port device control device 10, for example, the transmission control protocol (TCP), the user datagram protocol (UDP), etc. In a specific example, when the host device 21 and the serial port device control device 10 use the UDP protocol for data exchange, the network data transmission component 11 may parse the first network interaction data based on the UDP message format to obtain the device message and the destination port number. Secondly, when receiving the serial data and the destination port number fed back by the bridge module 13, the serial data and the destination port number may also be encapsulated based on the UDP message format to obtain the second network interaction data.

[0042] The destination port number corresponds to the serial port device 22 one by one, and typically has a value ranging from 0 to 65535. In this embodiment, a mapping relationship between the serial port device identifier and the destination port number can be preset, and the mapping relationship can be pre-stored in each device.

[0043] It should be noted that the host device 21 is pre-configured with message formats that match different serial port devices 22. When a command needs to be sent to a serial port device 22, first, a device message corresponding to the command can be generated according to the message format that matches the serial port device 22. At the same time, the target port number corresponding to the identifier of the serial port device 22 can be obtained by searching the above-mentioned mapping relationship; then, the device message and the destination port number can be encapsulated according to the data interaction protocol between the serial port device control device 10 to generate network interaction data and send it to the serial port device control device 10.

[0044] The bridging module 13 is used to determine the serial port data transmission component 14 that matches the destination port number, and send the device message to the serial port data transmission component 14, and when receiving the serial data sent by the serial port data transmission component 14, send the serial data and the destination port number to the network data transmission component 11.

[0045] In this embodiment, the bridge module 13 can determine the serial port device 22 to which the device message needs to be sent based on the destination port number and the mapping relationship between the preset serial port device identifier and the destination port number, and then determine the serial port data transmission component 14 that matches the destination port number based on the one-to-one correspondence between the serial port device 22 and the serial port data transmission component 14; then, the device message can be sent to the serial port data transmission component 14. Secondly, when receiving the serial data fed back by the serial port data transmission component 14, the destination port number can be added to it, and the serial data and the destination port number can be sent together to the network data transmission component 11.

[0046] The bridge module 13 is specifically used to determine the serial port data transmission component 14 matching the destination port number according to a mapping relationship between a preset destination port number and a serial port data transmission component identifier.

[0047] In this embodiment, a mapping relationship between the destination port number (one-to-one corresponding to the serial port device 22) and the serial port data transmission component identifier (one-to-one corresponding to the serial port data transmission component 14) can be pre-set according to the hardware connection relationship between the serial port device 22 and the serial port data transmission component 14. Thus, when the destination port number is obtained, the serial port data transmission component 14 that matches the destination port number can be directly obtained by searching the mapping relationship.

[0048] Secondly, when receiving serial data fed back by the serial port data transmission component 14, the bridge module 13 can also be used to determine the destination port number corresponding to the serial data according to the mapping relationship between the preset destination port number and the serial port data transmission component identifier, and send the serial data and the corresponding destination port number to the network data transmission component 11.

[0049] The serial port data transmission component 14 is used to send the device message to the corresponding serial port device 22 when receiving the device message sent by the bridge module 13, and send the serial data to the bridge module 13 when receiving the serial data sent by the serial port device 22; in this embodiment, the serial port data transmission component 14 is used to realize data interaction between the serial port device control device 10 and the serial port device 22. Typically, the serial port data transmission component 14 can perform data interaction with the serial port device 22 through the input and output (IO) pins of the FPGA.

[0050] The priority control module 12 is used to send the second network interaction data to the host device 21 according to the preset protocol priority. The preset protocol priority may include the sending priority of different Ethernet protocol data. For example, the preset protocol priority may be the Address Resolution Protocol (ARP), Internet Control Message Protocol (ICMP) and UDP priority in descending order.

[0051] In this embodiment, the priority control module 12 is used to perform priority arbitration on the network data sent from the FPGA to the host device 21. Specifically, when there are multiple network data of different Ethernet protocols that need to be sent to the host device 21 at the same time, the network data are sent to the host device 21 in sequence according to the preset protocol priority from high to low protocol priority.

[0052] The technical solution of the embodiment of the present invention is to parse the first network interaction data sent by the host device 21 through the network data transmission component 11, obtain the device message and the destination port number, and send the device message and the destination port number to the bridge module, and encapsulate the serial data and the destination port number sent by the bridge module to obtain the second network interaction data, and send the second network interaction data to the priority control module; determine the serial port data transmission component that matches the destination port number through the bridge module, and send the device message to the serial port data transmission component, and when receiving the serial data sent by the serial port data transmission component, send the serial data and the destination port number to the network data transmission component 11; when receiving the device message sent by the bridge module through the serial port data transmission component, send the device message to the corresponding serial port device 22, and when receiving the serial data sent by the serial port device 22, send the serial data to the bridge module; send the second network interaction data to the host device 21 according to the preset protocol priority through the priority control module; by implementing the serial port device control device 10 based on FPGA, the serial port data transmission component and the serial port device 22 are made to correspond one to one, so that the control of hundreds of serial port devices 22 can be achieved at a low cost.

[0053] Optional, such as Figure 2 As shown, the serial port device control device 10 may further include a media access control module 15; wherein the media access control (MAC) module 15 is used to implement data interaction between the host device 21 and the FPGA. For example, the MAC module 15 and the host device 21 may be connected via RJ45 (Registered Jack 45) and the port physical layer.

[0054] The media access control module 15 is connected to the network data transmission component 11 and the priority control module 12 respectively, and is used to receive the first network interaction data sent by the host device 21, and send the first network interaction data to the network data transmission component 11, and receive the second network interaction data sent by the priority control module 12, and send the second network interaction data to the host device 21;

[0055] The network data transmission component 11 is further used to parse the first network interaction data sent by the media access control module 15 to obtain a device message and a destination port number;

[0056] The priority control module 12 is further configured to send the second network interaction data to the media access control module 15 according to a preset protocol priority.

[0057] Specifically, the network interaction data sent by the host device 21 to the serial port device control apparatus 10 , and the network interaction data sent by the serial port device control apparatus 10 to the host device 21 , are first sent to the media access control module 15 , and then forwarded by the media access control module 15 .

[0058] Optional, such as Figure 3 As shown, the serial port device control device 10 may further include a status query module 16;

[0059] The status query module 16 is connected to the media access control module 15 and the priority control module 12 respectively, and is used to generate status response data and send it to the priority control module 12 when receiving the device status query instruction sent by the media access control module 15. The status response data and the network interaction data adopt different Ethernet protocols.

[0060] The device status query instruction may be an instruction generated by the host device 21 for querying the status of the serial port device control device 10, for example, a heartbeat instruction, etc. In this embodiment, the host device 21 may use different Ethernet protocols to query the status of the serial port device control device 10 and to exchange data with the serial port device 22 through the serial port device control device 10. For example, the status query may use protocols such as ARP and ICMP, and the data exchange with the serial port device 22 may use protocols such as TCP and UDP.

[0061] The media access control module 15 is further configured to send the device status query instruction sent by the host device 21 to the status query module 16, and send the status response data sent by the priority control module 12 to the host device 21;

[0062] The priority control module 12 is further configured to send the status response data to the media access control module 15 according to a preset protocol priority.

[0063] In a specific example, the device status query instruction and status response data are based on the ARP protocol, and the network interaction data is based on the UDP protocol. In the preset protocol priority, the ARP priority is higher than the UDP. When the status query module 16 sends the status response data to the priority control module 12, if there is network interaction data sent to the priority control module 12, the priority control module 12 will give priority to sending the status response data.

[0064] In this embodiment, by using different Ethernet protocols for different scenarios and setting the priority control module 12 to perform data priority arbitration, the normal operation of the serial port device control device 10 can be ensured and abnormalities of the serial port device control device 10 can be discovered in time.

[0065] Optional, such as Figure 4 As shown, the network data transmission component 11 may include a network data receiving module 111 and a network data sending module 112;

[0066] The network data receiving module 111 is connected to the media access control module 15 and the bridge module 13 respectively, and is used to parse the first network interaction data sent by the media access control module 15, obtain the device message and the destination port number, and send the device message and the destination port number to the bridge module 13;

[0067] The network data sending module 112 is connected to the bridge module 13 and the priority control module 12 respectively, and is used to encapsulate the serial data and the destination port number sent by the bridge module 13, obtain the second network interaction data, and send the second network interaction data to the priority control module 12.

[0068] In a specific example, when the network interaction data is based on the UDP protocol, the network data receiving module 111 may be UDP_RX, and the network data sending module 112 may be UDP_TX, which are respectively used for parsing and encapsulating the network interaction data.

[0069] Optional, such as Figure 5 As shown, the serial port data transmission component 14 may include a serial port data sending module 141 and a serial port data receiving module 142; wherein, both the serial port data sending module 141 and the serial port data receiving module 142 have a baud rate setting mechanism inside, which can adjust the baud rate of serial port data transmission.

[0070] The serial port data sending module 141 is used to send the device message to the corresponding serial port device 22 when receiving the device message sent by the bridge module 13;

[0071] The serial port data receiving module 142 is used to send the serial data to the bridge module 13 when receiving the serial data sent by the serial port device 22 .

[0072] Among them, each serial port data sending module 141 and serial port data receiving module 142 corresponds to an input and output pin respectively, and each serial port device 22 corresponds to a serial port data sending module 141 and a serial port data receiving module 142, that is, two IO pins are required. For example, for serial port device 0, its corresponding serial port data sending module 141 is UART_TX0, and its corresponding serial port data receiving module 142 is UART_RX0.

[0073] It should be noted that, since serial communication physically requires only two lines, only two common IO pins of the FPGA are used, an FPGA with more than 200 IO pins, in addition to the IO pins used for the network, can easily control 100 serial devices 22. In theory, as long as the number of FPGA pins is large enough, more serial devices 22 can be controlled. For example, more than 500 IO pins can control more than 250 serial devices 22.

[0074] Embodiment 2

[0075] Figure 6 A schematic diagram of a serial port device control system provided in Embodiment 2 of the present invention. The serial port device control system 20 may include a host device 21, multiple serial port devices 22, and a serial port device control device 10 described in any embodiment of the present invention, wherein the host device 21 is connected to each of the serial port devices 22 through the serial port device control device 10. Typically, the host device 21 and each of the serial port devices 22 may be connected to the serial port device control device 10 in a wired manner. For example, the serial port device 22 may be different types of Internet of Things terminals, etc.

[0076] In a specific example, when controlling multiple serial port devices 22, first, the host device 21 determines the destination port number corresponding to the serial port device 22 to which the instruction needs to be sent, and encapsulates the device message and the destination port number into the first network interaction data of the UDP protocol, and sends the first network interaction data to the MAC module 15. After receiving the first network interaction data, the MAC module 15 sends the first network interaction data to the network data receiving module 111, and the network data receiving module 111 parses the first network interaction data, obtains the device message and the destination port number, and sends the device message and the destination port number to the bridge module 13.

[0077] Afterwards, the bridge module 13 determines the serial port data transmission component 14 that matches the destination port number according to the mapping relationship between the preset destination port number and the serial port data transmission component identifier, and sends the device message to the serial port data sending module 141, and the serial port data sending module 141 sends the device message to the corresponding serial port device 22. Then, after receiving the device message, the serial port device 22 can generate corresponding serial data (for example, command execution results, sensor detection data, etc.) and send it to the corresponding serial port data receiving module 142, and the serial port data receiving module 142 sends the serial data to the bridge module 13.

[0078] Further, after receiving the serial data sent by the serial port data receiving module 142, the bridge module 13 can determine the destination port number corresponding to the serial port data receiving module 142, and send the destination port number and the serial data to the network data sending module 112. The network data sending module 112 encapsulates the serial data and the destination port number into the second network interaction data of the UDP protocol, and sends the second network interaction data to the priority control module 12. Finally, the priority control module 12 sends the second network interaction data to the media access control module 15 according to the preset protocol priority, and the media access control module 15 sends the second network interaction data to the host device 21.

[0079] The technical solution of the embodiment of the present invention, by deploying a serial port device control device 10 based on FPGA between the host device 21 and each serial port device 22, can realize the control of multiple serial port devices 22 without changing the hardware, and can achieve effective control of hundreds of serial port devices 22 at a low cost.

[0080] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0081] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0082] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A serial port device control device, characterized in that: It includes a network data transmission component, a priority control module, a bridge module and a plurality of serial port data transmission components, wherein the priority control module is connected to each of the serial port data transmission components through the network data transmission component and the bridge module, and the serial port data transmission components correspond to serial port devices one by one; The network data transmission component is used to parse the first network interaction data sent by the host device, obtain the device message and the destination port number, and send the device message and the destination port number to the bridge module, and encapsulate the serial data and the destination port number sent by the bridge module, obtain the second network interaction data, and send the second network interaction data to the priority control module; The bridging module is used to determine the serial port data transmission component that matches the destination port number, and send the device message to the serial port data transmission component, and when receiving the serial data sent by the serial port data transmission component, send the serial data and the destination port number to the network data transmission component; The serial port data transmission component is used to send the device message to the corresponding serial port device when receiving the device message sent by the bridge module, and send the serial data to the bridge module when receiving the serial data sent by the serial port device; The priority control module is used to send the second network interaction data to the host device according to a preset protocol priority.

2. The serial port device control device according to claim 1, characterized in that: Also included is a media access control module; The medium access control module is connected to the network data transmission component and the priority control module respectively, and is used to receive first network interaction data sent by the host device, and send the first network interaction data to the network data transmission component, and receive second network interaction data sent by the priority control module, and send the second network interaction data to the host device; The network data transmission component is further used to parse the first network interaction data sent by the media access control module to obtain a device message and a destination port number; The priority control module is further used to send the second network interaction data to the media access control module according to a preset protocol priority.

3. The serial port device control device according to claim 2, characterized in that: Also includes a status query module; The status query module is connected to the media access control module and the priority control module respectively, and is used to generate status response data and send it to the priority control module when receiving the device status query instruction sent by the media access control module, and the status response data and the network interaction data adopt different Ethernet protocols; The media access control module is further used to send the device status query instruction sent by the host device to the status query module, and send the status response data sent by the priority control module to the host device; The priority control module is further used to send the status response data to the media access control module according to a preset protocol priority.

4. The serial port device control device according to claim 2, characterized in that: The network data transmission component includes a network data receiving module and a network data sending module; The network data receiving module is connected to the media access control module and the bridge module respectively, and is used to parse the first network interaction data sent by the media access control module, obtain the device message and the destination port number, and send the device message and the destination port number to the bridge module; The network data sending module is connected to the bridge module and the priority control module respectively, and is used to encapsulate the serial data and the destination port number sent by the bridge module, obtain the second network interaction data, and send the second network interaction data to the priority control module.

5. The serial port device control device according to claim 1, characterized in that: The serial port data transmission component includes a serial port data sending module and a serial port data receiving module; The serial port data sending module is used to send the device message to the corresponding serial port device when receiving the device message sent by the bridge module; The serial port data receiving module is used to send the serial data to the bridge module when receiving the serial data sent by the serial port device.

6. The serial port device control device according to claim 1, characterized in that: The bridge module is specifically used for: According to the mapping relationship between the preset destination port number and the serial port data transmission component identifier, the serial port data transmission component matching the destination port number is determined.

7. A serial port device control system, characterized in that: The invention comprises a host device, a plurality of serial port devices and a serial port device control device as claimed in any one of claims 1 to 6, wherein the host device is connected to each of the serial port devices through the serial port device control device.