A full-process management method and system for smart city perception data based on directory chain

Through directory chain technology, smart city perception data is stored in the main chain and sub-chain, and permission matching and storage time limit management are performed, which solves the problems of data silos and credibility and realizes efficient and secure management of perception data.

CN120067216BActive Publication Date: 2025-09-30BEIJING RONGXIN DATAINFO SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

There are data silos in the perception data of smart cities, low data sharing efficiency, insufficient data credibility, and a lack of unified full life cycle management. Traditional blockchain technology has low throughput and is difficult to support real-time uploading of massive perception data to the chain.

Method used

Through a directory chain-based method, the perception data of sensing devices in the smart city are stored in the main chain and sub-chain respectively. Data reading is based on permission matching, and life cycle management is performed based on storage time limit, realizing full-process intelligent management of perception data.

Benefits of technology

It realizes the full-process intelligent management of perception data, improves data throughput, enhances data security and credibility, reduces storage pressure, and ensures the real-time and integrity of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120067216B_ABST
    Figure CN120067216B_ABST
Patent Text Reader

Abstract

This application provides a full-process management method and system for smart city perception data based on a directory chain. The method includes: obtaining device log information of perception devices in a smart city and registering them with a preset directory chain to obtain the perception device DID, obtaining data metadata of the perception 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 perception device identity information; obtaining user permission information according to the user's data read instruction, and performing permission matching; if the match is successful, sending a data read request to the directory chain; extracting the corresponding data from the directory chain according to the data read request, decrypting it, and sending it to the user end for display; this application realizes full-process intelligent management of perception data by storing the perception data of perception devices in a smart city in a main chain and a sub-chain respectively, performing data reading based on permission matching, and performing lifecycle management based on storage time limit.
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, and more specifically, to a directory chain-based full-process management method and system for smart city perception data. Background Art

[0002] At present, the perception data generated by devices such as cameras, traffic lights and sensors in smart cities have data silos and are scattered across different department systems. Sharing requires complex approvals, which is inefficient. In addition, the data lacks credibility and poses a risk of leakage. There is a lack of unified technical management and control over the entire life cycle of data from collection, storage to destruction. Traditional blockchain technology has low throughput and cannot support real-time uploading of massive perception data to the chain. The existing data directory management system relies on a centralized architecture, which has single points of failure and trust defects.

[0003] In response to the above problems, effective technical solutions are urgently needed. Summary of the Invention

[0004] The purpose of this application is to provide a full-process management method and system for smart city perception data based on a directory chain. The method can achieve full-process intelligent management of perception data by storing the perception data of perception devices in the smart city in the main chain and sub-chain respectively, reading data based on permission matching, and performing life cycle management based on storage time limit.

[0005] This application also provides a full-process management method for smart city perception data based on directory chain, including the following steps:

[0006] Obtain device log information of sensing devices in the smart city, register with the preset directory chain, and obtain the sensing device DID;

[0007] Obtaining and processing data metadata of sensing devices in the smart city, 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;

[0008] According to the user's data read instruction, the user's permission information is obtained and permission matching is performed. If the match is successful, the data read request is sent to the directory chain;

[0009] 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.

[0010] Optionally, in the directory chain-based full-process management method for smart city perception data described in this application, obtaining device log information of perception devices in the smart city and registering them with a preset directory chain to obtain the perception device DID includes:

[0011] Obtain device log information from sensing devices within the smart city and extract device codes, device operation record data, and device health assessment data;

[0012] Generate a public-private key pair corresponding to the sensing device using a preset public-private key pair generation method, including a public key and a private key;

[0013] Register with a preset directory chain according to the device code and the public key to obtain the sensing device DID.

[0014] Optionally, in the directory chain-based full-process management method for smart city perception data described in this application, obtaining data metadata of perception devices in the smart city, processing the metadata, and storing the metadata in the storage layer of the directory chain according to the perception device identity information through a preset contract includes:

