New energy machinery monitoring data secure transmission method and system based on data encryption

By establishing an encryption pool and a decryption pool for each monitoring data, the problem of real-time and simultaneous collection in the secure transmission of monitoring data is solved, efficient and accurate data transmission and display is achieved, and the security of the transmission process is enhanced.

CN118659918APending Publication Date: 2024-09-17NANJING ZEAHO ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411068615.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing monitoring data secure transmission technology cannot ensure real-time data collection at the same time, resulting in high monitoring data display delays and deviations in analysis results, and cannot provide full-process security protection for the transmission process.

Method used

By establishing an encryption pool and a decryption pool for each monitoring data, the monitoring data is encrypted and transmitted, and decrypted through the decryption pool at the receiving end. The data refresh interval is set to find the data timestamp at the same moment for display and update.

Benefits of technology

It improves the real-time and accuracy of monitoring data, ensures that monitoring data is collected at the same time, reduces display delay, and enhances the security of the transmission process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118659918A
    Figure CN118659918A
Patent Text Reader

Abstract

The invention discloses a new energy machinery monitoring data secure transmission method and system based on data encryption, and relates to the technical field of monitoring data secure transmission, and the method comprises the following steps: obtaining monitoring data; establishing an encryption pool and a decryption pool for each piece of monitoring data; performing data encryption on the monitoring data through the encryption pool; transmitting the encrypted data to a monitoring center, and decrypting the encrypted data through a decryption pool after the monitoring center receives the encrypted data to obtain monitoring data; the monitoring data is displayed through the monitoring center; the method is used for solving the problems that the real-time performance of monitoring data display cannot be ensured and whether the monitoring data are acquired at the same time or not in the existing monitoring data secure transmission technology of new energy mechanical equipment; the display delay of the monitoring data is relatively high; and the analysis result has great deviation when the relationship between different monitoring data needs to be analyzed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of secure transmission of monitoring data, and in particular to a method and system for secure transmission of monitoring data of new energy machinery based on data encryption. Background Art

[0002] In the existing production field, some mechanical equipment have also begun to use new energy as a power source, such as new energy transport vehicles or new energy production and processing machinery. During the operation of new energy machinery, it is necessary to monitor the working hours, energy consumption and operating status data of the new energy machinery. The above data are the core production data in the production field, and the security of data transmission must be guaranteed during the transmission process; monitoring data security transmission technology refers to the use of various technical means to transmit data that needs to be monitored in real time such as equipment or environment, and the technology needs to ensure the security of data during the transmission process. Monitoring data security transmission technology usually needs to ensure the real-time and accuracy of monitoring data transmission, minimize the delay in monitoring data transmission, and ensure that the monitoring data will not be leaked or tampered with during the transmission process.

[0003] The existing monitoring data security transmission technology usually performs centralized encryption on the entire monitoring data, and the encryption algorithm is too complicated, resulting in a high delay in displaying the monitoring data after transmission, and the real-time nature of the data cannot be ensured. At the same time, the monitoring data security transmission technology does not consider whether different data are monitoring data collected at the same time. Since different sensors have different collection frequencies, the monitored monitoring data may not be data at the same time. When it is necessary to analyze the relationship between different monitoring data, it will cause a large deviation in the analysis results. In addition, different sensors also need to be transmitted to the same storage area before centralized encryption. The existing monitoring data security transmission technology cannot ensure the entire process of the transmission process. For example, in the patent application with publication number CN112887295A, a data transmission security detection method, system, device and medium based on blockchain are disclosed. This solution only protects the security of data transmission, but cannot ensure that the collected monitoring data are collected at the same time, cannot ensure the real-time nature of the monitoring data, and is not conducive to analyzing the relationship between different monitoring data. The existing monitoring data security transmission technology also has the problem of being unable to ensure the real-time nature of the monitoring data display and whether the monitoring data is collected at the same time, resulting in a high delay in the display of the monitoring data and a large deviation in the analysis results when the relationship between different monitoring data needs to be analyzed. Summary of the invention

