Smart city perception data full-process management method and system based on directory chain

By adopting a perceived data management method based on directory chains in smart cities, the problems of data silos and low throughput are solved, and the full process intelligent management and efficient sharing of perceived data are realized.

CN120067216AActive Publication Date: 2025-05-30BEIJING RONGXIN DATAINFO SCI & TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510460168.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-14
Publication Date
2025-05-30
Estimated Expiration
2045-04-14

AI Technical Summary

Technical Problem

There is a data silo problem in perceived data in smart cities, low data sharing efficiency, insufficient data credibility, and the throughput of traditional blockchain technology is low, making it difficult to support the real-time management of massive perceived data.

Method used

The full-process management method of smart city perceptual data based on directory chain is adopted. By storing the perceptual data of the perceptual device in the main chain and the sub-chain, data is read based on permission matching, and life cycle management is performed based on storage time limits, thereby realizing the full-process intelligent management of perceptual data.

Benefits of technology

It realizes intelligent management of perceived data throughout the process, improves data sharing efficiency, enhances data security and credibility, and supports real-time management of massive perceived data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120067216A_ABST
    Figure CN120067216A_ABST
Patent Text Reader

Abstract

The invention provides a directory chain-based smart city perception data full-process management method and system. The method comprises the steps of obtaining device log information of sensing devices in a smart city, registering in a preset directory chain, obtaining a sensing device DID, obtaining data element information of the sensing devices in the smart city, processing the data element information, and storing the data element information in a storage layer of the directory chain through a preset contract in combination with identity information of the sensing devices. Acquiring user permission information according to a data reading instruction of a user, performing permission matching, if the matching is passed, sending a data reading request to the directory chain, extracting corresponding data from the directory chain according to the data reading request, performing decryption processing, and sending the data to a user side for display; the sensing data of the sensing equipment in the smart city are stored in the main chain and the sub-chain respectively, data reading is performed based on permission matching, and life cycle management is performed based on the storage time limit, so that whole-process intelligent management of the sensing data is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart city data management. Specifically, it relates to a full-process management method and system for smart city perception data based on a directory chain. Background Art

[0002] Currently, there are problems of data islands in the perception data generated by devices such as cameras, traffic lights, and sensors in smart cities. These data are scattered in different department systems, sharing requires complex approvals, resulting in low efficiency. Moreover, the data credibility is insufficient and there is a risk of leakage. The entire life cycle of data from collection, storage to destruction lacks unified technical control. Traditional blockchain technology has low throughput and is difficult to support the real-time uploading of massive perception data. Existing data directory management systems rely on a centralized architecture, with single-point failures and trust defects.

[0003] In view of the above problems, there is an urgent need for effective technical solutions. Summary of the Invention

[0004] The purpose of the present application is to provide a full-process management method and system for smart city perception data based on a directory chain, which can store the perception data of perception devices in a smart city in a main chain and a sub-chain respectively, perform data reading based on permission matching, and perform life cycle management based on storage time limits, so as to realize the intelligent management of the full process of perception data.

[0005] The present application also provides a full-process management method for smart city perception data based on a directory chain, including the following steps: Obtain the device log information of perception devices in a smart city and register it with a preset directory chain to obtain a perception device DID; Obtain the data element information of perception devices in a smart city, process it, and store it in the storage layer of the directory chain through a preset contract in combination with the perception device identity information; According to the user's data reading instruction, obtain the user permission information and perform permission matching. If the matching is passed, send the data reading request to the directory chain; Extract the corresponding encrypted data of the perception device from the directory chain according to the data reading request, perform decryption processing, and send it to the user side for display.

[0006] Optionally, in the full-process management method for smart city perception data based on a directory chain in the present application, the step of obtaining the device log information of perception devices in a smart city and registering it with a preset directory chain to obtain a perception device DID includes: Obtain the device log information of perception devices in a smart city and extract the device code, device operation record data, and device health assessment data; Generate a public-private key pair corresponding to the sensing device through a preset public-private key pair generation method, including a public key and a private key; Register with a preset directory chain according to the device encoding and the public key to obtain a sensing device DID.

[0007] Optionally, in the method for full-process management of smart city sensing data based on a directory chain described in this application, the method of obtaining data element information of sensing devices in the smart city, processing the data, and storing the data in the storage layer of the directory chain according to the sensing device identity information through a preset contract includes: Obtain data element information of sensing devices in the smart city, including data category information, data access permission information, and data source information; Store the data category information, data access permission information, data source information, and a preset public key in combination with the sensing device DID in the first storage layer of the main chain of the directory chain through a preset contract.

[0008] Optionally, in the method for full-process management of smart city sensing data based on a directory chain described in this application, it further includes: Obtain the second storage layer of the directory chain sub-chain associated with the main chain of the directory chain according to the sensing device DID; Digitally sign the device operation record data and device health assessment data according to the private key and insert a preset timestamp to obtain encrypted data of the sensing device; Store the encrypted data of the sensing device in the second storage layer.

