[go: up one dir, main page]

WO2025194952A1 - 5g cloud-based plc deterministic transmission method and apparatus, and device and medium - Google Patents

5g cloud-based plc deterministic transmission method and apparatus, and device and medium

Info

Publication number
WO2025194952A1
WO2025194952A1 PCT/CN2024/143862 CN2024143862W WO2025194952A1 WO 2025194952 A1 WO2025194952 A1 WO 2025194952A1 CN 2024143862 W CN2024143862 W CN 2024143862W WO 2025194952 A1 WO2025194952 A1 WO 2025194952A1
Authority
WO
WIPO (PCT)
Prior art keywords
plc
information
base station
target
access
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2024/143862
Other languages
French (fr)
Chinese (zh)
Inventor
裴郁杉
唐雄燕
黄蓉
王友祥
范斌
董芃
王健全
李卫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Publication of WO2025194952A1 publication Critical patent/WO2025194952A1/en
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/18Network planning tools
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Definitions

  • the present disclosure relates to the field of communication technology, and in particular to a 5G (fifth generation) cloud-based PLC deterministic transmission method, device, equipment and medium.
  • 5G fifth generation
  • PLCs Programmable Logic Controllers
  • 5G technology are building a new generation of virtualized, networked, and intelligent PLCs, a key solution for the transformation and upgrading of the Industrial Internet.
  • PLCs can be flexibly deployed in the cloud and at the edge, rather than being restricted to industrial sites. Communication between PLCs and I/O devices shifts from industrial buses to high-performance 5G networks.
  • the present disclosure provides a 5G cloud-based PLC deterministic transmission method, including:
  • An I/O device is a device connected to the network.
  • Configuration information is the physical cell identifier of the access base station.
  • Control service information includes the communication cycle between the I/O device and the PLC, and the collaborative relationship between I/O devices.
  • Communication link information is the round-trip time of the communication link from the PLC to the I/O device.
  • the first access information including a target I/O device and other I/O devices, the target I/O device and other I/O devices being devices among the I/O devices that need to access a target base station for collaborative work, the target base station corresponding to a physical cell identifier of the access base station in the target configuration information, and the target configuration information being configuration information of the target I/O device;
  • the access relationship between the PLC of the target base station and the I/O device is determined based on the first access status of the target I/O device and the target base station, the second access status of other I/O devices and the target base station, control service information, and communication link information.
  • obtaining configuration information, control service information, and communication link information of an I/O device includes:
  • IP Internet Protocol
  • the device information obtain the device function and communication link information
  • obtaining device information and configuration information of an I/O device includes:
  • the I/O device receives the response information, which includes the physical cell identifier of the base station where the I/O device accesses, the device model, version number, and the IP address of the device;
  • the configuration information and device information of the I/O device are determined.
  • the method further includes:
  • the target I/O device is connected to the cloud PLC deployed in the base station.
  • the method further includes:
  • the cloud PLC deployed in the base station is accessed to the target I/O device.
  • determining an access relationship between a PLC of a target base station and an I/O device based on a first access status of a target I/O device and a target base station, a second access status of other I/O devices and the target base station, control service information, and communication link information includes:
  • the first access condition indicates that the target I/O device is connected to the target base station
  • the second access condition indicates that other I/O devices are not connected to the target base station
  • the cloud-based PLC deployed on the 5G-MEC (multi-access edge computing) platform is connected to the target I/O device;
  • the target I/O device is first connected to the cloud-based PLC deployed on the base station, and then the cloud-based PLC deployed on the base station is connected to the cloud-based PLC deployed on the 5G-MEC platform.
  • the method further includes:
  • the access relationship is sent to the cloud PLC so that the cloud PLC sends the corresponding IP and open port number to the I/O device according to the access relationship.
  • the I/O device After the I/O device receives and binds the corresponding IP and open port number, it communicates with the cloud PLC.
  • the method further includes:
  • Get network link information including network status and I/O port information
  • PLC control business data is processed.
  • the method further includes:
  • the PLC control business data is parsed and written.
  • the present disclosure provides a 5G cloud-based PLC deterministic transmission device, including:
  • An acquisition module is used to obtain configuration information, control service information, and communication link information of an I/O device.
  • An I/O device is a device connected to a network.
  • Configuration information is the physical cell identifier of the access base station.
  • Control service information includes the communication cycle between the I/O device and the PLC, and the collaborative relationship between the I/O devices.
  • Communication link information is the round-trip time of the communication link from the PLC to the I/O device.
  • a first determination module is configured to determine first access information based on the configuration information, where the first access information includes a target I/O device and other I/O devices, where the target I/O device and the other I/O devices are I/O devices that need to access a target base station for collaborative work, where the target base station corresponds to a physical cell identifier of the access base station in the target configuration information, and the target configuration information is configuration information of the target I/O device;
  • a second determining module is configured to determine, based on the control service information, a first access status of the target I/O device to the target base station and a second access status of other I/O devices to the target base station;
  • the third determination module is used to determine the access relationship between the PLC and I/O devices of the target base station based on the first access status of the target I/O device and the target base station, the second access status of other I/O devices and the target base station, control service information, and communication link information.
  • the present disclosure provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
  • Memory stores computer-executable instructions
  • the processor executes the computer-executable instructions stored in the memory to implement the 5G cloud-based PLC deterministic transmission method of the embodiment of the present disclosure.
  • the present disclosure provides a computer-readable storage medium, which stores computer-executable instructions.
  • the computer-executable instructions are executed by a processor, they are used to implement the 5G cloud-based PLC deterministic transmission method of an embodiment of the present disclosure.
  • the present disclosure provides a computer program product, including computer instructions, which, when executed by a processor, implement the 5G cloud-based PLC deterministic transmission method of an embodiment of the present disclosure.
  • the present disclosure provides a computer program comprising computer instructions, which, when executed by a processor, implement the 5G cloud-based PLC deterministic transmission method of an embodiment of the present disclosure.
  • FIG1 is a flow chart of a 5G cloud-based PLC deterministic transmission method provided in an embodiment of the present disclosure.
  • FIG2 is a flow chart of another 5G cloud-based PLC deterministic transmission method provided in an embodiment of the present disclosure.
  • FIG3 is a schematic diagram of the architecture of a 5G cloud-based PLC system provided in an embodiment of the present disclosure.
  • FIG4 is a structural diagram of a PLC centralized control functional unit in a 5G cloud-based PLC system provided by an embodiment of the present disclosure.
  • FIG5 is a structural diagram of a PLC data function unit in a 5G cloud-based PLC system provided by an embodiment of the present disclosure.
  • FIG6 is a schematic diagram of the structure of the I/O management functional unit in the 5G cloud PLC system provided by an embodiment of the present disclosure.
  • FIG7 is a schematic diagram of the structure of a 5G cloud-based PLC deterministic transmission device provided in an embodiment of the present disclosure.
  • FIG8 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • expressions such as “first” and “second” do not limit the quantity and execution order, and expressions such as “first” and “second” do not necessarily limit differences.
  • “/” means “and/or” or “or”.
  • A/B can mean A and/or B, or A or B.
  • “And/or” in this article is only a description of the association relationship of associated objects, indicating that three relationships can exist.
  • a and/or B can mean: only A, only B, and A and B.
  • I/O access can only be implemented for single-location deployment scenarios.
  • different I/O devices have different industrial control service requirements. Therefore, it is impossible to meet the business needs of multi-location cloud PLC deployment scenarios on 5G networks.
  • the 5G cloud PLC deterministic transmission method can obtain configuration information by detecting the I/O device. Since the base station to which the I/O device is connected can be known through the configuration information, the first access information can be determined to obtain the target I/O device and other I/O devices. At the same time, the access situation of the target I/O device and other I/O devices to the base station can also be obtained. Then, the control business information and communication link information of the I/O device are used to determine whether the business needs can be met.
  • the access relationship between the PLC of the target base station and the I/O device can be determined, thereby achieving flexible allocation and routing between the PLC and the I/O device, and solving the problem that the multi-location deployment of the 5G network cloud PLC cannot be met.
  • the execution subject of the 5G cloud-based PLC deterministic transmission method provided by the embodiment of the present disclosure may be a server.
  • the server may be a mobile phone, tablet, computer and other devices.
  • This embodiment does not impose any special restrictions on the implementation method of the execution subject, as long as the execution subject can obtain the configuration information, control service information, and communication link information of the I/O device, wherein the I/O device is a device accessed in the network, the configuration information is the physical cell identifier of the access base station, the control service information includes the communication cycle between the I/O device and the PLC, the collaborative relationship between the I/O devices, and the communication link information is the round-trip time of the communication link from the PLC to the I/O device; according to the configuration information, the first access information is determined, and the first access information includes the target I/O device and other I/O devices, the target I/O device and other I/O devices.
  • the O device is a device among the I/O devices that needs to access the target base station for collaborative work.
  • the target base station corresponds to the physical cell identifier of the access base station in the target configuration information.
  • the target configuration information is the configuration information of the target I/O device.
  • the control service information the first access status of the target I/O device and the target base station, and the second access status of other I/O devices and the target base station are determined.
  • the access relationship between the PLC of the target base station and the I/O device can be determined.
  • Cloud PLC Programmable Logic Controller
  • Cloud PLC Programmable Logic Controller
  • Cloud PLC refers to a programmable controller running in the cloud. It is a software-defined PLC that can communicate directly with the Industrial Internet platform. For example, it can easily connect the PLC to the Internet, embed APP and analysis results into the machine and the cloud to achieve intelligence and self-perception.
  • the PLC can be changed and upgraded without replacing the PLC hardware, and the application of the Industrial Internet platform can be expanded through the API (Application Programming Interface) and ecosystem, that is, the transfer of industrial control from wired to wireless and from local to cloud.
  • API Application Programming Interface
  • FIG1 is a flow chart of a 5G cloud-based PLC deterministic transmission method provided by an embodiment of the present disclosure.
  • the execution subject of the method may be a server, and the present disclosure embodiment does not impose any particular restrictions here.
  • the method may include:
  • S101 Obtain configuration information, control service information, and communication link information of the I/O device, where the I/O device is a device connected to the network, the configuration information is the physical cell identifier of the access base station, the control service information includes the communication cycle between the I/O device and the PLC, and the collaborative relationship between the I/O devices, and the communication link information is the round-trip time of the communication link from the PLC to the I/O device.
  • An I/O (Input/Output) device refers to external hardware used to communicate with a computer. It is a physical device consisting of chips, wires, a power supply, and other hardware that can receive and send data to a computer. In the disclosed embodiments, an I/O device may refer to an external hardware device at an industrial site used for Local PLC deployment.
  • Configuration information may refer to process information for completing a specific task in a project using the tools and methods provided in the application software.
  • configuration information may refer to the access configuration of the I/O device, that is, what information needs to be configured in the process of configuring the hardware to achieve connection with the computer, including the PCI (Physical Cell Identity) of the base station to which the device is connected, the device model and version number, and grouping the devices according to the PCI, wherein the PCI determines the location of the main synchronization signal and reference signal used by each cell, and is the first network-side information identified when the terminal is turned on or initially accesses the cell.
  • PCI Physical Cell Identity
  • the PCI can be used to distinguish the wireless signals of different cells;
  • the device model may refer to the product classification of the device, which is mainly determined by the manufacturer and is generally determined according to different configurations and different usage directions; the version number can be used to accurately control the modification, iteration and upgrade of the product.
  • Control service information can refer to querying device capabilities based on the model and version number in device information, and specifying I/O device parameters based on device capabilities. During each communication cycle, cloud-based industrial control services need to send a large number of data packets to the vast number of I/O devices at industrial sites.
  • control service information can refer to the communication cycle between I/O devices and PLCs, as well as the collaborative relationships between I/O devices.
  • Communication link information may refer to link information for transmitting information from one device to another, and includes information transmitting devices, receiving devices, information transmission paths, and information transmission time.
  • communication link information may refer to the RTT (Round-Trip Time) of the communication link from the PLC to each current I/O device, i.e., the time required for data to be transmitted from the transmitting end to the receiving end of the link or network segment, also known as transmission time.
  • the PLC may send a message to the network address of the I/O device, record the message sending time, wait for the I/O device's response, record the message receiving time, and subtract the message sending time from the message receiving time to obtain the communication link round-trip time.
  • a method for obtaining configuration information, control service information, and communication link information of an I/O device may include:
  • Obtain device information and configuration information of I/O devices including IP address, device model, and version number;
  • the device information obtain the device function and communication link information
  • Obtaining device functions and communication link information based on device information may refer to obtaining device functions based on the model and version number of the I/O device.
  • the device functions may refer to communication functions, data processing functions, etc. of the I/O device.
  • Determining the control service information of the I/O device according to the device function may refer to specifying a round trip time of a communication link of the I/O device according to the service requirement and the device function.
  • a method for obtaining device information and configuration information of an I/O device may include:
  • the I/O device receives the response information, which includes the physical cell identifier of the base station where the I/O device accesses, the device model, version number, and the IP address of the device;
  • the configuration information and device information of the I/O device are determined.
  • the target instruction format may refer to an instruction format provided by the I/O device manufacturer, and requires the return of the physical cell identifier of the base station to which the device is connected, the device model and version number in the broadcast request, so as to obtain response information returned by the I/O device.
  • a broadcast request may refer to an ARP (Address Resolution Protocol) request.
  • ARP is a TCP (Transmission Control Protocol)/IP protocol that obtains a physical address based on an IP address.
  • ARP request containing the target IP address to all hosts on the network and receives a return message to determine the target's physical address.
  • the IP address and physical address are stored in the local ARP cache and retained for a certain period of time. The next request is made to directly query the ARP cache to save resources.
  • determining the configuration information and device information of the I/O device may refer to the I/O&PLC management module sending a broadcast request to the network according to the instruction format provided by the I/O device manufacturer, scanning the I/O devices in the network, and requesting the return of the physical cell identifier of the base station to which the device is connected, the device model and version number in the request. After receiving the response from the I/O device, the module records the IP address and device information of the device.
  • the first access information includes a target I/O device and other I/O devices.
  • the target I/O device and other I/O devices are I/O devices that need to access a target base station for collaborative work.
  • the target base station corresponds to a physical cell identifier of the access base station in the target configuration information.
  • the target configuration information is configuration information of the target I/O device.
  • the first access information may refer to the I/O device information connected to the base station.
  • the first access information may refer to grouping devices connected to the same base station according to the device configuration information PCI. If the same group of devices needs to work together, the device access information of the group is the first access information.
  • the method may further include:
  • the target I/O device is connected to the cloud PLC deployed in the base station.
  • the second access information may refer to the I/O device information accessed by the base station.
  • the second access information and the first access information are both base station access information, but they represent different situations.
  • the first access information represents that the target I/O device and other I/O devices access the same base station and work in coordination
  • the second access information represents that only the target I/O device accesses the base station and does not need to work in coordination with other devices.
  • Determining the second access information according to the configuration information may refer to determining, according to the physical cell identifier of the base station to which the device is connected, that the target I/O device is not connected to the same base station as other I/O devices.
  • accessing the cloud PLC deployed at the base station to the target I/O device may mean that based on the fact that the target I/O device does not access the same base station as other devices and does not collaborate with other devices, the cloud PLC deployed at the base station to which the target I/O device is connected is selected as its access instance to determine the path of the target I/O device.
  • S103 Determine, based on the control service information, a first access status between the target I/O device and the target base station, and a second access status between other I/O devices and the target base station.
  • the first access condition may refer to a condition in which the target I/O device is connected to the target base station.
  • the first access condition may be used to determine whether the device is connected to the target base station, the identifier of the target base station, and other information.
  • the first access condition may refer to a condition in which the target I/O device, which needs to collaborate with other I/O devices, is connected to the target base station.
  • the second access situation may refer to a situation where another I/O device has accessed the target base station.
  • the second access situation may be used to determine whether the other device has accessed the target base station, the target base station identifier, and other information.
  • the second access situation may refer to a situation where another I/O device that needs to collaborate with the target I/O device has accessed the target base station.
  • Determining the first access status of the target I/O device and the target base station, and the second access status of other I/O devices and the target base station based on the control service information can refer to determining whether the devices that need to work together are connected to the same base station based on the collaborative relationship between the I/O devices.
  • S104 Determine the access relationship between the PLC of the target base station and the I/O device according to the first access status of the target I/O device and the target base station, the second access status of other I/O devices and the target base station, the control service information, and the communication link information.
  • the access relationship between the PLC of the target base station and the I/O device can refer to the relationship between the I/O device access to Cloud PLC and Local PLC.
  • Cloud PLC can refer to the cloud PLC (CPLC), that is, the PLC that needs to be deployed in the cloud and is responsible for processing non-real-time tasks.
  • Local PLC can refer to the PLC deployed near the I/O device at the industrial site and is responsible for real-time control of the I/O device. Due to the flexible deployment location of PLC, the access relationship between I/O devices and PLC is more complex.
  • the access relationship between the PLC of the target base station and the I/O device may refer to the I/O device accessing the cloud PLC instance deployed on the base station and accessing the cloud PLC instance deployed on the 5G-MEC, or adopting a hierarchical access solution to connect the target I/O device to the cloud PLC deployed on the base station, and the cloud PLC completes the control business communication with the I/O device, and then the cloud PLC deployed on the base station is connected to the cloud PLC deployed on the 5G-MEC platform, and the cloud PLC deployed on the 5G-MEC platform completes the collaborative task processing between different I/Os.
  • Determining the access relationship between the PLC of the target base station and the I/O device based on the first access situation of the target I/O device and the target base station, the second access situation of other I/O devices and the target base station, control service information, and communication link information can refer to determining that the target I/O device needs to work in coordination with other I/O devices and is connected to the same base station with other I/O devices based on the first access situation of the target I/O device and the target base station, and then judging the round-trip time of the communication link from the 5G-MEC platform to the current I/O device and the second access situation of other I/O devices and the target base station. The length of the I/O communication cycle.
  • the I/O device can be connected to the cloud PLC instance deployed on the 5G-MEC. If the round-trip time of the communication link is greater than or equal to the communication cycle, it means that the cloud PLC deployed on the 5G-MEC platform cannot meet the communication business requirements. In this case, the I/O device can be first connected to the cloud PLC deployed on the base station, and then the cloud PLC deployed on the base station can be connected to the cloud PLC deployed on the 5G-MEC platform.
  • the method may further include:
  • the cloud PLC deployed in the base station is accessed to the target I/O device.
  • the target I/O device To connect the target I/O device to the cloud-based PLC deployed on the base station, you can point the I/O to send the IP address and open port number of the base station cloud-based PLC instance. After receiving the IP address and port number, the I/O binds them and can communicate with the cloud-based PLC instance deployed on the base station.
  • a method for determining an access relationship between a PLC of a target base station and an I/O device based on a first access status of the target I/O device and the target base station, a second access status of other I/O devices and the target base station, control service information, and communication link information may include:
  • the first access condition indicates that the target I/O device is connected to the target base station
  • the second access condition indicates that other I/O devices are not connected to the target base station
  • the cloud-based PLC deployed on the 5G-MEC platform is connected to the target I/O device;
  • the target I/O device is first connected to the cloud-based PLC deployed on the base station, and then the cloud-based PLC deployed on the base station is connected to the cloud-based PLC deployed on the 5G-MEC platform.
  • the comparison result shows that the round-trip time of the communication link is less than the communication cycle, it can be said that the cloud PLC deployed on the 5G-MEC platform can meet the communication service requirements.
  • the I/O device can be connected to the cloud PLC instance deployed on the 5G-MEC platform for communication.
  • the target I/O device To connect the target I/O device to the cloud-based PLC deployed on the 5G-MEC platform, you can point to the I/O to send the IP address and open port number of the 5G-MEC cloud-based PLC instance. After receiving the IP address and port number, the I/O will bind them and communicate with the cloud-based PLC instance deployed on the 5G-MEC platform.
  • the comparison result shows that the round-trip time of the communication link is greater than or equal to the communication cycle, it may mean that the cloud PLC deployed on the 5G-MEC platform cannot meet the communication service requirements, and therefore hierarchical PLC access is required to complete the communication process.
  • This can refer to a hierarchical PLC access solution.
  • the cloud-based PLC completes the control business communication with the I/O.
  • new ports are opened to the base station cloud-based PLC instance and the 5G-MEC cloud-based PLC instance. In this way, the cloud-based PLC deployed on the base station is connected to the cloud-based PLC deployed on the 5G-MEC platform.
  • the cloud-based PLC deployed on the 5G-MEC platform completes the collaborative task processing between different I/Os.
  • the method may further include:
  • the access relationship is sent to the cloud PLC so that the cloud PLC sends the corresponding IP and open port number to the I/O device according to the access relationship.
  • the I/O device After the I/O device receives and binds the corresponding IP and open port number, it communicates with the cloud PLC.
  • Sending the corresponding IP and open port number to the I/O device can refer to determining the port configuration information of the I/O device to implement the configuration function between the PLC and the I/O. For example, for an I/O device accessing a cloud-based PLC instance deployed on a base station, the IP and open port number of the base station cloud-based PLC instance are sent to the I/O. After receiving the information, the I/O binds the IP and port number, and can then communicate with the cloud-based PLC instance deployed on the base station. For an I/O device accessing a cloud-based PLC instance deployed on a 5G-MEC platform, the IP and open port number of the 5G-MEC cloud-based PLC instance are sent to the I/O.
  • the I/O After receiving the information, the I/O binds the IP and port number, and can then communicate with the cloud-based PLC instance deployed on the 5G-MEC platform. For a hierarchical PLC access solution, the IP and open port number of the base station cloud-based PLC instance are first sent to the I/O. After receiving the information, the I/O binds the IP and port number, and then new ports are opened for the base station cloud-based PLC instance and the 5G-MEC cloud-based PLC instance to communicate.
  • the method may further include:
  • Get network link information including network status and I/O port information
  • the data deterministic transmission configuration principle may refer to the deterministic transmission principle of PLC control business data formulated by the deterministic transmission configuration module based on the round-trip time of the network communication link, the device access relationship and the control business parameters, including principles such as data frame aggregation and traffic shaping. Among them, determinism may refer to guarantee and reliability, that is, data is communicated and transmitted in a complete and secure manner.
  • the method may further include:
  • Parse and write business data based on the data deterministic transmission parsing configuration information and data writing channel.
  • Data deterministic transmission and parsing configuration information may refer to the parameter information that needs to be configured for data transmission and parsing determined by the I/O control module based on the data deterministic transmission configuration principles and the configuration information of the I/O device.
  • the parsing configuration information is a prerequisite for data parsing, so that the I/O data plane functional module can perform parsing business configuration according to the parsing configuration information and send the data to each I/O device through each data write channel.
  • the data write channel can refer to the data channel established between the data plane functional module and each I/O device, provided by the I/O interface management module, to ensure that data can be transmitted to the I/O device in a timely and efficient manner.
  • the 5G cloud-based PLC deterministic transmission method can obtain configuration information by detecting the I/O device. Since the base station to which the I/O device is connected can be known through the configuration information, the first access information can be determined to obtain the target I/O device and other I/O devices. At the same time, the access situation of the target I/O device and other I/O devices to the base station can also be obtained. Then, the control business information and communication link information of the I/O device can be used to determine whether the business needs can be met.
  • the access relationship between the PLC of the target base station and the I/O device can be determined, thereby achieving flexible allocation and routing between the PLC and the I/O devices, and solving the problem that the multi-location deployment of the 5G network cloud-based PLC cannot be met.
  • FIG2 is a flow chart of another 5G cloud-based PLC deterministic transmission method provided by an embodiment of the present disclosure.
  • the execution subject of the method may be a server, and the present disclosure embodiment does not impose any particular restrictions here.
  • the method may include:
  • I/O devices may refer to devices connected to a network.
  • Determining which I/O devices the current I/O device and are connected to the same base station according to the I/O configuration information may refer to determining whether the current I/O device needs to work in coordination with other I/O devices according to the I/O configuration information, and then connecting to the same base station.
  • S202 Determine, based on the I/O device control service parameter, whether the current I/O device and other I/O devices that need to work in collaboration are connected to the same base station.
  • Determining whether the cloud-based PLC deployed on the 5G-MEC platform meets the control service requirements of the current I/O device can refer to comparing the communication link RTT from the 5G-MEC platform to the current I/O with the I/O communication cycle. If the communication link RTT from the 5G-MEC platform to the current I/O is less than the I/O communication cycle, the requirements are met; otherwise, the requirements are not met.
  • S204 If the requirements are met, the current I/O is connected to the cloud PLC deployed on the 5G-MEC platform. If the requirements are not met, a hierarchical PLC access solution is adopted to connect the target I/O to the cloud PLC deployed on the base station. The cloud PLC completes the control business communication with the I/O. The cloud PLC deployed on the base station is then connected to the cloud PLC deployed on the 5G-MEC platform. The cloud PLC deployed on the 5G-MEC platform completes the collaborative task processing between different I/Os.
  • the access relationship between the current I/O device and the base station, as well as the collaborative working relationship with other I/O devices can be determined first, and then routing decisions can be made based on business needs.
  • Figure 3 is a schematic diagram of the architecture of a 5G cloud-based PLC system provided by an embodiment of the present disclosure.
  • the system is based on an OT network and an IMT-2020 network platform.
  • the system may include:
  • IMT-2020 network can refer to a term defined by the wireless communication sector of the International Telecommunication Union (ITU) in 2012, which formulated the vision of "International Mobile Communications (IMT) in 2020 and beyond", that is, 5G network, including: AMF (Access and Mobility Management Function), SMF (Session Management function), UPF (User plane function), gNB (generation NodeB, 5G base station), UE (User Equipment), PCF (Policy Control function).
  • AMF Access and Mobility Management Function
  • SMF Session Management function
  • UPF User plane function
  • gNB generation NodeB, 5G base station
  • UE User Equipment
  • PCF Policy Control function
  • the IMT-2020 network provides communication channels for Cloud PLC, Local PLC and I/O, and is responsible for transmitting control instructions and PLC status information.
  • a new functional network element PLC function module is added to the IMT-2020 network architecture, which is responsible for externally exchanging IMT-2020 network status and I/O port information; receiving external network I/O port configuration information and mapping the bearer according to the configuration requirements.
  • UPF realizes forwarding of cloud PLC services within the IMT-2020 network.
  • I/O management functional unit PLC centralized control functional unit
  • PLC data functional unit to achieve dynamic reorganization and flexible allocation, routing, configuration and other control functions between PLC and I/O, as well as deterministic transmission configurations such as aggregation and traffic shaping of control data.
  • OT Industrial Technology
  • OT network mainly refers to the hardware and software for managing production workshops.
  • a multi-level distributed control system is constructed based on cloud PLC.
  • PLC is divided into two levels according to task requirements.
  • Multiple cloud PLCs can be deployed in the cloud to handle non-real-time tasks; local PLC is deployed near the industrial site I/O to control industrial I/O equipment in real time, making the PLC deployment location more flexible and realizing functions such as rapid creation, flexible migration, and secure backup of industrial control tasks.
  • FIG 4 is a schematic diagram of the structure of the PLC centralized control functional unit in the 5G cloud-based PLC system provided by an embodiment of the present disclosure.
  • the PLC centralized control functional unit includes:
  • the IMT network interaction module is responsible for connecting with the PLC functional module in the IMT-2020 network, receiving the current IMT-2020 network status and I/O port information, and sending I/O&PLC configuration information and data transmission configuration information to the I/O management functional unit through the IMT-2020 network, and obtaining the communication link RTT from the PLC to each current I/O device based on the I/O device IP address of the I/O port scanning module.
  • the PLC controller completes the centralized configuration of PLC services, including I/O & PLC management, service configuration, and deterministic transmission configuration functions, and is logically connected to the I/O management module.
  • the I/O&PLC management function module includes the I/O&PLC allocation and reorganization decision module, the I/O port scanning module, etc. Among them, the I/O&PLC allocation and reorganization decision module is used to decide the flexible reorganization and allocation between I/O and PLC, thereby realizing the decoupling between PLC and I/O; the I/O port scanning module is used to scan the I/O devices connected to the network and obtain the access configuration and device information of the I/O devices.
  • the service setting module is used to specify the control service parameters of each I/O device.
  • the deterministic transmission configuration module is used to formulate the configuration principles for deterministic transmission of PLC business data.
  • FIG5 is a schematic diagram of the structure of the PLC data function unit in the 5G cloud-based PLC system provided by an embodiment of the present disclosure. As shown in FIG5 , it includes:
  • FIG6 is a schematic diagram of the structure of the I/O management functional unit in the 5G cloud-based PLC system provided by an embodiment of the present disclosure. As shown in FIG6 , it includes:
  • the I/O control plane function module completes the control functions such as allocation and mapping of I/O ports, and is logically connected to the PLC controller, including the I/O virtual mapping module and the I/O control module.
  • the I/O virtual mapping module determines the I/O virtual memory mapping space accessed by the PLC based on the correspondence between I/O and PLC received from the I/O&PLC allocation and reorganization decision module, thereby achieving decoupling and flexible reorganization between PLC and I/O.
  • the I/O control module is used to complete the mapping management between the local PLC and the local I/O and to formulate the data analysis configuration.
  • the I/O interface management module is responsible for providing I/O configuration information and sending it logically to the PLC controller, as well as providing a data writing channel between the data plane function and each I/O device.
  • the data plane functional module is used to parse and write PLC business data.
  • FIG7 is a schematic diagram of the structure of a 5G cloud-based PLC deterministic transmission device provided in an embodiment of the present disclosure.
  • the 5G cloud-based PLC deterministic transmission device 70 (shown as a 5G cloud-based PLC routing device 70 in FIG7 ) includes: an acquisition module 701, a first determination module 702, a second determination module 703, and a third determination module 704.
  • Acquisition module 701 is used to acquire configuration information, control service information, and communication link information of an I/O device, wherein an I/O device is a device connected to the network, configuration information is the physical cell identifier of the access base station, control service information includes the communication cycle between the I/O device and the PLC, and the collaborative relationship between the I/O devices, and communication link information is the round-trip time of the communication link from the PLC to the I/O device;
  • a first determining module 702 is configured to determine first access information based on the configuration information, where the first access information includes a target I/O device and other I/O devices, where the target I/O device and other I/O devices are I/O devices that need to access a target base station for collaborative operation, where the target base station corresponds to a physical cell identifier of the access base station in the target configuration information, and the target configuration information is configuration information of the target I/O device;
  • a second determining module 703 is configured to determine, based on the control service information, a first access status of the target I/O device to the target base station and a second access status of other I/O devices to the target base station;
  • the third determination module 704 is used to determine the access relationship between the PLC and the I/O device of the target base station based on the first access status of the target I/O device and the target base station, the second access status of other I/O devices and the target base station, control service information, and communication link information.
  • the acquisition module 701 may also be used to:
  • Obtain device information and configuration information of I/O devices including IP address, device model, and version number;
  • the device information obtain the device function and communication link information
  • the acquisition module 701 may also be used to:
  • the I/O device receives the response information, which includes the physical cell identifier of the base station where the I/O device accesses, the device model, version number, and the IP address of the device;
  • the configuration information and device information of the I/O device are determined.
  • the first determining module 702 may also be used to:
  • the target I/O device is connected to the cloud PLC deployed in the base station.
  • the second determining module 703 may also be used to:
  • the cloud PLC deployed in the base station is accessed to the target I/O device.
  • the second determining module 703 may also be used to:
  • the first access condition indicates that the target I/O device is connected to the target base station
  • the second access condition indicates that other I/O devices are not connected to the target base station
  • the cloud-based PLC deployed on the 5G-MEC platform is connected to the target I/O device;
  • the target I/O device is first connected to the cloud-based PLC deployed on the base station, and then the cloud-based PLC deployed on the base station is connected to the cloud-based PLC deployed on the 5G-MEC platform.
  • the third determining module 704 may also be used to:
  • the access relationship is sent to the cloud PLC so that the cloud PLC sends the corresponding IP and open port number to the I/O device according to the access relationship.
  • the I/O device After the I/O device receives and binds the corresponding IP and open port number, it communicates with the cloud PLC.
  • the third determining module 704 may also be used to:
  • Get network link information including network status and I/O port information
  • the third determining module 704 may also be configured to:
  • Parse and write business data based on the data deterministic transmission parsing configuration information and data writing channel.
  • the 5G cloud-based PLC deterministic transmission device 70 of the embodiment of the present disclosure is composed of an acquisition module 701, which is used to obtain the configuration information, control service information, and communication link information of the I/O device, wherein the I/O device is a device accessed in the network, the configuration information is the physical cell identifier of the access base station, the control service information includes the communication cycle between the I/O device and the PLC, the collaborative relationship between the I/O devices, and the communication link information is the round-trip time of the communication link from the PLC to the I/O device; and a first determination module 702 is used to determine the first access information according to the configuration information, and the first access information includes the target I/O device and other I/O devices, the target I/O device and other I/O devices.
  • an acquisition module 701 which is used to obtain the configuration information, control service information, and communication link information of the I/O device, wherein the I/O device is a device accessed in the network, the configuration information is the physical cell identifier of
  • the device is an I/O device that needs to access the target base station for collaborative work.
  • the target base station corresponds to the physical cell identifier of the access base station in the target configuration information, and the target configuration information is the configuration information of the target I/O device;
  • the second determination module 703 is used to determine the first access status of the target I/O device and the target base station, and the second access status of other I/O devices and the target base station based on the control service information;
  • the third determination module 704 is used to determine the access relationship between the PLC of the target base station and the I/O device based on the first access status of the target I/O device and the target base station, the second access status of other I/O devices and the target base station, the control service information, and the communication link information.
  • the base station to which the I/O device is connected is known through the configuration information, so the first access information can be determined to obtain the target I/O device and other I/O devices.
  • the access situation of the target I/O device and other I/O devices to the base station can also be obtained.
  • the control business information and communication link information of the I/O device are used to determine whether the business needs can be met.
  • the access relationship between the PLC of the target base station and the I/O device can be determined, thereby achieving flexible allocation and routing between the PLC and the I/O device, solving the problem of not being able to meet the multi-location deployment of 5G network cloud PLC.
  • FIG8 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • the electronic device 80 may include one or more processors 801, one or more computer-readable storage media memories 802, and a communication component 803.
  • the processor 801, memory 802, and communication component 803 are connected via a bus 804.
  • At least one processor 801 executes the computer execution instructions stored in the memory 802, so that at least one processor 801 executes the above 5G cloud PLC deterministic transmission method.
  • the implementation process of the processor 801 can be found in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here in this embodiment.
  • the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), or application-specific integrated circuits (ASICs).
  • a general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed herein may be directly executed by a hardware processor or by a combination of hardware and software modules within the processor.
  • the memory may include high-speed memory (Random Access Memory, RAM), and may also include non-volatile memory (NVM), such as at least one disk storage.
  • RAM Random Access Memory
  • NVM non-volatile memory
  • a bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus.
  • Buses can be categorized as address buses, data buses, control buses, and the like. For ease of illustration, the buses in the drawings of this disclosure are not limited to a single bus or a single type of bus.
  • a computer program product including a computer program or instructions, which, when executed by a processor, implement the steps in any of the above-mentioned 5G cloud-based PLC deterministic transmission methods.
  • an embodiment of the present disclosure provides a computer-readable storage medium (including a non-transitory computer-readable storage medium), in which multiple instructions are stored, which can be loaded by a processor to execute the steps in any one of the 5G cloud-based PLC deterministic transmission methods provided by the embodiment of the present disclosure.
  • the storage medium may include: read-only memory (ROM), random access memory (RAM), disk or CD, etc.
  • a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium.
  • the instructions stored in the storage medium can execute the steps in any one of the 5G cloud-based PLC deterministic transmission methods provided in the embodiments of the present disclosure, the beneficial effects that can be achieved by any one of the 5G cloud-based PLC deterministic transmission methods provided in the embodiments of the present disclosure can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Programmable Controllers (AREA)

