Data transmission method and apparatus, electronic device, and storage medium

By introducing 5G modules and local power distribution modules into the PLC system, wireless communication between the IO module and the PLC main control module is achieved, solving the problem of low data transmission efficiency under the traditional wired connection method, and realizing more efficient data transmission and device expansion.

CN115633319BActive Publication Date: 2025-11-07INSPUR COMM TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211196555.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-29
Publication Date
2025-11-07
Estimated Expiration
2042-09-29

AI Technical Summary

Technical Problem

In the existing technology, existing transmission equipment has low transmission efficiency and is not easy to expand in the process of data transmission in factory automated production, resulting in low data transmission efficiency.

Method used

By implementing wireless communication between the IO module and the PLC main control module, using a 5G module for data transmission, and utilizing a base station and a local splitter module for data interaction, the problem of wired connection is solved and data transmission efficiency is improved.

Benefits of technology

Wireless communication between the IO module and the PLC main control module has been achieved, solving the problem of wired connection, improving data transmission efficiency, facilitating dynamic expansion and contraction, and reducing maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115633319B_ABST
    Figure CN115633319B_ABST
Patent Text Reader

Abstract

The application relates to the field of PLC industrial control technology and provides a data transmission method and device, electronic equipment and a storage medium, the method comprises the following steps: receiving first data sent by an IO module; the first data is sent to a base station; wherein the base station sends the received first data to a local shunt module, and the local shunt module sends the received first data to a PLC master module; second data sent by the base station is received, and the second data is sent to the IO module; wherein the PLC master module determines second data according to the received first data, and sends the second data to the local shunt module; and the local shunt module sends the received second data to the base station. The application realizes wireless communication between the IO module and the PLC master module, solves the wired connection problem, and improves the data transmission efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of PLC industrial control technology, and particularly relates to a data transmission method and device, electronic equipment and a storage medium. BACKGROUND

[0002] At present, PLC (Programmable Logic Controller) is increasingly popular in factory automation production and motion control fields. The module composition of a traditional PLC is generally composed of a main control module, a protocol mainboard card, a protocol slaveboard card, an IO module, a PLC main control module, a protocol version, and the like, which are deployed on the same bottom plate, i.e., a mainboard, while the IO module is inserted into another bottom plate, i.e., a slaveboard. The mainboard and the slaveboard are connected based on a field bus, and the IO module is connected based on a cable to transmit digital signals or analog signals with a relay or a controlled device. This connection mode is difficult to install and not easy to expand. In addition, in a motion control scenario, the controlled device is mobile, and the wired connection mode is inconvenient, which leads to many functions that cannot be implemented. Therefore, the data transmission efficiency is low. SUMMARY

[0003] The present application provides a data transmission method, device, electronic equipment and storage medium to solve the problem of low data transmission efficiency. By implementing wireless communication between the IO module and the PLC main control module, the data transmission efficiency is improved.

[0004] The present application provides a data transmission method, comprising:

[0005] receiving first data sent by an IO module;

[0006] sending the first data to a base station; wherein the base station sends the received first data to a local distribution module, and the local distribution module sends the received first data to a PLC main control module;

[0007] receiving second data sent by the base station and sending the second data to the IO module; wherein the PLC main control module determines second data according to the received first data and sends the second data to the local distribution module, and the local distribution module sends the received second data to the base station.

[0008] In one embodiment, before receiving the first data sent by the IO module, the method comprises:

[0009] sending an access request carrying a distribution number to the base station, wherein the distribution number is used to identify a terminal where the IO module is located;

[0010] establishing a communication connection with the base station according to the access request.

[0011] In one embodiment, the IO module is provided with a 5G module; the IO module is in communication connection with the 5G module.

[0012] The application further provides a data transmission method, comprising:

[0013] receiving first data sent by a base station;

[0014] sending the first data to a PLC master module; wherein the PLC master module determines second data according to the received first data, and sends the second data to a local distribution module;

[0015] receiving second data sent by the PLC master module, and sending the second data to the base station; wherein the base station sends the received second data to a 5G module, and the 5G module sends the received second data to an IO module.

[0016] In one embodiment, the sending of the first data to the PLC master module comprises:

[0017] obtaining a first identifier carried by the first data, and matching the first identifier with a second identifier;

[0018] deleting wireless protocol stack header data corresponding to the first data according to a matching result, and sending the first data with the deleted wireless protocol stack header data to the PLC master module.

[0019] In one embodiment, the sending of the second data to the base station comprises:

[0020] encapsulating the second data according to a preset wireless protocol frame format;

[0021] setting the encapsulated second data with a third identifier, and sending the encapsulated second data carrying the third identifier to the base station.

[0022] In one embodiment, a baseband processing unit of the base station, the local distribution module and the PLC master module are deployed in the same server.

[0023] The application further provides a data transmission device, comprising:

[0024] a first receiving module, configured to receive first data sent by an IO module;

[0025] a first sending module, configured to send the first data to a base station; wherein the base station sends the received first data to a local distribution module, and the local distribution module sends the received first data to a PLC master module;

[0026] The second receiving module is used for receiving second data sent by the base station and sending the second data to the IO module; wherein the PLC master module determines the second data according to the received first data and sends the second data to the local distribution module, and the local distribution module sends the received second data to the base station.

[0027] The application further provides a data transmission device, comprising:

[0028] The third receiving module is used for receiving first data sent by the base station.

[0029] The second sending module is used for sending the first data to the PLC master module; wherein the PLC master module determines second data according to the received first data and sends the second data to the local distribution module.

[0030] The fourth receiving module is used for receiving second data sent by the PLC master module and sending the second data to the base station; wherein the base station sends the received second data to a 5G module, and the 5G module sends the received second data to an IO module.

[0031] The application further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the data transmission method according to any one of the above when executing the program.

[0032] The application further provides a non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program is executable on a processor to implement the data transmission method according to any one of the above.

[0033] The data transmission method, device, electronic device and storage medium provided by the application receive first data sent by an IO module, send the first data to a base station, wherein the base station sends the received first data to a local distribution module, the local distribution module sends the received first data to a PLC master module, receive second data sent by the base station, and send the second data to the IO module, wherein the PLC master module determines second data according to the received first data and sends the second data to the local distribution module, and the local distribution module sends the received second data to the base station. The application realizes wireless communication between the IO module and the PLC master module, solves the problem of wired connection, and improves the data transmission efficiency. BRIEF DESCRIPTION OF DRAWINGS

[0034] In order to make the technical solutions in the present application or prior art clearer, the accompanying drawings needed in the embodiments or prior art description will be briefly introduced. Obviously, the accompanying drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those of ordinary skill in the art without any creative effort based on these drawings.

[0035] Figure 1 is one of the flowcharts of the data transmission method provided by the present application.

[0036] Figure 2 is another flowchart of the data transmission method provided by the present application.

[0037] Figure 3 is a module schematic diagram of the data transmission method provided by the present application.

[0038] Figure 4 is a data interaction schematic diagram of the data transmission method provided by the present application.

[0039] Figure 5 is one of the structural schematic diagrams of the data transmission device provided by the present application.

[0040] Figure 6 is another structural schematic diagram of the data transmission device provided by the present application.

[0041] Figure 7 is a structural schematic diagram of the electronic device provided by the present application. DETAILED DESCRIPTION

[0042] In order to make the technical solutions in the present application or prior art clearer, the accompanying drawings needed in the embodiments or prior art description will be briefly introduced. Obviously, the accompanying drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those of ordinary skill in the art without any creative effort based on these drawings.

[0043] The data transmission method, device, electronic device and storage medium of the present application will be described below in combination with the accompanying drawings. Figures 1-7

[0044] Specifically, the present application provides a data transmission method, referring to Figure 1 , Figure 1 is one of the flowcharts of the data transmission method provided by the present application.

[0045] The data transmission method provided by the present application comprises:

[0046] Step 100, receiving the first data sent by the IO module; ​

[0047] It should be noted that the execution subject of the embodiment of the present application is a 5G module.

[0048] The application scenarios of wireless 5G communication include eMBB (Enhanced Mobile Broadband), URLLC (Ultra-Reliable Low-Latency Communications) and mMTC (Massive Machine Type Communication). Based on the low latency and high reliable wireless transmission technology of URLLC, the IO module and the controlled device can be deployed together, and the PLC master module and the IO module communicate based on wireless.