[0009] Optionally, in the method for full-process management of smart city sensing data based on a directory chain described in this application, the method of obtaining user permission information according to the user's data reading instruction, performing permission matching, and if the matching is passed, sending the data reading request to the directory chain includes: Obtain the user's data reading instruction, and obtain the user permission information and the sensing device DID of the data to be read according to the data reading instruction; Query the main chain of the directory chain according to the sensing device DID to obtain data access permission information; Match the user permission information with the data access permission information; If the matching is passed, send the data reading request to the directory chain.

[0010] Optionally, in the method for full-process management of smart city sensing data based on a directory chain described in this application, the method of extracting the corresponding encrypted data of the sensing device from the directory chain according to the data reading request, decrypting the data, and sending the data to the user side for display includes: Extract the corresponding encrypted data of the sensing device from the sub-chain of the directory chain according to the data reading request, and perform data decryption processing with the private key to obtain the data set of the sensing device to be read; Send the data set of the sensing device to be read to the user side for display.

[0011] Optionally, in the full-process management method for smart city sensing data based on the directory chain in this application, it further includes: Obtain the preset storage period and the actual storage time of the sensing device data; Compare according to the preset storage period and the actual storage time to obtain the insufficient storage rate; Compare the insufficient storage rate with the first preset storage warning threshold and the second preset storage warning threshold respectively; If it is less than or equal to the first preset storage warning threshold, delete the data; If it is greater than the first preset storage warning threshold and less than or equal to the second preset storage warning threshold, output an insufficient storage warning; If it is greater than the second preset storage warning threshold, no warning is output.

[0012] In the second aspect, this application provides a full-process management system for smart city sensing data based on the directory chain. The system includes: a memory and a processor. The memory includes a program for the full-process management method for smart city sensing data based on the directory chain. When the program for the full-process management method for smart city sensing data based on the directory chain is executed by the processor, the following steps are implemented: Obtain the device log information of the sensing devices in the smart city and register it with the preset directory chain to obtain the DID of the sensing device; Obtain the data element information of the sensing devices in the smart city, process it, and store it in the storage layer of the directory chain through a preset contract in combination with the identity information of the sensing device; According to the data reading instruction of the user, obtain the user permission information and perform permission matching. If the matching is passed, send the data reading request to the directory chain; Extract the corresponding encrypted data of the sensing device from the directory chain according to the data reading request, perform decryption processing, and send it to the user side for display.

[0013] Optionally, in the full-process management system for smart city sensing data based on the directory chain in this application, the obtaining the device log information of the sensing devices in the smart city and registering it with the preset directory chain to obtain the DID of the sensing device includes: Obtain the device log information of the sensing devices in the smart city, and extract the device code, device operation record data, and device health assessment data; Generate a public-private key pair corresponding to the sensing device through a preset public-private key pair generation method, including a public key and a private key; Register with a preset directory chain according to the device code and the public key to obtain a sensing device DID.

[0014] Optionally, in the full-process management system for smart city sensing data based on a directory chain described in this application, obtaining the data element information of the sensing devices in the smart city, processing it, and storing it in the storage layer of the directory chain through a preset contract according to the sensing device identity information includes: Obtain the data element information of the sensing devices in the smart city, including data category information, data access permission information, and data source information; Store the data category information, data access permission information, data source information, and the preset public key combined with the sensing device DID in the first storage layer of the main chain of the directory chain through a preset contract.

[0015] As can be seen from the above, the full-process management method and system for smart city sensing data based on a directory chain provided in this application realize the full-process intelligent management of sensing data by storing the sensing data of the sensing devices in the smart city in the main chain and the sub-chain respectively, performing data reading based on permission matching, and performing life cycle management based on the storage time limit.

[0016] Other features and advantages of this application will be described in the subsequent specification, and part of them will become obvious from the specification, or can be understood by implementing the embodiments of this application. The objectives and other advantages of this application can be realized and obtained through the structures specifically pointed out in the written specification and the drawings. Description of the Drawings

[0017] To more clearly illustrate the technical solutions of the embodiments of this application, the following will briefly introduce the drawings required to be used in the embodiments of this application. It should be understood that the following drawings only show some embodiments of this application, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.

[0018] Figure 1 It is a flowchart of the full-process management method for smart city sensing data based on a directory chain provided in the embodiments of this application; Figure 2 It is a flowchart of obtaining a sensing device DID for the full-process management method for smart city sensing data based on a directory chain provided in the embodiments of this application; Figure 3 It is a high-level flowchart of the methods of various embodiments of this application, and these methods can be used for the full-process management method for smart city sensing data based on a directory chain. Detailed implementation manners