Abstract

Provided in the present disclosure are a 5G cloud-based PLC deterministic transmission method and apparatus, and a device and a medium. The method comprises: acquiring configuration information, control service information and communication link information of I/O devices; on the basis of the configuration information, determining first access information; on the basis of the control service information, determining a first access status of a target I/O device to a target base station and a second access status of other I/O devices to the target base station; and on the basis of the first access status of the target I/O device to the target base station, the second access status of the other I/O devices to the target base station, the control service information and the communication link information, determining access relationships between a PLC of the target base station and the I/O devices.

Description

5G云化PLC确定性传输方法、装置、设备及介质5G cloud-based PLC deterministic transmission method, device, equipment and medium

本公开要求于2024年03月19日提交的、申请号为202410317562.2的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This disclosure claims priority to Chinese patent application No. 202410317562.2, filed on March 19, 2024, the entire contents of which are incorporated herein by reference.

技术领域Technical Field

本公开涉及通信技术领域,尤其涉及一种5G(fifth generation,第五代)云化PLC确定性传输方法、装置、设备及介质。The present disclosure relates to the field of communication technology, and in particular to a 5G (fifth generation) cloud-based PLC deterministic transmission method, device, equipment and medium.

背景技术Background Art

工业领域中,工业控制主设备PLC(Programmable Logic Controller,可编程逻辑控制器)已在传统硬PLC基础上,演化出软PLC以及云化PLC技术。云化PLC与5G技术结合,构建虚拟化、网络化、智能化的新一代PLC,是工业互联网转型升级重要解决方案。在与5G网络融合的云化PLC工控系统中,PLC从只能在工业现场部署转变为可在云端和边端灵活部署,PLC与I/O间通信方式从工业总线转变为5G高性能网络。In the industrial sector, PLCs (Programmable Logic Controllers), the primary industrial control device, have evolved from traditional hardware PLCs to soft PLCs and cloud PLC technologies. Cloud PLCs, combined with 5G technology, are building a new generation of virtualized, networked, and intelligent PLCs, a key solution for the transformation and upgrading of the Industrial Internet. In cloud PLC industrial control systems integrated with 5G networks, PLCs can be flexibly deployed in the cloud and at the edge, rather than being restricted to industrial sites. Communication between PLCs and I/O devices shifts from industrial buses to high-performance 5G networks.

