Industrial gateway implementation method, device, network equipment and storage medium
By obtaining the transmission indicators of the transmission channel in the industrial gateway, selecting the adaptive transmission channel and adjusting the message parameters, multi-link backup and automatic link switching are realized, which solves the problem of unstable transmission of the industrial gateway and improves the reliability of network transmission. Sex and stability.
Patent Information
- Application Number
- CN202111435470.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2041-11-29
AI Technical Summary
The interruption or delay and unstable bit error rate of the transmission network in industrial applications affect the reliability and stability of network transmission.
By obtaining the transmission indicators of the initial transmission channel, detecting whether the standards are met. If the standards are not met, the adaptive transmission channel is selected among multiple alternate transmission channels based on the preset adaptation model, and treat the transmission messages according to the characteristics of the channel. The parameters are matched and adjusted to realize multi-link backup and automatic link switching.
It reduces the probability of problems such as interruption, delay and unstable bit error rate in network transmission, and improves the reliability and stability of network transmission.
Smart Images

Figure CN114157558B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of network communication technology, and in particular to an industrial gateway implementation method, an industrial gateway implementation device, a network device, and a computer-readable storage medium. Background Art
[0002] A gateway, also known as an internetwork connector or protocol converter, is a device in the network layer that performs data conversion tasks. It achieves data interoperability by performing message conversion between different communication protocols, data formats, and even different architectures.
[0003] In related technologies, gateways used in the Internet of Things and industrial control systems are called industrial gateways. Industrial gateways are used to feed back lower-level products of different protocols to upper-level computers. However, in industrial applications, problems such as transmission network interruptions or delays and unstable bit error rates still affect the reliability and stability of network transmission.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The purpose of the present disclosure is to provide an industrial gateway implementation method, apparatus, network equipment, and storage medium, which at least to a certain extent overcome the problem that the reliability and stability of network transmission are still affected by the interruption or delay of the transmission network and the unstable bit error rate in the industrial application of the industrial gateway in the related technology.
[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0007] According to one aspect of the present disclosure, there is provided an industrial gateway implementation method, including: obtaining a transmission index of an initial transmission channel, the initial transmission channel being used to transmit a message to be transmitted; when it is detected that the transmission index does not meet the standard, selecting an adaptation transmission channel from a plurality of backup transmission channels based on a preset adaptation model; matching and adjusting message parameters of the message to be transmitted based on channel characteristics of the adaptation transmission channel; and transmitting the adjusted message to be transmitted based on the adaptation transmission channel.
[0008] In one embodiment, obtaining the transmission index of the initial transmission channel specifically includes: determining the throughput of the initial transmission channel based on the committed information speed; detecting the average delay of the initial transmission channel; determining the first QoS of the initial transmission channel based on the throughput and the average delay; and determining the transmission index based on the first QoS.
[0009] In one embodiment, determining the transmission indicator based on the first QoS specifically includes: detecting a bit error rate of the initial transmission channel; and determining the transmission indicator based on the first QoS and the bit error rate.
[0010] In one embodiment, when it is detected that the transmission indicator does not meet the standard, an adaptive transmission channel is selected from multiple backup transmission channels based on a preset adaptation model, specifically including: when it is detected that the first QoS is less than a quality threshold, determining that the transmission indicator does not meet the standard, and calculating the second QoS of the multiple backup transmission channels based on the preset adaptation model; sorting the second QoS of the multiple backup transmission channels based on the preset adaptation model, and determining the adaptive transmission channel based on the sorting result.
[0011] In one embodiment, the matching and adjustment of the message parameters of the message to be transmitted based on the channel characteristics of the adapted transmission channel specifically includes: adjusting at least one of the sequence, code length, and code rate of the message to be transmitted based on the channel characteristics of the adapted transmission channel to generate an adjustment result; and performing rate matching and / or hybrid automatic repeat request HARQ based on the adjustment result.
[0012] In one embodiment, the adjusting at least one of the sequence, code length and code rate of the message to be transmitted based on the channel characteristics of the adapted transmission channel to generate an adjustment result specifically includes: determining the corresponding code rate and code length based on the channel characteristics; determining the corresponding base graph according to the code rate and the code length; determining the corresponding maximum number of code block bits based on the base graph; adding CRC attachment to the message to be transmitted; upon detecting that the message to be transmitted with the CRC attachment is greater than the maximum number of code block bits, performing a segmentation operation on the message to be transmitted to obtain a segmented code block; upon detecting that the message to be transmitted with the CRC attachment is less than or equal to the maximum number of code block bits, using the message to be transmitted with the CRC attachment as a code block to be encoded; adding the CRC attachment to the segmented code block, using the segmented code block with the CRC attachment as the code block to be encoded; performing low-density parity check LDPC encoding on the code block to be encoded to obtain an encoded code block, and using the encoded code block as the adjustment result.
[0013] In one embodiment, the performing of rate matching and / or hybrid automatic repeat request HARQ based on the adjustment result specifically includes: performing the rate matching on the coded code block, as well as the HARQ processing and interleaving to obtain the adjusted message to be transmitted.
[0014] In one embodiment, the multiple backup transmission channels include a 4G transmission channel, a 5G transmission channel, a WI-FI transmission channel, and a wired transmission channel.
[0015] In one embodiment, the method further includes: when it is detected that the transmission indicator has been met, continuing to transmit the message to be transmitted based on the initial transmission channel.
[0016] According to another aspect of the present disclosure, an industrial gateway implementation device is provided, including: an acquisition module, used to acquire a transmission index of an initial transmission channel, wherein the initial transmission channel is used to transmit a message to be transmitted; a selection module, used to select an adaptation transmission channel from multiple backup transmission channels based on a preset adaptation model when it is detected that the transmission index does not meet the standard; an adjustment module, used to match and adjust message parameters of the message to be transmitted based on channel characteristics of the adaptation transmission channel; and a forwarding module, used to transmit the adjusted message to be transmitted based on the adaptation transmission channel.
[0017] According to another aspect of the present disclosure, a network device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the industrial gateway implementation method described in any one of the technical solutions of the second or third aspects above by executing the executable instructions.
[0018] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned industrial gateway implementation method is implemented.
[0019] The industrial gateway implementation method and device provided by the embodiments of the present disclosure, by setting up an industrial gateway with multiple transmission channels including an initial transmission channel and multiple backup transmission channels, when it is detected that the transmission index of the initial transmission channel used to transmit the message to be transmitted does not meet the standard, an adapted backup transmission channel is selected from the multiple backup transmission channels based on a preset adaptation model, and after matching and adjusting the message parameters based on the channel characteristics of the adapted transmission channel, the basic adapted transmission channel is used to transmit the message to be transmitted, thereby realizing multi-link backup and automatic link switching of a highly reliable industrial gateway, which can reduce the probability of network transmission interruption, delay, and unstable bit error rate, and thus help to improve the reliability and stability of network transmission.
[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0022] Figure 1 A flowchart of a method for implementing an industrial gateway in an embodiment of the present disclosure is shown;
[0023] Figure 2 A flowchart showing another method for implementing an industrial gateway in an embodiment of the present disclosure is shown;
[0024] Figure 3 A flowchart showing another method for implementing an industrial gateway in an embodiment of the present disclosure is shown;
[0025] Figure 4 A flowchart showing another method for implementing an industrial gateway in an embodiment of the present disclosure is shown;
[0026] Figure 5 A flowchart showing another method for implementing an industrial gateway in an embodiment of the present disclosure is shown;
[0027] Figure 6 A schematic diagram showing an industrial gateway implementation device according to an embodiment of the present disclosure is shown;
[0028] Figure 7 A structural block diagram of a computer device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0029] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0030] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0031] The solution provided by the present application is to set up an industrial gateway with multiple transmission channels including an initial transmission channel and multiple backup transmission channels. When it is detected that the transmission index of the initial transmission channel used to transmit the message to be transmitted does not meet the standard, an adapted backup transmission channel is selected from the multiple backup transmission channels based on a preset adaptation model. After matching and adjusting the message parameters based on the channel characteristics of the adapted transmission channel, the basic adapted transmission channel is used to transmit the message to be transmitted, thereby realizing multi-link backup and automatic link switching of highly reliable industrial gateways, reducing the probability of network transmission interruption, delay, and unstable bit error rate, and thus helping to improve the reliability and stability of network transmission.
[0032] For ease of understanding, the nouns (abbreviations) involved in this application are first explained below.
[0033] QoS (Quality of Service) refers to the quality of service. For network services, the quality of service includes transmission bandwidth, transmission delay, data packet loss rate, etc. In the network, the quality of service can be improved by ensuring the transmission bandwidth, reducing the transmission delay, reducing the data packet loss rate and delay jitter, etc.
[0034] HARQ (Hybrid Automatic Repeat Request) is a new communication technology based on FEC (forward error correction) and ARQ (automatic retransmission) developed to better resist interference and fading, improve system throughput (effectiveness) and data transmission reliability.
[0035] LDPC (Low Density Parity Check Code), low-density parity check code, the low density here refers to the low density of the check matrix, where the parity check code is a simple verification method to determine whether the transmitted data is erroneous.
[0036] CRC (Cyclic Redundancy Check), cyclic redundancy check.
[0037] Below, each step of the industrial gateway implementation method in this example implementation will be described in more detail with reference to the accompanying drawings and embodiments.
[0038] like Figure 1 As shown, according to an embodiment of the present disclosure, an industrial gateway implementation method includes:
[0039] Step S102, obtaining a transmission indicator of an initial transmission channel, where the initial transmission channel is used to transmit the message to be transmitted.
[0040] The initial transmission channel refers to a pre-configured channel for transmitting the message to be transmitted.
[0041] The transmission index is a parameter used to measure the transmission quality of the transmission channel.
[0042] Specifically, by monitoring key indicators such as the signal quality, real-time transmission delay, and bit error rate of the current initial transmission channel, it is detected whether the transmission indicators meet the standards.
[0043] The messages to be transmitted are the terminal data of each node of the 5G Internet of Things.
[0044] Step S104: when it is detected that the transmission indicator does not meet the standard, an adaptation transmission channel is selected from a plurality of backup transmission channels based on a preset adaptation model.
[0045] Among them, the multiple backup transmission channels include but are not limited to 4G transmission channels, 5G transmission channels, WI-FI transmission channels and wired transmission channels.
[0046] In addition, the industrial gateway disclosed in the present invention also has communication protocol conversion such as ZIGGERBEE, Bluetooth and WI-FI / WLAN that are adapted to the data characteristics of each node terminal of the Internet of Things. It can establish multiple links with the application platform and realize functions such as data display, storage, human-computer interaction, long-distance communication and network control.
[0047] Specifically, the adaptation model refers to a selection model used to select the best transmission channel from multiple backup transmission channels. That is, the adaptation transmission model is the channel with the best transmission quality among the multiple backup transmission channels.
[0048] Step S106: matching and adjusting the transmission parameters of the message to be transmitted based on the channel characteristics of the adapted transmission channel.
[0049] Among them, channel characteristics include but are not limited to: channel bandwidth, code element, baud rate, that is, code element rate, which is the number of code elements transmitted through the channel per unit time, data rate, that is, the amount of information transmitted per unit time, bit error rate, that is, transmission errors will occur in the presence of noise, and the bit error rate indicates the probability of transmission errors, channel delay, that is, the time required for signal transmission from the source to the destination, and this time refers to the channel delay. Channel delay is related to factors such as signal transmission distance, transmission medium, and signal type (electrical signal, optical signal, etc.).
[0050] Specifically, the data is reprocessed and designs related to the transmission channel characteristics, including sequence, code length, code rate, rate matching and HARQ, are performed.
[0051] Step S108: transmitting the adjusted message to be transmitted based on the adapted transmission channel.
[0052] In this embodiment, an industrial gateway having multiple transmission channels including an initial transmission channel and multiple backup transmission channels is set up. When it is detected that the transmission index of the initial transmission channel used to transmit the message to be transmitted does not meet the standard, an adapted backup transmission channel is selected from the multiple backup transmission channels based on a preset adaptation model. After the transmission parameters are matched and adjusted based on the channel characteristics of the adapted transmission channel, the message to be transmitted is basically adapted to be transmitted through the transmission channel, thereby realizing multi-link backup and automatic link switching of a highly reliable industrial gateway, reducing the probability of network transmission interruption, delay, and unstable bit error rate, and thus helping to improve the reliability and stability of network transmission.
[0053] Specifically, the industrial gateway disclosed in the present invention can have multiple transmission channels such as 4G, 5G, WIFI, and wired, and can promptly discover and select the channel with the best transmission key indicators, and then forward it to the application platform, so that the message to be transmitted can be transmitted with the best key indicators (minimum transmission delay, highest reliability), which will ensure high reliability and stable transmission of the message.
[0054] In one embodiment, the method further includes: when it is detected that the transmission indicator has been met, continuing to transmit the message to be transmitted based on the initial transmission channel.
[0055] In this embodiment, combined with the above-mentioned selection scheme for the adapted transmission channel, based on the consideration of low latency and high reliability of the link from the terminal data of each node of the 5G Internet of Things to the application platform, by configuring multiple connections and transmission links, the terminal data of each node is always forwarded to the application platform via the link with the best current transmission quality. This is conducive to the application platform to remotely and in real time accurately control the data of each node of the Internet of Things in two directions.
[0056] Specifically, by configuring multiple connections and transmission links, the terminal data of each node is always forwarded to the application platform via the link with the best transmission quality. This effectively prevents key data from being lost, erroneously transmitted, and retransmitted due to poor transmission quality caused by only one transmission link. This greatly shortens the transmission delay and improves reliability. This industrial gateway will help the commercialization of 5G industry IoT services and enhance the value of 5G industry private network systems.
[0057] like Figure 2 As shown, in one embodiment, in step S102, a specific implementation method of obtaining the transmission index of the initial transmission channel includes:
[0058] Step S202: determining the throughput of the initial transmission channel based on the committed information rate.
[0059] Among them, throughput is the rated data rate allocated by the operator to the user, that is, the promised information speed.
[0060] Step S204: detecting the average delay of the initial transmission channel.
[0061] Step S206: determine a first QoS of the initial transmission channel based on the throughput and the average delay.
[0062] Specifically, the transmission QoS within a period of T, that is, the first QoS=the throughput within the period of T divided by the average delay within the period of T.
[0063] Step S208: determining a transmission index based on the first QoS.
[0064] Specifically, the transmission index is determined based on the first QoS. The first QoS may be directly used as the transmission index, or may be combined with other parameters, such as a bit error rate, to obtain the transmission index.
[0065] In this embodiment, by determining the transmission index based on the first QoS of the initial transmission channel, the transmission quality of the initial transmission channel can be reliably detected to further determine whether to switch to other standby transmission channels.
[0066] In one embodiment, further, in step S208, a specific implementation method of determining the transmission index based on the first QoS includes: detecting the bit error rate of the initial transmission channel; and determining the transmission index based on the first QoS and the bit error rate.
[0067] In this embodiment, the transmission index may be obtained by further combining the bit error rate of the initial transmission channel.
[0068] like Figure 3 As shown, in one embodiment, when it is detected that the transmission indicator does not meet the standard, a specific implementation method of selecting an adaptation transmission channel from multiple backup transmission channels based on a preset adaptation model includes:
[0069] Step S302: when it is detected that the first QoS is less than the quality threshold, it is determined that the transmission indicator does not meet the standard, and a second QoS of multiple standby transmission channels is calculated based on a preset adaptation model.
[0070] The calculation method of the second QoS may refer to the first QoS.
[0071] Step S304: sort the second QoS of the plurality of standby transmission channels based on a preset adaptation model, and determine an adapted transmission channel based on the sorting result.
[0072] In this embodiment, based on the preset adaptation model, the second QoS of multiple backup transmission channels is detected, and the multiple backup transmission channels are sorted based on the second QoS of each backup transmission channel, and the backup transmission channel of the second QoS is determined as the adaptation transmission channel to achieve the selection of the transmission channel with the best transmission quality in multiple links. The adaptation transmission channel is used to replace the initial transmission channel to transmit the message to be transmitted, thereby achieving reliable communication and management of data between the Internet of Things node and the Internet of Things application platform.
[0073] In one embodiment, in step S106, matching and adjusting the transmission parameters of the message to be transmitted based on the channel characteristics of the adapted transmission channel specifically includes:
[0074] adjusting at least one of a sequence, a code length, and a code rate of a message to be transmitted based on a channel characteristic of the adapted transmission channel, and generating an adjustment result;
[0075] Rate matching and / or hybrid automatic repeat request HARQ are performed based on the adjustment result.
[0076] like Figure 4 As shown, specifically, in one embodiment, at least one of the sequence, code length, and code rate of the message to be transmitted is adjusted based on the channel characteristics of the adapted transmission channel, and a specific implementation method for generating the adjustment result includes:
[0077] Step S402, determining the corresponding code rate and code length based on the channel characteristics.
[0078] Step S404: determine the corresponding base graph according to the code rate and the code length.
[0079] Step S406: determine the corresponding maximum number of code block bits based on the base graph.
[0080] Step S408: Add CRC attachment to the message to be transmitted.
[0081] Step S410: When it is detected that the message to be transmitted with the CRC attached is larger than the maximum code block bit number, a segmentation operation is performed on the message to be transmitted to obtain segmented code blocks.
[0082] Step S412: when it is detected that the message to be transmitted with the CRC attached is less than or equal to the maximum code block bit number, the message to be transmitted with the CRC attached is used as a code block to be encoded.
[0083] Step S414: CRC is added to the segmented code blocks, and the segmented code blocks with CRC added are used as code blocks to be encoded.
[0084] Step S416, performing low-density parity check LDPC encoding on the code block to be encoded to obtain an encoded code block, and using the encoded code block as an adjustment result.
[0085] CRC is added to the segmented code block, and low-density parity check LDPC coding is performed on the segmented code block to which the CRC is added to obtain an adjustment result.
[0086] Further, in one embodiment, a specific implementation of performing rate matching and / or hybrid automatic repeat request HARQ based on the adjustment result includes:
[0087] Step S418: performing rate matching, HARQ processing and interleaving on the coded code blocks to obtain an adjusted message to be transmitted.
[0088] Specifically, taking the NR data channel as an example, after determining the corresponding code rate and code length based on the channel characteristics, one of the two base graphs (BG) is selected according to the code rate and code length for LDPC encoding, where the size of BG1 is 46x68, the minimum supported code rate is 1 / 3, and the size of BG2 is 42x52.
[0089] After receiving a transmission block from the media access control layer (MAC), the physical layer of the industrial gateway first adds a (16 or 24-bit) CRC to it. After adding the CRC, if the number of bits it contains exceeds a certain value, it needs to be divided into two or more code blocks of the same length, and the entire certain value is the maximum code block quantity Kcb. If the number of bits it contains is less than or equal to the maximum code block quantity Kcb, the input code block does not need to be cut and channel coding is performed directly.
[0090] The principle of code block segmentation is that when BG1 is used, the maximum code block Kcb = 8448, and when BG2 is used, Kcb = 3840. After LDPC encoding, each code block bit stream undergoes rate matching (Rate Matching, RM). Bit selection is performed first, and then bit interleaving is performed to form a redundant version number (RV). In other words, each encoded code block undergoes rate matching, hybrid automatic repeat request (HARQ) processing, and interleaving.
[0091] like Figure 5 As shown, according to another embodiment of the present disclosure, an industrial gateway implementation method includes:
[0092] Step S502: The multi-link backup high-reliability industrial gateway starts running.
[0093] Step S504: the gateway transmits data to the application platform through a preconfigured initial transmission channel and establishes multiple backup transmission links.
[0094] Step S506: Detect the first transmission quality QoS of the initial transmission channel in the T period as a transmission indicator.
[0095] Step S508: If the first transmission quality QoS meets the standard, continue to transmit data to the application platform.
[0096] Step S510: If the first transmission quality QoS does not meet the standard, the gateway triggers the enabling discovery module to select a transmission channel with the best transmission quality in the backup multi-link.
[0097] Step S512: redesign the data including sequence, code length, code rate, rate matching and HARQ according to the selected channel characteristics and then forward it.
[0098] Step S514: The application platform receives and processes the data with the shortest transmission delay and the highest reliability.
[0099] Step S516, determine whether to exit the communication and management of translation, conversion, display, storage and control of different protocols of various terminal node data in the 5G Internet of Things. If "yes", go to step S518, if "no", return to step S506.
[0100] Step S518, shut down various terminal node devices and interfaces in the 5G Internet of Things, and the multi-link backup high-reliability industrial gateway ends its work.
[0101] In this embodiment, a high-reliability industrial gateway implementation method with multi-link backup and automatic link switching is set up to consider the low latency and high reliability of the link from each node terminal data of the 5G Internet of Things to the application platform. By configuring multiple connections and transmission links, the terminal data of each node is always forwarded to the application platform via the link with the best current transmission quality, which is conducive to the application platform to remotely and accurately control the data of each node of the Internet of Things in real time.
[0102] The highly reliable industrial gateway with multi-link backup and automatic link switching proposed in the disclosed solution configures multiple connection and transmission links so that the terminal data of each node is always forwarded to the application platform via the link with the best current transmission quality, which helps the application platform to remotely and accurately control the data of each node in real time and improve the industry user experience.
[0103] The configurable intelligent gateway with autonomous decision-making function proposed in the disclosed solution can realize the processing of data to be processed, reduce system processing delays, enhance the access to effective information, and make business development more agile, which helps to realize remote and real-time accurate two-way control of data at each node and improve the industry user experience.
[0104] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time of these processes.
[0105] Refer to the following Figure 6 An industrial gateway implementation device 600 according to this embodiment of the present invention is described. Figure 6 The industrial gateway implementation device 600 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0106] The industrial gateway implementation device 600 is presented in the form of a hardware module. The components of the industrial gateway implementation device 600 may include but are not limited to: an acquisition module 602, used to acquire the transmission index of the initial transmission channel, the initial transmission channel is used to transmit the message to be transmitted; a selection module 604, used to select an adaptation transmission channel from multiple backup transmission channels based on a preset adaptation model when it is detected that the transmission index does not meet the standard; an adjustment module 606, used to match and adjust the transmission parameters of the message to be transmitted based on the channel characteristics of the adaptation transmission channel; a forwarding module 608, used to transmit the adjusted message to be transmitted based on the adaptation transmission channel.
[0107] like Figure 7 As shown, the industrial network is a network device, and the network device 700 is presented in the form of a general computing device. The components of the network device 700 may include but are not limited to: at least one processing unit 710, at least one storage unit 720, and a bus 730 connecting different system components (including the storage unit 720 and the processing unit 710).
[0108] The storage unit stores program codes, which can be executed by the processing unit 710, so that the processing unit 710 performs the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification. For example, the processing unit 710 can perform the following steps: Figure 1 The scheme described in steps S102 to S108 shown in FIG.
[0109] The storage unit 720 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 7201 and / or a cache storage unit 7202 , and may further include a read-only storage unit (ROM) 7203 .
[0110] The storage unit 720 may also include a program / utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0111] Bus 730 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0112] The network device 700 may also communicate with one or more external devices 760 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the network device 700, and / or communicate with any device that enables the network device 700 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 740. Furthermore, the network device 700 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 750. As shown, the network adapter 750 communicates with other modules of the network device 700 via a bus 730. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the network device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0113] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0114] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.
[0115] The program product for implementing the above method according to an embodiment of the present invention may adopt a portable compact disk read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.
[0116] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0117] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0118] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0119] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0120] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0121] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0122] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0123] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. A method for implementing an industrial gateway, characterized in that: include: Acquire a transmission indicator of an initial transmission channel, where the initial transmission channel is used to transmit the message to be transmitted; When it is detected that the transmission indicator does not meet the standard, selecting an adaptation transmission channel from a plurality of standby transmission channels based on a preset adaptation model; Based on the channel characteristics of the adapted transmission channel, at least one of the sequence, code length, and code rate of the message to be transmitted is adjusted to generate an adjustment result, including: determining the corresponding code rate and code length based on the channel characteristics; determining the corresponding base graph according to the code rate and the code length; determining the corresponding maximum number of code block bits based on the base graph; adding CRC attachment to the message to be transmitted; upon detecting that the message to be transmitted with the CRC attachment is greater than the maximum number of code block bits, performing a segmentation operation on the message to be transmitted to obtain a segmented code block; upon detecting that the message to be transmitted with the CRC attachment is less than or equal to the maximum number of code block bits, using the message to be transmitted with the CRC attachment as a code block to be encoded; adding the CRC attachment to the segmented code block, using the segmented code block with the CRC attachment as the code block to be encoded, performing low-density parity check LDPC encoding on the code block to be encoded to obtain an encoded code block, and using the encoded code block as the adjustment result; Performing rate matching and / or hybrid automatic repeat request HARQ based on the adjustment result; The adjusted message to be transmitted is transmitted based on the adapted transmission channel.
2. The industrial gateway implementation method according to claim 1, characterized in that: The obtaining of the transmission index of the initial transmission channel specifically includes: determining a throughput of the initial transmission channel based on a committed information rate; Detecting an average delay of the initial transmission channel; determining a first QoS of the initial transmission channel based on the throughput and the average delay; The transmission indicator is determined based on the first QoS.
3. The industrial gateway implementation method according to claim 2, characterized in that: Determining the transmission indicator based on the first QoS specifically includes: detecting a bit error rate of the initial transmission channel; The transmission indicator is determined based on the first QoS and the bit error rate.
4. The industrial gateway implementation method according to claim 2, characterized in that: When it is detected that the transmission indicator does not meet the standard, selecting an adaptation transmission channel from a plurality of standby transmission channels based on a preset adaptation model specifically includes: When it is detected that the first QoS is less than a quality threshold, determining that the transmission indicator does not meet the standard, and calculating the second QoS of the multiple standby transmission channels based on the preset adaptation model; The second QoS of the plurality of standby transmission channels are sorted based on the preset adaptation model, and the adapted transmission channel is determined based on the sorting result.
5. The industrial gateway implementation method according to claim 1, characterized in that: The performing rate matching and / or hybrid automatic repeat request HARQ based on the adjustment result specifically includes: The rate matching, the HARQ processing and the interleaving are performed on the coded code block to obtain the adjusted message to be transmitted.
6. The industrial gateway implementation method according to any one of claims 1 to 4, characterized in that: The multiple backup transmission channels include a 4G transmission channel, a 5G transmission channel, a WI-FI transmission channel and a wired transmission channel.
7. The industrial gateway implementation method according to any one of claims 1 to 4, characterized in that: Also includes: When it is detected that the transmission indicator reaches the standard, the message to be transmitted continues to be transmitted based on the initial transmission channel.
8. An industrial gateway implementation device, characterized in that: include: An acquisition module, used to acquire a transmission indicator of an initial transmission channel, where the initial transmission channel is used to transmit a message to be transmitted; A selection module, configured to select an adaptation transmission channel from a plurality of backup transmission channels based on a preset adaptation model when it is detected that the transmission indicator does not meet the standard; An adjustment module, used for adjusting at least one of the sequence, code length and code rate of the message to be transmitted based on the channel characteristics of the adapted transmission channel, and generating an adjustment result, including: determining the corresponding code rate and code length based on the channel characteristics; determining the corresponding base graph according to the code rate and the code length; determining the corresponding maximum number of code block bits based on the base graph; adding CRC attachment to the message to be transmitted; when it is detected that the message to be transmitted with the CRC attachment is greater than the maximum number of code block bits, performing a segmentation operation on the message to be transmitted to obtain a segmented code block; when it is detected that the message to be transmitted with the CRC attachment is less than or equal to the maximum number of code block bits, using the message to be transmitted with the CRC attachment as a code block to be encoded; adding the CRC attachment to the segmented code block, using the segmented code block with the CRC attachment as the code block to be encoded, performing low-density parity check LDPC encoding on the code block to be encoded to obtain a coded code block, and using the coded code block as the adjustment result; performing rate matching and / or hybrid automatic repeat request HARQ based on the adjustment result; A forwarding module is used to transmit the adjusted message to be transmitted based on the adapted transmission channel.
9. A network device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the industrial gateway implementation method described in any one of claims 1 to 7 by executing the executable instructions.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the industrial gateway implementation method described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method of data transmission in internet of things
CN103701932A
Data transmission method and related device
CN111836329A