[0049] The IO module is deployed with a 5G module. For example, in order to facilitate wiring, the 5G module and the IO module are deployed in close proximity. If the IO points are grouped together, one 5G module is deployed, and if the IO points are grouped into multiple groups, multiple 5G modules are deployed. The 5G module is a key component for terminal access to the network, which is used to realize wireless communication between the PLC master module and the IO module. This effectively solves the problem of wired connection between the PLC master module and the IO module, facilitates dynamic expansion and contraction, and effectively saves the maintenance cost of the manufacturer.

[0050] After the 5G module accesses the base station and the core network, the IO module sends first data to the 5G module. The first data includes periodic management face data and service data generated by the IO module. For example, the 5G module provides a driver interface, and the IO module sends the first data by calling the underlying driver interface of the 5G module.

[0051] The first data generated by the IO module needs to be classified, such as periodic data and random data. Based on the mechanism of wireless transmission, the corresponding periodic resources and random resources are reserved in the air interface to speed up the wireless transmission time. In addition, the priority of the first data also needs to be classified, which is transmitted preferentially in the wireless transmission process, and based on the low latency and high reliable transmission mechanism of URLLC, the reliable and on-time arrival of data is guaranteed.

[0052] Step 200, the first data is sent to the base station; wherein the base station sends the received first data to a local shunt module, and the local shunt module sends the received first data to a PLC master module;

[0053] The 5G module sends the first data to the base station through the air interface after receiving the first data, and then the base station receives the first data, processes the first data through each protocol sublayer, and sends the processed first data to the local distribution module, and finally the local distribution module sends the received first data to the PLC master module. The original data is carried on the wireless protocol stack.

[0054] Step 300, receiving the second data sent by the base station, and sending the second data to the IO module; wherein the PLC master module determines the second data according to the received first data, and sends the second data to the local distribution module, and the local distribution module sends the received second data to the base station.

[0055] Receiving the second data sent by the base station, and then sending the second data to the IO module, for example, the 5G module receives the second data and transmits the second data to the bus, and each IO module extracts the corresponding second data on the bus, and then drives the IO circuit based on the second data to realize the control of the remote terminal.

[0056] The PLC master module determines the second data based on the first data received from the local distribution module, and sends the second data to the local distribution module, and then sends the received second data to the base station through the local distribution module. For example, the PLC master module receives the first data, performs corresponding management face data processing, business logic data assignment and operation processing on the first data, and sends the processed result data (i.e. second data) to the local distribution module, and then sends the second data to the base station through the local distribution module.

[0057] The data transmission method provided by the embodiment of the application comprises the following steps: receiving first data sent by an IO module, and sending the first data to a base station; wherein the base station sends the received first data to a local distribution module, and the local distribution module sends the received first data to a PLC master module; receiving second data sent by the base station, and sending the second data to the IO module; wherein the PLC master module determines the second data according to the received first data, and sends the second data to the local distribution module, and the local distribution module sends the received second data to the base station. Based on this, wireless communication is realized between the IO module and the PLC master module, the wired connection problem is solved, and the data transmission efficiency is improved.

[0058] Based on the above embodiment, before the first data sent by the IO module is received, the following steps are included:

[0059] An access request carrying a distribution number is sent to the base station, and the distribution number is used to identify the terminal where the IO module is located.

[0060] establish a communication connection with the base station according to the access request.

[0061] It should be noted that the SIM card of the 5G module bound by the IO module needs to be allocated a specific diversion number, which is used to identify the 5G terminal where the IO module is located, wherein the diversion number needs to be registered in the core network, and the diversion number bound by the IO module is set to the base station through the OMC (Operation & Maintenance Center) or the LMT (Local Maintenance Terminal).

[0062] After the 5G module of the IO module is powered on, an access request carrying a diversion number needs to be sent to the base station and the core network, and then a communication connection is established with the base station based on the access request. The 5G module

[0063] Further, in order to reduce the processing delay, after the 5G module accesses the base station and the core network, the core network and the base station allocate a GID (Group Identification) for the 5G terminal, for example, the 5G terminal carries a diversion number in the access process, and the base station and the core network map a GID based on the diversion number, wherein the diversion number and the GID are in one-to-one correspondence, and the base station identifies the 5G terminal where the IO module is located through the GID.