发明内容Summary of the Invention

第一方面,本公开提供一种5G云化PLC确定性传输方法,包括:In a first aspect, the present disclosure provides a 5G cloud-based PLC deterministic transmission method, including:

获取I/O设备的组态信息、控制业务信息、通信链路信息,其中,I/O设备为网络中接入的设备,组态信息为接入基站的物理小区标识,控制业务信息包括I/O设备与PLC之间的通信周期、I/O设备之间的协作关系,通信链路信息为PLC到I/O设备的通信链路往返时间;Obtain configuration information, control service information, and communication link information of the I/O device. An I/O device is a device connected to the network. Configuration information is the physical cell identifier of the access base station. Control service information includes the communication cycle between the I/O device and the PLC, and the collaborative relationship between I/O devices. Communication link information is the round-trip time of the communication link from the PLC to the I/O device.

根据组态信息,确定第一接入信息,第一接入信息包括目标I/O设备和其他I/O设备,目标I/O设备和其他I/O设备为I/O设备中需要接入目标基站进行协同工作的设备,目标基站与目标组态信息中接入基站的物理小区标识对应,目标组态信息为目标I/O设备的组态信息;Determining first access information according to the configuration information, the first access information including a target I/O device and other I/O devices, the target I/O device and other I/O devices being devices among the I/O devices that need to access a target base station for collaborative work, the target base station corresponding to a physical cell identifier of the access base station in the target configuration information, and the target configuration information being configuration information of the target I/O device;

根据控制业务信息,确定目标I/O设备与目标基站的第一接入情况、以及其他I/O设备与目标基站的第二接入情况;Determining, based on the control service information, a first access status of the target I/O device and the target base station, and a second access status of other I/O devices and the target base station;

根据目标I/O设备与目标基站的第一接入情况、其他I/O设备与目标基站的第二接入情况、控制业务信息、通信链路信息,确定目标基站的PLC与I/O设备之间的接入关系。The access relationship between the PLC of the target base station and the I/O device is determined based on the first access status of the target I/O device and the target base station, the second access status of other I/O devices and the target base station, control service information, and communication link information.

在本公开实施例中,获取I/O设备的组态信息、控制业务信息、通信链路信息,包括:In an embodiment of the present disclosure, obtaining configuration information, control service information, and communication link information of an I/O device includes:

获取I/O设备的设备信息和组态信息,设备信息包括IP(Internet Protocol,互联网协议)地址、设备型号和版本号;Obtain device information and configuration information of I/O devices, including IP (Internet Protocol) address, device model, and version number;

根据设备信息,得到设备功能和通信链路信息;According to the device information, obtain the device function and communication link information;

根据设备功能,确定I/O设备的控制业务信息。Determine the control service information of the I/O device based on the device function.

在本公开实施例中,获取I/O设备的设备信息和组态信息,包括:In an embodiment of the present disclosure, obtaining device information and configuration information of an I/O device includes:

以目标指令格式向网络发送广播请求,并扫描网络中的I/O设备;Send a broadcast request to the network in the target command format and scan the I/O devices in the network;

根据广播请求,得到I/O设备的响应信息,响应信息包括I/O设备接入基站的物理小区标识、设备型号、版本号、设备的IP地址;According to the broadcast request, the I/O device receives the response information, which includes the physical cell identifier of the base station where the I/O device accesses, the device model, version number, and the IP address of the device;

根据I/O设备的响应信息,确定I/O设备的组态信息和设备信息。According to the response information of the I/O device, the configuration information and device information of the I/O device are determined.

在本公开实施例中,在获取I/O设备的组态信息、控制业务信息、通信链路信息之后,方法还包括:In an embodiment of the present disclosure, after obtaining configuration information, control service information, and communication link information of the I/O device, the method further includes:

根据组态信息,确定第二接入信息,第二接入信息包括目标I/O设备;Determining second access information according to the configuration information, where the second access information includes a target I/O device;

根据第二接入信息,向目标I/O设备接入基站部署的云化PLC。According to the second access information, the target I/O device is connected to the cloud PLC deployed in the base station.

在本公开实施例中,在根据控制业务信息,确定目标I/O设备与目标基站的第一接入情况、以及其他I/O设备与目标基站的第二接入情况之后,方法还包括:In an embodiment of the present disclosure, after determining, based on the control service information, a first access status between the target I/O device and the target base station, and a second access status between other I/O devices and the target base station, the method further includes:

若第一接入情况表征目标I/O设备接入目标基站、第二接入情况表征其他I/O设备接入目标基站,则向目标I/O设备接入基站部署的云化PLC。If the first access situation indicates that the target I/O device accesses the target base station and the second access situation indicates that other I/O devices access the target base station, the cloud PLC deployed in the base station is accessed to the target I/O device.

在本公开实施例中,根据目标I/O设备与目标基站的第一接入情况、其他I/O设备与目标基站的第二接入情况、控制业务信息、通信链路信息,确定目标基站的PLC与I/O设备之间的接入关系,包括:In an embodiment of the present disclosure, determining an access relationship between a PLC of a target base station and an I/O device based on a first access status of a target I/O device and a target base station, a second access status of other I/O devices and the target base station, control service information, and communication link information includes:

若第一接入情况表征目标I/O设备接入目标基站、第二接入情况表征其他I/O设备未接入目标基站,则比对控制业务信息中I/O设备与PLC之间的通信周期和通信链路信息中PLC到I/O设备的通信链路往返时间,得到比对结果;If the first access condition indicates that the target I/O device is connected to the target base station, and the second access condition indicates that other I/O devices are not connected to the target base station, then compare the communication cycle between the I/O device and the PLC in the control service information with the round-trip time of the communication link from the PLC to the I/O device in the communication link information to obtain a comparison result;

若比对结果为通信链路往返时间小于通信周期,则向目标I/O设备接入5G-MEC(multi-access edge computing,多接入边缘计算)平台部署的云化PLC;If the comparison result shows that the round-trip time of the communication link is less than the communication cycle, the cloud-based PLC deployed on the 5G-MEC (multi-access edge computing) platform is connected to the target I/O device;

若比对结果为通信链路往返时间大于或者等于通信周期,则先将目标I/O设备接入基站部署的云化PLC,然后将基站部署的云化PLC再接入5G-MEC平台部署的云化PLC。If the comparison result shows that the round-trip time of the communication link is greater than or equal to the communication cycle, the target I/O device is first connected to the cloud-based PLC deployed on the base station, and then the cloud-based PLC deployed on the base station is connected to the cloud-based PLC deployed on the 5G-MEC platform.

在本公开实施例中,在根据目标I/O设备与目标基站的第一接入情况、其他I/O设备与目标基站的第二接入情况、控制业务信息、通信链路信息,确定目标基站的PLC与I/O设备之间的接入关系之后,方法还包括:In an embodiment of the present disclosure, after determining the access relationship between the PLC of the target base station and the I/O device based on the first access status of the target I/O device and the target base station, the second access status of other I/O devices and the target base station, the control service information, and the communication link information, the method further includes:

将接入关系发送至云化PLC,以使云化PLC根据接入关系向I/O设备发送对应的IP和开放端口号,并在I/O设备接收并绑定对应的IP和开放端口号后,与云化PLC进行通信。The access relationship is sent to the cloud PLC so that the cloud PLC sends the corresponding IP and open port number to the I/O device according to the access relationship. After the I/O device receives and binds the corresponding IP and open port number, it communicates with the cloud PLC.

在本公开实施例中,方法还包括:In an embodiment of the present disclosure, the method further includes:

获取网络链路信息,网络链路信息包括网络状态、I/O端口信息;Get network link information, including network status and I/O port information;

根据网络链路信息、PLC与I/O设备之间的接入关系、I/O设备的控制业务信息,确定PLC控制业务数据的数据确定性传输配置原则;Determine the data deterministic transmission configuration principle for PLC control business data based on network link information, the access relationship between PLC and I/O devices, and the control business information of I/O devices;

根据数据确定性传输配置原则,对PLC控制业务数据进行处理。According to the data deterministic transmission configuration principle, PLC control business data is processed.

在本公开实施例中,在根据网络链路信息、PLC与I/O设备之间的接入关系、I/O设备的控制业务信息,确定PLC控制业务数据的数据确定性传输配置原则之后,方法还包括:In an embodiment of the present disclosure, after determining a data deterministic transmission configuration principle for PLC control service data based on network link information, an access relationship between the PLC and the I/O device, and control service information of the I/O device, the method further includes:

根据数据确定性传输配置原则、PLC与I/O设备之间的接入关系、I/O设备的组态信息,确定数据确定性传输解析配置信息;Determine the data deterministic transmission parsing configuration information based on the data deterministic transmission configuration principle, the access relationship between the PLC and the I/O device, and the configuration information of the I/O device;

根据数据确定性传输解析配置信息和数据写入通道,对PLC控制业务数据进行解析和写入。According to the data deterministic transmission parsing configuration information and data writing channel, the PLC control business data is parsed and written.

第二方面,本公开提供一种5G云化PLC确定性传输装置,包括:In a second aspect, the present disclosure provides a 5G cloud-based PLC deterministic transmission device, including:

获取模块,用于获取I/O设备的组态信息、控制业务信息、通信链路信息,其中,I/O设备为网络中接入的设备,组态信息为接入基站的物理小区标识,控制业务信息包括I/O设备与PLC之间的通信周期、I/O设备之间的协作关系,通信链路信息为PLC到I/O设备的通信链路往返时间;An acquisition module is used to obtain configuration information, control service information, and communication link information of an I/O device. An I/O device is a device connected to a network. Configuration information is the physical cell identifier of the access base station. Control service information includes the communication cycle between the I/O device and the PLC, and the collaborative relationship between the I/O devices. Communication link information is the round-trip time of the communication link from the PLC to the I/O device.

第一确定模块,用于根据组态信息,确定第一接入信息,第一接入信息包括目标I/O设备和其他I/O设备,目标I/O设备和其他I/O设备为I/O设备中需要接入目标基站进行协同工作的设备,目标基站与目标组态信息中接入基站的物理小区标识对应,目标组态信息为目标I/O设备的组态信息;A first determination module is configured to determine first access information based on the configuration information, where the first access information includes a target I/O device and other I/O devices, where the target I/O device and the other I/O devices are I/O devices that need to access a target base station for collaborative work, where the target base station corresponds to a physical cell identifier of the access base station in the target configuration information, and the target configuration information is configuration information of the target I/O device;

第二确定模块,用于根据控制业务信息,确定目标I/O设备与目标基站的第一接入情况、以及其他I/O设备与目标基站的第二接入情况;A second determining module is configured to determine, based on the control service information, a first access status of the target I/O device to the target base station and a second access status of other I/O devices to the target base station;

第三确定模块,用于根据目标I/O设备与目标基站的第一接入情况、其他I/O设备与目标基站的第二接入情况、控制业务信息、通信链路信息,确定目标基站的PLC与I/O设备之间的接入关系。The third determination module is used to determine the access relationship between the PLC and I/O devices of the target base station based on the first access status of the target I/O device and the target base station, the second access status of other I/O devices and the target base station, control service information, and communication link information.

第三方面,本公开提供一种电子设备,包括:处理器,以及与处理器通信连接的存储器;In a third aspect, the present disclosure provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

存储器存储计算机执行指令;Memory stores computer-executable instructions;

处理器执行存储器存储的计算机执行指令,以实现本公开实施例的5G云化PLC确定性传输方法。The processor executes the computer-executable instructions stored in the memory to implement the 5G cloud-based PLC deterministic transmission method of the embodiment of the present disclosure.

第四方面,本公开提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,计算机执行指令被处理器执行时用于实现本公开实施例的5G云化PLC确定性传输方法。In a fourth aspect, the present disclosure provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement the 5G cloud-based PLC deterministic transmission method of an embodiment of the present disclosure.

第五方面,本公开提供一种计算机程序产品,包括计算机指令,所述计算机指令在被处理器执行时实现本公开实施例的5G云化PLC确定性传输方法。In a fifth aspect, the present disclosure provides a computer program product, including computer instructions, which, when executed by a processor, implement the 5G cloud-based PLC deterministic transmission method of an embodiment of the present disclosure.

