A method and system for transmitting and processing power data based on 5G technology

By constructing multiple communication channels under 5G technology and dynamically adjusting according to the packet loss rate, the inefficiency problem caused by a single channel in power data packet transmission is solved, and more efficient and reliable power data packet transmission is achieved.

CN116847303BActive Publication Date: 2024-10-08古桥信息科技(郑州)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310905412.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-18
Publication Date
2024-10-08
Estimated Expiration
2043-07-18

AI Technical Summary

Technical Problem

In the 5G era, data loss problems caused by a single communication channel in power data packet transmission often lead to low transmission efficiency.

Method used

By constructing multiple communication channels between the sending end and the receiving end, the packet loss rate of power data packets is calculated, and the communication channel is replaced when the packet loss rate does not meet the standard to improve the transmission efficiency of power data packets.

Benefits of technology

It effectively improves the transmission efficiency of power data packets, reduces data loss, and improves the reliability and efficiency of transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116847303B_ABST
    Figure CN116847303B_ABST
Patent Text Reader

Abstract

The present application relates to a method and system for power data transmission and processing based on 5G technology, and to the technical field of power communication. The method includes: building multiple communication channels between a transmitting end and a receiving end in response to a request; selecting one of the communication channels to transmit a power data packet, and obtaining a first data volume of the power data packet sent by the transmitting end and a second data volume of the power data packet received by the receiving end; calculating the packet loss rate of the power data packet based on the first data volume and the second data volume, and judging whether it is necessary to replace the communication channel currently transmitting the power data packet based on the packet loss rate. The present application has the effect of improving the transmission efficiency of power data packets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power communication, and in particular, to a method and system for power data transmission and processing based on 5G technology. Background Art

[0002] The rich vertical industry applications in the 5G era will bring more diversified demands on mobile networks. Ultra-high bandwidth, ultra-low latency and ultra-large-scale connections will change the operating methods and operating modes of the core businesses of the power industry, and comprehensively improve the operating efficiency and decision-making intelligence level of the traditional power industry.

[0003] During data transmission, transmission control algorithms are often used to avoid sending too much data to the network. When the amount of data sent exceeds the network's carrying capacity, data packet loss will occur.

[0004] In the related art, most of the power data packets are transmitted using a single communication channel, and when the power data packet is received, a manual check is performed to see if the data in the power data packet is lost. If the data in the power data packet is lost, the power data packet is retransmitted, which leads to the defect of low power data packet transmission efficiency. Summary of the invention

[0005] The purpose of this application is to provide a method and system for transmitting and processing power data based on 5G technology, which can improve the transmission efficiency of power data packets.

[0006] In the first aspect, the present application provides a method for power data transmission and processing based on 5G technology, which adopts the following technical solution:

[0007] A method for transmitting and processing electric power data based on 5G technology, comprising:

[0008] Establishing a plurality of communication channels between a sending end and a receiving end in response to the request;

[0009] Selecting one of the communication channels to transmit a power data packet, and obtaining a first data volume of the power data packet sent by the sending end and a second data volume of the power data packet received by the receiving end;

[0010] The packet loss rate of the power data packet is calculated according to the first data volume and the second data volume, and it is determined whether a communication channel currently transmitting the power data packet needs to be replaced according to the packet loss rate.

[0011] By adopting the above technical solution, the first data amount of the power data packet sent by the sending end and the second data amount of the power data packet received by the receiving end are collected, and then the packet loss rate of the power data packet is calculated based on the first data amount and the second data amount. By constructing multiple communication channels between the sending end and the receiving end, it is convenient to replace the communication channel to transmit the power data packet when the packet loss rate does not meet the standard, thereby improving the transmission efficiency of the power data packet.

[0012] Optionally, establishing a plurality of communication channels between the sending end and the receiving end in response to the request specifically includes:

[0013] Get request instructions;

[0014] Acquire attribute information of the sender according to the request instruction, the attribute information including the name of the sender, generate a unique identification code of the sender according to the attribute information, create a receipt message queue according to the unique identification code, and send the receipt message queue to the receiving end;

[0015] Creating a message queue according to the data type sent by the sending end to the receiving end, and obtaining creation parameters of the message queue;

[0016] The receiving end is automatically connected to the sending end according to the creation parameters of the message queue, so as to establish a plurality of the communication channels between the sending end and the receiving end.