[0019] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and illustrated herein generally can be arranged and designed in a variety of different configurations. Therefore, the detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed present application, but merely represents selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts fall within the scope of protection of the present application.

[0020] It should be noted that similar reference numerals and letters indicate similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of the present application, the terms "first", "second", etc. are only used for descriptive distinction and cannot be understood as indicating or implying relative importance.

[0021] Please refer to Figure 1 , Figure 1 which is a flowchart of a full-process management method for smart city perception data based on a directory chain in some embodiments of the present application. This full-process management method for smart city perception data based on a directory chain is used in terminal devices, such as computers, mobile phone terminals, etc. This full-process management method for smart city perception data based on a directory chain includes the following steps: S11. Obtain the device log information of the perception devices in the smart city and register it with a preset directory chain to obtain the DID of the perception device; S12. Obtain the data element information of the perception devices in the smart city, process it, and store it in the storage layer of the directory chain through a preset contract in combination with the identity information of the perception device; S13. According to the data reading instruction of the user, obtain the user permission information and perform permission matching. If the matching is passed, send the data reading request to the directory chain; S14. Extract the corresponding encrypted data of the perception device from the directory chain according to the data reading request, perform decryption processing, and send it to the user side for display.

[0022] It should be noted that in order to realize the full - process intelligent management of the perception data of multiple perception devices in the smart city, first, the perception devices are registered in the directory chain to obtain a unique identity identifier, which is convenient for subsequent data collection and uploading to the chain for storage. Then, the collected perception data is processed to obtain data element information and encrypted perception device data. The data element information is stored in the main chain of the directory chain, and the encrypted perception device data is stored in the sub - chain of the directory chain. The main chain and the sub - chain are associated according to the unique identity identifier. By setting a hierarchical directory structure, the storage pressure is reduced and the data throughput is improved. During the data reading process, user permission verification is required. Only users who pass the verification are allowed to access the relevant data, which improves data security. Finally, the relevant data is decrypted according to the obtained private key and sent to the user terminal for display.

[0023] Please refer to Figure 2 , Figure 2 FIG. Figure 2 is a flowchart of obtaining the DID of a perception device in the full - process management method of smart - city perception data based on a directory chain in some embodiments of the present application. According to an embodiment of the present invention, the method for obtaining the device log information of a perception device in the smart city and registering it with a preset directory chain to obtain the DID of the perception device includes: S21. Obtain the device log information of the perception device in the smart city, and extract the device code, device operation record data, and device health assessment data; S22. Generate a public - private key pair corresponding to the perception device through a preset public - private key pair generation method, including a public key and a private key; S23. Register with the preset directory chain according to the device code and the public key to obtain the DID of the perception device.

[0024] It should be noted that there are many perception devices in the smart city, such as cameras and sensors. To ensure the association between the data and the perception devices, first, a public - private key pair of the perception device is generated through a preset public - private key pair generation method. Then, the device code, device operation record data, and device health assessment data are extracted according to the perception device log information. The device code of the perception device is combined with the public key of the perception device and submitted to the directory chain for registration to obtain the DID of the perception device, that is, the unique identity identifier. The device operation record data and the device health assessment data are the perception data obtained by the perception device, which are used for subsequent storage in the sub - chain of the directory chain after encryption processing.

[0025] According to an embodiment of the present invention, the method for obtaining the data element information of the perception device in the smart city, processing it, and storing it in the storage layer of the directory chain according to the perception device identity information through a preset contract includes: Obtain the data element information of the perception device in the smart city, including data category information, data access permission information, and data source information; The data category information, data access permission information, data source information, and a preset public key are stored in the first storage layer of the main chain of the directory chain through a preset contract in combination with the DID of the sensing device.

[0026] It should be noted that in this application, a hierarchical directory architecture is constructed. The main chain is used to store lightweight data, such as data category information, data access permissions, and data source information, and the sub-chain is used to store the encrypted data of the sensing device, aiming to reduce the data storage pressure and improve the data throughput of the directory chain.

[0027] According to an embodiment of the present invention, it further includes: Obtain the second storage layer of the directory chain sub-chain associated with the main chain of the directory chain according to the DID of the sensing device; Perform digital signature on the device operation record data and device health assessment data according to the private key and insert a preset timestamp to obtain the encrypted data of the sensing device; Store the encrypted data of the sensing device in the second storage layer.

[0028] It should be noted that the main chain of the directory chain and the sub-chain of the directory chain are associated according to the DID of the sensing device. The main chain stores data element information, and the sub-chain stores the encrypted data of the sensing device. Digital signature is performed and a preset timestamp is inserted through a preset private key, aiming to ensure the authenticity of data collection and the credibility of time.

