Device control system, method, device, electronic device and readable medium
By using blockchain technology to encrypt and generate biological information in smart home devices, the problem of low security factor of the device is solved, and secure communication and control between the device and the cloud platform is realized.
Patent Information
- Application Number
- CN202211177306.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-26
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2042-09-26
AI Technical Summary
The security factor of smart home devices is low, and the existing technology cannot effectively solve the problem of the risk of misidentification caused by password unlocking and unauthorized unlocking and facial recognition.
By using blockchain technology between the device side and the cloud platform, biological information is collected for encryption, object keys and device keys are generated, identity verification and data encryption are performed, and the security of device data and user data is ensured.
The security factor of smart home devices is improved, the security risks caused by misidentification are reduced, and the secure communication and control between the device and the cloud platform is realized.
Smart Images

Figure CN115632822B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and in particular to a device control system, method, apparatus, electronic device and readable medium. Background Art
[0002] With the rapid development of smart homes, people are becoming more and more dependent on them, and data security issues may also be involved in the use process, which makes people pay more attention to the safety factor in the use process. Usually, password unlocking or direct face recognition and other technologies are used to enhance the security of the device, but this alone is not enough. Password unlocking cannot verify the true identity of the unlocker, and because the human face will have some growth and changes, face recognition may bring the risk of misidentification, that is to say, the safety factor of the device is still low.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The present application provides a device control system, method, apparatus, electronic device and readable medium to solve the above-mentioned technical problem that "the safety factor of the device is still low".
[0005] According to one aspect of an embodiment of the present application, the present application provides a device control system, including: a device end, for collecting target data of a target object according to a verification strategy corresponding to the target device when detecting that a verification interface of a target device is triggered; sending the target data to a blockchain to generate an object key in the blockchain; authenticating the object key, and when the identity authentication is passed, encrypting the device data and the target data of the target device through the blockchain to generate a first key; forwarding the first key and the received control instruction to a cloud platform, so that when the cloud platform successfully verifies the first key and the second key, it controls the target device to perform an operation corresponding to the control instruction, wherein the second key is a key for authenticating the target device through the blockchain. The cloud platform, upon receiving the control instruction sent by the device, encrypts the cloud platform data and the historical usage data of the target device using the blockchain to generate a second key, wherein the historical usage data is generated by the historical usage record of the target device; pairs the second key with the first key, and when the pairing is successful, controls the target device to perform an operation corresponding to the control instruction; a blockchain network is connected to the device and the cloud platform, respectively, to encrypt the target data sent by the device and generate an object key; encrypts the device data and the target data of the target device to generate a first key; encrypts the historical usage data and the cloud platform data to generate a second key.
[0006] According to one aspect of an embodiment of the present application, the present application provides a device control method, which is applied to a device side, and includes: when it is detected that the verification interface of the target device is triggered, collecting target data of the target object according to the verification strategy corresponding to the target device; sending the target data to a blockchain to generate an object key in the blockchain; authenticating the object key, and when the identity authentication is passed, encrypting the device data and target data of the target device through the blockchain to generate a first key; forwarding the first key and the received control instruction to a cloud platform, so that when the cloud platform successfully verifies the first key and the second key, it controls the target device to perform an operation corresponding to the control instruction, wherein the second key is generated by the historical usage data of the target device and the cloud platform data of the cloud platform through the blockchain.
[0007] Optionally, collecting target data of the target object according to the verification strategy corresponding to the target device includes: obtaining the security level of the target device; collecting biometric information matching the security level, and performing feature extraction on the biometric information to obtain biometric features; and determining the biometric features as target data.
[0008] Optionally, the security level includes at least two levels, and collecting biometric information matching the security level includes: obtaining a preset number corresponding to the security level, wherein a higher security level corresponds to a greater number of corresponding preset numbers; and collecting a preset number of biometric information of biological categories.
[0009] Optionally, after the identity authentication is passed, the method also includes: obtaining historical verification records of the target object; extracting historical biometric information with the latest preset number of verification times from the historical verification records; performing feature extraction on the historical biometric information to obtain target features; encrypting the target features through blockchain to obtain a target object key, and updating the target object key to a database of the blockchain, wherein the database is used to store multiple pre-generated object keys.
[0010] According to one aspect of an embodiment of the present application, the present application provides a device control method, which is applied to a cloud platform, including: upon receiving a control instruction sent by a device end, using blockchain to encrypt cloud platform data and historical usage data of a target device to generate a second key, wherein the historical usage data is generated by a historical usage record of the target device; pairing the second key with the first key, and when the pairing is successful, controlling the target device to perform an operation corresponding to the control instruction, wherein the first key is obtained by encrypting the target data and the device data of the target device using blockchain.
[0011] According to another aspect of an embodiment of the present application, the present application provides a device control device, which is applied to a device end, and includes: a data acquisition module, which is used to collect target data of a target object according to a verification strategy corresponding to the target device when it is detected that a verification interface of the target device is triggered; a data sending module, which is used to send the target data to a blockchain to generate an object key in the blockchain; an identity authentication module, which is used to authenticate the object key, and when the identity authentication is passed, encrypt the device data and target data of the target device through the blockchain to generate a first key; an instruction forwarding module, which is used to forward the first key and the received control instruction to a cloud platform, so that when the cloud platform successfully verifies the first key and the second key, it controls the target device to perform an operation corresponding to the control instruction, wherein the second key is generated by the historical usage data of the target device and the cloud platform data of the cloud platform through the blockchain.
[0012] According to another aspect of an embodiment of the present application, the present application provides a device control apparatus, applied to a cloud platform, comprising: a data encryption module, for encrypting cloud platform data and historical usage data of a target device using a blockchain upon receiving a control instruction sent by a device end, and generating a second key, wherein the historical usage data is generated by a historical usage record of the target device; a key pairing module, for pairing the second key with the first key, and when the pairing is successful, controlling the target device to perform an operation corresponding to the control instruction, wherein the first key is obtained by encrypting the target data and the device data of the target device using a blockchain.
[0013] According to another aspect of an embodiment of the present application, the present application provides an electronic device, including a memory, a processor, a communication interface and a communication bus, wherein the memory stores a computer program that can be run on the processor, the memory and the processor communicate through the communication bus and the communication interface, and the steps of the above method are implemented when the processor executes the computer program.
[0014] According to another aspect of an embodiment of the present application, the present application also provides a computer-readable medium having a non-volatile program code executable by a processor, and the program code enables the processor to execute the above method.
[0015] The above technical solution provided by the embodiment of the present application has the following advantages compared with the related art:
[0016] The present application adopts a device control system, including: a device end, which is used to collect target data of a target object according to a verification strategy corresponding to the target device when detecting that a verification interface of a target device is triggered; send the target data to a blockchain to generate an object key in the blockchain; authenticate the object key, and when the identity authentication is passed, encrypt the device data and the target data of the target device through the blockchain to generate a first key; forward the first key and the received control instruction to a cloud platform, so that when the cloud platform successfully authenticates the first key and the second key, it controls the target device to perform an operation corresponding to the control instruction, wherein the second key is a historical key of the target device authenticated through the blockchain. The cloud platform, upon receiving the control instruction sent by the device, uses the blockchain to encrypt the cloud platform data and the historical usage data of the target device to generate a second key, wherein the historical usage data is generated by the historical usage record of the target device; the second key is paired with the first key, and when the pairing is successful, the target device is controlled to perform the operation corresponding to the control instruction; the blockchain network is connected to the device and the cloud platform respectively, and is used to encrypt the target data sent by the device to generate an object key; the device data and target data of the target device are encrypted to generate the first key; the historical usage data and the cloud platform data are encrypted to generate the second key. The device data and user data are encrypted through the blockchain network, and the historical usage data and the cloud platform data are encrypted, and the encrypted keys are mutually verified. According to the verification result, it is determined whether to control the device, which solves the problem of low safety factor of the device. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] Figure 1 A schematic diagram of an optional device control system provided according to an embodiment of the present application;
[0020] Figure 2 A flowchart of an optional device control method applied to a device end according to an embodiment of the present application;
[0021] Figure 3A flowchart of an optional device control method applied to a cloud platform provided according to an embodiment of the present application;
[0022] Figure 4 A block diagram of an optional device control device applied to a device end according to an embodiment of the present application;
[0023] Figure 5 A block diagram of an optional device control device applied to a cloud platform according to an embodiment of the present application;
[0024] Figure 6 A schematic diagram of an optional electronic device structure provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution 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 part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0026] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application and have no specific meaning. Therefore, "module" and "component" can be used interchangeably.
[0027] With the rapid development of smart homes, people are becoming more and more dependent on them, and data security issues may also be involved in the use process, which makes people pay more attention to the safety factor in the use process. Usually, password unlocking or direct face recognition and other technologies are used to enhance the security of the device, but this alone is not enough. Password unlocking cannot verify the true identity of the unlocker, and because the human face will have some growth and changes, face recognition may bring the risk of misidentification, that is to say, the safety factor of the device is still low.
[0028] In order to solve the problems mentioned in the background technology, according to one aspect of the embodiment of the present application, a device control system is provided, such as Figure 1 As shown, including:
[0029] The device end 102 is used to collect target data of the target object according to the verification strategy corresponding to the target device when it is detected that the verification interface of the target device is triggered; send the target data to the blockchain to generate an object key in the blockchain; authenticate the object key, and when the identity authentication is passed, encrypt the device data and the target data of the target device through the blockchain to generate a first key; forward the first key and the received control instruction to the cloud platform, so that the cloud platform controls the target device to perform the operation corresponding to the control instruction when the first key and the second key are successfully verified, wherein the second key is generated by the historical usage data of the target device and the cloud platform data of the cloud platform through the blockchain;
[0030] The cloud platform 104, upon receiving the control instruction sent by the device, encrypts the cloud platform data and the historical usage data of the target device using the blockchain to generate a second key, wherein the historical usage data is generated by the historical usage record of the target device; pairs the second key with the first key, and, if the pairing is successful, controls the target device to perform an operation corresponding to the control instruction;
[0031] The blockchain network 106 is connected to the device side and the cloud platform respectively, and is used to encrypt the target data sent by the device side to generate an object key; encrypt the device data and target data of the target device to generate a first key; encrypt the historical usage data and the cloud platform data to generate a second key.
[0032] This application is applied to device control, and in particular to smart authentication in smart homes.
[0033] The target device and the cloud platform are connected to the blockchain, and the data is encrypted through the blockchain. The encrypted keys of the two ends are mutually authenticated to ensure the information security of the device. By using blockchain technology to encrypt the user's biometrics and generate corresponding keys, the security issues caused by misidentification of fingerprints or facial information are reduced; the identity information of the device and the cloud platform are established through the blockchain. When the device receives the control command, it will authenticate the object of the command based on the blockchain, and the cloud platform will also authenticate the identity information of the controlled device, thereby preventing the smart home device from being invaded.
[0034] The present application provides a system that uses blockchain technology to encrypt the user's identity information and generate corresponding keys. Smart home devices perform different identity information verifications based on their security levels. Smart devices generate device keys based on their own information and user information. The cloud platform that controls the device also generates blockchain keys based on its own information and user information. When the device communicates with the cloud platform, the two keys are verified to achieve secure communication between the device and the cloud platform.
[0035] Blockchain is a chain of blocks. Each block stores certain information. They are connected into a chain in the order of their generation. This chain is stored in all servers. As long as there is one server in the entire system that can work, the entire blockchain is safe. These servers are called nodes in the blockchain system. They provide storage space and computing power support for the entire blockchain system. If you want to modify the information in the blockchain, you must obtain the consent of more than half of the nodes and modify the information in all nodes. These nodes are usually in the hands of different entities. Therefore, it is extremely difficult to tamper with the information in the blockchain. Compared with traditional networks, blockchain has two core characteristics: one is that data is difficult to tamper with, and the other is decentralization. Based on these two characteristics, the information recorded in the blockchain is more authentic and reliable, which can help solve the problem of people's distrust.
[0036] With the rapid development of science and technology, blockchain technology has begun to be applied. The security, decentralization and independence of blockchain technology have been recognized by many people. Based on blockchain technology, a safer and more convenient smart home system can be realized.
[0037] According to one aspect of the embodiments of the present application, the present application provides a device control method, which is applied to a device end, such as Figure 2 As shown, including:
[0038] Step 201, when it is detected that the verification interface of the target device is triggered, target data of the target object is collected according to the verification policy corresponding to the target device;
[0039] Step 203, sending the target data to the blockchain to generate an object key in the blockchain;
[0040] Step 205, authenticate the object key, and if the authentication is passed, encrypt the device data and target data of the target device through the blockchain to generate a first key;
[0041] Step 207: forward the first key and the received control instruction to the cloud platform, so that the cloud platform controls the target device to perform the operation corresponding to the control instruction when the first key and the second key are successfully verified, wherein the second key is generated by the historical usage data of the target device and the cloud platform data of the cloud platform through the blockchain.
[0042] The target object needs to be authenticated before using the target device, so the target object needs to send a verification request to the target device first. The way to send the verification request is not limited.
[0043] When it is detected that the target object has triggered the verification interface, the target data of the target object is collected, and then the target data is encrypted using the blockchain to obtain the object key, which is also the first blockchain key in the device control process of this application. The first key and the second key mentioned below are all blockchain keys.
[0044] Verifying the object key is to match the current object key with the key in the previously stored database. A successful match means that the verification is successful. If a key matching the object key cannot be found in the database, it means that the target object does not have permission to use the target device.
[0045] As an optional embodiment, collecting target data of the target object according to the verification strategy corresponding to the target device includes: obtaining the security level of the target device; collecting biometric information matching the security level, and performing feature extraction on the biometric information to obtain biometric features; and determining the biometric features as target data.
[0046] Optionally, the security factor of the device is different, and the corresponding security level is also different. The device with a high security level requires a higher degree of verification, and the more information needs to be verified.
[0047] Since the biological characteristics of the human body are unique, this application uses the biological characteristics as the target data to be verified.
[0048] As an optional embodiment, the security level includes at least two levels, and collecting biometric information matching the security level includes: obtaining a preset number corresponding to the security level, wherein a higher security level corresponds to a greater number of corresponding preset numbers; and collecting a preset number of biometric information of a biological category.
[0049] The security level is at least two levels, and the optional embodiment provided by the present application includes three levels. Under different security levels, biological information of different preset numbers of biological categories is collected, wherein the security level corresponds to the preset number.
[0050] When the security level is the first level, the biological information of the first category in the preset biological category is collected, wherein each category in the preset biological category is a biological category pre-entered by the user using the target device; when the security level is the second level, the biological information of the second category in the preset biological category is collected, wherein the second level is lower than the first level, and the number of categories in the second category is less than the number of categories in the first category; when the security level is the third level, the biological information of the third category in the preset biological category is collected, wherein the third level is lower than the second level, and the number of categories in the third category is less than the number of categories in the second category. In the above example, the device corresponding to the first level has the highest safety factor, and the device corresponding to the third level has the lowest safety factor.
[0051] Optionally, the preset biometric categories include but are not limited to fingerprint, voiceprint, face and iris.
[0052] For example, the preset biometric categories are fingerprint, voiceprint and face. The smart device establishes a three-level security level based on the usage scenario of the target device. A device with a security level of one will verify the user's fingerprint, face and voiceprint when in use. A device with a security level of two will verify any two of the user's fingerprint, face and voiceprint when in use, and so on. The user verification system based on classification takes into account both security and convenience.
[0053] As an optional embodiment, after the identity authentication is passed, the method also includes: obtaining the historical verification record of the target object; extracting the historical biometric information of the latest preset number of verification times from the historical verification record; performing feature extraction on the historical biometric information to obtain the target feature; encrypting the target feature through the blockchain to obtain the target object key, and updating the target object key to the database of the blockchain, wherein the database is used to store multiple pre-generated object keys.
[0054] The historical verification record of the target object is the verification record of the target user when using the device (not limited to the target device) before. The historical verification record includes all the biometric information collected each time and the verification time of the target object.
[0055] The latest verification time is the most recent verification time at the current moment. The preset number of times can be set by yourself (for example, 10 times), and the setting standard can be based on age or gender. For example, for the authentication and recognition of smart door locks, for a 5-year-old child, growth changes will affect the face, so the preset number of times can be more, and for a 25-year-old adult, the corresponding preset number can be less; the corresponding preset number for women can be more, because women may wear makeup, which may slightly change the presented face.
[0056] For example, the blockchain-based identity authentication and identification system requires the user to enter his or her fingerprint information, facial information, and voiceprint information, extract features from the collected information, encrypt the extracted identity feature information with the blockchain, generate the user's identity key, and then store it in the database.
[0057] For example, feature extraction is performed again based on the user's biometric information collected ten times recently, and a new user identity key is generated in the blockchain to achieve real-time and stability of the key.
[0058] According to one aspect of the embodiments of the present application, the present application provides a device control method, which is applied to a cloud platform, such as Figure 3 As shown, including:
[0059] Step 301, upon receiving a control instruction sent by the device, encrypting the cloud platform data and the historical usage data of the target device using the blockchain to generate a second key, wherein the historical usage data is generated by the historical usage record of the target device;
[0060] Step 303: Pair the second key with the first key, and if the pairing is successful, control the target device to perform an operation corresponding to the control instruction, wherein the first key is obtained by encrypting the target data and the device data of the target device by the blockchain.
[0061] The cloud platform is connected to the device side to control the target device.
[0062] When receiving a control instruction sent by the device, the second key of the cloud platform is first generated using the blockchain, and then the second key is mutually verified with the first key of the device. After the verification is passed, the target device is controlled to perform the operation corresponding to the control instruction.
[0063] Blockchain is used to encrypt cloud platform data and historical usage data of target devices. The historical usage data of target devices is data pre-existing in the blockchain network, including usage records of target devices and user information.
[0064] In order to ensure that smart home devices are not hacked and to achieve secure communication with the cloud platform, the device side encrypts the device information and user identity information in the blockchain to generate the device side key. The cloud platform that controls the device will also generate the cloud platform side key in the blockchain based on its own information, the controlled device (target device) information, and the user information. Before the device side uploads the received instructions to the cloud platform, the two keys will also verify each other, and new keys will be regenerated on both ends based on the latest user keys. After verification, the cloud platform controls the target device according to the control instructions, thereby preventing the device from being hacked.
[0065] Based on blockchain technology, the smart home system can associate each use record of smart home devices with the cloud platform and smart devices respectively. Due to the security of blockchain, it is impossible to modify the data in the blockchain without controlling 51% of the data nodes. Therefore, the device usage history record is combined with the key of the device and the cloud platform as the basis for verifying the identity of the device and the cloud platform, so as to achieve more secure and reliable control of smart home devices.
[0066] The present application adopts a device control system, including: a device end, which is used to collect target data of a target object according to a verification strategy corresponding to the target device when detecting that a verification interface of a target device is triggered; send the target data to a blockchain to generate an object key in the blockchain; authenticate the object key, and when the identity authentication is passed, encrypt the device data and the target data of the target device through the blockchain to generate a first key; forward the first key and the received control instruction to a cloud platform, so that when the cloud platform successfully authenticates the first key and the second key, it controls the target device to perform an operation corresponding to the control instruction, wherein the second key is a historical key of the target device authenticated through the blockchain. The cloud platform, upon receiving the control instruction sent by the device, uses the blockchain to encrypt the cloud platform data and the historical usage data of the target device to generate a second key, wherein the historical usage data is generated by the historical usage record of the target device; the second key is paired with the first key, and when the pairing is successful, the target device is controlled to perform the operation corresponding to the control instruction; the blockchain network is connected to the device and the cloud platform respectively, and is used to encrypt the target data sent by the device to generate an object key; the device data and target data of the target device are encrypted to generate the first key; the historical usage data and the cloud platform data are encrypted to generate the second key. The device data and user data are encrypted through the blockchain network, and the historical usage data and the cloud platform data are encrypted, and the encrypted keys are mutually verified. According to the verification result, it is determined whether to control the device, which solves the problem of low safety factor of the device.
[0067] According to another aspect of the embodiment of the present application, the present application provides a device control device, which is applied to a device end, such as Figure 4 As shown, including:
[0068] The data collection module 402 is used to collect target data of the target object according to the verification policy corresponding to the target device when it is detected that the verification interface of the target device is triggered;
[0069] A data sending module 404, used to send the target data to the blockchain to generate an object key in the blockchain;
[0070] The identity authentication module 406 is used to authenticate the object key, and if the identity authentication is passed, encrypt the device data and target data of the target device through the blockchain to generate a first key;
[0071] The instruction forwarding module 408 is used to forward the first key and the received control instruction to the cloud platform, so that the cloud platform controls the target device to perform the operation corresponding to the control instruction when the first key and the second key are successfully verified, wherein the second key is generated by the historical usage data of the target device and the cloud platform data of the cloud platform through the blockchain.
[0072] It should be noted that the data acquisition module 402 in this embodiment can be used to execute step 201 in the embodiment of the present application, the data sending module 404 in this embodiment can be used to execute step 203 in the embodiment of the present application, the identity authentication module 406 in this embodiment can be used to execute step 205 in the embodiment of the present application, and the instruction forwarding module 408 in this embodiment can be used to execute step 207 in the embodiment of the present application.
[0073] Optionally, the data acquisition module 402 includes:
[0074] The acquisition submodule is used to obtain the security level of the target device;
[0075] The collection submodule is used to collect biometric information that matches the security level, and extract features from the biometric information to obtain biometric features; the biometric features are determined as target data.
[0076] Optionally, the collection submodule is further used to obtain a preset number corresponding to a security level, wherein the security level includes at least two levels, and a higher security level corresponds to a greater number of preset numbers; and collect biological information of a preset number of biological categories.
[0077] Optionally, the device control device applied to the device end also includes an update module, which is used to obtain the historical verification record of the target object after the identity authentication is passed; extract the historical biometric information of the latest preset number of verification times from the historical verification records; perform feature extraction on the historical biometric information to obtain the target feature; encrypt the target feature through the blockchain to obtain the target object key, and update the target object key to the database of the blockchain, wherein the database is used to store multiple pre-generated object keys.
[0078] According to another aspect of the embodiment of the present application, the present application provides a device control device, which is applied to a cloud platform, such as Figure 5 As shown, including:
[0079] The data encryption module 502 is used to encrypt the cloud platform data and the historical usage data of the target device by using the blockchain to generate a second key when receiving the control instruction sent by the device end, wherein the historical usage data is generated by the historical usage record of the target device;
[0080] The key pairing module 504 is used to pair the second key with the first key, and when the pairing is successful, control the target device to perform an operation corresponding to the control instruction, wherein the first key is obtained by encrypting the target data and the device data of the target device by the blockchain.
[0081] It should be noted that the data encryption module 502 in this embodiment can be used to execute step 301 in the embodiment of the present application, and the key pairing module 504 in this embodiment can be used to execute step 303 in the embodiment of the present application.
[0082] It should be noted here that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments.
[0083] According to another aspect of the embodiments of the present application, the present application provides an electronic device, such as Figure 6 As shown, it includes a memory 601, a processor 603, a communication interface 605 and a communication bus 607. The memory 601 stores a computer program that can be run on the processor 603. The memory 601 and the processor 603 communicate through the communication interface 605 and the communication bus 607. When the processor 603 executes the computer program, the steps of the above method are implemented.
[0084] The memory and processor in the above electronic device communicate via a communication bus and a communication interface. The communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc.
[0085] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0086] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0087] According to another aspect of the embodiments of the present application, a computer-readable medium having a non-volatile program code executable by a processor is provided.
[0088] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.
[0089] When the embodiments of the present application are specifically implemented, reference may be made to the above-mentioned embodiments, which have corresponding technical effects.
[0090] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0091] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0092] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0093] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0094] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0095] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0096] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0097] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk. It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
[0098] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A device control system, It is characterized in that include: The device side is used to collect target data of the target object according to the verification policy corresponding to the target device when detecting that the verification interface of the target device is triggered; The target data is sent to a blockchain to generate an object key in the blockchain; the object key is authenticated, and if the authentication is passed, the device data of the target device and the target data are encrypted through the blockchain to generate a first key; the first key and the received control instruction are forwarded to a cloud platform, so that the cloud platform controls the target device to perform an operation corresponding to the control instruction when the first key and the second key are successfully authenticated, wherein the second key is generated by the historical usage data of the target device and the cloud platform data of the cloud platform through the blockchain; The cloud platform, upon receiving the control instruction sent by the device, encrypts the cloud platform data and the historical usage data of the target device using the blockchain to generate the second key, wherein the historical usage data is generated by the historical usage record of the target device; pairs the second key with the first key, and, if the pairing is successful, controls the target device to perform an operation corresponding to the control instruction; The blockchain network is connected to the device end and the cloud platform respectively, and is used to encrypt the target data sent by the device end to generate the object key; encrypt the device data of the target device and the target data to generate the first key; encrypt the historical usage data and the cloud platform data to generate the second key.
2. A device control method, applied to a device end, It is characterized in that include: When detecting that the verification interface of the target device is triggered, collecting target data of the target object according to the verification policy corresponding to the target device; sending the target data to a blockchain to generate an object key in the blockchain; authenticating the object key, and if the authentication is passed, encrypting the device data of the target device and the target data through the blockchain to generate a first key; The first key and the received control instruction are forwarded to the cloud platform, so that the cloud platform controls the target device to perform the operation corresponding to the control instruction when the first key and the second key are successfully verified, wherein the second key is generated by the blockchain based on the historical usage data of the target device and the cloud platform data of the cloud platform.
3. The method according to claim 2, It is characterized in that The collecting target data of the target object according to the verification strategy corresponding to the target device includes: Obtaining a security level of the target device; Collecting biometric information matching the security level, and extracting features from the biometric information to obtain biometric features; The biometric feature is determined as the target data.
4. The method according to claim 3, It is characterized in that The security level includes at least two levels, and the biometric information collected that matches the security level includes: Obtaining a preset number corresponding to the security level, wherein a higher security level corresponds to a greater number of the preset numbers; The biological information of the preset number of biological categories is collected.
5. The method according to claim 2, It is characterized in that After the identity verification is passed, the method further includes: Obtaining historical verification records of the target object; Extracting historical biometric information of a preset number of latest verification times from the historical verification records; Performing feature extraction on the historical biological information to obtain target features; The target feature is encrypted through the blockchain to obtain a target object key, and the target object key is updated to a database of the blockchain, wherein the database is used to store multiple pre-generated object keys.
6. A device control method, applied to a cloud platform, It is characterized in that include: When receiving a control instruction sent by the device, encrypt the cloud platform data and the historical usage data of the target device using the blockchain to generate a second key, wherein the historical usage data is generated by the historical usage record of the target device; The second key is paired with the first key, and when the pairing is successful, the target device is controlled to perform an operation corresponding to the control instruction, wherein the first key is a key generated by encrypting the device data of the target object and the target data according to the verification strategy corresponding to the target device when the device detects that the verification interface of the target device is triggered. The target data is sent to the blockchain, and the blockchain generates an object key and authenticates the object key. When the identity authentication is passed, the device data of the target device and the target data are encrypted through the blockchain.
7. A device control device, applied to a device end, It is characterized in that include: A data collection module, configured to collect target data of a target object according to a verification strategy corresponding to the target device when detecting that a verification interface of the target device is triggered; A data sending module, used for sending the target data to the blockchain to generate an object key in the blockchain; An identity authentication module, used to authenticate the object key, and if the identity authentication is passed, encrypt the device data of the target device and the target data through the blockchain to generate a first key; An instruction forwarding module is used to forward the first key and the received control instruction to the cloud platform, so that the cloud platform controls the target device to perform the operation corresponding to the control instruction when the first key and the second key are successfully verified, wherein the second key is generated by the blockchain based on the historical usage data of the target device and the cloud platform data of the cloud platform.
8. A device control device, applied to a cloud platform, It is characterized in that include: A data encryption module, configured to encrypt the cloud platform data and the historical usage data of the target device using the blockchain to generate a second key when receiving a control instruction sent by the device end, wherein the historical usage data is generated by the historical usage record of the target device; A key pairing module is used to pair the second key with the first key, and when the pairing is successful, control the target device to perform an operation corresponding to the control instruction, wherein the first key is a key generated by encrypting the device data of the target object and the target data through the blockchain after collecting the target data according to the verification strategy corresponding to the target device when the device detects that the verification interface of the target device is triggered.
9. An electronic device comprising a memory, a processor, a communication interface and a communication bus, wherein the memory stores a computer program that can be run on the processor, and the memory and the processor communicate through the communication bus and the communication interface. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 2 to 6 are implemented.
10. A computer readable medium having a non-volatile program code executable by a processor, It is characterized in that The program code enables the processor to execute the method according to any one of claims 2 to 6.
Citation Information
Patent Citations
IOT device management method and device based on block chain
CN110113164A
Equipment data access method, device and system of Internet of Things cloud platform
CN111885196A