[0004] The present invention aims to solve one of the technical problems in the prior art to at least a certain extent, monitor new energy machinery through monitoring sensors, obtain monitoring data, establish an encryption pool and a decryption pool for each monitoring data, and then encrypt the monitoring data through the encryption pool to obtain encrypted data, and transmit the encrypted data to a monitoring center. After receiving the encrypted data, the monitoring center decrypts the encrypted data through the decryption pool to obtain the monitoring data, and finally sets a first data refresh interval. Within the first data refresh interval, the monitoring values ​​of various types of monitoring data with the same data timestamp are searched, marked as display data, and the display data of the monitoring center is updated to solve the problems that the existing monitoring data security transmission technology still has the problem of being unable to ensure the real-time display of the monitoring data and whether the monitoring data is collected at the same time, resulting in a high delay in the display of the monitoring data and a large deviation in the analysis result when the relationship between different monitoring data needs to be analyzed.

[0005] To achieve the above objectives, in a first aspect, the present application provides a method for securely transmitting monitoring data of new energy machinery based on data encryption, comprising the following steps: Monitor new energy machinery through monitoring sensors to obtain monitoring data; Establishing an encryption pool and a decryption pool for each monitoring data, wherein the encryption pool corresponds to the decryption pool; Encrypting the monitoring data through the encryption pool to obtain encrypted data; The encrypted data is transmitted to the monitoring center. After receiving the encrypted data, the monitoring center decrypts the encrypted data through the decryption pool to obtain the monitoring data; The monitoring data is displayed through the monitoring center.

[0006] Furthermore, the monitoring data includes operating time, operating temperature, operating amplitude or operating energy consumption.

[0007] Furthermore, establishing an encryption pool and a decryption pool for each monitoring data includes the following sub-steps: Get the number of monitoring data, named data quantity; Establish encryption pools with the number of data and decryption pools with the number of data; The encryption pool and the decryption pool are allocated according to the category of the monitoring data, that is, one encryption pool and one decryption pool only encrypt and decrypt one category of monitoring data.

[0008] Furthermore, encrypting the monitoring data through the encryption pool to obtain the encrypted data includes the following sub-steps: Transcode the acquired monitoring data to obtain data coding; Perform encryption calculation on the data encoding to obtain encrypted data.

[0009] Furthermore, transcoding the acquired monitoring data includes the following sub-steps: When acquiring monitoring data, a timestamp of the monitoring data is generated synchronously, which is named as data timestamp; Obtain a value in the monitoring data, mark it as a monitoring value, combine the monitoring value with the data timestamp, and obtain a data group to be encrypted, wherein the format of the data group to be encrypted is (X, Y), where X is the monitoring value and Y is the data timestamp; The elements in the data group to be encrypted are numbered by the symbol S n It means, where n is a non-zero natural number and n is the sequence number of S; Based on ASCII encoding, according to S n Convert the data group to be encrypted into a hexadecimal code, marked as data code, and marked with the symbol T n Indicates that, T n With S n Corresponding.

[0010] Furthermore, the encryption calculation of the data encoding includes the following sub-steps: A universal key is randomly generated, and the universal key is refreshed every hour; Based on ASCII encoding, the universal key is converted into a decimal code according to the characters, named the key code, and the characters in the key code are numbered, and the symbol P is used to represent the characters. m Indicates, where m is a non-zero natural number and m is the serial number of P; Starting from m=1, the encryption algorithm starts and P is obtained. m , calculate max(n) / P m , mark the integer of the calculation result as H, where max(n) is the maximum value of n, and calculate max(n)%P m , mark the calculation result as D, where % is the modulo operator; Starting from n=1, each P m T n There are H coding groups in total. The coding groups are numbered from left to right. i Indicates that, i is a non-zero natural number and i is the serial number of G, the maximum value of i is H, and T max(n)-D+1 To T max(n) Integration marks are coded end numbers; Starting from i=1, G i With G i+1 Swap, then add i+2, and G again i With G i+1Replace and repeat until i=H or H+1, and then stop. Name the final string as the first encrypted code, and concatenate the code mantissa after the first encrypted code to obtain the second encrypted code. Update T based on the second encryption code n , the encryption algorithm ends, and it is determined whether m is max(m), where max(m) is the maximum value of m. If m is not equal to max(m), m+1 is added and the encryption algorithm is executed again; if m is equal to max(m), the second encrypted code finally obtained is marked as the third encrypted code; The third encrypted code is further processed.