[0017] By adopting the above technical solution, a message queue is created according to the data type sent by the sender, and the creation parameters of the message queue are obtained, so that the receiving end can be automatically connected to the sender according to the creation parameters of the message queue, and multiple communication channels can be built between the sender and the receiving end, so as to facilitate the replacement of communication channels to transmit power data packets; and a unique identification code of the sender is generated according to the attribute information of the sender, and then a receipt message queue is created according to the unique identification code, and the receipt message queue is sent to the receiving end, so that when the sender and the receiving end are successfully connected, the sender can be notified through the receipt message queue.

[0018] Optionally, after the receiving end automatically connects to the sending end according to the creation parameters of the message queue to establish a plurality of the communication channels between the sending end and the receiving end, the method further includes:

[0019] The callback API address of the sending end is obtained, and the callback API address is sent to the receiving end, and the sending end calls back the power data sent to the receiving end through the callback API address.

[0020] By adopting the above technical solution, by sending the callback API address to the receiving end, it is convenient for the sending end to call back the power data from the receiving end through the callback API address.

[0021] Optionally, the creating a receipt message queue according to the unique identification code specifically includes:

[0022] Create a switch named exchange and the unique identification code according to a first preset rule;

[0023] Create a target queue with the unique identification code as the name according to a second preset rule;

[0024] The target queue is bound to the switch, and the receipt message queue is automatically generated.

[0025] By adopting the above technical solution, by creating a switch named exchange and the unique identification code and a target queue named queue and the unique identification code, binding the target queue and the switch, and automatically generating a receipt message queue, the uniqueness of the receipt message queue can be improved.

[0026] Optionally, the creation parameters of the message queue include but are not limited to queue name, queue IP address, queue port address, queue user name and queue password.

[0027] By adopting the above technical solution, the creation elements of the message queue can be improved by setting the creation parameters to include but not limited to the queue name, queue IP address, queue port address, queue user name and queue password.

[0028] Optionally, the acquiring a first data volume of the power data packet sent by the transmitting end and a second data volume of the power data packet received by the receiving end specifically includes:

[0029] Parsing the power data packet at the transmitting end to obtain a first parsing result;

[0030] Parsing the power data packet at the receiving end to obtain a second parsing result;

[0031] Determining whether the power data packet is empty according to the first analysis result and / or the second analysis result;

[0032] If the power data packet is empty, re-parse the power data packet, or change the communication channel for transmitting the power data packet, and re-parse the power data packet until the power data packet is not empty;

[0033] If the power data packet is not empty, the first analysis result is analyzed and converted to obtain the first data volume of the power data packet, and the second analysis result is analyzed and converted to obtain the second data volume of the power data packet.

[0034] By adopting the above technical solution, the power data packet at the sending end and the receiving end are parsed to obtain the first parsing result and the second parsing result respectively, and according to the first parsing result and the second parsing result, it can be judged whether the power data packet is empty. If the power data packet is empty, the power data packet can be re-parsed, or the communication channel can be changed to re-transmit the power data packet, and then the power data packet can be parsed again until the power data packet is not empty. If the power data packet is not empty, the first parsing result and the second parsing result can be analyzed and converted respectively to obtain the first data volume and the second data volume, so as to facilitate the judgment of whether the transmitted power data packet is empty. If it is empty, the power data packet can be re-parsed or the communication channel can be changed to re-transmit, thereby further improving the transmission efficiency of the power data packet.

[0035] Optionally, judging whether it is necessary to change the communication channel currently transmitting the power data packet according to the packet loss rate specifically includes:

[0036] Determining whether the packet loss rate is less than a preset packet loss rate threshold;

[0037] If the packet loss rate is less than the packet loss rate threshold, continue to use the current communication channel to transmit the power data packet;

[0038] If the packet loss rate is not less than the packet loss rate threshold, the current communication channel is replaced with any one of the multiple communication channels except the current communication channel to transmit the power data packet, and the relationship between the packet loss rate and the packet loss rate threshold is re-determined until the packet loss rate is less than the packet loss rate threshold.

[0039] By adopting the above technical solution, when the packet loss rate is less than the packet loss rate threshold, the current communication channel can continue to be used to transmit the power data packet. When the packet loss rate is not less than the packet loss rate threshold, the current communication channel can be replaced with any one of the multiple communication channels except the current communication channel to transmit the power data packet, and then re-judge whether the packet loss rate is less than the packet loss rate threshold. If not, the process is repeated until the packet loss rate is less than the packet loss rate threshold, thereby facilitating the judgment of whether the communication channel needs to be replaced based on the packet loss rate.