[0029] According to an embodiment of the present invention, the step of obtaining user permission information according to the user's data reading instruction, performing permission matching, and if the matching is passed, sending the data reading request to the directory chain includes: Obtain the user's data reading instruction, and obtain the user permission information and the DID of the sensing device of the data to be read according to the data reading instruction; Query the main chain of the directory chain according to the DID of the sensing device to obtain the data access permission information; Match the user permission information with the data access permission information; If the matching is passed, send the data reading request to the directory chain.

[0030] It should be noted that when a certain user needs to access the data in the directory chain, a data reading request will be sent. First, obtain the user permission information and the DID of the sensing device of the data to be read, query the main chain of the directory chain according to the DID of the sensing device to obtain the data access permission information, match the user permission information with the data access permission information. If the matching fails, reject the data reading request. If the matching is passed, send the data reading request to the directory chain.

[0031] According to an embodiment of the present invention, extracting corresponding encrypted data of the sensing device from the directory chain according to a data reading request, performing decryption processing, and sending it to the user side for display includes: Extracting corresponding encrypted data of the sensing device from the sub-chain of the directory chain according to the data reading request, and performing data decryption processing through the private key to obtain a dataset of the sensing device to be read; Sending the dataset of the sensing device to be read to the user side for display.

[0032] It should be noted that after the data reading request passes, the corresponding data is queried according to the DID of the sensing device of the data to be read, then decryption processing is performed, and then it is sent to the data application user for viewing.

[0033] According to an embodiment of the present invention, it further includes: Obtaining the preset storage period and the actual storage time of the sensing device data; Comparing the preset storage period with the actual storage time to obtain an insufficient storage rate; Comparing the insufficient storage rate with a first preset insufficient storage warning threshold and a second preset insufficient storage warning threshold respectively; If it is less than or equal to the first preset insufficient storage warning threshold, the data is deleted; If it is greater than the first preset insufficient storage warning threshold and less than or equal to the second preset insufficient storage warning threshold, an insufficient storage warning is output; If it is greater than the second preset insufficient storage warning threshold, no warning is output.

[0034] It should be noted that the end of the full-process management of sensing data should be data time limit management. To ensure that data management meets the time limit and minimize the data storage volume, it is necessary to compare the preset storage period and the actual storage time of the sensing device data to obtain an insufficient storage rate. The insufficient storage rate refers to the ratio of the difference between the preset storage period and the actual storage time to the preset storage period. Then, the insufficient storage rate is compared with the first preset insufficient storage warning threshold and the second preset insufficient storage warning threshold respectively. Among them, the first preset insufficient storage warning threshold is less than the second preset insufficient storage warning threshold. In this embodiment, the first preset insufficient storage warning threshold is set to 0.01, and the second preset insufficient storage warning threshold is 0.2. For example, if the preset storage period is 60 days and the actual storage time is 59 days, then (60 - 59) / 60 = 0.017, which is greater than the first preset insufficient storage warning threshold and less than the second preset insufficient storage warning threshold, so an insufficient storage warning is output. If the preset storage period is 60 days and the actual storage time is 59.5 days, then (60 - 59.5) / 60 = 0.008, which is less than the first preset insufficient storage warning threshold, so the data is deleted.

[0035] Please refer to Figure 3 , Figure 3This is a high-level flowchart of the methods for various embodiments of the present application, and these methods can be used for the full-process management method of smart city perception data based on the directory chain. For example, in step S332, according to the user's data reading instruction, user permission information is obtained and matched with the data access permission information. If the match fails, the data reading request is rejected. If the match passes, the data reading request is sent to the directory chain to extract the corresponding data for the user to view.

[0036] It is worth mentioning that according to the embodiments of the present invention, it further includes: Obtain the preset storage requirement level of the perception device data, including low level or high level; If it is less than or equal to the first preset storage limit warning threshold and the storage level is low level, the data is deleted; If it is less than or equal to the first preset storage limit warning threshold and the storage level is high level, the deletion instruction is sent to the corresponding data owner; If it is confirmed for deletion, the data is deleted; If it is denied for deletion, the data is backed up to the cloud, and a data processing log response is output to the directory chain operation and maintenance center.

[0037] It should be noted that since the preset storage period has not been fully reached when performing the data deletion operation, to further ensure data security, it is necessary to further determine that the preset storage requirement level of the perception device data is low level or high level. If it is low level, the data can be directly deleted. If it is high level, the deletion instruction is sent to the corresponding data owner. If it is confirmed for deletion, the data deletion is executed. If it is denied for deletion, the data is backed up to the cloud, and a data processing log response is output to the directory chain operation and maintenance center, and finally the data processing method is determined.

[0038] It is worth mentioning that according to the embodiments of the present invention, it further includes: Obtain the data capacity of the perception device data; Input the data capacity, preset storage period, and preset storage requirement level into a preset storage requirement prediction model for processing to obtain storage requirement evaluation parameters; Allocate data storage media according to the storage requirement evaluation parameters.