[0011] Furthermore, further processing the third encryption code includes the following sub-steps: Every two characters in the third code are combined into a group, and the symbol R is used to represent the characters. j Represents, where j is a non-zero natural number and j is the serial number of R; Based on ASCII encoding, R j The hexadecimal encoding is converted into characters, and the resulting string is marked as encrypted data.

[0012] Further, the encrypted data is transmitted to the monitoring center. After receiving the encrypted data, the monitoring center decrypts the encrypted data through the decryption pool to obtain the monitoring data, which includes the following sub-steps: Transmit the encrypted data to the corresponding decryption pool of the monitoring center; All decryption pools synchronously decrypt the received encrypted data, where the data decryption is the inverse operation of the data encryption; The encrypted data is decrypted by the decryption pool to obtain a decrypted data group, which includes a monitoring value and a data timestamp.

[0013] Furthermore, displaying the monitoring data by the monitoring center includes the following sub-steps: Setting a first data refresh interval, and searching for monitoring values ​​of various monitoring data with the same data timestamp within the first data refresh interval, and marking them as display data; Update the display data of the monitoring center.

[0014] In a second aspect, the present application provides a new energy machinery monitoring data security transmission system based on data encryption, including a machinery monitoring module, an encryption and decryption pool construction module, an encryption pool encryption module, a transmission decryption module and a data display module; the machinery monitoring module, the encryption and decryption pool construction module, the encryption pool encryption module and the data display module are respectively connected to the transmission decryption module data; The machinery monitoring module is used to monitor the new energy machinery through monitoring sensors and obtain monitoring data; The encryption and decryption pool construction module is used to establish an encryption pool and a decryption pool for each monitoring data, and the encryption pool corresponds to the decryption pool; The encryption pool encryption module is used to encrypt the monitoring data through the encryption pool to obtain encrypted data; The transmission decryption module is used to transmit the encrypted data to the monitoring center. After receiving the encrypted data, the monitoring center decrypts the encrypted data through the decryption pool to obtain the monitoring data; The data display module is used to display the monitoring data through the monitoring center.

[0015] Beneficial effects of the present invention: The present invention monitors new energy machinery through monitoring sensors, obtains monitoring data, and establishes an encryption pool and a decryption pool for each monitoring data. The advantage is that each encryption pool and decryption pool exist independently and do not share resources. When the monitoring data is encrypted and transmitted, it can be displayed in the monitoring center more quickly. The encryption pool and the decryption pool only correspond to a fixed type of monitoring data. Therefore, when obtaining the monitoring data, only its value can be obtained without obtaining the label of the monitoring data. The existing monitoring data security transmission technology adopts an overall encryption method. This method requires obtaining the label of each monitoring data, which improves the timeliness of the display of the monitoring data. The present invention encrypts the monitoring data through an encryption pool to obtain encrypted data, transmits the encrypted data to a monitoring center, and after receiving the encrypted data, the monitoring center decrypts the encrypted data through a decryption pool to obtain monitoring data, and finally sets a first data refresh interval. Within the first data refresh interval, the monitoring values ​​of various types of monitoring data with the same data timestamp are searched, marked as display data, and the display data of the monitoring center is updated. The advantage is that by setting the timestamp, it is ensured that the displayed monitoring data are all the operating parameters of the machine at the same time, which is convenient for the subsequent analysis of the relationship between different operating parameters of the machine, thereby improving the accuracy and effectiveness of the monitoring data. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a functional block diagram of the system of the present invention; Figure 2 A diagram showing the relationship between the encryption pool and the decryption pool of the present invention; Figure 3 is a flow chart of the steps of the method of the present invention; Figure 4 It is a schematic structural diagram of the electronic device of the present invention. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0018] Example 1, please refer to Figure 1 As shown, the present application provides a new energy machinery monitoring data security transmission system based on data encryption, including a machinery monitoring module, an encryption and decryption pool building module, an encryption pool encryption module, a transmission decryption module and a data display module; the machinery monitoring module, the encryption and decryption pool building module, the encryption pool encryption module and the data display module are respectively connected to the transmission decryption module data.