[0015] Obtain data metadata of sensing devices within the smart city, including data category information, data access permission information, and data source information;

[0016] 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.

[0017] Optionally, the directory chain-based full-process management method for smart city perception data described in this application further includes:

[0018] Acquire a second storage layer of a directory chain sub-chain associated with the directory chain main chain according to the sensing device DID;

[0019] 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;

[0020] The encrypted data of the perceptual device is stored in the second storage layer.

[0021] Optionally, in the full-process management method for smart city perception data based on the directory chain described in this application, obtaining user permission information according to the user's data reading instruction and performing permission matching, and sending the data reading request to the directory chain if the match is successful, includes:

[0022] Obtain the user's data reading instruction, and obtain the user's permission information and the DID of the sensing device to be read according to the data reading instruction;

[0023] Query the directory chain main chain according to the sensing device DID to obtain data access permission information;

[0024] Matching the user authority information with the data access authority information;

[0025] If the match is successful, the data read request is sent to the directory chain.

[0026] Optionally, in the directory chain-based full-process management method for smart city perception data described in the present application, extracting the corresponding perception device encrypted data from the directory chain according to the data read request, decrypting the data, and sending it to the user end for display includes:

[0027] Extract the corresponding encrypted data of the sensing device from the sub-chain of the directory chain according to the data reading request, and decrypt the data using the private key to obtain the sensing device data set to be read;

[0028] The to-be-read sensor data set is sent to the user terminal for display.

[0029] Optionally, the directory chain-based full-process management method for smart city perception data described in this application further includes:

[0030] Obtain the preset storage period and actual storage time of sensor device data;

[0031] Comparing the preset storage period with the actual storage time to obtain a storage limit deficiency rate;

[0032] Comparing the insufficient storage rate with a first preset storage limit warning threshold and a second preset storage limit warning threshold respectively;

[0033] If the value is less than or equal to the first preset storage limit warning threshold, the data is deleted;

[0034] If the amount is greater than the first preset storage limit warning threshold and less than or equal to the second preset storage limit warning threshold, an insufficient storage limit warning is output;

[0035] If it is greater than the second preset storage limit warning threshold, no warning is output.

[0036] In a second aspect, the present application provides a full-process management system for smart city perception data based on a directory chain, the system comprising: a memory and a processor, the memory including a program for a full-process management method for smart city perception data based on a directory chain, and the program for a full-process management method for smart city perception data based on a directory chain, when executed by the processor, implements the following steps:

[0037] Obtain device log information of sensing devices in the smart city, register with the preset directory chain, and obtain the sensing device DID;

[0038] Obtaining and processing data metadata of sensing devices in the smart city, 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;

[0039] According to the user's data read instruction, the user's permission information is obtained and permission matching is performed. If the match is successful, the data read request is sent to the directory chain;

[0040] 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.

[0041] Optionally, in the directory chain-based smart city perception data full-process management system described in this application, obtaining device log information of perception devices in the smart city and registering them with a preset directory chain to obtain the perception device DID includes:

[0042] Obtain device log information from sensing devices within the smart city and extract device codes, device operation record data, and device health assessment data;

[0043] Generate a public-private key pair corresponding to the sensing device using a preset public-private key pair generation method, including a public key and a private key;

[0044] Register with a preset directory chain according to the device code and the public key to obtain the sensing device DID.

[0045] Optionally, in the directory chain-based smart city perception data full-process management system described in this application, obtaining data metadata of perception 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 perception device identity information includes:

[0046] Obtain data metadata of sensing devices within the smart city, including data category information, data access permission information, and data source information;

[0047] 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.

[0048] From the above, it can be seen that the full-process management method and system of smart city perception data based on directory chain provided by this application realizes intelligent management of the whole process of perception data by storing the perception data of perception devices in the smart city in the main chain and sub-chain respectively, reading data based on permission matching, and performing life cycle management based on storage time limit.