[0064] In addition, after the 5G module accesses the base station and the core network, the core network and the base station also map a TEID (Tunnel Endpoint Identifier) based on the diversion number, and configure the TEID information to the local diversion module, and the local diversion module performs policy diversion based on the TEID.

[0065] The embodiment of the application realizes the wireless communication between the IO module and the PLC master module by sending an access request carrying a diversion number to the base station, establishing a communication connection with the base station according to the access request, solving the problem of wired connection, thereby improving the data transmission efficiency.

[0066] Reference Figure 2 Based on the above embodiment, the data transmission method provided by the embodiment of the application comprises:

[0067] Step 400, receiving the first data sent by the base station;

[0068] It should be noted that the execution subject of the embodiment of the application is the local diversion module.

[0069] The baseband processing unit BBU (Building Base band Unit) of the base station, the local distribution module, and the PLC master module are deployed in the same server. The PLC master module and the baseband processing unit interact with each other based on the local distribution module. Through the baseband processing unit, wireless communication can be realized between the PLC master module and the IO module. In this way, the problem of wired connection between the PLC master module and the IO module is effectively solved, dynamic expansion and contraction are facilitated, and the maintenance cost of manufacturers is effectively saved.

[0070] After the base station receives the first data sent by the 5G module, the first data is processed through each protocol sublayer, and then the processed first data is sent to the local distribution module. At this time, the local distribution module receives the first data sent by the base station.

[0071] In step 500, the first data is sent to the PLC master module. The PLC master module determines second data according to the received first data and sends the second data to the local distribution module.

[0072] The local distribution module sends the received first data to the PLC master module. Then, the PLC master module determines second data according to the received first data and sends the second data to the local distribution module. For example, after receiving the first data, the PLC master module performs corresponding management face data processing and business logic data assignment and operation processing on the first data, and sends the processed result data (i.e., the second data) to the local distribution module.

[0073] In step 600, the second data sent by the PLC master module is received, and the second data is sent to the base station. The base station sends the received second data to the 5G module, and the 5G module sends the received second data to the IO module.

[0074] The local distribution module receives the second data sent by the PLC master module and sends the second data to the base station. Then, the received second data is sent to the 5G module through the base station, and the second data is sent to the IO module through the 5G module. For example, after receiving the second data, the 5G module transmits the second data to the bus, each IO module extracts the corresponding second data on the bus, and then drives the IO circuit based on the second data to realize control of the remote end.

[0075] The data transmission method provided by the embodiment of the application comprises the following steps: receiving first data sent by a base station; sending the first data to a PLC master module; wherein the PLC master module determines second data according to the received first data, and sends the second data to a local distribution module; receiving the second data sent by the PLC master module, and sending the second data to the base station; wherein the base station sends the received second data to a 5G module, and the 5G module sends the received second data to an IO module. Based on this, wireless communication is realized between the IO module and the PLC master module, the wired connection problem is solved, and the data transmission efficiency is improved.

[0076] According to the above embodiment, the first data is sent to the PLC master module, which comprises the following steps:

[0077] The first identifier carried by the first data is acquired, and the first identifier is matched with a second identifier;

[0078] According to the matching result, the wireless protocol stack header data corresponding to the first data is deleted, and the first data with the deleted wireless protocol stack header data is sent to the PLC master module.

[0079] It should be noted that the first data is sent in the form of a data packet, and the base station sends the data packet of the first data to the local distribution module while carrying the first identifier on the data packet. After the local distribution module receives the data packet of the first data, the first identifier is identified, and then the first identifier is matched with a second identifier stored locally, wherein the first identifier refers to a TEID configured in a baseband processing unit (BBU), and the second identifier refers to a TEID stored locally in the local distribution module.

[0080] If it is determined according to the matching result that the first identifier and the second identifier match, the wireless protocol stack header data corresponding to the first data is deleted, and then the first data with the deleted wireless protocol stack header data is sent to the PLC master module. For example, the local distribution module identifies the data packet that needs to be sent to the PLC master module based on the TEID, and when the first identifier matches the second identifier, it indicates that the data packet of the first data needs to be sent to the PLC master module. After the matching is successful, the wireless protocol stack header data is deleted, and then the data is sent to the PLC master module for processing; if the matching fails, the first data is sent to the core network for processing.