[0019] The machinery monitoring module is used to monitor new energy machinery through monitoring sensors to obtain monitoring data; the monitoring data includes but is not limited to operating time, operating temperature, operating amplitude and operating energy consumption; In actual applications, the operating time is obtained through a timer, the operating temperature is obtained through a temperature sensor, the operating amplitude is obtained through a vibration sensor, and the operating energy consumption is obtained through an energy consumption sensor. The types of monitoring data are not limited to the types shown in this embodiment. Due to the existence of the encryption pool and the decryption pool, all parameters of new energy machinery can be monitored at the same time. Different from the existing monitoring data security transmission technology, it can ensure the timeliness of the monitoring data display and the monitoring data is data at the same time while performing a large amount of monitoring.

[0020] See also Figure 2 As shown, the encryption and decryption pool construction module is used to establish an encryption pool and a decryption pool for each monitoring data, and the encryption pool corresponds to the decryption pool; The encryption and decryption pool construction module is configured with an encryption and decryption pool construction strategy, which includes: obtaining the number of monitoring data, named as data number; establishing encryption pools with the number of data and decryption pools with the number of data; allocating encryption pools and decryption pools according to the category of monitoring data, that is, one encryption pool and one decryption pool only encrypt and decrypt one category of monitoring data; In actual applications, the number of data obtained is 4, so 4 encryption pools and 4 decryption pools are established, and they are assigned to the monitoring data to obtain duration encryption pool, duration decryption pool, temperature encryption pool, temperature decryption pool, amplitude encryption pool, amplitude decryption pool, energy consumption encryption pool and energy consumption decryption pool.

[0021] The encryption pool encryption module is used to encrypt the monitoring data through the encryption pool to obtain encrypted data; the encryption pool encryption module includes a data transcoding unit, a data encryption unit and an encryption coding unit; The data transcoding unit is used to transcode the acquired monitoring data to obtain data coding; The data transcoding unit is configured with a data transcoding strategy, which includes: when acquiring monitoring data, synchronously generating a timestamp of the monitoring data, which is named as a data timestamp; Get the value in the monitoring data, mark it as the monitoring value, combine the monitoring value with the data timestamp, and obtain the data group to be encrypted. The format of the data group to be encrypted is (X, Y), where X is the monitoring value and Y is the data timestamp; The elements in the data group to be encrypted are numbered by the symbol S n It means, where n is a non-zero natural number and n is the sequence number of S; Based on ASCII encoding, according to S n Convert the data group to be encrypted into a hexadecimal code, marked as data code, and marked with the symbol T n Indicates that, T n With S n corresponding; In practical applications, this embodiment takes the processing of the temperature encryption pool and the temperature decryption pool as an example to explain the specific encryption transmission process of the monitoring data; the operating temperature is obtained to be 45°C, and the data timestamp when the operating temperature is obtained is 1716868553000. Since the operating temperature is 45°C, the monitoring value is 45, and the data group to be encrypted is (45, 1716868553000). The data groups S1 to S1 are obtained by numbering. 16 They are "4", "5", "," "1", "7", "1", "6", "8", "6", "8", "5", "5", "3", "0", "0", and "0", 1≤n≤16, S n The brackets are not included in the figure. The brackets are only provided for the convenience of distinguishing the data groups to be encrypted in this embodiment. 16 They are 34, 35, 2C, 31, 37, 31, 36, 38, 36, 38, 35, 35, 33, 30, 30 and 30; The data encryption unit is used to perform encryption calculation on the data encoding to obtain encrypted data; The data encryption unit is configured with a data encryption strategy, which includes: randomly generating a universal key, which is refreshed every hour; Based on ASCII encoding, the universal key is converted into a decimal code according to the characters, named the key code, and the characters in the key code are numbered, and the symbol P is used to represent the characters. m Indicates, where m is a non-zero natural number and m is the serial number of P; Starting from m=1, the encryption algorithm starts and P is obtained. m, calculate max(n) / P m , mark the integer of the calculation result as H, where max(n) is the maximum value of n, and calculate max(n)%P m , mark the calculation result as D, where % is the modulo operator; In actual applications, the randomly generated universal key consists of numbers and uppercase and lowercase letters, with a minimum of 6 digits and a maximum of 10 digits. It is refreshed every hour to ensure the security of the universal key. The randomly generated universal key is "siL598", and the characters P1 to P in the key code are converted and numbered based on the ASCII code. 14 They are 1, 1, 5, 1, 0, 5, 7, 6, 5, 3, 5, 7, 5 and 6 respectively; max(n) is 16. Taking P1 as an example, P1 is 1, and H is calculated to be 16. Further calculation shows that D is 0; Starting from n=1, each P m T n There are H coding groups in total. The coding groups are numbered from left to right. i Indicates that, i is a non-zero natural number and i is the serial number of G, the maximum value of i is H, and T max(n)-D+1 To T max(n) Integration marks are coded end numbers; Starting from i=1, G i With G i+1 Swap, then add i+2, and G again i With G i+1 Replace and repeat until i=H or H+1, and then stop. Name the final string as the first encrypted code, and concatenate the code mantissa after the first encrypted code to obtain the second encrypted code. Update T based on the second encryption code n , the encryption algorithm ends, and it is determined whether m is max(m), where max(m) is the maximum value of m. If m is not equal to max(m), m+1 is added and the encryption algorithm is executed again; if m is equal to max(m), the second encrypted code finally obtained is marked as the third encrypted code; In practical applications, since D=0, there is no coding bit. Starting from T1, each T n There are 16 coding groups, namely G1 to G 16 They are 34, 35, 2C, 31, 37, 31, 36, 38, 36, 38, 35, 35, 33, 30, 30 and 30, swap T1 with T2, swap T3 with T4, and so on, until T 15 With T 16Swap, because there is no coding bit, so the first code is the second code, the second code is 3534312C313738363836353530333030, update T1 to T 16 They are 35, 34, 31, 2C, 31, 37, 38, 36, 38, 36, 35, 35, 30, 33, 30, and 30. At this time, m=1 and max(m) is 14, so m+1 is added, and m=2. The encryption algorithm is executed again. If P m If it is zero, skip the encryption algorithm and determine again whether m is max(m); for all P m After all processing, the third encrypted code is 31362C35303836313837353334353030.