[0049] Other features and advantages of the present application will be described in the following description, and in part will become apparent from the description, or understood by practicing the embodiments of the present application. The objectives and other advantages of the present application can be achieved and obtained through the structures particularly pointed out in the written description and the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.

[0051] Figure 1 A flowchart of the full-process management method for smart city perception data based on directory chain provided in an embodiment of the present application;

[0052] Figure 2 A flowchart of obtaining the DID of a sensing device in a full-process management method for smart city sensing data based on a directory chain provided in an embodiment of the present application;

[0053] Figure 3 This is a high-level flowchart of the methods of various embodiments of the present application, which can be used for the full-process management method of smart city perception data based on directory chain. DETAILED DESCRIPTION

[0054] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the 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 of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work fall within the scope of protection of the present application.

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

[0056] Please refer to Figure 1 , Figure 1 This is a flow chart of a directory chain-based full-process management method for smart city perception data in some embodiments of the present application. This directory chain-based full-process management method for smart city perception data is used in terminal devices, such as computers and mobile phones. This directory chain-based full-process management method for smart city perception data includes the following steps:

[0057] S11. Obtain device log information of sensing devices in the smart city and register them with a preset directory chain to obtain the sensing device DID;

[0058] S12. Obtaining and processing data metadata of sensing devices in the smart city, and combining the metadata with the identity information of the sensing devices and storing the metadata in the storage layer of the directory chain through a preset contract;

[0059] S13. According to the user's data read instruction, the user's permission information is obtained and permission matching is performed. If the match is successful, the data read request is sent to the directory chain;

[0060] S14. Extract the corresponding encrypted data of the sensing device from the directory chain according to the data reading request, decrypt it, and send it to the user end for display.

[0061] 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, the perception device is first registered in the directory chain to obtain a unique identity to facilitate subsequent data collection and chain storage. The collected perception data is then processed to obtain data metadata and perception device encrypted data. The data metadata is stored in the directory chain main chain, and the perception device encrypted data is stored in the directory chain sub-chain. The main chain and the sub-chain are associated according to the unique identity. By setting up a hierarchical directory architecture, the storage pressure is reduced and the data throughput is improved. During the data reading process, user authority verification is required. Only users who have passed the verification are allowed to access the relevant data to improve data security. Finally, the relevant data is decrypted according to the obtained private key and sent to the user end for display.

[0062] Please refer to Figure 2 , Figure 2 This is a flowchart of obtaining a sensing device DID in a directory chain-based full-process management method for smart city sensing data in some embodiments of the present application. According to an embodiment of the present invention, obtaining device log information of sensing devices in a smart city and registering them with a preset directory chain to obtain the sensing device DID includes:

[0063] S21. Obtain device log information of sensing devices in the smart city and extract device codes, device operation record data, and device health assessment data;

[0064] S22. Generate a public-private key pair corresponding to the sensing device using a preset public-private key pair generation method, including a public key and a private key;

[0065] S23: Register with a preset directory chain according to the device code and the public key to obtain a sensing device DID.

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

[0067] According to an embodiment of the present invention, obtaining and processing data metadata of sensing devices in a smart city, and storing the data metadata in the storage layer of the directory chain through a preset contract according to the sensing device identity information, includes:

[0068] Obtain data metadata of sensing devices within the smart city, including data category information, data access permission information, and data source information;

[0069] 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.

[0070] It should be noted that this application constructs a hierarchical directory architecture, where 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. The purpose is to reduce data storage pressure and improve the data throughput of the directory chain.

[0071] According to an embodiment of the present invention, the further embodiment includes:

[0072] Acquire a second storage layer of a directory chain sub-chain associated with the directory chain main chain according to the sensing device DID;

[0073] 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;

[0074] The encrypted data of the perceptual device is stored in the second storage layer.