[0040] In the second aspect, the present application provides a power data transmission and processing system based on 5G technology, which adopts the following technical solution:

[0041] A power data transmission and processing system based on 5G technology, comprising:

[0042] A construction module, configured to construct a plurality of communication channels between a sending end and a receiving end in response to a request;

[0043] an acquisition module, configured to select one of the communication channels to transmit a power data packet, and acquire a first data volume of the power data packet sent by the sending end and a second data volume of the power data packet received by the receiving end;

[0044] A judgment module is used to calculate the packet loss rate of the power data packet according to the first data volume and the second data volume, and judge whether it is necessary to change the communication channel currently transmitting the power data packet according to the packet loss rate.

[0045] By adopting the above technical solution, the first data amount of the power data packet sent by the sending end and the second data amount of the power data packet received by the receiving end are collected by the acquisition module, and then the packet loss rate of the power data packet is calculated according to the first data amount and the second data amount by the judgment module. A variety of communication channels are constructed between the sending end and the receiving end through the construction module, and then when the packet loss rate does not meet the standard, the communication channel can be easily replaced to transmit the power data packet, thereby improving the transmission efficiency of the power data packet.

[0046] In a third aspect, the present application provides a terminal, which adopts the following technical solution:

[0047] A terminal comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the method of the first aspect when loading the computer program.

[0048] By adopting the above technical solution, the method of the first aspect is generated into a computer program and stored in a memory to be loaded and executed by a processor, so that a user can establish a connection with the system through a terminal and query various contents processed by the system.

[0049] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:

[0050] A computer-readable storage medium stores a computer program, and when the computer program is loaded by a processor, the method of the first aspect is executed.

[0051] By adopting the above technical solution, the method of the first aspect is generated into a computer program and stored in a computer-readable storage medium. After the computer-readable storage medium is loaded into any computer, any computer can execute the method of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1is a method flow chart of steps S100-S300 in an embodiment of the present application;

[0053] Figure 2 is a method flow chart of steps S110-S150 in an embodiment of the present application;

[0054] Figure 3 is a method flow chart of steps S121-S123 in an embodiment of the present application;

[0055] Figure 4 is a method flow chart of steps S210-S250 in an embodiment of the present application;

[0056] Figure 5 is a method flow chart of steps S310-S330 in an embodiment of the present application;

[0057] Figure 6 This is a module framework diagram of the power data transmission and processing system based on 5G technology of this application;

[0058] In the figure, 1. Construction module; 2. Acquisition module; 3. Judgment module. DETAILED DESCRIPTION

[0059] The following is combined with Figure 1 -Attached Figure 6 , further details of this application are given.

[0060] 5G technology refers to the fifth generation of mobile communication technology, a new generation of broadband mobile communication technology with the characteristics of high speed, low latency and large connection. 5G communication facilities are the network infrastructure for realizing the interconnection between people, machines and things.

[0061] A method for transmitting and processing electric power data based on 5G technology, referring to Figure 1 , the method comprises the following steps:

[0062] S100: Establishing a plurality of communication channels between a sending end and a receiving end in response to a request.

[0063] Among them, when monitoring and processing power data, generally speaking, it is necessary to collect power data through a collection terminal and send the collected power data to a processing terminal. The present application is a transmission and processing method implemented between the transmitting end of the collection terminal and the receiving end of the processing terminal.

[0064] Among them, in one embodiment of the present application, refer to Figure 2 , step S100 specifically includes the following steps:

[0065] S110: Get request instruction.

[0066] In one embodiment of the present application, the user inputs instructions on the collection terminal to collect relevant data according to the input instructions.

[0067] S120: Acquire attribute information of the sender according to the request instruction, and the attribute information includes the name of the sender, generate a unique identification code of the sender according to the attribute information, create a receipt message queue according to the unique identification code, and send the receipt message queue to the receiving end.

[0068] Among them, in one embodiment of the present application, refer to Figure 3 ,The creation of the receipt message queue specifically includes the following steps: S121: creating a switch with the name of exchange and the unique identification code according to the first preset rule;

[0069] S122: Create a target queue with a name of queue and a unique identification code according to a second preset rule;

[0070] S123: Bind the target queue to the switch and automatically generate a receipt message queue.