[0022] The encryption coding unit is used for further processing the third encryption code; The encryption coding unit is configured with an encryption coding strategy, which includes: combining every two characters in the third code into a group, and j Represents, where j is a non-zero natural number and j is the serial number of R; Based on ASCII encoding, R j Convert the hexadecimal code into characters and mark the resulting string as encrypted data; In practical applications, the combination of R1 to R 16 They are 31, 36, 2C, 35, 30, 38, 36, 31, 38, 37, 35, 33, 34, 35, 30 and 30 respectively. The encrypted data obtained after conversion is "16,5086187534500".

[0023] The transmission decryption module is used to transmit the encrypted data to the monitoring center. After receiving the encrypted data, the monitoring center decrypts the encrypted data through the decryption pool to obtain the monitoring data; The transmission decryption module is configured with a transmission decryption strategy, which includes: transmitting the encrypted data to the corresponding decryption pool of the monitoring center; all decryption pools synchronously decrypt the received encrypted data, and data decryption is the inverse operation of data encryption; the encrypted data is decrypted by the decryption pool to obtain a decrypted data group, which includes a monitoring value and a data timestamp; in this embodiment, the encrypted monitoring data is the operating temperature, that is, it is encrypted by the temperature encryption pool and then transmitted to the temperature decryption pool, and the temperature decryption pool decrypts the encrypted data by a universal key. Since data decryption is the inverse operation of data encryption, the specific analysis process is no longer displayed in this embodiment; the decrypted data group obtained by decryption by the temperature decryption pool is (45, 1716868553000), wherein the monitoring value is 45 and the data timestamp is 1716868553000.

[0024] The data display module is used to display the monitoring data through the monitoring center; The data display module is configured with a data display strategy, which includes: setting a first data refresh interval, searching for monitoring values ​​of various monitoring data with the same data timestamp within the first data refresh interval, and marking them as display data; updating the display data of the monitoring center; In practical applications, the first data refresh interval is to adapt to the frequency of data collection by different sensors and to find the monitoring data collected at the same time within a certain time range; the existing monitoring data security transmission technology also has a first data refresh interval, and the value is usually set to 1s, and it cannot guarantee that the monitoring data are parameters collected at the same time. Due to the existence of the encryption pool and the decryption pool, the first data refresh interval in this embodiment can be set to 0.5s at the lowest, which greatly reduces the delay in displaying the monitoring data; the first data refresh interval is set to 0.5s to find the operating time, operating temperature, operating amplitude and operating energy consumption with the same data timestamp, and display them in the monitoring center.