第六方面,本公开提供一种计算机程序,包括计算机指令,所述计算机指令在被处理器执行时实现本公开实施例的5G云化PLC确定性传输方法。In a sixth aspect, the present disclosure provides a computer program comprising computer instructions, which, when executed by a processor, implement the 5G cloud-based PLC deterministic transmission method of an embodiment of the present disclosure.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

图1为本公开实施例提供的一种5G云化PLC确定性传输方法的流程示意图。FIG1 is a flow chart of a 5G cloud-based PLC deterministic transmission method provided in an embodiment of the present disclosure.

图2为本公开实施例提供的另一种5G云化PLC确定性传输方法的流程示意图。FIG2 is a flow chart of another 5G cloud-based PLC deterministic transmission method provided in an embodiment of the present disclosure.

图3为本公开实施例提供的5G云化PLC系统的架构示意图。FIG3 is a schematic diagram of the architecture of a 5G cloud-based PLC system provided in an embodiment of the present disclosure.

图4为本公开实施例提供的5G云化PLC系统中PLC集中控制功能单元的结构示意图。FIG4 is a structural diagram of a PLC centralized control functional unit in a 5G cloud-based PLC system provided by an embodiment of the present disclosure.

图5为本公开实施例提供的5G云化PLC系统中PLC数据功能单元的结构示意图。FIG5 is a structural diagram of a PLC data function unit in a 5G cloud-based PLC system provided by an embodiment of the present disclosure.

图6为本公开实施例提供的5G云化PLC系统中I/O管理功能单元的结构示意图。FIG6 is a schematic diagram of the structure of the I/O management functional unit in the 5G cloud PLC system provided by an embodiment of the present disclosure.

图7为本公开实施例提供的5G云化PLC确定性传输装置的结构示意图。FIG7 is a schematic diagram of the structure of a 5G cloud-based PLC deterministic transmission device provided in an embodiment of the present disclosure.

图8为本公开实施例提供的电子设备的结构示意图。FIG8 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.

通过上述附图,已示出本公开的示例实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本领域技术人员说明本公开的概念。The above drawings illustrate exemplary embodiments of the present disclosure, which will be described in more detail below. These drawings and textual descriptions are not intended to limit the scope of the present disclosure in any way, but rather to illustrate the concepts of the present disclosure to those skilled in the art by reference to specific embodiments.

具体实施方式DETAILED DESCRIPTION

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

在本公开的描述中,“第一”、“第二”等字样表述并不对数量和执行次序进行限定,并且“第一”、“第二”等表述字样也并不限定一定不同。在本公开的描述中,除非另有说明,“/”表示“和/或”或者“或”的意思,例如,A/B可以表示A和/或B、或者A或B。本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:仅A、仅B、以及A和B。In the description of the present disclosure, expressions such as "first" and "second" do not limit the quantity and execution order, and expressions such as "first" and "second" do not necessarily limit differences. In the description of the present disclosure, unless otherwise specified, "/" means "and/or" or "or". For example, A/B can mean A and/or B, or A or B. "And/or" in this article is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and/or B can mean: only A, only B, and A and B.

可以理解的是,在不冲突的情况下,本公开所示的功能、步骤可按照不同于所示出的顺序发生。It will be understood that the functions and steps shown in the present disclosure may occur in an order different from that shown without conflict.

目前,在进行I/O设备接入PLC时,只能针对单一位置的部署场景实现I/O接入,而在云化PLC多位置部署场景中,由于不同I/O设备有不同的工控服务需求,因此无法满足5G网络云化PLC多位置部署场景下的业务需要。Currently, when connecting I/O devices to PLCs, I/O access can only be implemented for single-location deployment scenarios. However, in multi-location cloud PLC deployment scenarios, different I/O devices have different industrial control service requirements. Therefore, it is impossible to meet the business needs of multi-location cloud PLC deployment scenarios on 5G networks.

为了解决上述问题,本公开提供的5G云化PLC确定性传输方法,可以通过对I/O设备进行检测,得到组态信息,由于可以通过组态信息得知I/O设备接入的基站,因此可以确定第一接入信息,得到目标I/O设备和其他I/O设备,同时也可以得到目标I/O设备和其他I/O设备接入基站的情况,再通过I/O设备的控制业务信息和通信链路信息判断是否能够满足业务需求,由此可以确定目标基站的PLC与I/O设备之间的接入关系,从而实现PLC和I/O设备之间的灵活分配和路由的效果,解决了无法满足5G网络云化PLC多位置部署的问题。In order to solve the above problems, the 5G cloud PLC deterministic transmission method provided by the present invention can obtain configuration information by detecting the I/O device. Since the base station to which the I/O device is connected can be known through the configuration information, the first access information can be determined to obtain the target I/O device and other I/O devices. At the same time, the access situation of the target I/O device and other I/O devices to the base station can also be obtained. Then, the control business information and communication link information of the I/O device are used to determine whether the business needs can be met. In this way, the access relationship between the PLC of the target base station and the I/O device can be determined, thereby achieving flexible allocation and routing between the PLC and the I/O device, and solving the problem that the multi-location deployment of the 5G network cloud PLC cannot be met.

下面以示例性实施例对本公开的技术方案以及本公开的技术方案如何解决上述技术问题进行详细说明。下面这几个示例性实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本公开的实施例进行描述。The following exemplary embodiments describe in detail the technical solutions of the present disclosure and how they solve the aforementioned technical problems. The following exemplary embodiments may be combined with one another, and identical or similar concepts or processes may not be described in detail in certain embodiments. The following embodiments of the present disclosure are described in conjunction with the accompanying drawings.

本公开实施例提供的5G云化PLC确定性传输方法的执行主体可以是服务器。服务器可以为手机、平板、电脑等设备。本实施例对执行主体的实现方式不做特别限制,只要该执行主体能够获取I/O设备的组态信息、控制业务信息、通信链路信息,其中,I/O设备为网络中接入的设备,组态信息为接入基站的物理小区标识,控制业务信息包括I/O设备与PLC之间的通信周期、I/O设备之间的协作关系,通信链路信息为PLC到I/O设备的通信链路往返时间;根据组态信息,确定第一接入信息,第一接入信息包括目标I/O设备和其他I/O设备,目标I/O设备和其他I/O设备为I/O设备中需要接入目标基站进行协同工作的设备,目标基站与目标组态信息中接入基站的物理小区标识对应,目标组态信息为目标I/O设备的组态信息;根据控制业务信息,确定目标I/O设备与目标基站的第一接入情况、以及其他I/O设备与目标基站的第二接入情况;根据目标I/O设备与目标基站的第一接入情况、其他I/O设备与目标基站的第二接入情况、控制业务信息、通信链路信息,确定目标基站的PLC与I/O设备之间的接入关系即可。The execution subject of the 5G cloud-based PLC deterministic transmission method provided by the embodiment of the present disclosure may be a server. The server may be a mobile phone, tablet, computer and other devices. This embodiment does not impose any special restrictions on the implementation method of the execution subject, as long as the execution subject can obtain the configuration information, control service information, and communication link information of the I/O device, wherein the I/O device is a device accessed in the network, the configuration information is the physical cell identifier of the access base station, the control service information includes the communication cycle between the I/O device and the PLC, the collaborative relationship between the I/O devices, and the communication link information is the round-trip time of the communication link from the PLC to the I/O device; according to the configuration information, the first access information is determined, and the first access information includes the target I/O device and other I/O devices, the target I/O device and other I/O devices. The O device is a device among the I/O devices that needs to access the target base station for collaborative work. The target base station corresponds to the physical cell identifier of the access base station in the target configuration information. The target configuration information is the configuration information of the target I/O device. According to the control service information, the first access status of the target I/O device and the target base station, and the second access status of other I/O devices and the target base station are determined. According to the first access status of the target I/O device and the target base station, the second access status of other I/O devices and the target base station, the control service information, and the communication link information, the access relationship between the PLC of the target base station and the I/O device can be determined.

云化PLC(Programmable Logic Controller,可编程逻辑控制器)可以指在云端运行的可编程控制器,是采用软件定义的PLC,能够与工业互联网平台直接相通,例如,实现PLC轻松连接至互联网,将APP和分析结果嵌入机器和云,实现智能化和自我感知,无需更换PLC硬件即可改变和升级PLC,通过API(Application Programming Interface,应用程序接口)和生态系统扩大工业互联网平台应用,也就是将工业控制从有线到无线、从本地到云端的转移。Cloud PLC (Programmable Logic Controller) refers to a programmable controller running in the cloud. It is a software-defined PLC that can communicate directly with the Industrial Internet platform. For example, it can easily connect the PLC to the Internet, embed APP and analysis results into the machine and the cloud to achieve intelligence and self-perception. The PLC can be changed and upgraded without replacing the PLC hardware, and the application of the Industrial Internet platform can be expanded through the API (Application Programming Interface) and ecosystem, that is, the transfer of industrial control from wired to wireless and from local to cloud.

图1为本公开实施例提供的一种5G云化PLC确定性传输方法的流程示意图。该方法的执行主体可以为服务器,本公开实施例此处不做特别限制,如图1所示,本方法可以包括:FIG1 is a flow chart of a 5G cloud-based PLC deterministic transmission method provided by an embodiment of the present disclosure. The execution subject of the method may be a server, and the present disclosure embodiment does not impose any particular restrictions here. As shown in FIG1 , the method may include:

S101、获取I/O设备的组态信息、控制业务信息、通信链路信息,其中,I/O设备为网络中接入的设备,组态信息为接入基站的物理小区标识,控制业务信息包括I/O设备与PLC之间的通信周期、I/O设备之间的协作关系,通信链路信息为PLC到I/O设备的通信链路往返时间。S101. Obtain configuration information, control service information, and communication link information of the I/O device, where the I/O device is a device connected to the network, the configuration information is the physical cell identifier of the access base station, the control service information includes the communication cycle between the I/O device and the PLC, and the collaborative relationship between the I/O devices, and the communication link information is the round-trip time of the communication link from the PLC to the I/O device.

I/O(Input/Output,输入/输出,或输入输出)设备可以指用来和计算机通信的外部硬件,是由芯片、导线、电源和其他硬件组成的物理设备,可以从计算机接受数据,也可以向计算机发送数据。在本公开实施例中,I/O设备可以指工业现场的外部硬件设备,用于Local PLC(本地PLC)部署。An I/O (Input/Output) device refers to external hardware used to communicate with a computer. It is a physical device consisting of chips, wires, a power supply, and other hardware that can receive and send data to a computer. In the disclosed embodiments, an I/O device may refer to an external hardware device at an industrial site used for Local PLC deployment.

组态信息可以指用应用软件中提供的工具、方法,完成工程中某一具体任务的过程信息。在本公开实施例中,组态信息可以指I/O设备的接入组态,即需要对硬件进行配置来实现与计算机的连接的过程中需要配置哪些信息,包括设备所接入基站的PCI(Physical Cell Identity,物理小区标识)、设备型号和版本号,并根据PCI对设备进行分组,其中,PCI决定每个小区使用的主同步信号以及参考信号的位置,是终端开机或初始接入小区时识别的第一个网络侧信息,因此可以通过PCI来区分不同小区的无线信号;设备型号可以指设备的产品分类,主要由生产厂家制定,一般根据不同配置、不同使用方向来决定;版本号可以用以精确控制产品的修改、迭代与升级。Configuration information may refer to process information for completing a specific task in a project using the tools and methods provided in the application software. In the disclosed embodiment, configuration information may refer to the access configuration of the I/O device, that is, what information needs to be configured in the process of configuring the hardware to achieve connection with the computer, including the PCI (Physical Cell Identity) of the base station to which the device is connected, the device model and version number, and grouping the devices according to the PCI, wherein the PCI determines the location of the main synchronization signal and reference signal used by each cell, and is the first network-side information identified when the terminal is turned on or initially accesses the cell. Therefore, the PCI can be used to distinguish the wireless signals of different cells; the device model may refer to the product classification of the device, which is mainly determined by the manufacturer and is generally determined according to different configurations and different usage directions; the version number can be used to accurately control the modification, iteration and upgrade of the product.

控制业务信息可以指根据设备信息中的型号、版本号查询设备功能,并根据设备功能指定I/O设备的参数,在每个通信周期中,云化工业控制业务都需要向工业现场的海量I/O设备发送大量数据包。在本公开实施例中,控制业务信息可以指I/O设备与PLC之间的通信周期、I/O设备之间的协作关系。Control service information can refer to querying device capabilities based on the model and version number in device information, and specifying I/O device parameters based on device capabilities. During each communication cycle, cloud-based industrial control services need to send a large number of data packets to the vast number of I/O devices at industrial sites. In the disclosed embodiments, control service information can refer to the communication cycle between I/O devices and PLCs, as well as the collaborative relationships between I/O devices.

通信链路信息可以指设备传递信息的链路信息,由一地向另一地进行信息的传输与交换,包括信息发出设备、接收设备、信息传递路径,信息传递时间。在本公开实施例中,通信链路信息可以指PLC到当前各个I/O设备的通信链路RTT(Round-Trip Time,往返时间),即数据从链路或网段的发送端传送到接收端所需要的时间,也称为传输时间,可以通过PLC向I/O设备的网络地址发送报文,记录报文发送时间,并等待I/O设备的响应,记录报文接收时间,将报文接收时间减去报文发送时间,即为通信链路往返时间。Communication link information may refer to link information for transmitting information from one device to another, and includes information transmitting devices, receiving devices, information transmission paths, and information transmission time. In the disclosed embodiment, communication link information may refer to the RTT (Round-Trip Time) of the communication link from the PLC to each current I/O device, i.e., the time required for data to be transmitted from the transmitting end to the receiving end of the link or network segment, also known as transmission time. The PLC may send a message to the network address of the I/O device, record the message sending time, wait for the I/O device's response, record the message receiving time, and subtract the message sending time from the message receiving time to obtain the communication link round-trip time.

在本公开实施例中,获取I/O设备的组态信息、控制业务信息、通信链路信息的方法可以包括:In an embodiment of the present disclosure, a method for obtaining configuration information, control service information, and communication link information of an I/O device may include:

获取I/O设备的设备信息和组态信息,设备信息包括IP地址、设备型号和版本号;Obtain device information and configuration information of I/O devices, including IP address, device model, and version number;

根据设备信息,得到设备功能和通信链路信息;According to the device information, obtain the device function and communication link information;

根据设备功能,确定I/O设备的控制业务信息。Determine the control service information of the I/O device based on the device function.

根据设备信息,得到设备功能和通信链路信息可以指根据I/O设备的型号和版本号查询得到设备功能,设备功能可以指I/O设备的通信功能、数据处理功能等。Obtaining device functions and communication link information based on device information may refer to obtaining device functions based on the model and version number of the I/O device. The device functions may refer to communication functions, data processing functions, etc. of the I/O device.

根据设备功能,确定I/O设备的控制业务信息可以指根据业务需求和设备功能指定I/O设备的通信链路往返时间。Determining the control service information of the I/O device according to the device function may refer to specifying a round trip time of a communication link of the I/O device according to the service requirement and the device function.

在本公开实施例中,获取I/O设备的设备信息和组态信息的方法可以包括:In an embodiment of the present disclosure, a method for obtaining device information and configuration information of an I/O device may include:

以目标指令格式向网络发送广播请求,并扫描网络中的I/O设备;Send a broadcast request to the network in the target command format and scan the I/O devices in the network;

根据广播请求,得到I/O设备的响应信息,响应信息包括I/O设备接入基站的物理小区标识、设备型号、版本号、设备的IP地址;According to the broadcast request, the I/O device receives the response information, which includes the physical cell identifier of the base station where the I/O device accesses, the device model, version number, and the IP address of the device;

根据I/O设备的响应信息,确定I/O设备的组态信息和设备信息。According to the response information of the I/O device, the configuration information and device information of the I/O device are determined.

目标指令格式可以指I/O设备厂商提供的指令格式,在广播请求中要求返回设备所接入基站的物理小区标识,设备型号和版本号,以此获得I/O设备所返回的响应信息。The target instruction format may refer to an instruction format provided by the I/O device manufacturer, and requires the return of the physical cell identifier of the base station to which the device is connected, the device model and version number in the broadcast request, so as to obtain response information returned by the I/O device.