[0075] It should be noted that the directory chain main chain and the directory chain sub-chain are associated based on the DID of the sensing device. The main chain stores data metadata, and the sub-chain stores encrypted data of the sensing device. Digital signatures are performed using preset private keys and preset timestamps are inserted to ensure the authenticity and time credibility of data collection.

[0076] According to an embodiment of the present invention, the process of obtaining user permission information based on a user's data read instruction and performing permission matching, and sending a data read request to a directory chain if the match is successful, includes:

[0077] Obtain the user's data reading instruction, and obtain the user's permission information and the DID of the sensing device to be read according to the data reading instruction;

[0078] Query the directory chain main chain according to the sensing device DID to obtain data access permission information;

[0079] Matching the user authority information with the data access authority information;

[0080] If the match is successful, the data read request is sent to the directory chain.

[0081] It should be noted that when a user needs to view data in the directory chain, a data reading request will be issued. First, the user's permission information and the DID of the sensing device to be read are obtained, and the main chain of the directory chain is queried based on the sensing device DID to obtain the data viewing permission information. The user's permission information is matched with the data viewing permission information. If the match fails, the data reading request is rejected. If the match succeeds, the data reading request is sent to the directory chain.

[0082] According to an embodiment of the present invention, extracting the corresponding sensing device encrypted data from the directory chain according to the data read request, decrypting the data, and sending the data to the user terminal for display includes:

[0083] Extract the corresponding encrypted data of the sensing device from the sub-chain of the directory chain according to the data reading request, and decrypt the data using the private key to obtain the sensing device data set to be read;

[0084] The to-be-read sensor data set is sent to the user terminal for display.

[0085] It should be noted that after the data reading request is approved, the corresponding data is obtained based on the DID query of the sensing device of the data to be read, and then decrypted and sent to the data requesting user for viewing.

[0086] According to an embodiment of the present invention, the further embodiment includes:

[0087] Obtain the preset storage period and actual storage time of sensor device data;

[0088] Comparing the preset storage period with the actual storage time to obtain a storage limit deficiency rate;

[0089] Comparing the insufficient storage rate with a first preset storage limit warning threshold and a second preset storage limit warning threshold respectively;

[0090] If the value is less than or equal to the first preset storage limit warning threshold, the data is deleted;

[0091] If the amount is greater than the first preset storage limit warning threshold and less than or equal to the second preset storage limit warning threshold, an insufficient storage limit warning is output;

[0092] If it is greater than the second preset storage limit warning threshold, no warning is output.

[0093] It should be noted that the end of the whole process management of perception data should be data time limit management. In order to ensure that data management meets the time limit and minimize the amount of data storage, it is necessary to compare the preset storage period and actual storage time of the perception device data to obtain the storage limit deficiency rate. The storage limit deficiency 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 deficiency rate is compared with the first preset storage limit warning threshold and the 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 set to 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, then an insufficient storage limit 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, then the data is deleted.

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

[0095] It is worth mentioning that according to an embodiment of the present invention, the present invention further includes:

[0096] Obtaining a preset storage requirement level for sensor device data, including a low level or a high level;

[0097] If the data is less than or equal to the first preset storage limit warning threshold and the storage level is low, the data is deleted;

[0098] If the amount is less than or equal to the first preset storage limit warning threshold and the storage level is high, a deletion instruction is sent to the corresponding data owner;

[0099] If it is confirmed to be deleted, the data will be deleted;

[0100] If the deletion is denied, the data will be backed up to the cloud and a data processing log response will be output to the directory chain operation and maintenance center.

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

[0102] It is worth mentioning that according to an embodiment of the present invention, the present invention further includes:

[0103] Obtaining data capacity of sensing device data;

[0104] Inputting the data capacity, the preset storage period and the preset storage demand level into a preset storage demand prediction model for processing to obtain storage demand evaluation parameters;

[0105] Data storage media are allocated according to the storage demand evaluation parameters.