[0039] It should be noted that different data of the perception device should be allocated appropriate storage media to ensure data security. Through the preset storage requirement prediction model, the data capacity, preset storage period, and preset storage requirement level are processed to obtain storage requirement evaluation parameters. Among them, the preset storage requirement prediction model is trained by obtaining the data capacity, preset storage period, and preset storage requirement level of a large number of historical samples and the corresponding storage requirement evaluation parameters.

[0040] It is worth mentioning that, according to an embodiment of the present invention, it further includes: Obtain traffic flow data within a preset time period, process it, and obtain a traffic flow volatility rate; Obtain real-time weather data and data collection time point data; Input the traffic flow volatility rate, real-time weather data, and data collection time point data into a preset traffic congestion prediction model for processing to obtain traffic congestion prediction parameters; Adjust the corresponding signal indicator lights according to the traffic congestion prediction parameters.

[0041] It should be noted that in a smart city, perception data analysis is an important part. The application of smart traffic indicator lights reduces the probability of traffic congestion. In order to achieve traffic congestion prediction, the traffic flow data within a preset time period obtained is processed to obtain a traffic flow volatility rate. The traffic flow volatility rate refers to the ratio of the difference between the traffic flow data in the latter time period and the traffic flow data in the former time period to the traffic flow data in the former time period. Then, the obtained traffic flow volatility rate, real-time weather data, and data collection time point data are input into a preset traffic congestion prediction model for processing to obtain traffic congestion prediction parameters. Among them, the preset traffic congestion prediction model is obtained by training with a large number of historical samples of traffic flow volatility rates, real-time weather data, data collection time point data, and corresponding traffic congestion prediction parameters. Finally, the corresponding signal indicator lights are adjusted according to the obtained traffic congestion prediction parameters to reduce the congestion time and improve traffic efficiency.

[0042] The present invention also discloses a full-process management system for smart city perception data based on a directory chain, including a memory and a processor. The memory includes a program for the full-process management method of smart city perception data based on a directory chain. When the program for the full-process management method of smart city perception data based on a directory chain is executed by the processor, the following steps are implemented: Obtain the device log information of the perception devices in the smart city and register it with a preset directory chain to obtain a perception device DID; Obtain the data element information of the perception devices in the smart city, process it, and store it in the storage layer of the directory chain through a preset contract in combination with the perception device identity information; According to the user's data reading instruction, obtain the user permission information and perform permission matching. If the matching is passed, send the data reading request to the directory chain; Extract the encrypted data of the corresponding perception device from the directory chain according to the data reading request, decrypt it, and send it to the user side for display.

[0043] It should be noted that in order to achieve the full - process intelligent management of the perception data of multiple perception devices in the smart city, first, the perception devices are registered in the directory chain to obtain a unique identity identifier, which is convenient for subsequent data collection and on - chain storage. Then, the collected perception data is processed to obtain data element information and encrypted perception device data. The data element information is stored in the main chain of the directory chain, and the encrypted perception device data is stored in the sub - chain of the directory chain. The main chain and the sub - chain are associated according to the unique identity identifier. By setting a hierarchical directory structure, the storage pressure is reduced and the data throughput is improved. During the data reading process, user permission verification is required. Only users who pass the verification are allowed to access the relevant data, which improves data security. Finally, the relevant data is decrypted according to the obtained private key and sent to the user side for display.

[0044] According to an embodiment of the present invention, the method of obtaining the device log information of the perception devices in the smart city and registering them with a preset directory chain to obtain the DID of the perception device includes: Obtain the device log information of the perception devices in the smart city, and extract the device code, device operation record data, and device health assessment data; Generate a public - private key pair corresponding to the perception device through a preset public - private key pair generation method, including a public key and a private key; Register with the preset directory chain according to the device code and the public key to obtain the DID of the perception device.

[0045] It should be noted that there are many perception devices in the smart city, such as cameras and sensors. In order to ensure the association between the data and the perception devices, first, a public - private key pair of the perception device is generated through a preset public - private key pair generation method. Then, the device code, device operation record data, and device health assessment data are extracted according to the perception device log information. The device code of the perception device is combined with the public key of the perception device and submitted to the directory chain for registration to obtain the DID of the perception device, that is, the unique identity identifier. The device operation record data and the device health assessment data are the perception data obtained by the perception device, which are used for subsequent storage in the sub - chain of the directory chain after encryption processing.

[0046] According to an embodiment of the present invention, the method of obtaining the data element information of the perception devices in the smart city, processing it, and storing it in the storage layer of the directory chain according to the identity information of the perception device through a preset contract includes: Obtain the data element information of the perception devices in the smart city, including data category information, data access permission information, and data source information; Store the data category information, data access permission information, data source information, and the preset public key combined with the DID of the perception device in the first storage layer of the main chain of the directory chain through a preset contract.