[0025] Example 2, please refer to Figure 4 As shown, the present application provides a method for securely transmitting monitoring data of new energy machinery based on data encryption, comprising the following steps: Step S1, monitor the new energy machinery through monitoring sensors to obtain monitoring data; the monitoring data includes but is not limited to operating time, operating temperature, operating amplitude and operating energy consumption.

[0026] Step S2, establishing an encryption pool and a decryption pool for each monitoring data, the encryption pool corresponds to the decryption pool; Step S2 includes the following sub-steps: Step S201, obtaining the number of monitoring data, named data number; Step S202, establishing a data number encryption pool and a data number decryption pool; Step S203, allocating an encryption pool and a decryption pool according to the category of the monitoring data, that is, one encryption pool and one decryption pool only encrypt and decrypt one category of monitoring data.

[0027] Step S3, encrypting the monitoring data through the encryption pool to obtain encrypted data; Step S3 includes the following sub-steps: Step S301, transcoding the acquired monitoring data to obtain data encoding; Step S301 includes the following sub-steps: Step S301.1, when acquiring monitoring data, synchronously generate a timestamp of the monitoring data, named data timestamp; Step S301.2, obtaining a value in the monitoring data, marking it as a monitoring value, combining the monitoring value with the data timestamp to obtain a data group to be encrypted, the format of the data group to be encrypted is (X, Y), where X is the monitoring value and Y is the data timestamp; Step S301.3, number the elements in the data group to be encrypted, using the symbol S n It means, where n is a non-zero natural number and n is the sequence number of S; Step S301.4, based on ASCII encoding, according to S n Convert the data group to be encrypted into a hexadecimal code, marked as data code, and marked with the symbol T n Indicates that, T n With S n corresponding; Step S302, performing encryption calculation on the data code to obtain encrypted data; Step S302 includes the following sub-steps: Step S302.1, randomly generate a universal key, and the universal key is refreshed once every hour; Step S302.2: Based on the ASCII code, convert the universal key into a decimal code according to the characters, name it the key code, and number the characters in the key code. m Indicates, where m is a non-zero natural number and m is the serial number of P; Step S302.3, starting from m=1, the encryption algorithm starts and obtains P m , calculate max(n) / P m , mark the integer of the calculation result as H, where max(n) is the maximum value of n, and calculate max(n)%P m , mark the calculation result as D, where % is the modulo operator; Step S302.4, starting from n=1, each P m T n There are H coding groups in total. The coding groups are numbered from left to right. iIndicates that, i is a non-zero natural number and i is the serial number of G, the maximum value of i is H, and T max(n)-D+1 To T max(n) Integration marks are coded end numbers; Step S302.5, starting from i=1, G i With G i+1 Swap, then add i+2, and G again i With G i+1 Replace and repeat until i=H or H+1, and then stop. Name the final string as the first encrypted code, and concatenate the code mantissa after the first encrypted code to obtain the second encrypted code. Step S302.6, update T based on the second encryption code n , the encryption algorithm ends, and it is determined whether m is max(m), where max(m) is the maximum value of m. If m is not equal to max(m), m+1 is added and the encryption algorithm is executed again; if m is equal to max(m), the second encrypted code finally obtained is marked as the third encrypted code; Step S302.7, further processing the third encryption code; Step S302.7 includes the following sub-steps: Step S302.7.a, combining every two characters in the third code into a group, using the symbol R j Represents, where j is a non-zero natural number and j is the serial number of R; Step S302.7.b, based on ASCII encoding, convert R j The hexadecimal encoding is converted into characters, and the resulting string is marked as encrypted data.

[0028] Step S4, transmitting the encrypted data to the monitoring center, and after receiving the encrypted data, the monitoring center decrypts the encrypted data through the decryption pool to obtain monitoring data; Step S4 includes the following sub-steps: Step S401, transmitting the encrypted data to the corresponding decryption pool of the monitoring center; Step S402: All decryption pools synchronously decrypt the received encrypted data, where data decryption is the inverse operation of data encryption. Step S403, decrypting the encrypted data through the decryption pool to obtain a decrypted data group, which includes a monitoring value and a data timestamp.