[0106] It should be noted that different data of the sensing device should be allocated appropriate storage media to ensure data security. The data should be processed through a preset storage demand prediction model based on the acquired data capacity, preset storage period and preset storage demand level to obtain storage demand evaluation parameters. The preset storage demand prediction model is obtained by training with the data capacity, preset storage period and preset storage demand level of a large number of historical samples and the corresponding storage demand evaluation parameters.

[0107] It is worth mentioning that according to an embodiment of the present invention, the present invention further includes:

[0108] Obtaining traffic flow data within a preset time period and processing it to obtain traffic flow fluctuation rate;

[0109] Get real-time weather data and data collection time point data;

[0110] Inputting the traffic flow fluctuation 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;

[0111] The corresponding signal indicator light is adjusted according to the traffic congestion prediction parameter.

[0112] It should be noted that in smart cities, perception data analysis is an important part. The use of smart traffic lights reduces the probability of traffic congestion. In order to realize traffic congestion prediction, the traffic flow data obtained within the preset time period is processed to obtain the traffic flow fluctuation rate. The traffic flow fluctuation rate 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. The obtained traffic flow fluctuation rate, real-time weather data and data collection time point data are then input into the 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 the traffic flow fluctuation rate, real-time weather data and data collection time point data of a large number of historical samples and the corresponding traffic congestion prediction parameters. Finally, the corresponding signal indicator light is adjusted according to the obtained traffic congestion prediction parameters to reduce congestion time and improve traffic efficiency.

[0113] The present invention also discloses a directory chain-based smart city perception data full-process management system, comprising a memory and a processor. The memory includes a directory chain-based smart city perception data full-process management method program. When the directory chain-based smart city perception data full-process management method program is executed by the processor, the following steps are implemented:

[0114] Obtain device log information of sensing devices in the smart city, register with the preset directory chain, and obtain the sensing device DID;

[0115] Obtaining and processing data metadata of sensing devices in the smart city, 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;

[0116] According to the user's data read instruction, the user's permission information is obtained and permission matching is performed. If the match is successful, the data read request is sent to the directory chain;

[0117] 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.

[0118] 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, the perception device is first registered in the directory chain to obtain a unique identity to facilitate subsequent data collection and chain storage. The collected perception data is then processed to obtain data metadata and perception device encrypted data. The data metadata is stored in the directory chain main chain, and the perception device encrypted data is stored in the directory chain sub-chain. The main chain and the sub-chain are associated according to the unique identity. By setting up a hierarchical directory architecture, the storage pressure is reduced and the data throughput is improved. During the data reading process, user authority verification is required. Only users who have passed the verification are allowed to access the relevant data to improve data security. Finally, the relevant data is decrypted according to the obtained private key and sent to the user end for display.

[0119] According to an embodiment of the present invention, the process of obtaining device log information of sensing devices in a smart city and registering them with a preset directory chain to obtain a DID of the sensing device includes:

[0120] Obtain device log information from sensing devices within the smart city and extract device codes, device operation record data, and device health assessment data;

[0121] Generate a public-private key pair corresponding to the sensing device using a preset public-private key pair generation method, including a public key and a private key;

[0122] Register with a preset directory chain according to the device code and the public key to obtain the sensing device DID.

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

[0124] According to an embodiment of the present invention, obtaining and processing data metadata of sensing devices in a smart city, and storing the data metadata in the storage layer of the directory chain through a preset contract according to the sensing device identity information, includes:

[0125] Obtain data metadata of sensing devices within the smart city, including data category information, data access permission information, and data source information;

[0126] 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.

[0127] It should be noted that this application constructs a hierarchical directory architecture, where 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. The purpose is to reduce data storage pressure and improve the data throughput of the directory chain.

[0128] According to an embodiment of the present invention, the further embodiment includes:

[0129] Acquire a second storage layer of a directory chain sub-chain associated with the directory chain main chain according to the sensing device DID;