[0081] According to the embodiment of the application, the first identifier carried by the first data is acquired, the first identifier is matched with a second identifier, the wireless protocol stack header data corresponding to the first data is deleted according to the matching result, and the first data with the deleted wireless protocol stack header data is sent to the PLC master module, based on which the accuracy of data processing is improved.

[0082] Based on the above embodiment, the sending of the second data to the base station comprises:

[0083] The second data is encapsulated according to a preset wireless protocol frame format.

[0084] The encapsulated second data is set with a third identifier, and the encapsulated second data carrying the third identifier is sent to the base station.

[0085] After the local distribution module receives the second data sent by the PLC master module, the second data is encapsulated according to a preset wireless protocol frame format, and then the encapsulated second data is set with a third identifier, and the encapsulated second data carrying the third identifier is sent to the base station. For example, after the LDS receives the data packet of the second data from the PLC master module, the data packet is encapsulated based on the wireless protocol frame format, and a corresponding wireless response packet (a response packet normally from the core network) is marked and a corresponding TEID value is set, and then sent to the base station for processing; if it is service data received from the core network, it is directly transmitted to the base station. The third identifier refers to the TEID value corresponding to the current data packet in the local distribution module.

[0086] According to the embodiment of the application, the second data is encapsulated according to a preset wireless protocol frame format, and then the encapsulated second data is set with a third identifier, and the encapsulated second data carrying the third identifier is sent to the base station, based on which the accuracy of data transmission is improved.

[0087] Based on the above embodiment, the embodiment of the application describes the data transmission method in detail based on a specific embodiment.

[0088] Reference Figure 3 , Figure 3 is a module schematic diagram of the data transmission method provided by the application.

[0089] The general server is deployed with a 5G core network, a baseband processing unit BBU of a 5G base station, a local distribution module LDS (Local Distribution System) and a PLC master module. The baseband processing unit BBU and the PRU (packet radio communications) are combined to form a base station, and the BBU (including the phy, mac, rlc, pdcp, rrc and other protocol main bodies of the 5G protocol).

[0090] The IO module is deployed with a 5G module, and the IO module sends the first data to the base station by calling the bottom layer driving interface of the 5G module, wherein the first data is directly carried on the wireless protocol stack.

[0091] Further, reference Figure 4 ,Figure 4 is a schematic diagram of data interaction of the data transmission method provided by the application.

[0092] The data interaction provided by the embodiment of the application comprises the following steps:

[0093] Step one: when the 5G module is powered on, an access request carrying a shunt number is sent to a base station;

[0094] Step two: after the base station receives the access request sent by the 5G module, a GID and a TEID are respectively mapped based on the shunt number, and the TEID information is configured to the local shunt module;

[0095] Step three: the IO module sends first data to the 5G module;

[0096] Step four: the 5G module sends the first data to the base station through the air interface;

[0097] Step five: after the base station receives the first data, the first data is processed through each protocol sublayer, and the processed first data is sent to the local shunt module;

[0098] Step six: the local shunt module identifies the TEID and compares it with the TEID configured by the BBU, matches the wireless protocol stack header data corresponding to the first data, and then sends the first data to the PLC master module for processing;

[0099] Step seven: after the PLC master module receives the first data, the first data is respectively processed by corresponding management plane data processing and business logic data assignment and operation processing, and the processed second data is sent to the local shunt module;

[0100] Step eight: after the local shunt module receives the data packet of the second data from the PLC master module, the data packet is encapsulated based on the wireless protocol frame format, and the corresponding wireless response packet (normal response packet from the core network) is marked and the corresponding TEID value is set, and then the data packet is sent to the base station for processing;

[0101] Step nine: the base station sends the received second data to the 5G module;

[0102] Step ten: the 5G module sends the received second data to the IO module;

[0103] Step eleven: the IO module drives the IO circuit based on the received second data, and realizes control over the remote end.