[0029] Step S5, displaying the monitoring data through the monitoring center; Step S5 includes the following sub-steps: Step S501, setting a first data refresh interval, and searching for monitoring values ​​of various monitoring data with the same data timestamp within the first data refresh interval, and marking them as display data; Step S502: updating the display data of the monitoring center.

[0030] Example 3, please refer to Figure 4 As shown, Figure 4 The structural diagram of an electronic device is illustrated, and the electronic device may include: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus. The memory stores computer-readable instructions, and the processor can call the instructions in the memory. When the computer-readable instructions are executed by the processor, the steps in the method for secure transmission of monitoring data of new energy machinery based on data encryption are executed to achieve the following functions: obtaining monitoring data; establishing an encryption pool and a decryption pool for each monitoring data; encrypting the monitoring data through the encryption pool; transmitting the encrypted data to the monitoring center, and after receiving the encrypted data, the monitoring center decrypts the encrypted data through the decryption pool to obtain the monitoring data; and displaying the monitoring data through the monitoring center.

[0031] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0032] Embodiment 4. The present application also provides a computer-readable storage medium. The present application provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method for secure transmission of new energy machinery monitoring data based on data encryption are executed to achieve the following functions: obtaining monitoring data; establishing an encryption pool and a decryption pool for each monitoring data; encrypting the monitoring data through the encryption pool; transmitting the encrypted data to a monitoring center, and after the monitoring center receives the encrypted data, decrypting the encrypted data through the decryption pool to obtain the monitoring data; and displaying the monitoring data through the monitoring center.

[0033] Through the description of the above implementation methods, the embodiments of the present invention can be provided as methods, systems or computer program products. Based on such an understanding, the above technical solutions can be essentially or partly contributed to the prior art in the form of software products, which can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and include several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0034] In the embodiments provided in the present application, it should be understood that the disclosed system or method can be implemented in other ways. The embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of systems, modules and units can be electrical, mechanical or other forms.

[0035] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for securely transmitting monitoring data of new energy machinery based on data encryption, characterized in that: The steps include: Monitor new energy machinery through monitoring sensors to obtain monitoring data; Establishing an encryption pool and a decryption pool for each monitoring data, wherein the encryption pool corresponds to the decryption pool; Encrypting the monitoring data through the encryption pool to obtain encrypted data; The encrypted data is transmitted to the monitoring center. After receiving the encrypted data, the monitoring center decrypts the encrypted data through the decryption pool to obtain the monitoring data; The monitoring data is displayed through the monitoring center.

2. The method for secure transmission of new energy machinery monitoring data based on data encryption according to claim 1 is characterized in that: The monitoring data includes operating time, operating temperature, operating amplitude or operating energy consumption.

3. The method for secure transmission of new energy machinery monitoring data based on data encryption according to claim 2 is characterized in that: Establishing an encryption pool and a decryption pool for each monitoring data includes the following sub-steps: Get the number of monitoring data, named data quantity; Establish encryption pools with the number of data and decryption pools with the number of data; The encryption pool and the decryption pool are allocated according to the category of the monitoring data, that is, one encryption pool and one decryption pool only encrypt and decrypt one category of monitoring data.

4. The method for secure transmission of new energy machinery monitoring data based on data encryption according to claim 3 is characterized in that: Encrypting the monitoring data through the encryption pool to obtain the encrypted data includes the following sub-steps: Transcode the acquired monitoring data to obtain data coding; Perform encryption calculation on the data encoding to obtain encrypted data.

5. The method for secure transmission of new energy machinery monitoring data based on data encryption according to claim 4 is characterized in that: Transcoding the acquired monitoring data includes the following sub-steps: When acquiring monitoring data, a timestamp of the monitoring data is generated synchronously, which is named as data timestamp; Obtain a value in the monitoring data, mark it as a monitoring value, combine the monitoring value with the data timestamp, and obtain a data group to be encrypted, wherein the format of the data group to be encrypted is (X, Y), where X is the monitoring value and Y is the data timestamp; The elements in the data group to be encrypted are numbered by the symbol S n It means, where n is a non-zero natural number and n is the sequence number of S; Based on ASCII encoding, according to S n Convert the data group to be encrypted into a hexadecimal code, marked as data code, and marked with the symbol T n Indicates that, T n With S n Corresponding.