[0071] Among them, in this embodiment, the first preset rule is the same as the second preset rule, and specifically includes: obtaining the field template for data transmission, and configuring the data type on the collaborative hub. After the data type configuration is completed, a message queue of the specified data type is created in the message queue, and "switch" and "topic" information are provided. Subsequent data needs to be published to the specified queue.

[0072] Then, through steps S121 to S123, the exchange and queue are respectively combined with the unique identification code to obtain the exchange and the target queue, thereby improving the uniqueness of the receipt message queue.

[0073] S130: Create a message queue according to the type of data sent by the sending end to the receiving end, and obtain creation parameters of the message queue.

[0074] In one embodiment of the present application, the data types include but are not limited to power consumption data, voltage data, and current data.

[0075] Among them, in this embodiment, one data type corresponds to one message queue, and the power data packet transmission format is a "list" object. If there is only one object, "list" packaging must also be used.

[0076] For example, if the data type of the power data packet is power consumption data, the power consumption message queue is used; if the data type of the power data packet is voltage data, the voltage message queue is used; if the data type of the power data packet is current data, the current message queue is used.

[0077] In one embodiment of the present application, the creation parameters of the message queue include but are not limited to the queue name, queue IP address, queue port address, queue user name and queue password, etc.

[0078] S140: The receiving end automatically connects to the sending end according to the creation parameters of the message queue, so as to establish multiple communication channels between the sending end and the receiving end.

[0079] Among them, in this embodiment, if the sending end is successfully connected to the receiving end according to the message queue, the receiving end will feedback the connection success information to the sending end through the receipt message queue as soon as possible to inform the sending end of the successful connection; of course, if the sending end is unsuccessful in connecting to the receiving end according to the message queue, the sending end will not receive any feedback in the first time; thereby conveniently informing the user whether the sending end and the receiving end are successfully connected.

[0080] In one embodiment of the present application, step S100 further includes the following steps:

[0081] S150: Acquire the callback API address of the sending end, and send the callback API address to the receiving end. The sending end calls back the power data sent to the receiving end through the callback API address.

[0082] Through the setting of step S150, a two-way communication channel is established between the sending end and the receiving end, that is, the sending end can send a power data packet to the receiving end through one of the communication channels, and the sending end can also call back the power data packet sent to the receiving end through another communication channel, thereby realizing the two-way function of sending data and calling back data.

[0083] S200: Select one of the communication channels to transmit a power data packet, and obtain a first data volume of the power data packet sent by the sending end and a second data volume of the power data packet received by the receiving end.

[0084] Among them, in one embodiment of the present application, refer to Figure 4 , step S200 specifically includes the following steps:

[0085] S210: Parse the power data packet at the sending end to obtain a first parsing result.

[0086] S220: Parse the power data packet at the receiving end to obtain a second parsing result.

[0087] In one embodiment of the present application, when parsing the power data packet, it specifically includes:

[0088] Determine whether the data type of the power data packet can be identified;

[0089] If the data type of the power data packet can be identified, the power data packet is parsed and the parsed data is displayed;

[0090] If the data type of the power data packet cannot be identified, no action is performed.

[0091] Among them, in this embodiment, when the data type of the power data packet cannot be identified, other parsing methods can be used to continue parsing, and this application does not impose any restrictions on this.

[0092] Among them, when the data type of the power data packet is voltage data, it means that the power data packet integrates the real-time voltage data within a certain time period; when the data type of the power data packet is current data, it means that the power data packet integrates the real-time current data within a certain time period; when the data type of the power data packet is power consumption data, it means that the power data packet integrates the real-time power consumption data within a certain time period.

[0093] S230: Determine whether the power data packet is empty according to the first analysis result and / or the second analysis result.

[0094] Among them, in this embodiment, according to the analysis results obtained in step 210 and / or step S220, it can be determined whether there is data in the power data packet. If there is data in the power data packet, it means that the power data packet is not empty. Conversely, if there is no data in the power data packet, it means that the power data packet is empty.

[0095] S240: If the power data packet is empty, re-parse the power data packet, or change the communication channel for transmitting the power data packet and re-parse the power data packet until the power data packet is not empty.

[0096] Among them, in this embodiment, when the parsing method of the power data packet is incorrect or the communication channel for transmitting the power data packet fails, the parsed power data packet will be empty. Therefore, when the power data packet is empty, the power data packet can be re-parsed, or the communication channel for transmitting the power data packet can be replaced, and then the power data packet can be re-parsed until the power data packet is not empty; thereby improving the efficiency and accuracy of the power data packet parsing.