[0104] The PLC master module and the IO module in the embodiment of the application are not connected in a wired field bus mode, but are replaced by a wireless mode, based on a local distribution strategy, so that the interactive data of the IO module and the PLC master module is directly interacted in a base station near end, and the communication delay of the PLC master module and the IO module is reduced. By deleting the wired connection between the PLC master module and the IO module, the separation between the PLC master module and the IO module is realized, and the deployment is flexible; the PLC master module is deployed on a general server, and the expansion of the PLC is also facilitated, and a principle basis is provided for subsequent cloudization and generalization of the PLC. Based on this, the data transmission efficiency between the IO module and the PLC master module is improved.

[0105] Figure 5 is a structural schematic diagram of a data transmission device provided by the application, referring to Figure 5 The embodiment of the application provides a data transmission device, which comprises a first receiving module 501, a first sending module 502 and a second receiving module 503.

[0106] The first receiving module 501 is used for receiving first data sent by an IO module.

[0107] The first sending module 502 is used for sending the first data to a base station; wherein the base station sends the received first data to a local distribution module, and the local distribution module sends the received first data to a PLC master module.

[0108] The second receiving module 503 is used for receiving second data sent by the base station and sending the second data to the IO module; wherein the PLC master module determines the second data according to the received first data and sends the second data to the local distribution module, and the local distribution module sends the received second data to the base station.

[0109] The data transmission device provided by the embodiment of the application receives first data sent by an IO module, sends the first data to a base station; wherein the base station sends the received first data to a local distribution module, and the local distribution module sends the received first data to a PLC master module; receives second data sent by the base station and sends the second data to the IO module; wherein the PLC master module determines the second data according to the received first data and sends the second data to the local distribution module, and the local distribution module sends the received second data to the base station. Based on this, wireless communication is realized between the IO module and the PLC master module, the wired connection problem is solved, and the data transmission efficiency is improved.

[0110] Based on the above embodiment, the first receiving module 501 is further used for:

[0111] sending an access request carrying a shunt number to the base station, the shunt number being used for identifying a terminal where the IO module is located;

[0112] establishing a communication connection with the base station according to the access request.

[0113] Based on the above embodiment, the IO module is provided with a 5G module; the IO module is in communication connection with the 5G module.

[0114] Figure 6 is a structural schematic diagram of the data transmission device provided by the application, referring to Figure 6 The embodiment of the application provides a data transmission device, which comprises a third receiving module 601, a second sending module 602 and a fourth receiving module 603.

[0115] The third receiving module 601 is used for receiving first data sent by a base station.

[0116] The second sending module 602 is used for sending the first data to a PLC master module; wherein the PLC master module determines second data according to the received first data, and sends the second data to a local shunt module.

[0117] The fourth receiving module 603 is used for receiving second data sent by the PLC master module, and sending the second data to the base station; wherein the base station sends the received second data to a 5G module, and the 5G module sends the received second data to an IO module.

[0118] The data transmission device provided by the embodiment of the application receives first data sent by a base station; sends the first data to a PLC master module; wherein the PLC master module determines second data according to the received first data, and sends the second data to a local shunt module; receives second data sent by the PLC master module, and sends the second data to the base station; wherein the base station sends the received second data to a 5G module, and the 5G module sends the received second data to an IO module. Based on this, wireless communication is realized between the IO module and the PLC master module, the problem of wired connection is solved, and the data transmission efficiency is improved.

[0119] Based on the above embodiment, the second sending module 602 is specifically used for:

[0120] acquiring a first identifier carried by the first data, and matching the first identifier with a second identifier;

[0121] According to the matching result, the wireless protocol stack header data corresponding to the first data is deleted, and the first data with the deleted wireless protocol stack header data is sent to the PLC master module.

[0122] According to the above embodiment, the fourth receiving module 603 is specifically configured to:

[0123] According to the preset wireless protocol frame format, the second data is encapsulated;

[0124] The encapsulated second data is set with a third identifier, and the encapsulated second data carrying the third identifier is sent to the base station.

[0125] According to the above embodiment, the baseband processing unit, the local distribution module of the base station, and the PLC master module are deployed in the same server.