广播请求可以指ARP(Address Resolution Protocol,地址解析协议)请求,ARP是根据IP地址获取物理地址的一个TCP(Transmission Control Protocol,传输控制协议)/IP协议,当主机发送信息时将包含目标IP地址的ARP请求广播到网络上的所有主机,并接收返回消息,以此确定目标的物理地址,收到返回消息后将该IP地址和物理地址存入本机ARP缓存中并保留一定时间,下次请求时直接查询ARP缓存以节约资源。在本公开实施例中,确定I/O设备的组态信息和设备信息可以指I/O&PLC管理模块按I/O设备厂商提供的指令格式向网络中发送广播请求,扫描网络中的I/O设备,在请求中要求返回设备所接入基站的物理小区标识,设备型号和版本号,模块收到I/O设备的响应后,记录设备的IP地址以及设备信息。A broadcast request may refer to an ARP (Address Resolution Protocol) request. ARP is a TCP (Transmission Control Protocol)/IP protocol that obtains a physical address based on an IP address. When a host sends information, it broadcasts an ARP request containing the target IP address to all hosts on the network and receives a return message to determine the target's physical address. After receiving the return message, the IP address and physical address are stored in the local ARP cache and retained for a certain period of time. The next request is made to directly query the ARP cache to save resources. In the embodiment of the present disclosure, determining the configuration information and device information of the I/O device may refer to the I/O&PLC management module sending a broadcast request to the network according to the instruction format provided by the I/O device manufacturer, scanning the I/O devices in the network, and requesting the return of the physical cell identifier of the base station to which the device is connected, the device model and version number in the request. After receiving the response from the I/O device, the module records the IP address and device information of the device.

S102、根据组态信息,确定第一接入信息,第一接入信息包括目标I/O设备和其他I/O设备,目标I/O设备和其他I/O设备为I/O设备中需要接入目标基站进行协同工作的设备,目标基站与目标组态信息中接入基站的物理小区标识对应,目标组态信息为目标I/O设备的组态信息。S102. Determine first access information based on the configuration information. The first access information includes a target I/O device and other I/O devices. The target I/O device and other I/O devices are I/O devices that need to access a target base station for collaborative work. The target base station corresponds to a physical cell identifier of the access base station in the target configuration information. The target configuration information is configuration information of the target I/O device.

第一接入信息可以指基站所接入的I/O设备信息,在本公开实施例中,第一接入信息可以指根据设备的组态信息PCI将接入同一基站的设备分为一组,同一组设备需要进行协同工作,则该组的设备接入信息即为第一接入信息。The first access information may refer to the I/O device information connected to the base station. In the embodiment of the present disclosure, the first access information may refer to grouping devices connected to the same base station according to the device configuration information PCI. If the same group of devices needs to work together, the device access information of the group is the first access information.

在本公开实施例中,在获取I/O设备的组态信息、控制业务信息、通信链路信息之后的方法还可以包括:In an embodiment of the present disclosure, after obtaining configuration information, control service information, and communication link information of an I/O device, the method may further include:

根据组态信息,确定第二接入信息,第二接入信息包括目标I/O设备;Determining second access information according to the configuration information, where the second access information includes a target I/O device;

根据第二接入信息,向目标I/O设备接入基站部署的云化PLC。According to the second access information, the target I/O device is connected to the cloud PLC deployed in the base station.

第二接入信息可以指基站所接入的I/O设备信息,与第一接入信息均为基站接入信息,但其表征的情况不同,第一接入信息表征目标I/O设备和其他I/O设备接入同一基站并进行协同工作,第二接入信息表征仅有目标I/O设备接入基站,不需要与其他设备进行协同工作。The second access information may refer to the I/O device information accessed by the base station. The second access information and the first access information are both base station access information, but they represent different situations. The first access information represents that the target I/O device and other I/O devices access the same base station and work in coordination, while the second access information represents that only the target I/O device accesses the base station and does not need to work in coordination with other devices.

根据组态信息,确定第二接入信息可以指根据设备所接入基站的物理小区标识,确定目标I/O设备不与其他I/O设备接入同一基站。Determining the second access information according to the configuration information may refer to determining, according to the physical cell identifier of the base station to which the device is connected, that the target I/O device is not connected to the same base station as other I/O devices.

根据第二接入信息,向目标I/O设备接入基站部署的云化PLC可以指根据目标I/O设备不与其他设备接入同一基站且不与其他设备进行协同工作,则选择目标I/O设备所接入基站部署的云化PLC作为其接入实例,确定目标I/O设备的路径。According to the second access information, accessing the cloud PLC deployed at the base station to the target I/O device may mean that based on the fact that the target I/O device does not access the same base station as other devices and does not collaborate with other devices, the cloud PLC deployed at the base station to which the target I/O device is connected is selected as its access instance to determine the path of the target I/O device.

S103、根据控制业务信息,确定目标I/O设备与目标基站的第一接入情况、以及其他I/O设备与目标基站的第二接入情况。S103: Determine, based on the control service information, a first access status between the target I/O device and the target base station, and a second access status between other I/O devices and the target base station.

第一接入情况可以指目标I/O设备接入目标基站的情况,通过第一接入情况可以获知该设备是否接入目标基站、目标基站的标识等信息。在本公开实施例中,第一接入情况可以指需要与其他I/O设备进行协同工作的目标I/O设备接入目标基站的情况。The first access condition may refer to a condition in which the target I/O device is connected to the target base station. The first access condition may be used to determine whether the device is connected to the target base station, the identifier of the target base station, and other information. In the disclosed embodiments, the first access condition may refer to a condition in which the target I/O device, which needs to collaborate with other I/O devices, is connected to the target base station.

第二接入情况可以指其他I/O设备接入目标基站的情况,通过第二接入情况可以获知其他设备是否接入目标基站、目标基站的标识等信息。在本公开实施例中,第二接入情况可以指需要与目标I/O设备进行协同工作的其他I/O设备接入目标基站的情况。The second access situation may refer to a situation where another I/O device has accessed the target base station. The second access situation may be used to determine whether the other device has accessed the target base station, the target base station identifier, and other information. In the disclosed embodiments, the second access situation may refer to a situation where another I/O device that needs to collaborate with the target I/O device has accessed the target base station.

根据控制业务信息,确定目标I/O设备与目标基站的第一接入情况、以及其他I/O设备与目标基站的第二接入情况可以指根据I/O设备之间的协作关系,确定需要协同工作的设备是否接入同一基站。Determining the first access status of the target I/O device and the target base station, and the second access status of other I/O devices and the target base station based on the control service information can refer to determining whether the devices that need to work together are connected to the same base station based on the collaborative relationship between the I/O devices.

S104、根据目标I/O设备与目标基站的第一接入情况、其他I/O设备与目标基站的第二接入情况、控制业务信息、通信链路信息,确定目标基站的PLC与I/O设备之间的接入关系。S104. Determine the access relationship between the PLC of the target base station and the I/O device according to the first access status of the target I/O device and the target base station, the second access status of other I/O devices and the target base station, the control service information, and the communication link information.

目标基站的PLC与I/O设备之间的接入关系可以指I/O设备接入Cloud PLC和Local PLC的关系,其中,Cloud PLC可以指云化PLC(CPLC),即需要部署在云端,负责处理非实时任务的PLC,Local PLC可以指部署在工业现场的I/O设备近端,负责实时控制I/O设备的PLC,由于PLC的部署位置灵活,因此I/O设备与PLC的接入关系更加复杂。在本公开实施例中,目标基站的PLC与I/O设备之间的接入关系可以指I/O设备接入部署于基站的云化PLC实例和接入部署于5G-MEC的云化PLC实例,或者采用分级接入的方案,将目标I/O设备接入基站部署的云化PLC,由该云化PLC完成与I/O设备的控制业务通信,然后将基站部署的云化PLC再接入5G-MEC平台部署的云化PLC,由5G-MEC平台部署的云化PLC完成不同I/O间的协作任务处理。The access relationship between the PLC of the target base station and the I/O device can refer to the relationship between the I/O device access to Cloud PLC and Local PLC. Among them, Cloud PLC can refer to the cloud PLC (CPLC), that is, the PLC that needs to be deployed in the cloud and is responsible for processing non-real-time tasks. Local PLC can refer to the PLC deployed near the I/O device at the industrial site and is responsible for real-time control of the I/O device. Due to the flexible deployment location of PLC, the access relationship between I/O devices and PLC is more complex. In the embodiment of the present disclosure, the access relationship between the PLC of the target base station and the I/O device may refer to the I/O device accessing the cloud PLC instance deployed on the base station and accessing the cloud PLC instance deployed on the 5G-MEC, or adopting a hierarchical access solution to connect the target I/O device to the cloud PLC deployed on the base station, and the cloud PLC completes the control business communication with the I/O device, and then the cloud PLC deployed on the base station is connected to the cloud PLC deployed on the 5G-MEC platform, and the cloud PLC deployed on the 5G-MEC platform completes the collaborative task processing between different I/Os.

根据目标I/O设备与目标基站的第一接入情况、其他I/O设备与目标基站的第二接入情况、控制业务信息、通信链路信息,确定目标基站的PLC与I/O设备之间的接入关系可以指根据目标I/O设备与目标基站的第一接入情况、其他I/O设备与目标基站的第二接入情况,确定目标I/O设备需要与其他I/O设备进行协同工作,且与其他I/O设备接入了同一基站,则判断5G-MEC平台到当前I/O设备的通信链路往返时间与I/O通信周期的时间长短,如果通信链路往返时间小于通信周期,则说明在5G-MEC平台部署的云化PLC可以满足通信业务需求,则可以将I/O设备接入部署于5G-MEC的云化PLC实例,如果通信链路往返时间大于或者等于通信周期,则说明在5G-MEC平台部署的云化PLC无法满足通信业务需求,则可以将I/O设备先接入基站部署的云化PLC,再将基站部署的云化PLC接入5G-MEC平台部署的云化PLC。Determining the access relationship between the PLC of the target base station and the I/O device based on the first access situation of the target I/O device and the target base station, the second access situation of other I/O devices and the target base station, control service information, and communication link information can refer to determining that the target I/O device needs to work in coordination with other I/O devices and is connected to the same base station with other I/O devices based on the first access situation of the target I/O device and the target base station, and then judging the round-trip time of the communication link from the 5G-MEC platform to the current I/O device and the second access situation of other I/O devices and the target base station. The length of the I/O communication cycle. If the round-trip time of the communication link is less than the communication cycle, it means that the cloud PLC deployed on the 5G-MEC platform can meet the communication business requirements, and the I/O device can be connected to the cloud PLC instance deployed on the 5G-MEC. If the round-trip time of the communication link is greater than or equal to the communication cycle, it means that the cloud PLC deployed on the 5G-MEC platform cannot meet the communication business requirements. In this case, the I/O device can be first connected to the cloud PLC deployed on the base station, and then the cloud PLC deployed on the base station can be connected to the cloud PLC deployed on the 5G-MEC platform.

在本公开实施例中,在根据控制业务信息,确定目标I/O设备与目标基站的第一接入情况、以及其他I/O设备与目标基站的第二接入情况之后的方法还可以包括:In an embodiment of the present disclosure, after determining, based on the control service information, a first access status of the target I/O device and the target base station, and a second access status of other I/O devices and the target base station, the method may further include:

若第一接入情况表征目标I/O设备接入目标基站、第二接入情况表征其他I/O设备接入目标基站,则向目标I/O设备接入基站部署的云化PLC。If the first access situation indicates that the target I/O device accesses the target base station and the second access situation indicates that other I/O devices access the target base station, the cloud PLC deployed in the base station is accessed to the target I/O device.

向目标I/O设备接入基站部署的云化PLC可以指向I/O发送基站云化PLC实例的IP及开放端口号,I/O接收后绑定IP及端口号,即可与部署于基站的云化PLC实例通信。To connect the target I/O device to the cloud-based PLC deployed on the base station, you can point the I/O to send the IP address and open port number of the base station cloud-based PLC instance. After receiving the IP address and port number, the I/O binds them and can communicate with the cloud-based PLC instance deployed on the base station.

在本公开实施例中,根据目标I/O设备与目标基站的第一接入情况、其他I/O设备与目标基站的第二接入情况、控制业务信息、通信链路信息,确定目标基站的PLC与I/O设备之间的接入关系的方法可以包括:In an embodiment of the present disclosure, a method for determining an access relationship between a PLC of a target base station and an I/O device based on a first access status of the target I/O device and the target base station, a second access status of other I/O devices and the target base station, control service information, and communication link information may include:

若第一接入情况表征目标I/O设备接入目标基站、第二接入情况表征其他I/O设备未接入目标基站,则比对控制业务信息中I/O设备与PLC之间的通信周期和通信链路信息中PLC到I/O设备的通信链路往返时间,得到比对结果;If the first access condition indicates that the target I/O device is connected to the target base station, and the second access condition indicates that other I/O devices are not connected to the target base station, then compare the communication cycle between the I/O device and the PLC in the control service information with the round-trip time of the communication link from the PLC to the I/O device in the communication link information to obtain a comparison result;

若比对结果为通信链路往返时间小于通信周期,则向目标I/O设备接入5G-MEC平台部署的云化PLC;If the comparison result shows that the round-trip time of the communication link is less than the communication cycle, the cloud-based PLC deployed on the 5G-MEC platform is connected to the target I/O device;

若比对结果为通信链路往返时间大于或者等于通信周期,则先将目标I/O设备接入基站部署的云化PLC,然后将基站部署的云化PLC再接入5G-MEC平台部署的云化PLC。If the comparison result shows that the round-trip time of the communication link is greater than or equal to the communication cycle, the target I/O device is first connected to the cloud-based PLC deployed on the base station, and then the cloud-based PLC deployed on the base station is connected to the cloud-based PLC deployed on the 5G-MEC platform.

比对结果为通信链路往返时间小于通信周期可以指在5G-MEC平台部署的云化PLC可以满足通信业务需求,则可以将I/O设备接入部署于5G-MEC平台的云化PLC实例以进行通信。If the comparison result shows that the round-trip time of the communication link is less than the communication cycle, it can be said that the cloud PLC deployed on the 5G-MEC platform can meet the communication service requirements. In this case, the I/O device can be connected to the cloud PLC instance deployed on the 5G-MEC platform for communication.

向目标I/O设备接入5G-MEC平台部署的云化PLC可以指向I/O发送5G-MEC云化PLC实例的IP及开放端口号,I/O接收后绑定IP及端口号,即可与部署于5G-MEC平台的云化PLC实例通信。To connect the target I/O device to the cloud-based PLC deployed on the 5G-MEC platform, you can point to the I/O to send the IP address and open port number of the 5G-MEC cloud-based PLC instance. After receiving the IP address and port number, the I/O will bind them and communicate with the cloud-based PLC instance deployed on the 5G-MEC platform.

比对结果为通信链路往返时间大于或者等于通信周期可以指部署在5G-MEC平台部署的云化PLC无法满足通信业务需求,因此需要进行分级PLC接入,以完成通信过程。If the comparison result shows that the round-trip time of the communication link is greater than or equal to the communication cycle, it may mean that the cloud PLC deployed on the 5G-MEC platform cannot meet the communication service requirements, and therefore hierarchical PLC access is required to complete the communication process.

先将目标I/O设备接入基站部署的云化PLC,然后将基站部署的云化PLC再接入5G-MEC平台部署的云化PLC可以指分级PLC接入方案,首先向I/O发送基站云化PLC实例的IP及开放端口号,I/O接收后绑定IP及端口号,由此将目标I/O设备接入基站部署的云化PLC,由该云化PLC完成与I/O的控制业务通信,然后给基站云化PLC实例以及5G-MEC云化PLC实例开放新端口,由此将基站部署的云化PLC再接入5G-MEC平台部署的云化PLC,由5G-MEC平台部署的云化PLC完成不同I/O间的协作任务处理。First, connect the target I/O device to the cloud-based PLC deployed on the base station, and then connect the cloud-based PLC deployed on the base station to the cloud-based PLC deployed on the 5G-MEC platform. This can refer to a hierarchical PLC access solution. First, send the IP address and open port number of the base station cloud-based PLC instance to the I/O. After receiving, the I/O binds the IP address and port number. In this way, the target I/O device is connected to the cloud-based PLC deployed on the base station. The cloud-based PLC completes the control business communication with the I/O. Then, new ports are opened to the base station cloud-based PLC instance and the 5G-MEC cloud-based PLC instance. In this way, the cloud-based PLC deployed on the base station is connected to the cloud-based PLC deployed on the 5G-MEC platform. The cloud-based PLC deployed on the 5G-MEC platform completes the collaborative task processing between different I/Os.

在本公开实施例中,在根据目标I/O设备与目标基站的接入情况、其他I/O设备与目标基站的接入情况、控制业务信息、通信链路信息,确定目标基站的PLC与I/O设备之间的接入关系之后的方法还可以包括:In an embodiment of the present disclosure, after determining the access relationship between the PLC of the target base station and the I/O device based on the access status of the target I/O device and the target base station, the access status of other I/O devices and the target base station, control service information, and communication link information, the method may further include:

将接入关系发送至云化PLC,以使云化PLC根据接入关系向I/O设备发送对应的IP和开放端口号,并在I/O设备接收并绑定对应的IP和开放端口号后,与云化PLC进行通信。The access relationship is sent to the cloud PLC so that the cloud PLC sends the corresponding IP and open port number to the I/O device according to the access relationship. After the I/O device receives and binds the corresponding IP and open port number, it communicates with the cloud PLC.