[0047] It should be noted that in this application, a hierarchical directory structure is constructed. The main chain is used to store lightweight data, such as data category information, data access permissions, and data source information, and the sub-chain is used to store encrypted data of sensing devices, aiming to reduce the data storage pressure and improve the data throughput of the directory chain.

[0048] According to an embodiment of the present invention, it further includes: Obtain a second storage layer of the directory chain sub-chain associated with the main chain of the directory chain according to the DID of the sensing device; Perform digital signature on the device operation record data and device health assessment data according to the private key and insert a preset time stamp to obtain encrypted data of the sensing device; Store the encrypted data of the sensing device in the second storage layer.

[0049] It should be noted that the main chain of the directory chain and the sub-chain of the directory chain are associated according to the DID of the sensing device. The main chain stores data element information, and the sub-chain stores encrypted data of the sensing device. Digital signature is performed and a preset time stamp is inserted through a preset private key, aiming to ensure the authenticity of data collection and the credibility of time.

[0050] According to an embodiment of the present invention, the step of obtaining user permission information according to the user's data reading instruction, performing permission matching, and if the matching is passed, sending the data reading request to the directory chain includes: Obtain the user's data reading instruction, and obtain the user permission information and the DID of the sensing device of the data to be read according to the data reading instruction; Query the main chain of the directory chain according to the DID of the sensing device to obtain data access permission information; Match the user permission information with the data access permission information; If the matching is passed, send the data reading request to the directory chain.

[0051] It should be noted that when a certain user needs to access the data in the directory chain, a data reading request will be sent. First, obtain the user permission information and the DID of the sensing device of the data to be read, query the main chain of the directory chain according to the DID of the sensing device to obtain data access permission information, match the user permission information with the data access permission information. If the matching fails, reject the data reading request. If the matching is passed, send the data reading request to the directory chain.

[0052] According to an embodiment of the present invention, the step of extracting the corresponding encrypted data of the sensing device from the directory chain according to the data reading request, performing decryption processing, and sending it to the user side for display includes: Extract the corresponding encrypted data of the sensing device from the sub-chain of the directory chain according to the data reading request, and perform data decryption processing through the private key to obtain the data set of the sensing device to be read; Send the dataset of the sensing device to be read to the client for display.

[0053] It should be noted that after the data reading request is approved, the corresponding data is obtained by querying according to the DID of the sensing device of the data to be read, then decryption processing is performed, and then it is sent to the data application user for viewing.

[0054] According to an embodiment of the present invention, it further includes: Obtain the preset storage period and the actual storage time of the sensing device data; Compare according to the preset storage period and the actual storage time to obtain the storage limit shortage rate; Compare the storage limit shortage rate with a first preset storage limit warning threshold and a second preset storage limit warning threshold respectively; If it is less than or equal to the first preset storage limit warning threshold, delete the data; If it is greater than the first preset storage limit warning threshold and less than or equal to the second preset storage limit warning threshold, output a storage limit shortage warning; If it is greater than the second preset storage limit warning threshold, no warning is output.

[0055] It should be noted that the end of the full-process management of sensing data should be data time limit management. In order to ensure that data management meets the time limit and minimize the data storage volume, it is necessary to compare according to the preset storage period and the actual storage time of the sensing device data to obtain the storage limit shortage rate. The storage limit shortage rate refers to the ratio of the difference between the preset storage period and the actual storage time to the preset storage period. Then, the storage limit shortage rate is compared with a first preset storage limit warning threshold and a second preset storage limit warning threshold respectively. Among them, the first preset storage limit warning threshold is less than the second preset storage limit warning threshold. In this embodiment, the first preset storage limit warning threshold is set to 0.01, and the second preset storage limit warning threshold is 0.2. For example, if the preset storage period is 60 days and the actual storage time is 59 days, then (60 - 59) / 60 = 0.017, which is greater than the first preset storage limit warning threshold and less than the second preset storage limit warning threshold, so a storage limit shortage warning is output. If the preset storage period is 60 days and the actual storage time is 59.5 days, then (60 - 59.5) / 60 = 0.008, which is less than the first preset storage limit warning threshold, so the data is deleted.

[0056] For example, in step S332, according to the user's data reading instruction, obtain the user permission information and match it with the data access permission information. If the match fails, reject the data reading request. If the match passes, send the data reading request to the directory chain to extract the corresponding data for the user to view.

[0057] It is worth mentioning that according to an embodiment of the present invention, it further includes: Obtain the preset storage requirement level for the data of the sensing device, including a low level or a high level; If it is less than or equal to the first preset storage limit warning threshold and the storage level is low, delete the data; If it is less than or equal to the first preset storage limit warning threshold and the storage level is high, send a deletion instruction to the corresponding data owner; If the deletion is confirmed, delete the data; If the deletion is denied, back up the data to the cloud and output a data processing log response to the directory chain operation and maintenance center.