[0126] Figure 7 An example of an entity structure diagram of an electronic device is shown in Figure 7 The electronic device can include a processor 710, a communications interface 720, a memory 730, and a communications bus 740, wherein the processor 710, the communications interface 720, and the memory 730 communicate with each other through the communications bus 740. The processor 710 can invoke the logical instructions in the memory 730 to execute a data transmission method, which includes:

[0127] Receiving the first data sent by the IO module;

[0128] Sending the first data to the base station; wherein the base station sends the received first data to the local distribution module, and the local distribution module sends the received first data to the PLC master module;

[0129] Receiving the second data sent by the base station, and sending the second data to the IO module; wherein the PLC master module determines the second data according to the received first data, and sends the second data to the local distribution module, and the local distribution module sends the received second data to the base station.

[0130] Or,

[0131] Receiving the first data sent by the base station;

[0132] Sending the first data to the PLC master module; wherein the PLC master module determines the second data according to the received first data, and sends the second data to the local distribution module;

[0133] Receive the second data sent by the PLC master module, and send the second data to the base station; wherein the base station sends the received second data to a 5G module, and the 5G module sends the received second data to an IO module.

[0134] In addition, the logical instructions in the memory 730 described above can be implemented in the form of a software function unit and sold or used as an independent product, and can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0135] On the other hand, the present application also provides a non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the data transmission method provided by the above-mentioned method, and the method comprises:

[0136] Receiving the first data sent by the IO module;

[0137] Sending the first data to the base station; wherein the base station sends the received first data to a local shunt module, and the local shunt module sends the received first data to a PLC master module;

[0138] Receiving the second data sent by the base station, and sending the second data to the IO module; wherein the PLC master module determines the second data according to the received first data, and sends the second data to the local shunt module, and the local shunt module sends the received second data to the base station.

[0139] Or,

[0140] Receiving the first data sent by the base station;

[0141] Sending the first data to the PLC master module; wherein the PLC master module determines the second data according to the received first data, and sends the second data to the local shunt module;

[0142] Receive the second data sent by the PLC master module, and send the second data to the base station; wherein the base station sends the received second data to the 5G module, and the 5G module sends the received second data to the IO module.

[0143] The device embodiments described above are only illustrative, wherein the units illustrated as separate components can or can not be physically separated, and the components illustrated as units can or can not be physical units, i.e., can be located in one place or distributed on multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiment scheme according to actual needs. Those skilled in the art can understand and implement without creative labor.

[0144] From the above description of the embodiments, those skilled in the art can clearly understand that the embodiments can be realized by means of software and the necessary general hardware platform, and of course can also be realized by hardware. Based on such understanding, the above technical solutions can be embodied in the form of software product, which can be stored in a computer readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes a plurality of instructions to make a computer device (which can be a personal computer, server, or network device, etc.) execute the methods described in each embodiment or some parts of the embodiment.

[0145] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A data transmission method, characterized by, The method comprises the following steps: receiving first data sent by an IO module; the first data comprises periodic management plane data and service data generated by the IO module; sending the first data to a base station; wherein the base station sends the received first data to a local offloading module, the local offloading module matches a first identifier carried by the first data with a second identifier, the first identifier refers to a TEID configured by a baseband processing unit (BBU), and the second identifier refers to a TEID stored locally in the local offloading module; according to the matching result, deleting wireless protocol stack header data corresponding to the first data, and sending the first data with the deleted wireless protocol stack header data to a PLC master module; receiving second data sent by the base station, and sending the second data to the IO module; wherein the PLC master module determines the second data according to the received first data, and sends the second data to the local offloading module, the local offloading module sends the received second data to the base station; the second data is processing result data obtained by respectively performing corresponding management plane data processing and service logic data assignment and operation processing on the first data; the baseband processing unit of the base station, the local offloading module, and the PLC master module are deployed in the same server; the IO module is provided with a 5G module; the IO module is in communication connection with the 5G module; the IO module sends the first data to the base station by calling the bottom layer driving interface of the 5G module, wherein the first data is directly carried on a wireless protocol stack.

2. The data transmission method of claim 1, wherein, Before receiving the first data sent by the IO module, the method comprises the following steps: sending an access request carrying a shunt number to the base station, the shunt number being used to identify a terminal where the IO module is located; establishing a communication connection with the base station according to the access request.