向I/O设备发送对应的IP和开放端口号可以指确定I/O设备的端口配置信息,以实现PLC和I/O之间的配置功能。例如,对于接入部署于基站的云化PLC实例的I/O设备,向I/O发送基站云化PLC实例的IP及开放端口号,I/O接收后绑定IP及端口号,即可与部署于基站的云化PLC实例通信;对于接入部署于5G-MEC平台的云化PLC实例的I/O设备,向I/O发送5G-MEC云化PLC实例的IP及开放端口号,I/O接收后绑定IP及端口号,即可与部署于5G-MEC平台的云化PLC实例通信;对于分级PLC接入方案,首先向I/O发送基站云化PLC实例的IP及开放端口号,I/O接收后绑定IP及端口号,然后给基站云化PLC实例以及5G-MEC云化PLC实例开放新端口,供两者通信。Sending the corresponding IP and open port number to the I/O device can refer to determining the port configuration information of the I/O device to implement the configuration function between the PLC and the I/O. For example, for an I/O device accessing a cloud-based PLC instance deployed on a base station, the IP and open port number of the base station cloud-based PLC instance are sent to the I/O. After receiving the information, the I/O binds the IP and port number, and can then communicate with the cloud-based PLC instance deployed on the base station. For an I/O device accessing a cloud-based PLC instance deployed on a 5G-MEC platform, the IP and open port number of the 5G-MEC cloud-based PLC instance are sent to the I/O. After receiving the information, the I/O binds the IP and port number, and can then communicate with the cloud-based PLC instance deployed on the 5G-MEC platform. For a hierarchical PLC access solution, the IP and open port number of the base station cloud-based PLC instance are first sent to the I/O. After receiving the information, the I/O binds the IP and port number, and then new ports are opened for the base station cloud-based PLC instance and the 5G-MEC cloud-based PLC instance to communicate.

在本公开实施例中,方法还可以包括:In an embodiment of the present disclosure, the method may further include:

获取网络链路信息,网络链路信息包括网络状态、I/O端口信息;Get network link information, including network status and I/O port information;

根据网络链路信息、PLC与I/O设备之间的接入关系、I/O设备的控制业务信息,确定PLC控制业务数据的数据确定性传输配置原则;Determine the data deterministic transmission configuration principle for PLC control business data based on network link information, the access relationship between PLC and I/O devices, and the control business information of I/O devices;

根据数据确定性传输配置原则,对业务数据进行处理。Process business data according to the data deterministic transmission configuration principle.

数据确定性传输配置原则可以指确定性传输配置模块根据网络通信链路往返时间、设备接入关系和控制业务参数所制定的PLC控制业务数据的确定性传输原则,包括数据帧聚合、流量整形等原则,其中,确定性可以指保证和可靠,即数据以完整、安全的形式进行通信传输。The data deterministic transmission configuration principle may refer to the deterministic transmission principle of PLC control business data formulated by the deterministic transmission configuration module based on the round-trip time of the network communication link, the device access relationship and the control business parameters, including principles such as data frame aggregation and traffic shaping. Among them, determinism may refer to guarantee and reliability, that is, data is communicated and transmitted in a complete and secure manner.

在本公开实施例中,在根据网络链路信息、PLC与I/O设备之间的接入关系、I/O设备的控制业务信息,确定PLC控制业务数据的数据确定性传输配置原则之后的方法还可以包括:In an embodiment of the present disclosure, after determining the data deterministic transmission configuration principle of PLC control service data based on network link information, the access relationship between the PLC and the I/O device, and the control service information of the I/O device, the method may further include:

根据数据确定性传输配置原则、PLC与I/O设备之间的接入关系、I/O设备的组态信息,确定数据确定性传输解析配置信息;Determine the data deterministic transmission parsing configuration information based on the data deterministic transmission configuration principle, the access relationship between the PLC and the I/O device, and the configuration information of the I/O device;

根据数据确定性传输解析配置信息和数据写入通道,对业务数据进行解析和写入。Parse and write business data based on the data deterministic transmission parsing configuration information and data writing channel.

数据确定性传输解析配置信息可以指I/O控制模块根据数据确定性传输配置原则和I/O设备的组态信息所确定的数据进行传输解析需要配置的参数信息,该解析配置信息是进行数据解析的前提,以使I/O数据面功能模块根据该解析配置信息进行解析业务配置,并通过各个数据写入通道将数据发送至各个I/O设备。Data deterministic transmission and parsing configuration information may refer to the parameter information that needs to be configured for data transmission and parsing determined by the I/O control module based on the data deterministic transmission configuration principles and the configuration information of the I/O device. The parsing configuration information is a prerequisite for data parsing, so that the I/O data plane functional module can perform parsing business configuration according to the parsing configuration information and send the data to each I/O device through each data write channel.

数据写入通道可以指建立在数据面功能模块与各个I/O设备之间的数据通道,由I/O接口管理模块所提供,确保数据可以及时、高效地传输至I/O设备。The data write channel can refer to the data channel established between the data plane functional module and each I/O device, provided by the I/O interface management module, to ensure that data can be transmitted to the I/O device in a timely and efficient manner.

本公开实施例提供的5G云化PLC确定性传输方法,可以通过对I/O设备进行检测,得到组态信息,由于可以通过组态信息得知I/O设备接入的基站,因此可以确定第一接入信息,得到目标I/O设备和其他I/O设备,同时也可以得到目标I/O设备和其他I/O设备接入基站的情况,再通过I/O设备的控制业务信息和通信链路信息判断是否能够满足业务需求,由此可以确定目标基站的PLC与I/O设备之间的接入关系,从而实现PLC和I/O设备之间的灵活分配和路由的效果,解决了无法满足5G网络云化PLC多位置部署的问题。The 5G cloud-based PLC deterministic transmission method provided by the embodiment of the present disclosure can obtain configuration information by detecting the I/O device. Since the base station to which the I/O device is connected can be known through the configuration information, the first access information can be determined to obtain the target I/O device and other I/O devices. At the same time, the access situation of the target I/O device and other I/O devices to the base station can also be obtained. Then, the control business information and communication link information of the I/O device can be used to determine whether the business needs can be met. In this way, the access relationship between the PLC of the target base station and the I/O device can be determined, thereby achieving flexible allocation and routing between the PLC and the I/O devices, and solving the problem that the multi-location deployment of the 5G network cloud-based PLC cannot be met.

图2为本公开实施例提供的另一种5G云化PLC确定性传输方法的流程示意图。该方法的执行主体可以为服务器,本公开实施例此处不做特别限制,如图2所示,本方法可以包括:FIG2 is a flow chart of another 5G cloud-based PLC deterministic transmission method provided by an embodiment of the present disclosure. The execution subject of the method may be a server, and the present disclosure embodiment does not impose any particular restrictions here. As shown in FIG2, the method may include:

S201、根据I/O组态信息确定当前I/O设备与哪些I/O设备接入同一基站。S201. Determine which I/O devices are connected to the same base station as the current I/O device according to I/O configuration information.

I/O设备可以指网络中所接入的设备。I/O devices may refer to devices connected to a network.

根据I/O组态信息确定当前I/O设备与哪些I/O设备接入同一基站可以指根据I/O组态信息确定当前I/O设备是否需要与其他I/O设备协同工作,则接入同一基站。Determining which I/O devices the current I/O device and are connected to the same base station according to the I/O configuration information may refer to determining whether the current I/O device needs to work in coordination with other I/O devices according to the I/O configuration information, and then connecting to the same base station.

S202、根据I/O设备控制业务参数,判断当前I/O设备是否与需要协同工作的其他I/O设备接入同一基站。S202: Determine, based on the I/O device control service parameter, whether the current I/O device and other I/O devices that need to work in collaboration are connected to the same base station.

S203、如果是,则选择当前I/O设备所接入基站部署的云化PLC作为其接入实例;如果不是,则进一步判断接入5G-MEC平台部署的云化PLC是否满足当前I/O设备的控制业务需求。S203. If yes, select the cloud-based PLC deployed on the base station to which the current I/O device is connected as its access instance; if not, further determine whether the cloud-based PLC deployed on the 5G-MEC platform meets the control business requirements of the current I/O device.

判断接入5G-MEC平台部署的云化PLC是否满足当前I/O设备的控制业务需求可以指将5G-MEC平台到当前I/O的通信链路RTT与I/O通信周期进行比较,若5G-MEC平台到当前I/O的通信链路RTT小于I/O通信周期,则满足需求,否则不满足需求。Determining whether the cloud-based PLC deployed on the 5G-MEC platform meets the control service requirements of the current I/O device can refer to comparing the communication link RTT from the 5G-MEC platform to the current I/O with the I/O communication cycle. If the communication link RTT from the 5G-MEC platform to the current I/O is less than the I/O communication cycle, the requirements are met; otherwise, the requirements are not met.

S204、满足需求,则将当前I/O接入5G-MEC平台部署的云化PLC;如果不满足需求,则采用分级PLC接入方案,将目标I/O接入基站部署的云化PLC,由该云化PLC完成与I/O的控制业务通信,然后将基站部署的云化PLC再接入5G-MEC平台部署的云化PLC,由5G-MEC平台部署的云化PLC完成不同I/O间的协作任务处理。S204: If the requirements are met, the current I/O is connected to the cloud PLC deployed on the 5G-MEC platform. If the requirements are not met, a hierarchical PLC access solution is adopted to connect the target I/O to the cloud PLC deployed on the base station. The cloud PLC completes the control business communication with the I/O. The cloud PLC deployed on the base station is then connected to the cloud PLC deployed on the 5G-MEC platform. The cloud PLC deployed on the 5G-MEC platform completes the collaborative task processing between different I/Os.

在本公开实施例提供的另一种5G云化PLC确定性传输方法的流程示意图中,可以先判断当前I/O设备与基站的接入关系,以及和其他I/O设备的协同工作关系,再根据业务需求进行路由决策。In the flow chart of another 5G cloud-based PLC deterministic transmission method provided in an embodiment of the present disclosure, the access relationship between the current I/O device and the base station, as well as the collaborative working relationship with other I/O devices, can be determined first, and then routing decisions can be made based on business needs.

图3为本公开实施例提供的5G云化PLC系统的架构示意图。该系统基于OT网络和IMT-2020网络平台,如图3所示,本系统可以包括:Figure 3 is a schematic diagram of the architecture of a 5G cloud-based PLC system provided by an embodiment of the present disclosure. The system is based on an OT network and an IMT-2020 network platform. As shown in Figure 3, the system may include:

IMT-2020网络可以指国际电信联盟(International Telecommunication Union,ITU)的无线通信部门于2012年定义的一个术语,它制定了“2020年及之后的国际移动通信(International Mobile Communications,IMT)”愿景,即5G网络,包括:AMF(Access and Mobility Management Function,接入和移动性管理功能)、SMF(Session Management function,会话管理功能)、UPF(User plane function,用户面功能)、gNB(generation NodeB,5G基站)、UE(User Equipment,用户设备)、PCF(Policy Control function,策略控制功能)。IMT-2020 network can refer to a term defined by the wireless communication sector of the International Telecommunication Union (ITU) in 2012, which formulated the vision of "International Mobile Communications (IMT) in 2020 and beyond", that is, 5G network, including: AMF (Access and Mobility Management Function), SMF (Session Management function), UPF (User plane function), gNB (generation NodeB, 5G base station), UE (User Equipment), PCF (Policy Control function).

IMT-2020网络为Cloud PLC和Local PLC及I/O提供通信通道,负责传输控制指令以及PLC状态信息,在IMT-2020网络架构中新增功能网元PLC功能模块,负责对外交互IMT-2020网络状态与I/O端口信息;接收外部网络I/O端口配置信息,并根据配置要求映射承载,UPF为云化PLC业务实现在IMT-2020网络内的转发。The IMT-2020 network provides communication channels for Cloud PLC, Local PLC and I/O, and is responsible for transmitting control instructions and PLC status information. A new functional network element PLC function module is added to the IMT-2020 network architecture, which is responsible for externally exchanging IMT-2020 network status and I/O port information; receiving external network I/O port configuration information and mapping the bearer according to the configuration requirements. UPF realizes forwarding of cloud PLC services within the IMT-2020 network.

在IMT-2020与OT网络之间新增三个功能单元:I/O管理功能单元、PLC集中控制功能单元、PLC数据功能单元,以实现PLC和I/O之间的动态重组与灵活分配、路由、配置等控制功能,以及控制数据的聚合、流量整形等确定性传输配置。Three new functional units are added between IMT-2020 and the OT network: I/O management functional unit, PLC centralized control functional unit, and PLC data functional unit to achieve dynamic reorganization and flexible allocation, routing, configuration and other control functions between PLC and I/O, as well as deterministic transmission configurations such as aggregation and traffic shaping of control data.

OT(Operational Technology,操作层面的技术)网络,主要指管理生产车间的硬件和软件,在本公开实施例中,在OT网络中,基于云化PLC构成了多级分布式的控制系统,PLC根据任务需求分为上下两级,云端可部署多个云化PLC,负责处理非实时任务;local PLC部署在工业现场I/O近端,实时控制工业I/O设备,使PLC部署位置更加灵活,实现工业控制任务的快速创建、灵活迁移、安全备份等功能。OT (Operational Technology) network mainly refers to the hardware and software for managing production workshops. In the disclosed embodiment, in the OT network, a multi-level distributed control system is constructed based on cloud PLC. PLC is divided into two levels according to task requirements. Multiple cloud PLCs can be deployed in the cloud to handle non-real-time tasks; local PLC is deployed near the industrial site I/O to control industrial I/O equipment in real time, making the PLC deployment location more flexible and realizing functions such as rapid creation, flexible migration, and secure backup of industrial control tasks.

图4为本公开实施例提供的5G云化PLC系统中PLC集中控制功能单元的结构示意图。如图4所示,PLC集中控制功能单元包括:Figure 4 is a schematic diagram of the structure of the PLC centralized control functional unit in the 5G cloud-based PLC system provided by an embodiment of the present disclosure. As shown in Figure 4, the PLC centralized control functional unit includes:

IMT网络交互模块,IMT网络交互模块负责与IMT-2020网络中的PLC功能模块连接,接收当前IMT-2020网络状态和I/O端口信息,并通过IMT-2020网络向I/O管理功能单元发送I/O&PLC的配置信息和数据传输配置信息,并根据I/O端口扫描模块的I/O设备IP地址,获取PLC到当前各个I/O设备的通信链路RTT。IMT network interaction module, the IMT network interaction module is responsible for connecting with the PLC functional module in the IMT-2020 network, receiving the current IMT-2020 network status and I/O port information, and sending I/O&PLC configuration information and data transmission configuration information to the I/O management functional unit through the IMT-2020 network, and obtaining the communication link RTT from the PLC to each current I/O device based on the I/O device IP address of the I/O port scanning module.

PLC控制器,完成PLC业务的集中配置,包括I/O&PLC管理、业务配置和确定性传输配置功能等,并在逻辑上与I/O管理模块相连接。The PLC controller completes the centralized configuration of PLC services, including I/O & PLC management, service configuration, and deterministic transmission configuration functions, and is logically connected to the I/O management module.

I/O&PLC管理功能模块包括I/O&PLC分配重组决策模块、I/O端口扫描模块等,其中,I/O&PLC分配重组决策模块用于决策I/O与PLC之间的灵活重组与分配,从而实现PLC与I/O之间的解耦;I/O端口扫描模块用于扫描网络中接入的I/O设备,获取I/O设备的接入组态以及设备信息。The I/O&PLC management function module includes the I/O&PLC allocation and reorganization decision module, the I/O port scanning module, etc. Among them, the I/O&PLC allocation and reorganization decision module is used to decide the flexible reorganization and allocation between I/O and PLC, thereby realizing the decoupling between PLC and I/O; the I/O port scanning module is used to scan the I/O devices connected to the network and obtain the access configuration and device information of the I/O devices.

业务设置模块用于指定各I/O设备的控制业务参数。The service setting module is used to specify the control service parameters of each I/O device.

确定性传输配置模块用于制定PLC业务数据确定性传输配置原则。The deterministic transmission configuration module is used to formulate the configuration principles for deterministic transmission of PLC business data.

图5为本公开实施例提供的5G云化PLC系统中PLC数据功能单元的结构示意图。如图5所示,包括:FIG5 is a schematic diagram of the structure of the PLC data function unit in the 5G cloud-based PLC system provided by an embodiment of the present disclosure. As shown in FIG5 , it includes:

从确定性传输配置模块接收确定性传输配置原则,并进行数据处理,如数据帧聚合、流量整形等。在逻辑上与I/O管理功能的数据面功能模块相连接。Receives deterministic transmission configuration principles from the deterministic transmission configuration module and performs data processing, such as data frame aggregation and traffic shaping. It is logically connected to the data plane function module of the I/O management function.

图6为本公开实施例提供的5G云化PLC系统中I/O管理功能单元的结构示意图。如图6所示,包括:FIG6 is a schematic diagram of the structure of the I/O management functional unit in the 5G cloud-based PLC system provided by an embodiment of the present disclosure. As shown in FIG6 , it includes:

I/O控制面功能模块,完成对I/O端口的分配、映射等控制功能,并在逻辑上与PLC控制器相连接,包括I/O虚拟映射模块和I/O控制模块。The I/O control plane function module completes the control functions such as allocation and mapping of I/O ports, and is logically connected to the PLC controller, including the I/O virtual mapping module and the I/O control module.

I/O虚拟映射模块,根据从I/O&PLC分配重组决策模块接收的I/O与PLC之间的对应关系,确定PLC访问的I/O虚拟内存映射空间,从而实现PLC与I/O之间的解耦和灵活重组。The I/O virtual mapping module determines the I/O virtual memory mapping space accessed by the PLC based on the correspondence between I/O and PLC received from the I/O&PLC allocation and reorganization decision module, thereby achieving decoupling and flexible reorganization between PLC and I/O.

I/O控制模块,用于完成本地PLC与本地I/O之间的映射管理和制定数据解析配置。The I/O control module is used to complete the mapping management between the local PLC and the local I/O and to formulate the data analysis configuration.

I/O接口管理模块,负责提供I/O组态信息,并在逻辑上向PLC控制器发送,以及提供数据面功能与各I/O设备间的数据写入通道。The I/O interface management module is responsible for providing I/O configuration information and sending it logically to the PLC controller, as well as providing a data writing channel between the data plane function and each I/O device.

数据面功能模块,用于完成PLC业务数据的解析与写入。The data plane functional module is used to parse and write PLC business data.

图7为本公开实施例提供的5G云化PLC确定性传输装置的结构示意图。如图7所示,该5G云化PLC确定性传输装置70(图7中示出为5G云化PLC路由装置70)包括:获取模块701、第一确定模块702、第二确定模块703、第三确定模块704。FIG7 is a schematic diagram of the structure of a 5G cloud-based PLC deterministic transmission device provided in an embodiment of the present disclosure. As shown in FIG7 , the 5G cloud-based PLC deterministic transmission device 70 (shown as a 5G cloud-based PLC routing device 70 in FIG7 ) includes: an acquisition module 701, a first determination module 702, a second determination module 703, and a third determination module 704.

获取模块701,用于获取I/O设备的组态信息、控制业务信息、通信链路信息,其中,I/O设备为网络中接入的设备,组态信息为接入基站的物理小区标识,控制业务信息包括I/O设备与PLC之间的通信周期、I/O设备之间的协作关系,通信链路信息为PLC到I/O设备的通信链路往返时间;Acquisition module 701 is used to acquire configuration information, control service information, and communication link information of an I/O device, wherein an I/O device is a device connected to the network, configuration information is the physical cell identifier of the access base station, control service information includes the communication cycle between the I/O device and the PLC, and the collaborative relationship between the I/O devices, and communication link information is the round-trip time of the communication link from the PLC to the I/O device;

第一确定模块702,用于根据组态信息,确定第一接入信息,第一接入信息包括目标I/O设备和其他I/O设备,目标I/O设备和其他I/O设备为I/O设备中需要接入目标基站进行协同工作的设备,目标基站与目标组态信息中接入基站的物理小区标识对应,目标组态信息为目标I/O设备的组态信息;A first determining module 702 is configured to determine first access information based on the configuration information, where the first access information includes a target I/O device and other I/O devices, where the target I/O device and other I/O devices are I/O devices that need to access a target base station for collaborative operation, where the target base station corresponds to a physical cell identifier of the access base station in the target configuration information, and the target configuration information is configuration information of the target I/O device;

第二确定模块703,用于根据控制业务信息,确定目标I/O设备与目标基站的第一接入情况、以及其他I/O设备与目标基站的第二接入情况;A second determining module 703 is configured to determine, based on the control service information, a first access status of the target I/O device to the target base station and a second access status of other I/O devices to the target base station;

第三确定模块704,用于根据目标I/O设备与目标基站的第一接入情况、其他I/O设备与目标基站的第二接入情况、控制业务信息、通信链路信息,确定目标基站的PLC与I/O设备之间的接入关系。The third determination module 704 is used to determine the access relationship between the PLC and the I/O device of the target base station based on the first access status of the target I/O device and the target base station, the second access status of other I/O devices and the target base station, control service information, and communication link information.

在本公开实施例中,获取模块701还可以用于:In the embodiment of the present disclosure, the acquisition module 701 may also be used to:

获取I/O设备的设备信息和组态信息,设备信息包括IP地址、设备型号和版本号;Obtain device information and configuration information of I/O devices, including IP address, device model, and version number;

根据设备信息,得到设备功能和通信链路信息;According to the device information, obtain the device function and communication link information;

根据设备功能,确定I/O设备的控制业务信息。Determine the control service information of the I/O device based on the device function.

在本公开实施例中,获取模块701还可以用于:In the embodiment of the present disclosure, the acquisition module 701 may also be used to:

以目标指令格式向网络发送广播请求,并扫描网络中的I/O设备;Send a broadcast request to the network in the target command format and scan the I/O devices in the network;

根据广播请求,得到I/O设备的响应信息,响应信息包括I/O设备接入基站的物理小区标识、设备型号、版本号、设备的IP地址;According to the broadcast request, the I/O device receives the response information, which includes the physical cell identifier of the base station where the I/O device accesses, the device model, version number, and the IP address of the device;

根据I/O设备的响应信息,确定I/O设备的组态信息和设备信息。According to the response information of the I/O device, the configuration information and device information of the I/O device are determined.

在本公开实施例中,第一确定模块702还可以用于:In the embodiment of the present disclosure, the first determining module 702 may also be used to:

根据组态信息,确定第二接入信息,第二接入信息包括目标I/O设备;Determining second access information according to the configuration information, where the second access information includes a target I/O device;

根据第二接入信息,向目标I/O设备接入基站部署的云化PLC。According to the second access information, the target I/O device is connected to the cloud PLC deployed in the base station.

在本公开实施例中,第二确定模块703还可以用于:In the embodiment of the present disclosure, the second determining module 703 may also be used to:

若第一接入情况表征目标I/O设备接入目标基站、第二接入情况表征其他I/O设备接入目标基站,则向目标I/O设备接入基站部署的云化PLC。If the first access situation indicates that the target I/O device accesses the target base station and the second access situation indicates that other I/O devices access the target base station, the cloud PLC deployed in the base station is accessed to the target I/O device.

在本公开实施例中,第二确定模块703还可以用于:In the embodiment of the present disclosure, the second determining module 703 may also be used to:

若第一接入情况表征目标I/O设备接入目标基站、第二接入情况表征其他I/O设备未接入目标基站,则比对控制业务信息中I/O设备与PLC之间的通信周期和通信链路信息中PLC到I/O设备的通信链路往返时间,得到比对结果;If the first access condition indicates that the target I/O device is connected to the target base station, and the second access condition indicates that other I/O devices are not connected to the target base station, then compare the communication cycle between the I/O device and the PLC in the control service information with the round-trip time of the communication link from the PLC to the I/O device in the communication link information to obtain a comparison result;

若比对结果为通信链路往返时间小于通信周期,则向目标I/O设备接入5G-MEC平台部署的云化PLC;If the comparison result shows that the round-trip time of the communication link is less than the communication cycle, the cloud-based PLC deployed on the 5G-MEC platform is connected to the target I/O device;

若比对结果为通信链路往返时间大于或者等于通信周期,则先将目标I/O设备接入基站部署的云化PLC,然后将基站部署的云化PLC再接入5G-MEC平台部署的云化PLC。If the comparison result shows that the round-trip time of the communication link is greater than or equal to the communication cycle, the target I/O device is first connected to the cloud-based PLC deployed on the base station, and then the cloud-based PLC deployed on the base station is connected to the cloud-based PLC deployed on the 5G-MEC platform.

在本公开实施例中,第三确定模块704还可以用于:In the embodiment of the present disclosure, the third determining module 704 may also be used to:

将接入关系发送至云化PLC,以使云化PLC根据接入关系向I/O设备发送对应的IP和开放端口号,并在I/O设备接收并绑定对应的IP和开放端口号后,与云化PLC进行通信。The access relationship is sent to the cloud PLC so that the cloud PLC sends the corresponding IP and open port number to the I/O device according to the access relationship. After the I/O device receives and binds the corresponding IP and open port number, it communicates with the cloud PLC.

在本公开实施例中,第三确定模块704还可以用于:In the embodiment of the present disclosure, the third determining module 704 may also be used to:

获取网络链路信息,网络链路信息包括网络状态、I/O端口信息;Get network link information, including network status and I/O port information;

根据网络链路信息、PLC与I/O设备之间的接入关系、I/O设备的控制业务信息,确定PLC控制业务数据的数据确定性传输配置原则;Determine the data deterministic transmission configuration principle for PLC control business data based on network link information, the access relationship between PLC and I/O devices, and the control business information of I/O devices;

根据数据确定性传输配置原则,对业务数据进行处理。Process business data according to the data deterministic transmission configuration principle.

在本公开实施例中,第三确定模块704还可以用于:In the embodiment of the present disclosure, the third determining module 704 may also be configured to:

根据数据确定性传输配置原则、PLC与I/O设备之间的接入关系、I/O设备的组态信息,确定数据确定性传输解析配置信息;Determine the data deterministic transmission parsing configuration information based on the data deterministic transmission configuration principle, the access relationship between the PLC and the I/O device, and the configuration information of the I/O device;

根据数据确定性传输解析配置信息和数据写入通道,对业务数据进行解析和写入。Parse and write business data based on the data deterministic transmission parsing configuration information and data writing channel.

由上可知,本公开实施例的5G云化PLC确定性传输装置70由获取模块701,用于获取I/O设备的组态信息、控制业务信息、通信链路信息,其中,I/O设备为网络中接入的设备,组态信息为接入基站的物理小区标识,控制业务信息包括I/O设备与PLC之间的通信周期、I/O设备之间的协作关系,通信链路信息为PLC到I/O设备的通信链路往返时间;由第一确定模块702,用于根据组态信息,确定第一接入信息,第一接入信息包括目标I/O设备和其他I/O设备,目标I/O设备和其他I/O设备为I/O设备中需要接入目标基站进行协同工作的设备,目标基站与目标组态信息中接入基站的物理小区标识对应,目标组态信息为目标I/O设备的组态信息;由第二确定模块703,用于根据控制业务信息,确定目标I/O设备与目标基站的第一接入情况、以及其他I/O设备与目标基站的第二接入情况;由第三确定模块704,用于根据目标I/O设备与目标基站的第一接入情况、其他I/O设备与目标基站的第二接入情况、控制业务信息、通信链路信息,确定目标基站的PLC与I/O设备之间的接入关系。由此,通过组态信息得知I/O设备接入的基站,因此可以确定第一接入信息,得到目标I/O设备和其他I/O设备,同时也可以得到目标I/O设备和其他I/O设备接入基站的情况,再通过I/O设备的控制业务信息和通信链路信息判断是否能够满足业务需求,由此可以确定目标基站的PLC与I/O设备之间的接入关系,从而实现PLC和I/O设备之间的灵活分配和路由的效果,解决了无法满足5G网络云化PLC多位置部署的问题。As can be seen from the above, the 5G cloud-based PLC deterministic transmission device 70 of the embodiment of the present disclosure is composed of an acquisition module 701, which is used to obtain the configuration information, control service information, and communication link information of the I/O device, wherein the I/O device is a device accessed in the network, the configuration information is the physical cell identifier of the access base station, the control service information includes the communication cycle between the I/O device and the PLC, the collaborative relationship between the I/O devices, and the communication link information is the round-trip time of the communication link from the PLC to the I/O device; and a first determination module 702 is used to determine the first access information according to the configuration information, and the first access information includes the target I/O device and other I/O devices, the target I/O device and other I/O devices. The device is an I/O device that needs to access the target base station for collaborative work. The target base station corresponds to the physical cell identifier of the access base station in the target configuration information, and the target configuration information is the configuration information of the target I/O device; the second determination module 703 is used to determine the first access status of the target I/O device and the target base station, and the second access status of other I/O devices and the target base station based on the control service information; the third determination module 704 is used to determine the access relationship between the PLC of the target base station and the I/O device based on the first access status of the target I/O device and the target base station, the second access status of other I/O devices and the target base station, the control service information, and the communication link information. Therefore, the base station to which the I/O device is connected is known through the configuration information, so the first access information can be determined to obtain the target I/O device and other I/O devices. At the same time, the access situation of the target I/O device and other I/O devices to the base station can also be obtained. Then, the control business information and communication link information of the I/O device are used to determine whether the business needs can be met. In this way, the access relationship between the PLC of the target base station and the I/O device can be determined, thereby achieving flexible allocation and routing between the PLC and the I/O device, solving the problem of not being able to meet the multi-location deployment of 5G network cloud PLC.

图8为本公开实施例提供的电子设备的结构示意图。FIG8 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.

如图8所示,电子设备80可以包括一个或者一个以上处理核心的处理器801、一个或一个以上计算机可读存储介质的存储器802、通信部件803等部件。处理器801、存储器802以及通信部件803通过总线804连接。8 , the electronic device 80 may include one or more processors 801, one or more computer-readable storage media memories 802, and a communication component 803. The processor 801, memory 802, and communication component 803 are connected via a bus 804.

在实现过程中,至少一个处理器801执行存储器802存储的计算机执行指令,使得至少一个处理器801执行如上的5G云化PLC确定性传输方法。During the implementation process, at least one processor 801 executes the computer execution instructions stored in the memory 802, so that at least one processor 801 executes the above 5G cloud PLC deterministic transmission method.

处理器801的实现过程可参见上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。The implementation process of the processor 801 can be found in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here in this embodiment.

在上述的图8所示的实施例中,应理解,处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本文所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the embodiment shown in FIG. 8 , it should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), or application-specific integrated circuits (ASICs). A general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed herein may be directly executed by a hardware processor or by a combination of hardware and software modules within the processor.

存储器可能包含高速存储器(Random Access Memory,随机存取存储器,RAM),也可能还包括非易失性存储器(Non-volatile Memory,NVM),例如至少一个磁盘存储器。The memory may include high-speed memory (Random Access Memory, RAM), and may also include non-volatile memory (NVM), such as at least one disk storage.

总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本公开附图中的总线并不限定仅有一根总线或一种类型的总线。A bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be categorized as address buses, data buses, control buses, and the like. For ease of illustration, the buses in the drawings of this disclosure are not limited to a single bus or a single type of bus.

在一些实施例中,还提出一种计算机程序产品,包括计算机程序或指令,该计算机程序或指令被处理器执行时实现上述任一种5G云化PLC确定性传输方法中的步骤。In some embodiments, a computer program product is also proposed, including a computer program or instructions, which, when executed by a processor, implement the steps in any of the above-mentioned 5G cloud-based PLC deterministic transmission methods.

以上各个操作的实施可参见前面的实施例,在此不再赘述。The implementation of the above operations can be found in the previous embodiments and will not be described in detail here.

本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于计算机可读存储介质中,并由处理器进行加载和执行。Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

为此,本公开实施例提供一种计算机可读存储介质(包括非暂态计算机可读存储介质),其中存储有多条指令,该指令能够被处理器进行加载,以执行本公开实施例所提供的任一种5G云化PLC确定性传输方法中的步骤。To this end, an embodiment of the present disclosure provides a computer-readable storage medium (including a non-transitory computer-readable storage medium), in which multiple instructions are stored, which can be loaded by a processor to execute the steps in any one of the 5G cloud-based PLC deterministic transmission methods provided by the embodiment of the present disclosure.

该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or CD, etc.

根据本公开的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。According to one aspect of the present disclosure, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer-readable storage medium.

由于该存储介质中所存储的指令,可以执行本公开实施例所提供的任一种5G云化PLC确定性传输方法中的步骤,因此,可以实现本公开实施例所提供的任一种5G云化PLC确定性传输方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Since the instructions stored in the storage medium can execute the steps in any one of the 5G cloud-based PLC deterministic transmission methods provided in the embodiments of the present disclosure, the beneficial effects that can be achieved by any one of the 5G cloud-based PLC deterministic transmission methods provided in the embodiments of the present disclosure can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

本领域技术人员在考虑说明书及实践本公开后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围由下面的权利要求书指出。Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the present disclosure. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope of the present disclosure is indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求书来限制。It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