6. The method for secure transmission of new energy machinery monitoring data based on data encryption according to claim 5 is characterized in that: The encryption calculation of data encoding includes the following sub-steps: A universal key is randomly generated, and the universal key is refreshed every hour; Based on ASCII encoding, the universal key is converted into a decimal code according to the characters, named the key code, and the characters in the key code are numbered, and the symbol P is used to represent the characters. m Indicates, where m is a non-zero natural number and m is the serial number of P; Starting from m=1, the encryption algorithm starts and P is obtained. m , calculate max(n) / P m , mark the integer of the calculation result as H, where max(n) is the maximum value of n, and calculate max(n)%P m , mark the calculation result as D, where % is the modulo operator; Starting from n=1, each P m T n There are H coding groups in total. The coding groups are numbered from left to right. i Indicates that, i is a non-zero natural number and i is the serial number of G, the maximum value of i is H, and T max(n)-D+1 To T max(n) Integration marks are coded end numbers; Starting from i=1, G i With G i+1 Swap, then add i+2, and G again i With G i+1 Replace and repeat until i=H or H+1, and then stop. Name the final string as the first encrypted code, and concatenate the code mantissa after the first encrypted code to obtain the second encrypted code. Update T based on the second encryption code n , the encryption algorithm ends, and it is determined whether m is max(m), where max(m) is the maximum value of m. If m is not equal to max(m), m+1 is added and the encryption algorithm is executed again; if m is equal to max(m), the second encrypted code finally obtained is marked as the third encrypted code; The third encrypted code is further processed.

7. The method for secure transmission of new energy machinery monitoring data based on data encryption according to claim 6 is characterized in that: Further processing of the third encryption code includes the following sub-steps: Every two characters in the third code are combined into a group, and the symbol R is used to represent the characters. j Represents, where j is a non-zero natural number and j is the serial number of R; Based on ASCII encoding, R j The hexadecimal encoding is converted into characters, and the resulting string is marked as encrypted data.

8. The method for secure transmission of new energy machinery monitoring data based on data encryption according to claim 7 is characterized in that: The encrypted data is transmitted to the monitoring center. After receiving the encrypted data, the monitoring center decrypts the encrypted data through the decryption pool to obtain the monitoring data, including the following sub-steps: Transmit the encrypted data to the corresponding decryption pool of the monitoring center; All decryption pools synchronously decrypt the received encrypted data, where the data decryption is the inverse operation of the data encryption; The encrypted data is decrypted by the decryption pool to obtain a decrypted data group, which includes a monitoring value and a data timestamp.

9. The method for secure transmission of new energy machinery monitoring data based on data encryption according to claim 8 is characterized in that: Displaying monitoring data through the monitoring center includes the following sub-steps: Setting a first data refresh interval, and searching for monitoring values ​​of various monitoring data with the same data timestamp within the first data refresh interval, and marking them as display data; Update the display data of the monitoring center.

10. A system for securely transmitting monitoring data of new energy machinery based on data encryption, used to implement the method for securely transmitting monitoring data of new energy machinery based on data encryption according to any one of claims 1 to 9, characterized in that: It includes a mechanical monitoring module, an encryption and decryption pool construction module, an encryption pool encryption module, a transmission decryption module and a data display module; the mechanical monitoring module, the encryption and decryption pool construction module, the encryption pool encryption module and the data display module are respectively connected to the transmission decryption module data; The machinery monitoring module is used to monitor the new energy machinery through monitoring sensors and obtain monitoring data; The encryption and decryption pool construction module is used to establish an encryption pool and a decryption pool for each monitoring data, and the encryption pool corresponds to the decryption pool; The encryption pool encryption module is used to encrypt the monitoring data through the encryption pool to obtain encrypted data; The transmission decryption module is used to transmit the encrypted data to the monitoring center. After receiving the encrypted data, the monitoring center decrypts the encrypted data through the decryption pool to obtain the monitoring data; The data display module is used to display the monitoring data through the monitoring center.