[0097] S250: If the power data packet is not empty, the first analysis result is analyzed and converted to obtain a first data volume of the power data packet, and the second analysis result is analyzed and converted to obtain a second data volume of the power data packet.

[0098] In this embodiment, when the power data is not empty, data statistics can be performed on the parsed data according to the parsing result, so as to obtain the first data amount and the second data amount.

[0099] S300: Calculate a packet loss rate of the power data packet according to the first data volume and the second data volume, and determine whether it is necessary to change a communication channel currently transmitting the power data packet according to the packet loss rate.

[0100] Among them, in one embodiment of the present application, refer to Figure 5 , step S300 specifically includes the following steps:

[0101] S310: Determine whether the packet loss rate is less than a preset packet loss rate threshold.

[0102] In one embodiment of the present application, the packet loss rate threshold is set to 1%. Of course, the setting of the packet loss rate threshold may also be adjusted according to actual circumstances.

[0103] In one embodiment of the present application, the calculation formula of the packet loss rate is as follows:

[0104]

[0105] Wherein, L represents the packet loss rate, N1 represents the first data volume, and N2 represents the second data volume.

[0106] S320: If the packet loss rate is less than the packet loss rate threshold, continue to use the current communication channel to transmit the power data packet.

[0107] In one embodiment of the present application, since the generation of packet loss rate is largely related to the communication channel for transmitting data, when the packet loss rate is greater than the packet loss rate threshold, it is possible to consider changing the communication channel to reduce the packet loss rate of the power data packet.

[0108] In this embodiment, when the packet loss rate is less than 1%, it can be determined that the packet loss rate is within an acceptable range, and thus the current communication channel can continue to be used to transmit power data packets.

[0109] S330: If the packet loss rate is not less than the packet loss rate threshold, the current communication channel is replaced with any one of the multiple communication channels except the current communication channel to transmit the power data packet, and the relationship between the packet loss rate and the packet loss rate threshold is re-determined until the packet loss rate is less than the packet loss rate threshold.

[0110] Among them, in this embodiment, when the packet loss rate is greater than or equal to 1%, it can be determined that this packet loss rate is within an unacceptable range. Therefore, the current communication channel can be replaced with any one of the multiple communication channels except the current communication channel to transmit the power data packet, and re-judge whether the packet loss rate is less than 1%. If not, the process is repeated until the packet loss rate is less than 1%; thereby reducing the degree of packet loss of the power data packet.

[0111] Among them, in one embodiment of the present application, when the packet loss rate is not less than the packet loss rate threshold, the power data packet with a packet loss rate not less than the packet loss rate threshold can be temporarily stored, and when other communication channels are replaced, the above data can continue to be transmitted, thereby achieving the effect of avoiding data loss.

[0112] In one embodiment of the present application, the packet loss rate may also be calculated using the following method steps, specifically:

[0113] Determine out-of-order time information based on the arrival time of out-of-order power data packets; determine a packet loss rate calculation interval based on the out-of-order time information; calculate the packet loss rate based on the arrival of power data packets corresponding to the packet loss rate calculation interval to determine the packet loss rate calculation result.

[0114] In one embodiment of the present application, the out-of-order time information is determined according to the arrival time of the out-of-order power data packets, specifically including:

[0115] Determine the expected arrival time of the out-of-order power data packets; determine the out-of-order time information according to the actual arrival time and the expected arrival time of the out-of-order power data packets.

[0116] In one embodiment of the present application, determining the expected arrival time of the out-of-order power data packets specifically includes:

[0117] Determine the sending time interval between the out-of-order power data packet and the power data packet of the previous sequence number; determine the expected arrival time of the out-of-order power data packet based on the actual arrival time and the sending time interval of the power data packet of the previous sequence number.

[0118] Among them, in one embodiment of the present application, determining the out-of-order time information according to the arrival time of the out-of-order power data packets specifically includes:

[0119] Determine the data packet out-of-order time of each out-of-order arriving power data packet within a set statistical time interval; determine the out-of-order time information according to the data packet out-of-order time corresponding to each out-of-order arriving power data packet.

[0120] In one embodiment of the present application, determining the data packet disorder time of each disorderly arriving power data packet within a set statistical time interval specifically includes:

