A multi-protocol industrial data acquisition method, physical interface and device
By using a three-layer structure and physical interface module based on an industrial protocol model, the problem of multi-protocol adaptability is solved, enabling efficient adaptation and rapid replacement of industrial data acquisition and improving acquisition efficiency.
Patent Information
- Application Number
- CN202310427511.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-20
- Publication Date
- 2026-08-25
- Estimated Expiration
- 2043-04-20
AI Technical Summary
Existing technologies require the development of multiple hardware platforms to adapt to different forms of physical interfaces and data protocols, resulting in low efficiency in industrial data acquisition.
A multi-protocol industrial data acquisition method is adopted, based on the three-layer structure of the industrial protocol model (interface driver layer, communication protocol layer, and application protocol layer). By building a basic protocol library and physical interface modules, the adaptation and reuse of different protocols can be achieved.
It improves the universality of data collection and development efficiency, supports flexible adaptation and rapid replacement of multiple protocols, and expands the applicable scenarios.
Smart Images

Figure CN116455993B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of industrial data acquisition technology, specifically to a multi-protocol industrial data acquisition method, physical interface, and device. Background Technology
[0002] Intelligent manufacturing is an essential path for the digital transformation of national industry and a fundamental national policy. Industrial data acquisition is a core component of intelligent manufacturing, enabling the collection of raw and authentic industrial data from industrial terminal equipment. This data, in turn, is used by intelligent algorithms to generate intelligent decision-making results. The current industry logic for industrial data acquisition involves: first, designing and manufacturing a hardware platform, including CPU, memory, and operating system, for a specific data physical interface; then, developing data acquisition software with corresponding data protocols to parse the data layer protocols and obtain the required data.
[0003] With the increasing variety of industrial equipment, various forms of physical interfaces, data communication protocols, and data application layer protocols will bring a large number of additional customization requirements. In order to adapt to the data acquisition needs of different forms of physical interfaces, it is necessary to develop a variety of targeted hardware platforms to meet the current needs of industrial data acquisition in various forms.
[0004] Therefore, the problem of how to enable a single hardware platform to adapt to different forms of physical interfaces and thus collect different types of industrial data urgently needs to be solved. Summary of the Invention
[0005] To address the shortcomings of existing technologies, this invention provides a multi-protocol industrial data acquisition method, physical interface, and device, thereby solving the problem that the increasing variety of industrial equipment necessitates the development of multiple hardware platforms and data acquisition methods to perform multi-protocol industrial data acquisition.
[0006] In a first aspect, the present invention provides a multi-protocol industrial data acquisition method, comprising: Industrial data acquisition requirements are decomposed according to an industrial protocol model; wherein the industrial protocol model includes an interface driver layer, a communication protocol layer, and an application protocol layer. The physical interface is determined according to the requirements of the interface driver layer. Based on the physical interface module suitable for multiple protocols, the driver selection and driver parameter configuration of the physical interface module are completed. Determine the required communication protocol based on the requirements of the communication protocol layer, and complete the communication parameter configuration; Determine the required application protocol based on the requirements of the application protocol layer, and complete the application protocol parameter configuration. The pins of the interface module are adapted to collect industrial data.
[0007] Optionally, the industrial protocol model includes a basic protocol library, and the method for constructing the basic protocol library includes: The physical interfaces of industrial protocols are formed into replaceable physical interface modules, which are then used to create an interface driver library. The various communication layer protocols corresponding to the physical interface are compiled into a communication protocol library; Collect application layer protocols from industrial scenarios to form an application layer protocol library; A basic protocol library is formed based on the interface driver library, the communication protocol library, and the application layer protocol library.
[0008] Optionally, the communication protocol library further includes an interface adapter module that drives the physical interface; the application layer protocol library further includes a communication adapter module that drives the communication layer protocol.
[0009] Optionally, the industrial protocol model also includes new protocols added based on the base protocol library, wherein the method for adding the new protocols includes: Based on the protocol development platform, select the protocol category and complete the pin assignment of the physical interface.
[0010] Optionally, the protocol development platform is used for: Provides a visual operation wizard interface for the interface driver layer, the communication protocol layer, and the application protocol layer; Based on the selection operation of the visual operation wizard interface, the protocol combination of the interface driver layer, the communication protocol layer and the application protocol layer is performed to complete the protocol deployment; Based on the deployed protocol, determine the pin assignments for the physical interface.
[0011] Secondly, the present invention also provides a physical interface applicable to the multi-protocol industrial data acquisition method described in the first aspect, wherein the interface module includes a control unit and a pin header. The header includes a JTAG debug pin and a multiplexed pin. The JTAG debug pin is connected to the control unit for JTAG debugging, and the multiplexed pin is controlled by the control unit for pin definition. The control unit defines the multiplexed pins according to the physical interfaces of different protocols, so that the multiplexed pins are applicable to the physical interfaces of different protocols.
[0012] Optionally, the physical interface module is connected via an interface cable and a physical interface terminal, which is used for physical connection with the data source. The physical interface module is also connected to the control system via a PCIE signal line, and the control system is used to set up a protocol development platform.
[0013] Thirdly, the present invention also provides a multi-protocol industrial data acquisition device, comprising: The requirement decomposition module is used to decompose industrial data acquisition requirements according to the industrial protocol model; wherein the industrial protocol model includes an interface driver layer, a communication protocol layer, and an application protocol layer. The interface configuration module is used to determine the physical interface according to the requirements of the interface driver layer, and to complete the driver selection and driver parameter configuration of the interface module based on the interface module suitable for multiple protocols. The communication protocol configuration module is used to determine the required communication protocol according to the requirements of the communication protocol layer and complete the communication parameter configuration. The application protocol configuration module is used to determine the required application protocol according to the requirements of the application protocol layer and complete the application protocol parameter configuration. The data acquisition module is used to adapt the pins of the interface module to acquire industrial data.
[0014] Optionally, the requirement decomposition module is also used to construct the basic protocol library, specifically for: The physical interfaces of industrial protocols are formed into replaceable physical interface modules, which are then used to create an interface driver library. The various communication layer protocols corresponding to the physical interface are compiled into a communication protocol library; Collect application layer protocols from industrial scenarios to form an application layer protocol library; A basic protocol library is formed based on the interface driver library, the communication protocol library, and the application layer protocol library.
[0015] Optionally, the requirement decomposition module is further configured to add new protocols based on the basic protocol library, specifically for: Based on the protocol development platform, select the protocol category and complete the pin assignment of the physical interface.
[0016] Fourthly, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any of the above methods.
[0017] Fifthly, an embodiment of the present invention provides a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the steps of any of the above methods.
[0018] By adopting the above technical solution, this application has the following beneficial effects: (1) This invention provides a data acquisition method based on a three-layer protocol of the industrial protocol model, namely the interface driver layer, the communication protocol layer and the application protocol layer. It is applicable to most industrial data protocols currently known and has good universality for various different partitioning rules protocols in industrial data scenarios. (2) This invention provides a protocol-based development platform that can overcome the diversity of industrial protocol application layer, protocol layer and physical interface layer. When adapting industrial protocol models to new protocols, it can realize the reuse and reorganization of each layer of protocols by building a basic module library, thereby improving development efficiency. (3) The present invention provides a physical interface module based on a control unit and pin headers. The physical interface module can reuse and redefine pins under different protocols to support flexible operation and quick replacement of various physical interfaces, thus expanding the applicable scenarios. Attached Figure Description
[0019] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the accompanying drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn to scale.
[0020] Figure 1 A flowchart of a multi-protocol industrial data acquisition method provided by an embodiment of the present invention is shown; Figure 2 A schematic diagram of a physical interface module provided in an embodiment of the present invention is shown; Figure 3 Another schematic diagram of a physical interface module provided in an embodiment of the present invention is shown; Figure 4 A pin diagram of the RS232 interface provided in an embodiment of the present invention is shown; Figure 5 This diagram illustrates a structural block diagram of a multi-protocol industrial data acquisition device provided in an embodiment of the present invention. Figure 6 A structural block diagram of an electronic device provided by an embodiment of the present invention is shown. Detailed Implementation
[0021] The embodiments of the technical solution of the present invention will now be described in detail with reference to the accompanying drawings. These embodiments are only used to more clearly illustrate the technical solution of the present invention and are therefore merely examples, and should not be construed as limiting the scope of protection of the present invention. It should be noted that, unless otherwise stated, the technical or scientific terms used in this application should have the ordinary meaning as understood by those skilled in the art to which this invention pertains.
[0022] The current development of industrial digitalization brings numerous additional customization requirements due to the various forms of physical interfaces, data communication protocols, and data application layer protocols. Therefore, there is a need for acquisition devices and methods that can adapt to multiple protocols. To address these issues, such as... Figure 1 As shown, this embodiment provides a multi-protocol industrial data acquisition method, including: S101. Decompose industrial data acquisition requirements according to the industrial protocol model; the industrial protocol model includes an interface driver layer, a communication protocol layer, and an application protocol layer.
[0023] The first step in industrial data acquisition is to determine the protocols and data, and then decompose them according to a three-layer interface. For example, the industrial field has multiple protocol layers, and different industries have different rules for dividing them. For instance, the network uses a 7-layer protocol, while industrial equipment uses a 5-layer protocol. In this embodiment, regardless of the original division rules, it is decomposed into an interface driver layer, a communication protocol layer, and an application protocol layer to facilitate subsequent driver configuration.
[0024] S102. Determine the physical interface according to the requirements of the interface driver layer. Based on the interface module suitable for multiple protocols, complete the driver selection and driver parameter configuration of the interface module, and redefine the pins of the interface module to realize the acquisition of raw electrical signal data.
[0025] S103. Determine the required communication protocol based on the requirements of the communication protocol layer, complete the communication parameter configuration, and realize the parsing of communication data packets.
[0026] S104. Determine the required application protocol based on the requirements of the application protocol layer, complete the application protocol parameter configuration, and realize the acquisition of industrial data measurement points.
[0027] S105. Adapt the pins of the interface module to collect industrial data.
[0028] The parameter configurations involved in steps S103-S104 vary greatly between different layers, and even within the same protocol layer, the parameter differences cannot be standardized.
[0029] Regarding the interface driver layer, there are tens of thousands of different interfaces, each with different driving methods. Therefore, this embodiment also uses interface modules to adapt to different interfaces. The communication protocol layer parameters emphasize the system's calls to the interfaces, responsible for converting system data into interface electrical signals. The application protocol layer imposes internal constraints on the data to be sent by the system.
[0030] The specific interface driver layer, communication protocol layer, and application protocol layer mentioned above are only for illustrating the specific functions of each layer and are not intended as specific limitations.
[0031] Furthermore, the industrial protocol model includes a basic protocol library, and the construction methods for the basic protocol library include: The physical interfaces of industrial protocols are formed into replaceable physical interface modules, which are then used to create an interface driver library. The various communication layer protocols corresponding to the physical interfaces are compiled into a communication protocol library; Collect application layer protocols from industrial scenarios to form an application layer protocol library; A basic protocol library is formed based on the interface driver library, communication protocol library, and application layer protocol library.
[0032] To adapt to the three-layer structure of the industrial protocol model, an interface driver library, a communication protocol library, and an application layer protocol library were specifically formed. After the three libraries were formed, when collecting data, resources were allocated from each library according to the input requirements for software deployment, physical interface layout design, hardware construction (pin mapping), etc.
[0033] To address the compatibility issues between the interface driver library, communication protocol library, and application layer protocol library, the communication protocol library also includes an interface adapter module for driving physical interfaces; the application layer protocol library also includes a communication adapter module for communication layer protocols.
[0034] Optionally, the industrial protocol model also includes new protocols added based on the base protocol library. Methods for adding new protocols include: Based on the protocol development platform, select the protocol category and complete the pin assignment of the physical interface.
[0035] The aforementioned addition of a new protocol specifically involves pin assignment of the physical interface based on the protocol development platform; furthermore, the protocol development platform is used for: It provides a visual operation wizard interface for the interface driver layer, communication protocol layer, and application protocol layer; Based on the selection operation of the visual operation wizard interface, the protocol combination of the interface driver layer, communication protocol layer and application protocol layer is performed to complete the protocol deployment; Based on the deployed protocol, determine the pin assignments for the physical interface.
[0036] The protocol development platform provides a user-friendly interface. Normally, adding new protocols requires manual intervention. Therefore, the platform offers a visual, wizard-driven interface for manual operation, allowing for the deployment of modular, multi-layered protocols after combination. The basic protocol library typically covers commonly used industrial data physical interfaces or protocols; these are general, standardized interfaces and protocols, and the basic database provides templates. However, customized protocols, or targeted protocols, exist. Users can use the protocol development platform to decompose these customized protocols for customized data collection.
[0037] In another embodiment, such as Figure 2 As shown, the present invention also provides a physical interface module 20, which is applicable to the multi-protocol industrial data acquisition method provided in the first embodiment. The physical interface module 20 includes a control unit 201 and a pin header 202. The header 202 includes a JTAG debug pin and a multiplexed pin. The JTAG debug pin is connected to the control unit for JTAG debugging, and the multiplexed pin is controlled by the control unit for pin definition to adapt to different industrial data physical interfaces. The control unit 201 defines the multiplexed pins according to the physical interfaces of different protocols, so that the multiplexed pins are applicable to the physical interfaces of different protocols.
[0038] Further, see Figure 3 The physical interface module 20 is connected to the physical interface terminal 203 via an interface cable. The physical interface terminal 203 is used for physical connection with the data source. The physical interface module 20 is also connected to the control system via a PCIe signal line. The control system is used to set up a protocol development platform. Furthermore, the physical interface for actual industrial data is connected to the control system through the physical interface module 20 to achieve data acquisition.
[0039] The physical interface module 20 supports physical interfaces for different protocols and enables rapid interface replacement. The control unit is specifically an FPGA chip, and the control system is specifically a general-purpose computer, including common components such as the motherboard, CPU, GPU, memory, and hard drive. The control unit implements the connection between the PCIe signal lines and headers of the control system CPU, and is used for header pin multiplexing and signal mapping between PCIe and headers. The header 202 and the control unit 201 can also be directly mounted on the general-purpose computer motherboard.
[0040] Specifically, in this embodiment, the header is an 84-pin header, with 30 pins reserved for data lines, 30 pins reserved for address lines, 5 pins reserved for hot-plug detection signals, 4 pins reserved for ground lines, 4 pins reserved for power lines, one pin reserved for clock, and 10 pins reserved for FPGA programming and debugging pins, for a total of 84 pins. In actual use, pins can be reused depending on the actual situation, with 74 pins redefined and 10 pins dedicated to JTAG debugging.
[0041] Furthermore, pins 1-30 of header 202 are used as data line pins, pins 31-35 as hot-plug detection signal pins, pins 36-39 as ground pins, pin 40 as clock pins, pins 41-42 as power supply pins, pins 43-72 as address line pins, pins 73-82 as programming data pins, and pins 83-84 as power supply pins. The physical interface module 20 provided in this embodiment will be illustrated by example below. Figure 4 As shown, Figure 4 The pin diagram of the RS232 interface is shown. To specifically connect two RS232 interface signals and one aviation A429 bus signal, the pin header 202 of the physical interface module 20 provided in this embodiment has specific pin definitions, as shown in Table 1.
[0042] Table 1
[0043] It should be noted that the above pin definitions have removed some unnecessary signals, but this does not affect the implementation of the specific functions in this embodiment. The specific pins of the two RS232 interface signals and one aviation A429 bus signal are shown in Table 2.
[0044] Table 2
[0045] The interface cable is used to connect the header pins 202 and the physical interface terminal 203. The physical interface terminal 203 is ultimately fixed to the housing of the control system, i.e., a general-purpose computer chassis baffle. The data source can directly connect to the physical interface module 20 via the physical interface terminal.
[0046] In yet another embodiment, such as Figure 5 As shown, the present invention also provides a multi-protocol industrial data acquisition device 30, comprising: The requirement decomposition module 301 is used to decompose industrial data acquisition requirements according to the industrial protocol model; wherein the industrial protocol model includes an interface driver layer, a communication protocol layer and an application protocol layer. The interface configuration module 302 is used to determine the physical interface according to the requirements of the interface driver layer, and to complete the driver selection and driver parameter configuration of the interface module based on the interface module applicable to multiple protocols. The communication protocol configuration module 303 is used to determine the required communication protocol according to the requirements of the communication protocol layer and complete the communication parameter configuration. Application protocol configuration module 304 is used to determine the required application protocol according to the requirements of the application protocol layer and complete the application protocol parameter configuration; The acquisition module 305 is used to adapt the pins of the interface module to acquire industrial data.
[0047] Optionally, the requirement decomposition module is also used to construct the basic protocol library, specifically for: The physical interfaces of industrial protocols are formed into replaceable physical interface modules, which are then used to create an interface driver library. The various communication layer protocols corresponding to the physical interface are compiled into a communication protocol library; Collect application layer protocols from industrial scenarios to form an application layer protocol library; A basic protocol library is formed based on the interface driver library, the communication protocol library, and the application layer protocol library.
[0048] Optionally, the requirement decomposition module is further configured to add new protocols based on the basic protocol library, specifically for: Based on the protocol development platform, select the protocol category and complete the pin assignment of the physical interface.
[0049] Based on the same inventive concept as the aforementioned multi-protocol industrial data acquisition method, this application also provides an electronic device 40, such as... Figure 6 As shown, the electronic device 40 may include a processor 401 and a memory 402.
[0050] Processor 401 can be a general-purpose processor, which can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present invention can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.
[0051] The memory 402, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. In this embodiment of the invention, the memory 502 can also be a circuit or any other device capable of performing storage functions, used to store program instructions and / or data.
[0052] This invention provides a computer-readable storage medium for storing computer program instructions for use in the aforementioned electronic device, including a program for executing the aforementioned page broadcast control method.
[0053] The aforementioned computer storage media can be any available medium or data storage device that a computer can access, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor storage (such as ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), solid-state drives (SSDs)).
[0054] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this utility model, and not to limit it. Although the utility model has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this utility model, and they should all be covered within the scope of the claims and specification of this utility model.
Claims
1. A multi-protocol industrial data acquisition method, characterized in that, include: Decompose industrial data collection requirements according to the industrial protocol model; The industrial protocol model mentioned above includes an interface driver layer, a communication protocol layer, and an application protocol layer; The industrial protocol model includes a basic protocol library, and the method for constructing the basic protocol library includes: The physical interfaces of industrial protocols are formed into replaceable physical interface modules, which are then used to create an interface driver library. The various communication layer protocols corresponding to the physical interface are compiled into a communication protocol library; Collect application layer protocols from industrial scenarios to form an application layer protocol library; A basic protocol library is formed based on the interface driver library, the communication protocol library, and the application layer protocol library. The industrial protocol model also includes new protocols added based on the basic protocol library. The methods for adding these new protocols include: The protocol development platform selects the protocol category based on the protocol development platform and completes the pin assignment of the physical interface; the protocol development platform is used for: Provides a visual operation wizard interface for the interface driver layer, the communication protocol layer, and the application protocol layer; Based on the selection operation of the visual operation wizard interface, the protocol combination of the interface driver layer, the communication protocol layer and the application protocol layer is performed to complete the protocol deployment; Determine the pin assignments for the physical interfaces based on the deployed protocol; The physical interface is determined based on the requirements of the interface driver layer. Based on a physical interface module suitable for multiple protocols, the driver selection and driver parameter configuration for the physical interface module are completed. The physical interface module includes a control unit and pin headers. The header includes a JTAG debug pin and a multiplexed pin. The JTAG debug pin is connected to the control unit for JTAG debugging, and the multiplexed pin is controlled by the control unit for pin definition. The control unit defines the multiplexed pins according to the physical interfaces of different protocols, so that the multiplexed pins are applicable to the physical interfaces of different protocols; Determine the required communication protocol based on the requirements of the communication protocol layer, and complete the communication parameter configuration; Determine the required application protocol based on the requirements of the application protocol layer, and complete the application protocol parameter configuration. The pins of the interface module are adapted to collect industrial data.
2. The method according to claim 1, characterized in that, The communication protocol library also includes an interface adapter module that drives the physical interface; the application layer protocol library also includes a communication adapter module that drives the communication layer protocol.
3. The physical interface module according to claim 2, characterized in that, The physical interface module is connected via an interface cable and a physical interface terminal, which is used for physical connection with the data source. The physical interface module is also connected to the control system via a PCIe signal line, and the control system is used to set up a protocol development platform.
4. A multi-protocol industrial data acquisition device, characterized in that, include: The requirement decomposition module is used to decompose industrial data acquisition requirements according to the industrial protocol model. The industrial protocol model mentioned above includes an interface driver layer, a communication protocol layer, and an application protocol layer; The industrial protocol model includes a basic protocol library, and the method for constructing the basic protocol library includes: The physical interfaces of industrial protocols are formed into replaceable physical interface modules, which are then used to create an interface driver library. The various communication layer protocols corresponding to the physical interface are compiled into a communication protocol library; Collect application layer protocols from industrial scenarios to form an application layer protocol library; A basic protocol library is formed based on the interface driver library, the communication protocol library, and the application layer protocol library. The industrial protocol model also includes new protocols added based on the basic protocol library. The methods for adding these new protocols include: The protocol development platform selects the protocol category based on the protocol development platform and completes the pin assignment of the physical interface; the protocol development platform is used for: Provides a visual operation wizard interface for the interface driver layer, the communication protocol layer, and the application protocol layer; Based on the selection operation of the visual operation wizard interface, the protocol combination of the interface driver layer, the communication protocol layer and the application protocol layer is performed to complete the protocol deployment; Determine the pin assignments for the physical interfaces based on the deployed protocol; The interface configuration module is used to determine the physical interface according to the requirements of the interface driver layer, and to complete the driver selection and driver parameter configuration of the interface module based on the interface module suitable for multiple protocols; the physical interface module includes a control unit and pin headers. The header includes a JTAG debug pin and a multiplexed pin. The JTAG debug pin is connected to the control unit for JTAG debugging, and the multiplexed pin is controlled by the control unit for pin definition. The control unit defines the multiplexed pins according to the physical interfaces of different protocols, so that the multiplexed pins are applicable to the physical interfaces of different protocols; The communication protocol configuration module is used to determine the required communication protocol according to the requirements of the communication protocol layer and complete the communication parameter configuration. The application protocol configuration module is used to determine the required application protocol according to the requirements of the application protocol layer and complete the application protocol parameter configuration. The data acquisition module is used to adapt the pins of the interface module to acquire industrial data.
5. The multi-protocol industrial data acquisition device according to claim 4, characterized in that, The requirement decomposition module is also used to add new protocols based on the basic protocol library, specifically for: Based on the protocol development platform, select the protocol category and complete the pin assignment of the physical interface.
Citation Information
Patent Citations
Signal collector and interface multiplexing method thereof
CN108108323A
Fast universal multi-protocol gateway realization system and method
CN109510759A