3. A data transmission method, characterized by, The method comprises the following steps: receiving first data sent by a base station; sending the first data to a PLC master module; wherein the PLC master module determines second data according to the received first data, and sends the second data to a local offloading module; receiving second data sent by the PLC master module, and sending the second data to the base station; wherein the base station sends the received second data to a 5G module, and the 5G module sends the received second data to an IO module; the first data comprises periodic management plane data and service data generated by the IO module; the second data is processing result data obtained by respectively performing corresponding management plane data processing and service logic data assignment and operation processing on the first data; the step of sending the first data to the PLC master module comprises the following steps: obtaining a first identifier carried by the first data, and matching the first identifier with a second identifier; the first identifier refers to a TEID configured by a baseband processing unit (BBU), and the second identifier refers to a TEID stored locally in the local offloading module; According to the matching result, the wireless protocol stack header data corresponding to the first data is deleted, and the first data after the wireless protocol stack header data is deleted is sent to the PLC master module; The baseband processing unit of the base station, the local distribution module, and the PLC master module are deployed in the same server; The IO module is provided with a 5G module; the IO module is in communication connection with the 5G module; the IO module sends the first data to the base station by calling the bottom layer driving interface of the 5G module, wherein the first data is directly borne on a wireless protocol stack.

4. The data transmission method of claim 3, wherein, The second data sent to the base station comprises: The second data is encapsulated according to a preset wireless protocol frame format; The encapsulated second data is set with a third identifier, and the encapsulated second data carrying the third identifier is sent to the base station.

5. A data transmission apparatus characterized by comprising: Comprise: The first receiving module is used for receiving the first data sent by the IO module; The first data comprises periodic management plane data and service data generated by the IO module; The first sending module is used for sending the first data to the base station; wherein the base station sends the received first data to the local distribution module, the local distribution module matches a first identifier carried by the first data with a second identifier, the first identifier refers to a TEID configured in a baseband processing unit (BBU), and the second identifier refers to a TEID stored in the local distribution module; according to the matching result, the wireless protocol stack header data corresponding to the first data is deleted, and the first data after the wireless protocol stack header data is deleted is sent to the PLC master module; The second receiving module is used for receiving the second data sent by the base station and sending the second data to the IO module; wherein the PLC master module determines the second data according to the received first data and sends the second data to the local distribution module, the local distribution module sends the received second data to the base station; the second data is processing result data obtained after corresponding management plane data processing and service logic data assignment and operation processing are respectively performed on the first data; The baseband processing unit of the base station, the local distribution module, and the PLC master module are deployed in the same server; The IO module is provided with a 5G module; the IO module is in communication connection with the 5G module; the IO module sends the first data to the base station by calling the bottom layer driving interface of the 5G module, wherein the first data is directly borne on a wireless protocol stack.

6. A data transmission apparatus characterized by comprising: Comprise: The third receiving module is used for receiving the first data sent by the base station; The second sending module is used for sending the first data to the PLC master module; wherein the PLC master module determines the second data according to the received first data and sends the second data to the local distribution module; A fourth receiving module is configured to receive second data sent by the PLC master module and send the second data to the base station; wherein the base station sends the received second data to a 5G module, and the 5G module sends the received second data to an IO module; the first data includes periodically generated management plane data and service data of the IO module; the second data is processing result data obtained after the first data is subjected to corresponding management plane data processing and service logic data assignment and operation processing respectively; The second sending module is further configured to acquire a first identifier carried by the first data, match the first identifier with a second identifier, and delete wireless protocol stack header data corresponding to the first data according to a matching result, and send the first data with the deleted wireless protocol stack header data to the PLC master module; the first identifier refers to a TEID configured by a baseband processing unit (BBU), and the second identifier refers to a TEID stored locally in the local distribution module. The baseband processing unit of the base station, the local distribution module, and the PLC master module are deployed in the same server. The IO module is provided with a 5G module; the IO module is in communication connection with the 5G module; and the IO module sends the first data to the base station by calling a bottom-layer driving interface of the 5G module, wherein the first data is directly borne on a wireless protocol stack.

7. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the program to implement the data transmission method according to any one of claims 1 to 4.

8. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the data transmission method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • PLC control system based on wireless communication

    CN210954718U