[0121] Determine the expected arrival time of each out-of-order power data packet within a set statistical time interval; determine the data packet out-of-order time corresponding to each out-of-order power data packet based on the actual arrival time and the expected arrival time of the out-of-order power data packet.

[0122] In one embodiment of the present application, determining the packet loss rate calculation interval according to the out-of-order time information specifically includes:

[0123] The data transmission time of the power data packet with the largest sequence number is determined according to the received transmission arrival feedback information, and the interval end point of the packet loss rate calculation interval is determined according to the disorder time information and the data transmission time; the packet loss rate calculation interval is determined according to the set calculation interval length and the interval end point.

[0124] The implementation principle of the embodiment of the present application is as follows: first, multiple communication channels are constructed between the transmitting end and the receiving end, and one of the communication channels is selected to transmit the power data packet, and a first data amount of the power data packet at the transmitting end and a second data amount of the power data packet at the receiving end are obtained, and the packet loss rate of the power data packet can be calculated based on the first data amount and the second data amount. When the packet loss rate is less than a preset packet loss rate threshold, the current communication channel can continue to be used to transmit the power data packet. Conversely, when the packet loss rate is not less than the preset packet loss rate threshold, the current communication channel can be replaced with any one of the multiple communication channels except the current communication channel to transmit the power data packet, and then the packet loss rate is recalculated, and it is determined whether the packet loss rate is less than the preset packet loss rate threshold. If not, the process is repeated until the packet loss rate is less than the preset packet loss rate threshold. When transmitting the power data packet, the packet loss rate of the power data packet can be calculated in real time, and when the packet loss rate is not less than the preset packet loss rate threshold, the communication channel can be replaced at any time to transmit the power data packet, thereby achieving the purpose of reducing the packet loss rate of the power data packet.

[0125] The present application embodiment discloses a power data transmission and processing system based on 5G technology, referring to Figure 6 , which specifically includes a construction module 1, an acquisition module 2 and a judgment module 3; wherein, with the help of the construction module 1, a plurality of communication channels are constructed between the sending end and the receiving end in response to a request; with the help of the acquisition module 2, one of the communication channels is selected to transmit the power data packet, and a first data volume of the power data packet sent by the sending end and a second data volume of the power data packet received by the receiving end are obtained; with the help of the judgment module 3, a packet loss rate of the power data packet is calculated according to the first data volume and the second data volume, and whether it is necessary to change the communication channel for currently transmitting the power data packet according to the packet loss rate.

[0126] Among them, when the power data transmission and processing system based on 5G technology of this embodiment is applied, the power data transmission and processing method based on 5G technology of the above-mentioned embodiment is adopted, so the specific application of the system will not be repeated here.

[0127] An embodiment of the present application discloses a terminal, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor adopts the power data transmission and processing method based on 5G technology of the above embodiment when executing the computer program.

[0128] In one embodiment of the present application, the terminal may be a desktop computer, a laptop computer or a cloud server, and the terminal includes but is not limited to a processor and a memory. For example, the terminal may also include input and output devices, a network access device and a bus, etc.

[0129] In one embodiment of the present application, the processor may be a central processing unit (CPU). Of course, other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. may also be used depending on actual usage. The general-purpose processor may be a microprocessor or any conventional processor, etc., and the present application does not impose any restrictions on this.

[0130] In one embodiment of the present application, the memory may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal, or an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (SMC), a secure digital card (SD) or a flash memory card (FC) equipped on the terminal, and the memory may also be a combination of an internal storage unit and an external storage device of the terminal. The memory is used to store computer programs and other programs and data required by the terminal. The memory may also be used to temporarily store data that has been output or is to be output, and the present application does not impose any restrictions on this.

[0131] Through the setting of this terminal, the power data transmission and processing method based on 5G technology of the above-mentioned embodiment is stored in the memory of the terminal, and is loaded and executed on the processor of the terminal, so that the user can establish contact with the system through the terminal and query the various contents processed by the system.

[0132] An embodiment of the present application discloses a computer-readable storage medium, and a computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the power data transmission and processing method based on 5G technology of the above-mentioned embodiment is adopted.

[0133] Among them, in one embodiment of the present application, a computer program can be stored in a computer-readable storage medium, and the computer program includes computer program code. The computer program code can be in the form of source code, object code, executable file or some middleware, etc. The computer-readable storage medium includes any entity or device that can carry the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the computer-readable storage medium includes but is not limited to the above-mentioned components.