[0130] 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;

[0131] The encrypted data of the perceptual device is stored in the second storage layer.

[0132] It should be noted that the directory chain main chain and the directory chain sub-chain are associated based on the DID of the sensing device. The main chain stores data metadata, and the sub-chain stores encrypted data of the sensing device. Digital signatures are performed using preset private keys and preset timestamps are inserted to ensure the authenticity and time credibility of data collection.

[0133] According to an embodiment of the present invention, the process of obtaining user permission information based on a user's data read instruction and performing permission matching, and sending a data read request to a directory chain if the match is successful, includes:

[0134] Obtain the user's data reading instruction, and obtain the user's permission information and the DID of the sensing device to be read according to the data reading instruction;

[0135] Query the directory chain main chain according to the sensing device DID to obtain data access permission information;

[0136] Matching the user authority information with the data access authority information;

[0137] If the match is successful, the data read request is sent to the directory chain.

[0138] It should be noted that when a user needs to view data in the directory chain, a data reading request will be issued. First, the user's permission information and the DID of the sensing device to be read are obtained, and the main chain of the directory chain is queried based on the sensing device DID to obtain the data viewing permission information. The user's permission information is matched with the data viewing permission information. If the match fails, the data reading request is rejected. If the match succeeds, the data reading request is sent to the directory chain.

[0139] According to an embodiment of the present invention, extracting the corresponding sensing device encrypted data from the directory chain according to the data read request, decrypting the data, and sending the data to the user terminal for display includes:

[0140] Extract the corresponding encrypted data of the sensing device from the sub-chain of the directory chain according to the data reading request, and decrypt the data using the private key to obtain the sensing device data set to be read;

[0141] The to-be-read sensor data set is sent to the user terminal for display.

[0142] It should be noted that after the data reading request is approved, the corresponding data is obtained based on the DID query of the sensing device of the data to be read, and then decrypted and sent to the data requesting user for viewing.

[0143] According to an embodiment of the present invention, the further embodiment includes:

[0144] Obtain the preset storage period and actual storage time of sensor device data;

[0145] Comparing the preset storage period with the actual storage time to obtain a storage limit deficiency rate;

[0146] Comparing the insufficient storage rate with a first preset storage limit warning threshold and a second preset storage limit warning threshold respectively;

[0147] If the value is less than or equal to the first preset storage limit warning threshold, the data is deleted;

[0148] If the amount is greater than the first preset storage limit warning threshold and less than or equal to the second preset storage limit warning threshold, an insufficient storage limit warning is output;

[0149] If it is greater than the second preset storage limit warning threshold, no warning is output.

[0150] It should be noted that the end of the whole process management of perception data should be data time limit management. In order to ensure that data management meets the time limit and minimize the amount of data storage, it is necessary to compare the preset storage period and actual storage time of the perception device data to obtain the storage limit deficiency rate. The storage limit deficiency 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 deficiency rate is compared with the first preset storage limit warning threshold and the 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 set to 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, then an insufficient storage limit 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, then the data is deleted.

[0151] For example, in step S332, based on the user's data reading instruction, the user permission information is obtained and matched with the data review 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 review.

[0152] It is worth mentioning that according to an embodiment of the present invention, the present invention further includes:

[0153] Obtaining a preset storage requirement level for sensor device data, including a low level or a high level;

[0154] If the data is less than or equal to the first preset storage limit warning threshold and the storage level is low, the data is deleted;

[0155] If the amount is less than or equal to the first preset storage limit warning threshold and the storage level is high, a deletion instruction is sent to the corresponding data owner;

[0156] If it is confirmed to be deleted, the data will be deleted;

[0157] If the deletion is denied, the data will be backed up to the cloud and a data processing log response will be output to the directory chain operation and maintenance center.

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

[0159] It is worth mentioning that according to an embodiment of the present invention, the present invention further includes:

[0160] Obtaining data capacity of sensing device data;

[0161] Inputting the data capacity, the preset storage period and the preset storage demand level into a preset storage demand prediction model for processing to obtain storage demand evaluation parameters;

[0162] Data storage media are allocated according to the storage demand evaluation parameters.

[0163] It should be noted that different data of the sensing device should be allocated appropriate storage media to ensure data security. The data should be processed through a preset storage demand prediction model based on the acquired data capacity, preset storage period and preset storage demand level to obtain storage demand evaluation parameters. The preset storage demand prediction model is obtained by training with the data capacity, preset storage period and preset storage demand level of a large number of historical samples and the corresponding storage demand evaluation parameters.

[0164] It is worth mentioning that according to an embodiment of the present invention, the present invention further includes:

[0165] Obtaining traffic flow data within a preset time period and processing it to obtain traffic flow fluctuation rate;

[0166] Get real-time weather data and data collection time point data;

[0167] Inputting the traffic flow fluctuation 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;

[0168] The corresponding signal indicator light is adjusted according to the traffic congestion prediction parameter.

[0169] It should be noted that in smart cities, perception data analysis is an important part. The use of smart traffic lights reduces the probability of traffic congestion. In order to realize traffic congestion prediction, the traffic flow data obtained within the preset time period is processed to obtain the traffic flow fluctuation rate. The traffic flow fluctuation rate 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. The obtained traffic flow fluctuation rate, real-time weather data and data collection time point data are then input into the 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 the traffic flow fluctuation rate, real-time weather data and data collection time point data of a large number of historical samples and the corresponding traffic congestion prediction parameters. Finally, the corresponding signal indicator light is adjusted according to the obtained traffic congestion prediction parameters to reduce congestion time and improve traffic efficiency.

[0170] The present invention discloses a directory chain-based full-process management method and system for smart city perception data. By storing the perception data of perception devices in the smart city in the main chain and sub-chain respectively, data is read based on permission matching and life cycle management is performed based on storage time limit, thereby realizing full-process intelligent management of perception data.

[0171] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as: 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 components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

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

[0173] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0174] Those skilled in the art will appreciate that all or part of the steps of the above-mentioned method embodiments may be implemented by hardware related to program instructions, and the aforementioned program may be stored in a readable storage medium. When the program is executed, the program executes the steps of the above-mentioned method embodiments. The aforementioned storage medium includes various media that can store program codes, such as mobile storage devices, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.

[0175] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as standalone products, they can also be stored on a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present invention, or the portion that contributes to the prior art, can be embodied in the form of a software product. This software product, stored on a storage medium, includes instructions for enabling a computer device (such as a personal computer, server, or network device) to execute all or part of the methods described in the various embodiments of the present invention. The aforementioned storage media include various media capable of storing program code, such as removable storage devices, ROM, RAM, magnetic disks, or optical disks.

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 device log information of sensing devices in the smart city, register with the preset directory chain, and obtain the sensing device DID; Obtaining and processing data metadata of sensing devices in the smart city, 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 read instruction, the user's permission information is obtained and permission matching is performed. If the match is successful, the data read request is sent to the directory chain; Extracting the corresponding encrypted data of the sensing device from the directory chain according to the data read request, decrypting it, and sending it to the user end for display; Obtain data metadata of sensing devices within 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 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; 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 based on the private key and insert a preset timestamp to obtain the encrypted data of the sensing device; storing the encrypted data of the sensing device in the second storage layer; Obtain the preset storage period and actual storage time of sensor device data; Comparing the preset storage period with the actual storage time to obtain a storage limit deficiency rate; Comparing the insufficient storage rate with a first preset storage limit warning threshold and a second preset storage limit warning threshold respectively; If the value is less than or equal to the first preset storage limit warning threshold, the data is deleted; If the amount is greater than the first preset storage limit warning threshold and less than or equal to the second preset storage limit warning threshold, an insufficient storage limit warning is output; If it is greater than the second preset storage limit warning threshold, no warning is output; Obtaining a preset storage requirement level for sensor device data, including a low level or a high level; If the data is less than or equal to the first preset storage limit warning threshold and the storage level is low, the data is deleted; If the amount is less than or equal to the first preset storage limit warning threshold and the storage level is high, a deletion instruction is sent to the corresponding data owner; If it is confirmed to be deleted, the data will be deleted; If the deletion is denied, the data will be backed up to the cloud and a data processing log response will be output to the directory chain operation and maintenance center.