[0058] It should be noted that since the preset storage period has not been fully reached when performing the data deletion operation, to further ensure data security, it is necessary to further determine that the preset storage requirement level for the data of the sensing device is low or high. If it is low, the data can be directly deleted. If it is high, a deletion instruction is sent to the corresponding data owner. If the deletion is confirmed, the data is deleted. If the deletion is denied, the data is backed up to the cloud and a data processing log response is output to the directory chain operation and maintenance center, and finally the data processing method is determined.

[0059] It is worth mentioning that according to an embodiment of the present invention, it further includes: Obtain the data capacity of the data of the sensing device; Input the data capacity, preset storage period, and preset storage requirement level into a preset storage requirement prediction model for processing to obtain storage requirement evaluation parameters; Allocate a data storage medium according to the storage requirement evaluation parameters.

[0060] It should be noted that different data of the sensing device should be allocated appropriate storage media to ensure data security. Through the preset storage requirement prediction model, the data capacity, preset storage period, and preset storage requirement level are processed to obtain storage requirement evaluation parameters. Among them, the preset storage requirement prediction model is obtained by training with the data capacity, preset storage period, and preset storage requirement level of a large number of historical samples and the corresponding storage requirement evaluation parameters.

[0061] It is worth mentioning that according to an embodiment of the present invention, it further includes: Obtain the traffic flow data within a preset time period and process it to obtain the traffic flow volatility; Obtain the real-time weather data and data collection time point data; Input the traffic flow volatility, real-time weather data, and data collection time point data into a preset traffic congestion prediction model for processing to obtain traffic congestion prediction parameters; Adjust the corresponding signal indicator according to the traffic congestion prediction parameters.

[0062] It should be noted that in a smart city, the analysis of perception data is an important part. The application of smart traffic lights reduces the probability of traffic congestion. To achieve traffic congestion prediction, the traffic flow data within a preset time period is processed to obtain the traffic flow volatility. The traffic flow volatility refers to the ratio of the difference between the traffic flow data of the latter time period and the traffic flow data of the previous time period to the traffic flow data of the previous time period. Then, the obtained traffic flow volatility, real-time weather data, and data collection time point data are input into a preset traffic congestion prediction model for processing to obtain traffic congestion prediction parameters. Among them, the preset traffic congestion prediction model is obtained by training with a large number of historical samples of traffic flow volatility, real-time weather data, data collection time point data, and the corresponding traffic congestion prediction parameters. Finally, the corresponding signal lights are adjusted according to the obtained traffic congestion prediction parameters to reduce the congestion time and improve traffic efficiency.

[0063] The full-process management method and system for smart city perception data based on a directory chain disclosed in the present invention realize the full-process intelligent management of perception data by separately storing the perception data of perception devices in the smart city in the main chain and the sub-chain, performing data reading based on permission matching, and performing life cycle management based on the storage time limit.

[0064] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed with each other can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical, or other forms.

[0065] The units described as separate components above may or may not be physically separated, and the components shown as units may or may not be physical units; they can be located in one place or distributed to multiple network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0066] In addition, in each embodiment of the present invention, the various functional units can all be integrated in one processing unit, or each unit can be separately used as one unit, or two or more units can be integrated in one unit; the above-mentioned integrated units can be implemented in the form of hardware, or in the form of a combination of hardware and software functional units.

[0067] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a readable storage medium. When the program is executed, it performs the steps included in the above method embodiments; and the aforementioned storage medium includes: removable storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, etc., various media that can store program codes.

[0068] Alternatively, if the above integrated units of the present invention are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present invention, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. The software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the various embodiments of the present invention. And the aforementioned storage medium includes: removable storage devices, ROM, RAM, magnetic disks, or optical disks, etc., various media that can store program codes.

Claims

1. The full-process management method of smart city perception data based on directory chain is characterized by: The following steps are involved: Obtain the device log information of the sensing device in the smart city, register it with the preset directory chain, and obtain the sensing device DID; Obtaining data metadata of sensing devices in the smart city, processing it, and storing it in the storage layer of the directory chain through a preset contract in combination with the identity information of the sensing devices; According to the user's data reading instruction, obtain the user's permission information and perform permission matching. If the match is successful, send the data reading request to the directory chain; The corresponding sensing device encrypted data is extracted from the directory chain according to the data reading request, decrypted, and sent to the user end for display.

2. According to claim 1, the method for managing the entire process of smart city perception data of the directory chain is characterized in that: The device log information of the sensing device in the smart city is obtained, and the device DID is obtained by registering with the preset directory chain, including: Obtain device log information of sensing devices in smart cities, and extract device codes, device operation record data, and device health assessment data; Generate a public-private key pair corresponding to the sensing device by using a preset public-private key pair generation method, including a public key and a private key; Register with a preset directory chain according to the device code and the public key to obtain the sensing device DID.