一种第五代5G云化可编程逻辑控制器PLC确定性传输方法,包括:A fifth-generation 5G cloud-based programmable logic controller (PLC) deterministic transmission method, comprising: 获取输入输出I/O设备的组态信息、控制业务信息、通信链路信息,其中,所述I/O设备为网络中接入的设备,所述组态信息为接入基站的物理小区标识,所述控制业务信息包括所述I/O设备与PLC之间的通信周期、所述I/O设备之间的协作关系,所述通信链路信息为所述PLC到所述I/O设备的通信链路往返时间;Obtaining configuration information, control service information, and communication link information of input/output (I/O) devices, wherein the I/O device is a device connected to the network, the configuration information is the physical cell identifier of the access base station, the control service information includes the communication cycle between the I/O device and the PLC, and the collaborative relationship between the I/O devices, and the communication link information is the round-trip time of the communication link from the PLC to the I/O device; 根据所述组态信息,确定第一接入信息,所述第一接入信息包括目标I/O设备和其他I/O设备,所述目标I/O设备和所述其他I/O设备为所述I/O设备中需要接入目标基站进行协同工作的设备,所述目标基站与目标组态信息中接入基站的物理小区标识对应,所述目标组态信息为所述目标I/O设备的组态信息;Determining first access information according to the configuration information, the first access information including a target I/O device and other I/O devices, the target I/O device and the other I/O devices being devices among the I/O devices that need to access a target base station for collaborative work, the target base station corresponding to a physical cell identifier of the access base station in the target configuration information, and the target configuration information being configuration information of the target I/O device; 根据所述控制业务信息,确定所述目标I/O设备与所述目标基站的第一接入情况、以及所述其他I/O设备与所述目标基站的第二接入情况;determining, according to the control service information, a first access status of the target I/O device to the target base station, and a second access status of the other I/O devices to the target base station; 根据所述目标I/O设备与所述目标基站的第一接入情况、所述其他I/O设备与所述目标基站的第二接入情况、所述控制业务信息、所述通信链路信息,确定所述目标基站的PLC与所述I/O设备之间的接入关系。The access relationship between the PLC of the target base station and the I/O device is determined based on the first access status of the target I/O device and the target base station, the second access status of the other I/O devices and the target base station, the control service information, and the communication link information. 根据权利要求1所述的方法,其中,所述获取I/O设备的组态信息、控制业务信息、通信链路信息,包括:The method according to claim 1, wherein obtaining configuration information, control service information, and communication link information of the I/O device comprises: 获取所述I/O设备的设备信息和组态信息,所述设备信息包括互联网协议IP地址、设备型号和版本号;Obtaining device information and configuration information of the I/O device, wherein the device information includes an Internet Protocol (IP) address, a device model, and a version number; 根据所述设备信息,得到设备功能和所述通信链路信息;Obtaining device functions and the communication link information according to the device information; 根据所述设备功能,确定所述I/O设备的所述控制业务信息。The control service information of the I/O device is determined according to the device function. 根据权利要求2所述的方法,其中,所述获取所述I/O设备的设备信息和组态信息,包括:The method according to claim 2, wherein obtaining device information and configuration information of the I/O device comprises: 以目标指令格式向所述网络发送广播请求,并扫描所述网络中的I/O设备;Sending a broadcast request to the network in a target instruction format and scanning I/O devices in the network; 根据所述广播请求,得到所述I/O设备的响应信息,所述响应信息包括所述I/O设备接入基站的物理小区标识、设备型号、版本号、设备的IP地址;Obtaining response information from the I/O device according to the broadcast request, the response information including a physical cell identifier of a base station accessed by the I/O device, a device model, a version number, and an IP address of the device; 根据所述I/O设备的响应信息,确定所述I/O设备的组态信息和设备信息。The configuration information and device information of the I/O device are determined according to the response information of the I/O device. 根据权利要求1至3中任一项所述的方法,其中,在所述获取I/O设备的组态信息、控制业务信息、通信链路信息之后,所述方法还包括:The method according to any one of claims 1 to 3, wherein, after obtaining the configuration information, control service information, and communication link information of the I/O device, the method further comprises: 根据所述组态信息,确定第二接入信息,所述第二接入信息包括目标I/O设备;Determining second access information according to the configuration information, where the second access information includes a target I/O device; 根据所述第二接入信息,向所述目标I/O设备接入基站部署的云化PLC。According to the second access information, the target I/O device is connected to the cloud PLC deployed in the base station. 根据权利要求1至4中任一项所述的方法,其中,在所述根据所述控制业务信息,确定所述目标I/O设备与所述目标基站的第一接入情况、以及所述其他I/O设备与所述目标基站的第二接入情况之后,所述方法还包括:The method according to any one of claims 1 to 4, wherein, after determining, according to the control service information, a first access status of the target I/O device and the target base station, and a second access status of the other I/O devices and the target base station, the method further comprises: 若所述第一接入情况表征所述目标I/O设备接入所述目标基站、所述第二接入情况表征所述其他I/O设备接入所述目标基站,则向所述目标I/O设备接入基站部署的云化PLC。If the first access situation indicates that the target I/O device is connected to the target base station and the second access situation indicates that the other I/O device is connected to the target base station, the cloud PLC deployed in the base station is accessed to the target I/O device. 根据权利要求1至5中任一项所述的方法,其中,所述根据所述目标I/O设备与所述目标基站的第一接入情况、所述其他I/O设备与所述目标基站的第二接入情况、所述控制业务信息、所述通信链路信息,确定所述目标基站的PLC与所述I/O设备之间的接入关系,包括:The method according to any one of claims 1 to 5, wherein the determining the access relationship between the PLC of the target base station and the I/O device based on the first access status of the target I/O device and the target base station, the second access status of the other I/O devices and the target base station, the control service information, and the communication link information comprises: 若所述第一接入情况表征所述目标I/O设备接入所述目标基站、所述第二接入情况表征所述其他I/O设备未接入所述目标基站,则比对所述控制业务信息中所述I/O设备与所述PLC之间的通信周期和所述通信链路信息中所述PLC到所述I/O设备的通信链路往返时间,得到比对结果;If the first access situation indicates that the target I/O device is connected to the target base station and the second access situation indicates that the other I/O devices are not connected to the target base station, comparing the communication cycle between the I/O device and the PLC in the control service information and the round-trip time of the communication link from the PLC to the I/O device in the communication link information to obtain a comparison result; 若所述比对结果为所述通信链路往返时间小于所述通信周期,则向所述目标I/O设备接入5G多接入边缘计算5G-MEC平台部署的云化PLC;If the comparison result is that the round-trip time of the communication link is less than the communication period, accessing the cloud-based PLC deployed on the 5G multi-access edge computing 5G-MEC platform to the target I/O device; 若所述比对结果为所述通信链路往返时间大于或者等于所述通信周期,则先将所述目标I/O设备接入基站部署的云化PLC,然后将所述基站部署的云化PLC再接入所述5G-MEC平台部署的云化PLC。If the comparison result is that the round-trip time of the communication link is greater than or equal to the communication cycle, the target I/O device is first connected to the cloud-based PLC deployed by the base station, and then the cloud-based PLC deployed by the base station is connected to the cloud-based PLC deployed by the 5G-MEC platform. 根据权利要求1至6中任一项所述的方法,其中,在所述根据所述目标I/O设备与所述目标基站的第一接入情况、所述其他I/O设备与所述目标基站的第二接入情况、所述控制业务信息、所述通信链路信息,确定所述目标基站的PLC与所述I/O设备之间的接入关系之后,所述方法还包括:The method according to any one of claims 1 to 6, wherein, after determining the access relationship between the PLC of the target base station and the I/O device based on the first access status of the target I/O device and the target base station, the second access status of the other I/O devices and the target base station, the control service information, and the communication link information, the method further comprises: 将所述接入关系发送至云化PLC,以使所述云化PLC根据所述接入关系向所述I/O设备发送对应的IP和开放端口号,并在所述I/O设备接收并绑定对应的IP和开放端口号后,与所述云化PLC进行通信。The access relationship is sent to the cloud PLC so that the cloud PLC sends the corresponding IP and open port number to the I/O device according to the access relationship, and after the I/O device receives and binds the corresponding IP and open port number, it communicates with the cloud PLC. 根据权利要求1至7中任一项所述的方法,还包括:The method according to any one of claims 1 to 7, further comprising: 获取网络链路信息,所述网络链路信息包括网络状态、I/O端口信息;Acquire network link information, wherein the network link information includes network status and I/O port information; 根据所述网络链路信息、所述PLC与所述I/O设备之间的接入关系、所述I/O设备的控制业务信息,确定PLC控制业务数据的数据确定性传输配置原则;Determining a data deterministic transmission configuration principle for PLC control service data based on the network link information, the access relationship between the PLC and the I/O device, and the control service information of the I/O device; 根据所述数据确定性传输配置原则,对所述PLC控制业务数据进行处理。The PLC control service data is processed according to the data deterministic transmission configuration principle. 根据权利要求8所述的方法,其中,在根据所述网络链路信息、所述PLC与所述I/O设备之间的接入关系、所述I/O设备的控制业务信息,确定PLC控制业务数据的数据确定性传输配置原则之后,所述方法还包括:The method according to claim 8, wherein, after determining a data deterministic transmission configuration principle for PLC control service data based on the network link information, the access relationship between the PLC and the I/O device, and the control service information of the I/O device, the method further comprises: 根据所述数据确定性传输配置原则、所述PLC与所述I/O设备之间的接入关系、所述I/O设备的组态信息,确定数据确定性传输解析配置信息;Determining data deterministic transmission parsing configuration information according to the data deterministic transmission configuration principle, the access relationship between the PLC and the I/O device, and the configuration information of the I/O device; 根据所述数据确定性传输解析配置信息和数据写入通道,对所述PLC控制业务数据进行解析和写入。The PLC control service data is parsed and written according to the data deterministic transmission parsing configuration information and the data writing channel. 一种第五代5G云化可编程逻辑控制器PLC确定性传输装置,包括:A fifth-generation 5G cloud-based programmable logic controller (PLC) deterministic transmission device, comprising: 获取模块,用于获取输入输出I/O设备的组态信息、控制业务信息、通信链路信息,其中,所述I/O设备为网络中接入的设备,所述组态信息为接入基站的物理小区标识,所述控制业务信息包括所述I/O设备与PLC之间的通信周期、所述I/O设备之间的协作关系,所述通信链路信息为所述PLC到所述I/O设备的通信链路往返时间;an acquisition module, configured to acquire configuration information, control service information, and communication link information of an input/output (I/O) device, wherein the I/O device is a device connected to a network, the configuration information is a physical cell identifier of an access base station, the control service information includes a communication cycle between the I/O device and a PLC, and a collaborative relationship between the I/O devices, and the communication link information is a round-trip time of a communication link from the PLC to the I/O device; 第一确定模块,用于根据所述组态信息,确定第一接入信息,所述第一接入信息包括目标I/O设备和其他I/O设备,所述目标I/O设备和所述其他I/O设备为所述I/O设备中需要接入目标基站进行协同工作的设备,所述目标基站与目标组态信息中接入基站的物理小区标识对应,所述目标组态信息为所述目标I/O设备的组态信息;a first determining module, configured to determine first access information based on the configuration information, the first access information including a target I/O device and other I/O devices, the target I/O device and the other I/O devices being devices among the I/O devices that need to access a target base station for collaborative work, the target base station corresponding to a physical cell identifier of the access base station in the target configuration information, and the target configuration information being configuration information of the target I/O device; 第二确定模块,用于根据所述控制业务信息,确定所述目标I/O设备与所述目标基站的第一接入情况、以及所述其他I/O设备与所述目标基站的第二接入情况;A second determining module is configured to determine, based on the control service information, a first access status of the target I/O device to the target base station and a second access status of the other I/O devices to the target base station; 第三确定模块,用于根据所述目标I/O设备与所述目标基站的第一接入情况、所述其他I/O设备与所述目标基站的第二接入情况、所述控制业务信息、所述通信链路信息,确定所述目标基站的PLC与所述I/O设备之间的接入关系。The third determination module is used to determine the access relationship between the PLC of the target base station and the I/O device based on the first access status of the target I/O device and the target base station, the second access status of the other I/O devices and the target base station, the control service information, and the communication link information. 一种电子设备,包括:处理器,以及与所述处理器通信连接的存储器;其中:An electronic device comprises: a processor, and a memory communicatively connected to the processor; wherein: 所述存储器存储计算机执行指令;The memory stores computer-executable instructions; 所述处理器执行所述存储器存储的计算机执行指令,以实现根据权利要求1至9中任一项所述的5G云化PLC确定性传输方法。The processor executes the computer-executable instructions stored in the memory to implement the 5G cloud-based PLC deterministic transmission method according to any one of claims 1 to 9. 一种计算机可读存储介质,其中,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现根据权利要求1至9中任一项所述的5G云化PLC确定性传输方法。A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the 5G cloud-based PLC deterministic transmission method according to any one of claims 1 to 9. 一种计算机程序产品,包括计算机指令,所述计算机指令在被处理器执行时实现根据权利要求1至9中任一项所述的5G云化PLC确定性传输方法。A computer program product comprising computer instructions, which, when executed by a processor, implement the 5G cloud-based PLC deterministic transmission method according to any one of claims 1 to 9. 一种计算机程序,包括计算机指令,所述计算机指令在被处理器执行时实现根据权利要求1至9中任一项所述的5G云化PLC确定性传输方法。A computer program comprising computer instructions, which, when executed by a processor, implement the 5G cloud-based PLC deterministic transmission method according to any one of claims 1 to 9.
PCT/CN2024/143862 2024-03-19 2024-12-30 5g cloud-based plc deterministic transmission method and apparatus, and device and medium Pending WO2025194952A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202410317562.2 2024-03-19
CN202410317562.2A CN120676362A (en) 2024-03-19 2024-03-19 5G cloud PLC deterministic transmission method, device, equipment and medium

Publications (1)

Publication Number Publication Date
WO2025194952A1 true WO2025194952A1 (en) 2025-09-25

Family

ID=97055729

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/143862 Pending WO2025194952A1 (en) 2024-03-19 2024-12-30 5g cloud-based plc deterministic transmission method and apparatus, and device and medium

Country Status (2)

Country Link
CN (1) CN120676362A (en)
WO (1) WO2025194952A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180205803A1 (en) * 2013-05-09 2018-07-19 Rockwell Automation Technologies, Inc. Industrial data analytics in a cloud platform
CN115633319A (en) * 2022-09-29 2023-01-20 浪潮通信技术有限公司 Data transmission method and device, electronic equipment and storage medium
CN117234146A (en) * 2023-11-15 2023-12-15 北京科技大学 Cloud PLC multi-protocol I/O equipment remote control method and system
CN117692937A (en) * 2024-02-04 2024-03-12 江苏未来网络集团有限公司 5G full-connection factory equipment network topology structure and construction and use methods thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180205803A1 (en) * 2013-05-09 2018-07-19 Rockwell Automation Technologies, Inc. Industrial data analytics in a cloud platform
CN115633319A (en) * 2022-09-29 2023-01-20 浪潮通信技术有限公司 Data transmission method and device, electronic equipment and storage medium
CN117234146A (en) * 2023-11-15 2023-12-15 北京科技大学 Cloud PLC multi-protocol I/O equipment remote control method and system
CN117692937A (en) * 2024-02-04 2024-03-12 江苏未来网络集团有限公司 5G full-connection factory equipment network topology structure and construction and use methods thereof

Also Published As

Publication number Publication date
CN120676362A (en) 2025-09-19

Similar Documents

Publication Publication Date Title
US10698717B2 (en) Accelerator virtualization method and apparatus, and centralized resource manager
CN104967585B (en) A kind of method and apparatus of remote debugging mobile terminal
EP3373518B1 (en) Service configuration method and device for network service
CN111556136A (en) Data interaction method between internal containers of power edge Internet of things agent
WO2022095348A1 (en) Remote mapping method and apparatus for computing resources, device and storage medium
WO2020073903A1 (en) Latency-sensitive network communication method and apparatus thereof
US20230080588A1 (en) Mqtt protocol simulation method and simulation device
CN109088820B (en) Cross-device link aggregation method and device, computing device and storage medium
CN108494817A (en) Data transmission method, relevant apparatus and system
WO2018049873A1 (en) Application scheduling method and device
CN114710549B (en) A dynamic management method, system and business node for network cards in a container platform
CN115509676A (en) Container set deployment method and device
CN108737275A (en) One kind being based on the spaceborne network management of SpaceFibre plug and play
CN105141603A (en) Communication data transmission method and system
CN106534178A (en) Realization system and method of RapidIO network universal socket
CN114124740A (en) VNF instantiation method and device
WO2023035777A1 (en) Network configuration method, proxy component, controller, electronic device and storage medium
CN115225652B (en) Method and system for determining edge service platform, electronic equipment and storage medium
WO2021175105A1 (en) Connection method and apparatus, device, and storage medium
WO2025194952A1 (en) 5g cloud-based plc deterministic transmission method and apparatus, and device and medium
CN111698274B (en) Data processing method and device
CN118295954A (en) Data transmission method and communication system of processing card based on PCIe protocol
CN115865944A (en) Method, system, device, equipment and storage medium for peer-to-peer communication between equipment
WO2022228184A1 (en) Communication method and apparatus, device, system, and computer-readable storage medium
CN100407606C (en) A method for testing the forwarding capability of a mobile gateway node

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24930608

Country of ref document: EP

Kind code of ref document: A1