[0134] Through the setting of this computer-readable storage medium, the power data transmission and processing method based on 5G technology of the above-mentioned embodiment is stored in the computer-readable storage medium, and is loaded and executed on the processor. After the computer-readable storage medium is loaded into any computer, any computer can execute the power data transmission and processing method based on 5G technology of the above-mentioned embodiment.

[0135] The embodiments of this specific implementation are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. The same components are represented by the same figure marks. Therefore, any equivalent changes made based on the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. A method for transmitting and processing power data based on 5G technology, characterized in that: include: Establishing a plurality of communication channels between a sending end and a receiving end in response to the request; Selecting one of the communication channels to transmit a power data packet, and obtaining a first data volume of the power data packet sent by the sending end and a second data volume of the power data packet received by the receiving end; Calculating a packet loss rate of the power data packet according to the first data volume and the second data volume, and determining whether it is necessary to change a communication channel currently transmitting the power data packet according to the packet loss rate; The step of establishing a plurality of communication channels between the sending end and the receiving end in response to the request specifically includes: Get request instructions; Acquire attribute information of the sender according to the request instruction, the attribute information including the name of the sender, generate a unique identification code of the sender according to the attribute information, create a receipt message queue according to the unique identification code, and send the receipt message queue to the receiving end; Creating a message queue according to the data type sent by the sending end to the receiving end, and obtaining creation parameters of the message queue; The receiving end is automatically connected to the sending end according to the creation parameters of the message queue, so as to establish a plurality of the communication channels between the sending end and the receiving end; After the receiving end is automatically connected to the sending end according to the creation parameters of the message queue to build a plurality of the communication channels between the sending end and the receiving end, the method further includes: Acquire the callback API address of the sending end, and send the callback API address to the receiving end, and the sending end calls back the power data sent to the receiving end through the callback API address; The step of creating a receipt message queue according to the unique identification code specifically includes: Create a switch named exchange and the unique identification code according to a first preset rule; Create a target queue with the unique identification code as the name according to a second preset rule; Binding the target queue to the switch to automatically generate the receipt message queue; The creation parameters of the message queue include but are not limited to queue name, queue IP address, queue port address, queue user name and queue password.

2. The method for transmitting and processing electric power data based on 5G technology according to claim 1 is characterized in that: The obtaining of the first data volume of the power data packet sent by the sending end and the second data volume of the power data packet received by the receiving end specifically includes: Parsing the power data packet at the transmitting end to obtain a first parsing result; Parsing the power data packet at the receiving end to obtain a second parsing result; Determining whether the power data packet is empty according to the first analysis result and / or the second analysis result; If the power data packet is empty, re-parse the power data packet, or change the communication channel for transmitting the power data packet, and re-parse the power data packet until the power data packet is not empty; If the power data packet is not empty, the first analysis result is analyzed and converted to obtain the first data volume of the power data packet, and the second analysis result is analyzed and converted to obtain the second data volume of the power data packet.

3. The method for transmitting and processing electric power data based on 5G technology according to claim 1 is characterized in that: The determining whether it is necessary to change the communication channel currently transmitting the power data packet according to the packet loss rate specifically includes: Determining whether the packet loss rate is less than a preset packet loss rate threshold; If the packet loss rate is less than the packet loss rate threshold, continue to use the current communication channel to transmit the power data packet; If the packet loss rate is not less than the packet loss rate threshold, the current communication channel is replaced with any one of the multiple communication channels except the current communication channel to transmit the power data packet, and the relationship between the packet loss rate and the packet loss rate threshold is re-determined until the packet loss rate is less than the packet loss rate threshold.

4. A power data transmission and processing system based on 5G technology, characterized in that: The method for power data transmission and processing based on 5G technology according to any one of claims 1 to 3 is adopted, and the system comprises: A construction module (1) is used to construct a plurality of communication channels between a sending end and a receiving end in response to a request; An acquisition module (2) is used to select one of the communication channels to transmit a power data packet, and acquire a first data volume of the power data packet sent by the sending end and a second data volume of the power data packet received by the receiving end; A judgment module (3) is used to calculate the packet loss rate of the power data packet according to the first data volume and the second data volume, and to judge whether it is necessary to change the communication channel currently transmitting the power data packet according to the packet loss rate.

5. A terminal comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor loads the computer program, it executes the method according to any one of claims 1 to 3.

6. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, characterized in that: When the computer program is loaded by a processor, the method according to any one of claims 1 to 3 is executed.