3. The full-process management method of smart city perception data of the directory chain according to claim 2 is characterized in that: The data metadata of the sensing device in the smart city is obtained and processed, and stored in the storage layer of the directory chain through a preset contract according to the identity information of the sensing device, including: Obtain data metadata of sensing devices in smart cities, including data category information, data access permission information, and data source information; The data category information, data access permission information, data source information and preset public key are combined with the sensing device DID and stored in the first storage layer of the directory chain main chain through a preset contract.

4. The full-process management method of smart city perception data based on directory chain according to claim 3 is characterized in that: Also includes: Acquire a second storage layer of a directory chain sub-chain associated with the directory chain main chain according to the sensing device DID; Digitally sign the device operation record data and device health assessment data according to the private key and insert a preset timestamp to obtain the sensing device encrypted data; The encrypted data of the perceptual device is stored in the second storage layer.

5. According to claim 4, the method for managing the entire process of smart city perception data of the directory chain is characterized in that: The method of obtaining user permission information according to the user's data reading instruction and performing permission matching, and if the matching is successful, sending the data reading request to the directory chain, includes: Obtain the user's data reading instruction, and obtain the user's authority information and the DID of the sensing device of the data to be read according to the data reading instruction; According to the sensing device DID, the directory chain main chain is queried to obtain data access permission information; Matching the user authority information with the data access authority information; If the match is successful, the data read request is sent to the directory chain.

6. The full-process management method of smart city perception data of the directory chain according to claim 5 is characterized in that: The extracting the corresponding sensing device encrypted data from the directory chain according to the data reading request, decrypting the data, and sending the data to the user end for display includes: Extract the corresponding encrypted data of the sensing device from the sub-chain of the directory chain according to the data reading request, and perform data decryption processing using the private key to obtain the sensing device data set to be read; The to-be-read sensor device data set is sent to the user end for display.

7. The method for managing the entire process of smart city perception data based on the directory chain according to claim 6 is characterized in that: Also includes: Obtain the preset storage period and actual storage time of the sensing device data; Compare the preset storage period with the actual storage time to obtain a storage limit deficiency rate; Comparing the insufficient storage rate with the first preset storage limit warning threshold and the second preset storage limit warning threshold respectively; If it is less than or equal to the first preset storage limit warning threshold, the data is deleted; If it is greater than the first preset storage limit warning threshold and less than or equal to the second preset storage limit warning threshold, then an insufficient storage limit warning is output; If it is greater than the second preset storage limit warning threshold, no warning is output.

8. The directory chain's smart city perception data full-process management system is characterized by: The method comprises a memory and a processor, wherein the memory comprises a program of a method for managing the whole process of smart city perception data of a directory chain, and when the program of the method for managing the whole process of smart city perception data of a directory chain is executed by the processor, the following steps are implemented: Obtain the device log information of the sensing device in the smart city, register it with the preset directory chain, and obtain the sensing device DID; Obtaining data metadata of sensing devices in the smart city, processing it, and storing it in the storage layer of the directory chain through a preset contract in combination with the identity information of the sensing devices; According to the user's data reading instruction, obtain the user's permission information and perform permission matching. If the match is successful, send the data reading request to the directory chain; The corresponding sensing device encrypted data is extracted from the directory chain according to the data reading request, decrypted, and sent to the user end for display.

9. The directory chain smart city perception data full process management system according to claim 8 is characterized in that: The device log information of the sensing device in the smart city is obtained, and the device DID is obtained by registering with the preset directory chain, including: Obtain device log information of sensing devices in smart cities, and extract device codes, device operation record data, and device health assessment data; Generate a public-private key pair corresponding to the sensing device by using a preset public-private key pair generation method, including a public key and a private key; Register with a preset directory chain according to the device code and the public key to obtain the sensing device DID.

10. The full-process management system of smart city perception data based on directory chain according to claim 9 is characterized in that: The data metadata of the sensing device in the smart city is obtained and processed, and stored in the storage layer of the directory chain through a preset contract according to the identity information of the sensing device, including: Obtain data metadata of sensing devices in smart cities, including data category information, data access permission information, and data source information; The data category information, data access permission information, data source information and preset public key are combined with the sensing device DID and stored in the first storage layer of the directory chain main chain through a preset contract.

Citation Information

Patent Citations

  • Block chain fragmentation method and block chain network system

    CN114389878A

  • Data sharing method and device based on block chain, storage medium and processor

    CN115695421A

  • Smart city operation and maintenance management method and system based on artificial intelligence, and storage medium

    CN116758744A

  • Data access system, method and equipment based on block chain and storage medium

    CN117978438A

  • Government affair data sharing system, method and device based on block chain technology

    CN118413338A