2. The method for managing the entire process of smart city perception data based on a directory chain according to claim 1 is characterized in that: The process of obtaining device log information of sensing devices in the smart city and registering them with a preset directory chain to obtain the sensing device DID includes: Obtain device log information from sensing devices within the smart city and extract device codes, 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 the sensing device DID.

3. The method for managing the entire process of smart city perception data based on a directory chain according to claim 2 is characterized in that: The process of obtaining user permission information based on the user's data read instruction and performing permission matching, and sending the data read request to the directory chain if the match is successful, includes: Obtain the user's data reading instruction, and obtain the user's permission information and the DID of the sensing device to be read according to the data reading instruction; Query the directory chain main chain according to the sensing device DID 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.

4. The method for managing the entire process of smart city perception data based on a directory chain according to claim 3 is characterized in that: The step 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 terminal 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 decrypt the data using the private key to obtain the sensing device data set to be read; The to-be-read sensor data set is sent to the user terminal for display.

5. The directory chain's smart city perception data full-process management system is characterized by: The system comprises a memory and a processor, wherein the memory includes a program of a method for managing the entire process of smart city perception data of a directory chain, and when the program of the method for managing the entire process of smart city perception data of a directory chain is executed by the processor, the following steps are implemented: Obtain device log information of sensing devices in the smart city, register with the preset directory chain, and obtain the sensing device DID; Obtaining and processing data metadata of sensing devices in the smart city, 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 read instruction, the user's permission information is obtained and permission matching is performed. If the match is successful, the data read request is sent to the directory chain; Extracting the corresponding encrypted data of the sensing device from the directory chain according to the data read request, decrypting it, and sending it to the user end for display; Obtain data metadata of sensing devices within 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 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; 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 based on the private key and insert a preset timestamp to obtain the encrypted data of the sensing device; storing the encrypted data of the sensing device in the second storage layer; Obtain the preset storage period and actual storage time of sensor device data; Comparing the preset storage period with the actual storage time to obtain a storage limit deficiency rate; Comparing the insufficient storage rate with a first preset storage limit warning threshold and a second preset storage limit warning threshold respectively; If the value is less than or equal to the first preset storage limit warning threshold, the data is deleted; If the amount is greater than the first preset storage limit warning threshold and less than or equal to the second preset storage limit warning threshold, an insufficient storage limit warning is output; If it is greater than the second preset storage limit warning threshold, no warning is output; Obtaining a preset storage requirement level for sensor device data, including a low level or a high level; If the data is less than or equal to the first preset storage limit warning threshold and the storage level is low, the data is deleted; If the amount is less than or equal to the first preset storage limit warning threshold and the storage level is high, a deletion instruction is sent to the corresponding data owner; If it is confirmed to be deleted, the data will be deleted; If the deletion is denied, the data will be backed up to the cloud and a data processing log response will be output to the directory chain operation and maintenance center.

6. The directory chain smart city perception data full process management system according to claim 5 is characterized in that: The process of obtaining device log information of sensing devices in the smart city and registering them with a preset directory chain to obtain the sensing device DID includes: Obtain device log information from sensing devices within the smart city and extract device codes, 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 the sensing device DID.

Citation Information

Patent Citations

  • Block chain fragmentation method and block chain network system

    CN114389878A

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

    CN117978438A