Key-based smart door lock control method and device

By generating and encrypting side-view control information, and using the time-frequency location and relationship of side-view resources to generate keys, the problem of communication security between the terminal and the smart lock is solved, achieving higher security and uniqueness.

CN116863565BActive Publication Date: 2025-11-07SHANXI FENGHONG IND CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310587991.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-24
Publication Date
2025-11-07
Estimated Expiration
2043-05-24

AI Technical Summary

Technical Problem

How to ensure communication security during PC5 connection communication between the terminal and the smart door lock?

Method used

The side-link control information is generated in plaintext and encrypted using a set of side-link resources. A side-link key is generated to ensure communication security. This includes generating a master key and a secondary key using the time-frequency location of the side-link resources and the time-frequency location relationship between reserved and non-reserved resources, and then encrypting and decrypting them through hash processing.

Benefits of technology

This improves the communication security between the terminal and the smart lock, prevents information theft, and ensures the uniqueness and security of the communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116863565B_ABST
    Figure CN116863565B_ABST
Patent Text Reader

Abstract

The application provides a key-based intelligent door lock control method and device, which is used to ensure the communication security between a terminal and an intelligent door lock. In the method, when it is required to instruct the intelligent door lock to perform a first operation, such as one-key opening, one-key locking, etc., the control terminal can generate corresponding plaintext sidelink control information and encrypt the plaintext sidelink control information using a sidelink resource set, so as to obtain encrypted sidelink control information. In this way, the control terminal can send the encrypted sidelink control information to the intelligent door lock, so as to ensure the communication security between the control terminal and the intelligent door lock.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, and particularly relates to a key-based intelligent door lock control method and device. BACKGROUND

[0002] The 3rd Generation Partnership Project (3GPP) defines that end-to-end can directly communicate through a sidelink (sidelink), that is, a PC5 connection, which makes it possible to apply the Internet of Things (IoT) on a large scale. For example, a terminal (such as a mobile phone) and an IoT device (such as an intelligent door lock) can establish a PC5 connection to directly communicate, thereby realizing the functions of one-key opening and one-key locking.

[0003] However, in this scenario, how to ensure the security of communication is a characteristic problem of current research. SUMMARY

[0004] Embodiments of the present application provide a key-based intelligent door lock control method and device to ensure the security of communication between a terminal and an intelligent door lock.

[0005] To achieve the above object, the present application adopts the following technical solutions:

[0006] In a first aspect, a key-based intelligent door lock control method is provided, applied to a control terminal, and the method comprises the following steps: in response to the operation of a first user, the control terminal generates plaintext sidelink control information, wherein the sidelink control information is used to indicate that the first user needs the intelligent door lock to perform a first operation; the control terminal uses a sidelink resource set to encrypt the plaintext sidelink control information to obtain encrypted sidelink control information, wherein the sidelink resource set comprises sidelink resources required for air interface transmission between the control terminal and the intelligent door lock; and the control terminal sends the encrypted sidelink control information to the intelligent door lock through the sidelink resources in the sidelink resource set.

[0007] According to the method of the first aspect, when it is necessary to indicate the intelligent door lock to perform a first operation, such as one-key opening and one-key locking, the control terminal can generate corresponding plaintext sidelink control information and use the sidelink resource set to encrypt the plaintext sidelink control information, thereby obtaining the encrypted sidelink control information. In this way, the control terminal can send the encrypted sidelink control information to the intelligent door lock to ensure the security of communication between the control terminal and the intelligent door lock.

[0008] In a possible design, the control terminal encrypts the sidelink control information in plaintext using a sidelink resource set to obtain encrypted sidelink control information, including: the control terminal taking the time-frequency position of the sidelink resource in the sidelink resource set as an input parameter to generate a sidelink key; and the control terminal encrypting the sidelink control information in plaintext using the sidelink key to obtain the encrypted sidelink control information. It can be understood that the time-frequency position of the sidelink resource is unique, that is, the time-frequency position of the sidelink resource used in any two communications can be different, and therefore the time-frequency position of the sidelink resource is used to generate the sidelink key for sidelink encryption, which can also ensure the unique security, that is, the sidelink key used in any two communications can also be different, to further ensure the communication security between the control terminal and the smart door lock.

[0009] Optionally, the control terminal takes the time-frequency position of the sidelink resource in the sidelink resource set as an input parameter to generate a sidelink key, including: the control terminal taking the time-frequency position of the reserved sidelink resource in the sidelink resource set as an input parameter to generate a main sidelink key, and the control terminal taking the time-frequency position of the non-reserved sidelink resource in the sidelink resource set as an input parameter to generate an auxiliary sidelink key; wherein the non-reserved sidelink resource is a sidelink resource that needs to be used for the first time to transmit the sidelink control information, the reserved sidelink resource is a sidelink resource reserved for retransmitting the sidelink control information, the number of the reserved sidelink resources is greater than the number of the non-reserved sidelink resources, and the sidelink key includes the main sidelink key and the auxiliary sidelink key. It can be understood that, since the number of the reserved sidelink resources is greater than the number of the non-reserved sidelink resources, for example, there are 1-3 REs as the reserved sidelink resources and 2-4 REs as the non-reserved sidelink resources in a communication period. That is, the security of the main sidelink key generated using a larger number of reserved sidelink resources is better, which can better ensure the security of the private information in the sidelink control information in plaintext and avoid being stolen. Conversely, when the auxiliary sidelink key is generated using a smaller number of non-reserved sidelink resources, the generation method is simpler and the required processing resources are less.

[0010] Further, the reserved sidelink resource includes N resource elements (REs), N being an integer greater than 1, and the control terminal generates a sidelink primary key by taking the time-frequency positions of the reserved sidelink resource in the sidelink resource set as input parameters, including: the control terminal randomly sorts the identifiers of the N REs by using a first random algorithm to obtain an identifier sequence of the N REs; the control terminal sorts the time-frequency positions of the N REs in the order indicated by the identifier sequence of the N REs to obtain a time-frequency position sequence of the N REs; the control terminal adds a cyclic prefix to the time-frequency position sequence of the N REs to obtain a time-frequency position sequence to which the cyclic prefix is added; and the control terminal hashes the time-frequency position sequence to which the cyclic prefix is added, and determines a hash value obtained as the sidelink primary key. That is, the cyclic prefix is usually used for anti-multipath effect in air interface transmission, but adding the cyclic prefix can change the structure of the symbol, so that the original structure is less likely to be seen, and thus it is theoretically more secure. Therefore, this feature can be reused for secure encryption to further ensure the communication security between the control terminal and the smart door lock.

[0011] Further, the non-reserved sidelink resource includes M REs, M being an integer greater than 1, and the control terminal generates a sidelink secondary key by taking the time-frequency positions of the non-reserved sidelink resource in the sidelink resource set as input parameters, including: the control terminal randomly sorts the identifiers of the M REs by using a second random algorithm to obtain an identifier sequence of the M REs; the control terminal sorts the time-frequency positions of the M REs in the order indicated by the identifier sequence of the M REs to obtain a time-frequency position sequence of the M REs; the control terminal adds a cyclic prefix to the time-frequency position sequence of the M REs to obtain a time-frequency position sequence to which the cyclic prefix is added; and the control terminal hashes the time-frequency position sequence to which the cyclic prefix is added, and determines a hash value obtained as the sidelink secondary key. That is, the cyclic prefix is usually used for anti-multipath effect in air interface transmission, but adding the cyclic prefix can change the structure of the symbol, so that the original structure is less likely to be seen, and thus it is theoretically more secure. Therefore, this feature can be reused for secure encryption to further ensure the communication security between the control terminal and the smart door lock.

[0012] Optionally, the plaintext sidelink control information includes plaintext information for indicating the first user and plaintext information for indicating the first operation, and the control terminal encrypts the plaintext sidelink control information by using the sidelink key to obtain encrypted sidelink control information, including: the control terminal encrypts the plaintext information for indicating the first user by using the sidelink primary key to obtain encrypted information for indicating the first user, and the control terminal encrypts the plaintext information for indicating the first operation by using the sidelink secondary key to obtain encrypted information for indicating the first operation.

[0013] Optionally, the control terminal generates the sidelink key by taking the time-frequency position of the sidelink resource in the sidelink resource set as an input parameter, including: the control terminal generates the sidelink key by taking the time-frequency position relationship between the reserved sidelink resource and the non-reserved sidelink resource in the sidelink resource set as an input parameter; wherein the non-reserved sidelink resource is the sidelink resource required for the first transmission of the sidelink control information, and the reserved sidelink resource is the sidelink resource reserved for the retransmission of the sidelink control information. It can be understood that the time-frequency position relationship between the reserved sidelink resource and the non-reserved sidelink resource is more implicit information, or more implicit information. Using such information to generate a key can further ensure security and reduce the probability of being cracked.

[0014] Further, the reserved sidelink resource includes N resource elements (REs), N is an integer greater than 1, the non-reserved sidelink resource includes M REs, M is an integer greater than 1, and the control terminal generates the sidelink key by taking the time-frequency position relationship between the reserved sidelink resource and the non-reserved sidelink resource in the sidelink resource set as an input parameter, including: the control terminal determines the time-frequency distance between the time-frequency position of each RE in the N REs and the time-frequency position of the M REs, to obtain N*M time-frequency distances; the control terminal adds a cyclic prefix to the N*M time-frequency distances to obtain N*M time-frequency distances with added cyclic prefix; and the control terminal hashes the N*M time-frequency distances with added cyclic prefix, and determines the obtained hash value as the sidelink key. That is, the cyclic prefix is usually used for anti-multipath effect in air interface transmission, but since adding a cyclic prefix can change the structure of the symbol, the original structure is less likely to be seen, so theoretically it can be more secure. Therefore, this feature can be reused for security encryption to further ensure the security of communication between the control terminal and the smart door lock.

[0015] In a second aspect, a smart door lock control method based on a key is provided, applied to a smart door lock, including: the smart door lock receives encrypted sidelink control information from a control terminal through a sidelink resource in a sidelink resource set, wherein the sidelink resource set includes sidelink resources required for air interface transmission between the control terminal and the smart door lock; the smart door lock decrypts the encrypted sidelink control information using the sidelink resource set to obtain plaintext sidelink control information, wherein the plaintext sidelink control information is used to instruct a first user to perform a first operation; and the smart door lock performs the first operation according to the plaintext sidelink control information.

[0016] In a third aspect, a smart door lock control device based on a key is provided, which includes a module for executing the method of the first aspect described above.

[0017] For example, the processing module is configured to control the terminal to generate, in response to an operation of a first user, a plaintext sidelink control information, wherein the sidelink control information is used to instruct the first user to require a smart door lock to perform a first operation; the processing module is further configured to control the terminal to encrypt the plaintext sidelink control information using a sidelink resource set to obtain encrypted sidelink control information, wherein the sidelink resource set includes sidelink resources required for air interface transmission between the terminal and the smart door lock; and the transceiver module is configured to control the terminal to send the encrypted sidelink control information to the smart door lock through the sidelink resources in the sidelink resource set.

[0018] In a possible design, the processing module is further configured to control the terminal to generate a sidelink key by taking time-frequency locations of the sidelink resources in the sidelink resource set as input parameters; and the processing module is further configured to control the terminal to encrypt the plaintext sidelink control information using the sidelink key to obtain the encrypted sidelink control information.

[0019] Optionally, the processing module is further configured to control the terminal to generate a primary sidelink key by taking time-frequency locations of reserved sidelink resources in the sidelink resource set as input parameters, and the processing module is further configured to control the terminal to generate a secondary sidelink key by taking time-frequency locations of non-reserved sidelink resources in the sidelink resource set as input parameters; wherein the non-reserved sidelink resources are sidelink resources required for first transmission of the sidelink control information, the reserved sidelink resources are sidelink resources reserved for retransmission of the sidelink control information, the number of the reserved sidelink resources is greater than the number of the non-reserved sidelink resources, and the sidelink key includes the primary sidelink key and the secondary sidelink key.

[0020] Further, the reserved sidelink resources include N resource elements (REs), and N is an integer greater than 1. The processing module is further configured to control the terminal to randomly sort, by using a first random algorithm, identifiers of the N REs to obtain an identifier sequence of the N REs; the processing module is further configured to control the terminal to sort time-frequency locations of the N REs according to an order of the N REs indicated by the identifier sequence of the N REs to obtain a time-frequency location sequence of the N REs; the processing module is further configured to control the terminal to add a cyclic prefix to the time-frequency location sequence of the N REs to obtain a time-frequency location sequence to which a cyclic prefix is added; and the processing module is further configured to control the terminal to hash the time-frequency location sequence to which the cyclic prefix is added, and determine a hash value obtained by the hashing as the secondary sidelink key.

[0021] Further, the non-reserved sidelink resource includes M REs, M is an integer greater than 1. The processing module is further configured to control the terminal to sort the identifiers of the M REs by a second random algorithm to obtain an identifier sequence of the M REs; the processing module is further configured to control the terminal to sort time-frequency positions of the M REs according to an order of the M REs indicated by the identifier sequence of the M REs to obtain a time-frequency position sequence of the M REs; the processing module is further configured to control the terminal to add a cyclic prefix to the time-frequency position sequence of the M REs to obtain a time-frequency position sequence to which the cyclic prefix is added; and the processing module is further configured to control the terminal to hash the time-frequency position sequence to which the cyclic prefix is added, and determine a hash value obtained by the hashing as the sidelink master key.

[0022] Optionally, the plaintext sidelink control information includes plaintext information for indicating the first user and plaintext information for indicating the first operation. The processing module is further configured to control the terminal to encrypt the plaintext information for indicating the first user using the sidelink master key to obtain encrypted information for indicating the first user, and control the terminal to encrypt the plaintext information for indicating the first operation using the sidelink secondary key to obtain encrypted information for indicating the first operation.

[0023] Optionally, the processing module is further configured to control the terminal to generate the sidelink key by taking a time-frequency position relationship between the reserved sidelink resource and the non-reserved sidelink resource in the sidelink resource set as an input parameter; the non-reserved sidelink resource is a sidelink resource required for the first transmission of the sidelink control information, and the reserved sidelink resource is a sidelink resource reserved for the retransmission of the sidelink control information.

[0024] Further, the reserved sidelink resource includes N REs, N is an integer greater than 1, and the non-reserved sidelink resource includes M REs, M is an integer greater than 1. The processing module is further configured to control the terminal to determine time-frequency distances between time-frequency positions of each of the N REs and time-frequency positions of the M REs to obtain N*M time-frequency distances; the processing module is further configured to control the terminal to add a cyclic prefix to the N*M time-frequency distances to obtain N*M time-frequency distances to which the cyclic prefix is added; and the processing module is further configured to control the terminal to hash the N*M time-frequency distances to which the cyclic prefix is added, and determine a hash value obtained by the hashing as the sidelink key.

[0025] In a fourth aspect, a key-based intelligent door lock control device is provided, which includes a module for executing the method of the second aspect.

[0026] The transceiving module is configured to receive, by the smart door lock, encrypted sidelink control information from the control terminal via sidelink resources in a sidelink resource set, wherein the sidelink resource set includes sidelink resources required for air interface transmission between the control terminal and the smart door lock; the processing module is configured to decrypt, by the smart door lock, the encrypted sidelink control information using the sidelink resource set to obtain plaintext sidelink control information, wherein the plaintext sidelink control information is used to instruct the first user to perform a first operation; and the processing module is configured to perform, by the smart door lock, the first operation according to the plaintext sidelink control information.

[0027] In a fifth aspect, an electronic device is provided, including a processor and a memory; the memory is configured to store a computer program, when the processor executes the computer program, to make the electronic device execute the method in any one of the implementation manners of the first aspect or the second aspect.

[0028] In a possible design, the electronic device in the fifth aspect can further include a transceiver. The transceiver can be a transceiving circuit or an interface circuit. The transceiver can be used for the electronic device in the fifth aspect to communicate with other electronic devices.

[0029] In the embodiments of the present application, the electronic device in the fifth aspect can be the control terminal in any one of the first aspect or the second aspect, or a chip (system) or other components or assemblies arranged in the control terminal, or an apparatus including the control terminal.

[0030] In addition, the technical effects of the electronic device in the fifth aspect can refer to the technical effects of the method in any one of the implementation manners of the first aspect or the second aspect, which will not be repeated here.

[0031] In a sixth aspect, a computer-readable storage medium is provided, including a computer program or instructions; when the computer program or instructions are run on a computer, the computer is caused to execute the method in any one of the possible implementation manners of the first aspect or the second aspect.

[0032] In a seventh aspect, a computer program product is provided, including a computer program or instructions; when the computer program or instructions are run on a computer, the computer is caused to execute the method in any one of the possible implementation manners of the first aspect or the second aspect. BRIEF DESCRIPTION OF DRAWINGS

[0033] Figure 1 An architecture schematic diagram of an Internet of Things system provided by the embodiments of the present application;

[0034] Figure 2 A flowchart of a key-based smart door lock control method provided by the embodiments of the present application;

[0035] Figure 3 A structural schematic diagram of a key-based intelligent door lock control device provided in an embodiment of the present application is shown in FIG. 1.

[0036] Figure 4 A structural schematic diagram of an electronic device provided in an embodiment of the present application is shown in FIG. 2. DETAILED DESCRIPTION

[0037] The technical solutions in the present application will be described below with reference to the accompanying drawings.

[0038] The technical solutions of the embodiments of the present application can be applied to various systems, such as a wireless network (Wi-Fi) system, a vehicle to everything (V2X) communication system, a device-to-device (D2D) communication system, a vehicle networking communication system, a 4th generation (4G) mobile communication system, such as a long term evolution (LTE) system, a worldwide interoperability for microwave access (WiMAX) communication system, a 5th generation (5G), such as a new radio (NR) system, and a future communication system, etc.

[0039] The present application will present various aspects, embodiments or features around a system which can include a plurality of devices, components, modules, etc. It should be understood and appreciated that each system can include additional devices, components, modules, etc., and / or can not include all of the devices, components, modules, etc. discussed in conjunction with the accompanying drawings. Moreover, combinations of these aspects can also be used.

[0040] In addition, in the embodiments of the present application, the words “example”, “for example”, etc. are used to mean serving as an example, instance, or illustration. Any embodiment or design presented as “example” in the present application should not be interpreted as being more preferred or advantageous than other embodiments or design solutions. Rather, the word “example” is used to present concepts in a concrete manner.

[0041] In the embodiments of this application, "information", "signal", "message", "channel" and "signaling" can be used interchangeably. It should be pointed out that when the distinction is not emphasized, the meanings expressed are matched. "Of", "corresponding" and "relevant" can be used interchangeably. It should be pointed out that when the distinction is not emphasized, the meanings expressed are matched. In addition, " / " mentioned in the embodiments of this application can be used to represent the relationship of "or". In addition, the embodiments of this application mention sending to A, sending to A, or sending to A, etc., which refers to the sending behavior with A as the destination address, which can be direct or indirect sending to A. Similarly, the embodiments of this application mention receiving from A or from A, etc., which refers to the receiving behavior with A as the source address, which can be direct or indirect receiving from A.

[0042] The network architecture and service scenarios described in the embodiments of this application are used to more clearly illustrate the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those skilled in the art can know that as the network architecture evolves and new service scenarios appear, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0043] To facilitate understanding of the embodiments of this application, first take the Internet of Things system shown in Figure 1 The Internet of Things system applicable to the embodiments of this application is described in detail. The exemplary, Figure 1 The architecture of an Internet of Things system applicable to the method provided by the embodiments of this application is shown in the figure.

[0044] Please refer to Figure 1 The embodiments of this application provide an Internet of Things system, which can include: a plurality of terminals, such as control terminals and smart door locks.

[0045] The terminal can be a terminal with wireless transceiving function or a chip or chip system that can be provided in the terminal. The terminal device can also be referred to as user equipment (UE), a device of Internet of Things, such as a smart door lock, a smart door lock, an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent or a user device. The terminal device in the embodiments of the present application can be a mobile phone, a tablet computer (Pad), a computer with wireless transceiving function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical treatment, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, a vehicle-mounted terminal, a terminal function RSU, etc. The terminal device of the present application can also be a vehicle-mounted module, a vehicle-mounted module, a vehicle-mounted component, a vehicle-mounted chip or a vehicle-mounted unit built into a vehicle as one or more components or units. The vehicle can implement the method provided in the present application by building in the vehicle-mounted module, vehicle-mounted module, vehicle-mounted component, vehicle-mounted chip or vehicle-mounted unit. The communication between terminals can be communication between terminals, which can also be referred to as side communication.

[0046] The method will be described in detail below, mainly taking the interaction between the control terminal and the smart door lock as an example.

[0047] Figure 2 The flowchart of the smart door lock control method based on the key provided in the embodiments of the present application. The smart door lock control method based on the key is applicable to the above-mentioned Internet of Things system, mainly involving the interaction between the control terminal and the smart door lock.

[0048] As shown in Figure 2 , the flow of the method is as follows:

[0049] S201, in response to the operation of the first user, the control terminal generates plaintext sidelink control information.

[0050] The operation of the first user can be an input operation. The sidelink control information in plaintext can be used to indicate that the first user needs the smart door lock to perform the first operation. For example, the sidelink control information in plaintext includes information in plaintext for indicating the first user and information in plaintext for indicating the first operation, and the two pieces of information together can indicate that the first user needs the smart door lock to perform the first operation. The information in plaintext for indicating the first user is mainly information related to the user, such as the identity of the user, which is more private information than the information in plaintext for indicating the first operation, and therefore needs to be stolen as much as possible.

[0051] In S202, the control terminal encrypts the sidelink control information in plaintext using a sidelink resource set to obtain encrypted sidelink control information.

[0052] The sidelink resource set can include sidelink resources required for air interface transmission between the control terminal and the smart door lock. That is, after the PC5 connection is established between the control terminal and the smart door lock, the two parties will agree on which sidelink resources can be used for communication between the two parties, that is, the sidelink resource set. Alternatively, the sidelink resource set can also be a protocol predefined resource.

[0053] The control terminal can use the time-frequency location of the sidelink resource in the sidelink resource set as an input parameter to generate a sidelink key. In this way, the control terminal encrypts the sidelink control information in plaintext using the sidelink key to obtain the encrypted sidelink control information. It can be understood that the time-frequency location of the sidelink resource is unique, that is, the time-frequency location of the sidelink resource used in any two communications can be different, and therefore using the time-frequency location of the sidelink resource to generate a sidelink key for sidelink encryption can also ensure the security uniqueness, that is, the sidelink key used in any two communications can also be different, to further ensure the communication security between the control terminal and the smart door lock.

[0054] In one possible way, the control terminal can use the time-frequency location of the reserved sidelink resource in the sidelink resource set as an input parameter to generate a sidelink master key. The reserved sidelink resource is a sidelink resource reserved for retransmission of the sidelink control information. The reserved sidelink resource can include N REs, where N is an integer greater than 1. The control terminal can use a first random algorithm to randomly sort the identifiers of the N REs to obtain an identifier sequence of the N REs, such as {RE#1, RE#2, RE#3, RE#4}. The first random algorithm can be a pseudo-random algorithm, that is, from the outside, the calculation result is random, but each time the calculation is actually regular. That is, for the same random calculation, the control terminal uses the first random algorithm to obtain a random result when encrypting, and the smart door lock uses the first random algorithm to obtain a random result when decrypting.

[0055] The control terminal can sort the time-frequency positions of the N REs in the order indicated by the identification sequence of the N REs, thereby obtaining a sequence of time-frequency positions of the N REs. For example, the sequence of time-frequency positions of the N REs is {RE#1(st1, fr1), RE#2(st2, fr2), RE#3(st3, fr3), RE#4(st4, fr4)}, where st represents the time domain position, and fr represents the frequency domain position, and the same applies below, which will not be repeated.

[0056] The control terminal adds a cyclic prefix to the sequence of time-frequency positions of the N REs, thereby obtaining a sequence of time-frequency positions with a cyclic prefix. For example, the control terminal can copy and add the latter part of the sequence of time-frequency positions of the N REs as a cyclic prefix to the front. For example, if RE#3(st3, fr3), RE#4(st4, fr4) are taken as a cyclic prefix, the sequence of time-frequency positions with a cyclic prefix is {(st3, fr3), RE#4(st4, fr4), RE#1(st1, fr1), RE#2(st2, fr2), RE#3(st3, fr3), RE#4(st4, fr4)}. For another example, the control terminal can copy and add the former part of the sequence of time-frequency positions of the N REs as a cyclic prefix to the front. For example, if RE#1(st1, fr1), RE#2(st2, fr2) are taken as a cyclic prefix, the sequence of time-frequency positions with a cyclic prefix is {RE#1(st1, fr1), RE#2(st2, fr2), RE#1(st1, fr1), RE#2(st2, fr2), RE#3(st3, fr3), RE#4(st4, fr4)}. For another example, the control terminal can copy and add the middle part of the sequence of time-frequency positions of the N REs as a cyclic prefix to the front. For example, if RE#2(st2, fr2), RE#3(st3, fr3) are taken as a cyclic prefix, the sequence of time-frequency positions with a cyclic prefix is {RE#2(st2, fr2), RE#3(st3, fr3), RE#1(st1, fr1), RE#2(st2, fr2), RE#3(st3, fr3), RE#4(st4, fr4)}. In addition, the sequence order of the cyclic prefix can also be inverted from the order in which it is located. For example, RE#1(st1, fr1), RE#2(st2, fr2) as a cyclic prefix, the order is inverted to {RE#2(st2, fr2), RE#1(st1, fr1)}, and the sequence of time-frequency positions with a cyclic prefix is {RE#2(st2, fr2), RE#1(st1, fr1), RE#1(st1, fr1), RE#2(st2, fr2), RE#3(st3, fr3), RE#4(st4, fr4)}.

[0057] The control terminal can hash the time-frequency position sequence to which the cyclic prefix is added, and determine the obtained hash value as the sidelink primary key. That is, the cyclic prefix is usually used for anti-multipath effect in air interface transmission, but since the addition of the cyclic prefix can change the structure of the symbol, the original structure is less likely to be seen, so it is theoretically more secure. Therefore, this feature can be reused for secure encryption to further ensure the security of communication between the control terminal and the smart door lock.

[0058] Similarly, the control terminal can also use the time-frequency position of the non-reserved sidelink resource in the sidelink resource set as an input parameter to generate a sidelink secondary key. The non-reserved sidelink resource is the sidelink resource required for the first transmission of the sidelink control information, and the number of the above-mentioned reserved sidelink resource is usually greater than the number of the non-reserved sidelink resource.

[0059] For example, the reserved sidelink resource can include M REs, M being an integer greater than 1. The control terminal can randomly sort the identifiers of the M REs by a second random algorithm to obtain an identifier sequence of the M REs. The second random algorithm is similar to the first random algorithm, which is a pseudo-random algorithm. The control terminal can sort the time-frequency positions of the M REs in the order indicated by the identifier sequence of the M REs to obtain a time-frequency position sequence of the M REs. The control terminal can add a cyclic prefix to the time-frequency position sequence of the M REs to obtain a time-frequency position sequence to which the cyclic prefix is added. The control terminal can hash the time-frequency position sequence to which the cyclic prefix is added, and determine the obtained hash value as the sidelink secondary key. That is, the cyclic prefix is usually used for anti-multipath effect in air interface transmission, but since the addition of the cyclic prefix can change the structure of the symbol, the original structure is less likely to be seen, so it is theoretically more secure. Therefore, this feature can be reused for secure encryption to further ensure the security of communication between the control terminal and the smart door lock.

[0060] In this way, the obtained sidelink key can include the sidelink primary key and the sidelink secondary key.

[0061] It can be understood that since the number of reserved sidelink resources is greater than the number of non-reserved sidelink resources, for example, there are 1-3 REs as reserved sidelink resources and 2-4 REs as non-reserved sidelink resources in a communication period. That is, the security of the sidelink primary key generated by using a larger number of reserved sidelink resources is better, which can better ensure the security of the private information in the plaintext sidelink control information and avoid being stolen. Conversely, when the sidelink secondary key is generated by using a smaller number of non-reserved sidelink resources, the generation method is simpler and the required processing resources are less.

[0062] Thus, the control terminal can encrypt the information indicating the first user in plaintext using the sidelink primary key to obtain encrypted information indicating the first user, and the control terminal can encrypt the information indicating the first operation in plaintext using the sidelink secondary key to obtain encrypted information indicating the first operation.

[0063] It can be understood that the control terminal encrypts the sidelink control information in plaintext using the sidelink key to obtain encrypted sidelink control information. It can be understood that the time-frequency location of the sidelink resource has uniqueness, that is, the time-frequency location of the sidelink resource used in any two communications can be different, and therefore using the time-frequency location of the sidelink resource to generate the sidelink key for sidelink encryption can also ensure secure uniqueness, that is, the sidelink key used in any two communications can also be different, to further ensure the security of the communication between the control terminal and the smart door lock.

[0064] In another possible manner, the control terminal can generate the sidelink key by taking the time-frequency location relationship between the reserved sidelink resource and the non-reserved sidelink resource in the sidelink resource set as an input parameter. For example, the reserved sidelink resource can include N resource elements (REs), N being an integer greater than 1, and the non-reserved sidelink resource includes M REs, M being an integer greater than 1. The control terminal can determine the time-frequency distance between the time-frequency location of each RE in the N REs and the time-frequency location of the M REs to obtain N*M time-frequency distances. The control terminal adds a cyclic prefix to the N*M time-frequency distances to obtain the N*M time-frequency distances with the cyclic prefix added. The control terminal hashes the N*M time-frequency distances with the cyclic prefix added, and determines the obtained hash value as the sidelink key. That is, the cyclic prefix is usually used in the anti-multipath effect in air interface transmission, but adding the cyclic prefix can change the structure of the symbol, making the original structure less likely to be seen, and therefore theoretically more secure. Therefore, this feature can be reused for secure encryption to further ensure the security of the communication between the control terminal and the smart door lock. Thus, the control terminal can encrypt the sidelink control information in plaintext using the sidelink key to obtain encrypted sidelink control information.

[0065] It can be understood that the time-frequency location relationship between the reserved sidelink resource and the non-reserved sidelink resource is more implicit information, or more implicit information, and using such information to generate the key can further ensure security and reduce the probability of being cracked.

[0066] S203, the control terminal sends the encrypted sidelink control information to the smart door lock through the sidelink resource in the sidelink resource set. The smart door lock receives the encrypted sidelink control information from the control terminal through the sidelink resource in the sidelink resource set.

[0067] It can be understood that the sidelink resource used to send the encrypted sidelink control information can be the reserved sidelink resource described above.

[0068] S204, the smart door lock decrypts the encrypted sidelink control information using the sidelink resource set to obtain the plaintext sidelink control information.

[0069] The smart door lock can use the same mechanism as the encryption described above to determine the sidelink key, thereby using the sidelink key to decrypt the encrypted sidelink control information to obtain the plaintext sidelink control information.

[0070] S205, the smart door lock performs a first operation according to the plaintext sidelink control information.

[0071] In summary, when it is necessary to instruct the smart door lock to perform a first operation, such as one-key opening, one-key locking, etc., since the control terminal can generate corresponding plaintext sidelink control information and encrypt the plaintext sidelink control information using the sidelink resource set, the encrypted sidelink control information. In this way, the control terminal can send the encrypted sidelink control information to the smart door lock to ensure the security of communication between the control terminal and the smart door lock.

[0072] The above describes the method provided by the embodiments of the present application. Figures 2-3 The method provided by the embodiments of the present application is described in detail below. Figure 4 The key-based smart door lock control device for executing the method provided by the embodiments of the present application is described in detail.

[0073] Figure 4 is a structure diagram of the key-based smart door lock control device provided by the embodiments of the present application. Figure 1 For example, as shown in Figure 4 , the key-based smart door lock control device 300 includes a transceiver module 301 and a processing module 302. For ease of description, Figure 4 only the main components of the key-based smart door lock control device are shown.

[0074] In some embodiments, the key-based smart door lock control device 300 can be applied to the Internet of Things system shown in Figure 1 , and perform the function of the control terminal in the method shown in Figure 2 .

[0075] The processing module 302 is configured to control the terminal to generate, in response to an operation of a first user, plaintext sidelink control information, where the sidelink control information is used to instruct the first user to require a smart door lock to perform a first operation; the processing module 302 is further configured to control the terminal to encrypt the plaintext sidelink control information using a sidelink resource set to obtain encrypted sidelink control information, where the sidelink resource set includes sidelink resources required for air interface transmission between the terminal and the smart door lock; and the transceiver module 301 is configured to control the terminal to send the encrypted sidelink control information to the smart door lock through the sidelink resources in the sidelink resource set.

[0076] In a possible design, the processing module 302 is further configured to control the terminal to generate a sidelink key by taking time-frequency positions of the sidelink resources in the sidelink resource set as input parameters; and the processing module 302 is further configured to control the terminal to encrypt the plaintext sidelink control information using the sidelink key to obtain the encrypted sidelink control information.

[0077] Optionally, the processing module 302 is further configured to control the terminal to generate a main sidelink key by taking time-frequency positions of reserved sidelink resources in the sidelink resource set as input parameters, and the processing module 302 is further configured to control the terminal to generate an auxiliary sidelink key by taking time-frequency positions of non-reserved sidelink resources in the sidelink resource set as input parameters; where the non-reserved sidelink resources are sidelink resources required for first transmission of the sidelink control information, the reserved sidelink resources are sidelink resources reserved for retransmission of the sidelink control information, the number of the reserved sidelink resources is greater than the number of the non-reserved sidelink resources, and the sidelink key includes the main sidelink key and the auxiliary sidelink key.

[0078] Further, the reserved sidelink resources include N resource elements (REs), where N is an integer greater than 1. The processing module 302 is further configured to control the terminal to randomly sort identifiers of the N REs by using a first random algorithm to obtain an identifier sequence of the N REs; the processing module 302 is further configured to control the terminal to sort time-frequency positions of the N REs in an order indicated by the identifier sequence of the N REs to obtain a time-frequency position sequence of the N REs; the processing module 302 is further configured to control the terminal to add a cyclic prefix to the time-frequency position sequence of the N REs to obtain a time-frequency position sequence to which a cyclic prefix is added; and the processing module 302 is further configured to control the terminal to hash the time-frequency position sequence to which the cyclic prefix is added, and determine a hash value obtained by the hashing as the auxiliary sidelink key.

[0079] Further, the non-reserved sidelink resource includes M resource elements (REs), and M is an integer greater than 1. The processing module 302 is further configured to control the terminal to sort, by using a second random algorithm, the identifiers of the M REs to obtain an identifier sequence of the M REs; the processing module 302 is further configured to control the terminal to sort the time-frequency positions of the M REs according to the order of the M REs indicated by the identifier sequence of the M REs to obtain a time-frequency position sequence of the M REs; the processing module 302 is further configured to control the terminal to add a cyclic prefix to the time-frequency position sequence of the M REs to obtain a time-frequency position sequence to which a cyclic prefix is added; and the processing module 302 is further configured to control the terminal to hash the time-frequency position sequence to which the cyclic prefix is added, and determine a hash value obtained by the hashing as the sidelink primary key.

[0080] Optionally, the sidelink control information in the plaintext includes information in the plaintext for indicating the first user and information in the plaintext for indicating the first operation. The processing module 302 is further configured to control the terminal to encrypt, by using the sidelink primary key, the information in the plaintext for indicating the first user to obtain encrypted information for indicating the first user, and the processing module 302 is further configured to control the terminal to encrypt, by using the sidelink secondary key, the information in the plaintext for indicating the first operation to obtain encrypted information for indicating the first operation.

[0081] Optionally, the processing module 302 is further configured to control the terminal to use, as an input parameter, a time-frequency position relationship between the reserved sidelink resource and the non-reserved sidelink resource in the sidelink resource set to generate the sidelink key; the non-reserved sidelink resource is a sidelink resource required for first transmission of the sidelink control information, and the reserved sidelink resource is a sidelink resource reserved for retransmission of the sidelink control information.

[0082] Further, the reserved sidelink resource includes N resource elements (REs), and N is an integer greater than 1; and the non-reserved sidelink resource includes M REs, and M is an integer greater than 1. The processing module 302 is further configured to control the terminal to determine time-frequency distances between the time-frequency positions of each of the N REs and the time-frequency positions of the M REs to obtain N*M time-frequency distances; the processing module 302 is further configured to control the terminal to add a cyclic prefix to the N*M time-frequency distances to obtain N*M time-frequency distances to which a cyclic prefix is added; and the processing module 302 is further configured to control the terminal to hash the N*M time-frequency distances to which the cyclic prefix is added, and determine a hash value obtained by the hashing as the sidelink key.

[0083] In some other embodiments, the key-based intelligent door lock control apparatus 300 can be applied in the Internet of Things system shown in FIG. 13, and perform the functions of the intelligent door lock in the method shown in FIG. 14. Figure 1 Figure 2 In some other embodiments, the key-based intelligent door lock control apparatus 300 can be applied in the Internet of Things system shown in FIG. 13, and perform the functions of the intelligent door lock in the method shown in FIG. 14.

[0084] ​The transceiver module 301 is used for the smart lock to receive encrypted side-way control information from the control terminal through side-way resources in the side-way resource set, wherein the side-way resource set includes the side-way resources required for air interface transmission between the control terminal and the smart lock; the processing module 302 is used for the smart lock to decrypt the encrypted side-way control information using the side-way resource set to obtain plaintext side-way control information, wherein the plaintext side-way control information is used to instruct the first user to require the smart lock to perform a first operation; the processing module 302 is used for the smart lock to perform the first operation according to the plaintext side-way control information.

[0085] Optionally, the transceiver module 301 may include a transmitting module ( Figure 4 (not shown in the image) and receiving module ( Figure 4 (Not shown in the image). The transmitting module is used to implement the transmitting function of the key-based smart lock control device 300, and the receiving module is used to implement the receiving function of the key-based smart lock control device 300.

[0086] Optionally, the key-based smart lock control device 300 may also include a storage module ( Figure 4 (Not shown in the image), this storage module stores programs or instructions. When the processing module 302 executes the program or instructions, the key-based smart lock control device 300 can perform the above-described method. Figure 2 The terminal functionality of the method shown.

[0087] It is understood that the key-based smart door lock control device 300 can be a terminal, a chip (system) or other component or assembly that can be set in the terminal, or a device that includes the terminal. This application does not limit this.

[0088] Furthermore, the technical advantages of the key-based smart lock control device 300 can be referenced. Figure 2 The technical effects of the method shown will not be elaborated here.

[0089] Figure 4 A schematic diagram of the key-based smart door lock control device provided in the embodiments of this application. Figure 2 For example, the key-based smart lock control device can be a terminal, or a chip (system) or other component or part that can be set in the terminal. Figure 4 As shown, the key-based smart lock control device 400 may include a processor 401. Optionally, the key-based smart lock control device 400 may also include a memory 402 and / or a transceiver 403. The processor 401 is coupled to the memory 402 and the transceiver 403, for example, via a communication bus.

[0090] The following is combined Figure 4The various components of the key-based smart door lock control device 400 are described in detail as follows:

[0091] The processor 401 is the control center of the key-based smart door lock control device 400, which can be one processor or a plurality of processing elements. For example, the processor 401 is one or more central processing units (CPUs), which can also be application specific integrated circuits (ASICs), or one or more integrated circuits configured to implement the embodiments of the present application, such as one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs).

[0092] Optionally, the processor 401 can execute the various functions of the key-based smart door lock control device 400 by running or executing software programs stored in the memory 402 and calling data stored in the memory 402, such as the method shown in the above Figure 4

[0093] In a specific implementation, as an embodiment, the processor 401 can include one or more CPUs, such as the CPU0 and CPU1 shown in Figure 4

[0094] In a specific implementation, as an embodiment, the key-based smart door lock control device 400 can also include a plurality of processors, such as the processor 401 and the processor 404 shown in Figure 4 Each of these processors can be a single-CPU or a multi-CPU. The processor here can refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).

[0095] The memory 402 is used to store software programs for implementing the schemes of the present application, and is controlled by the processor 401 to execute, and the specific implementation manner can refer to the above method embodiments, which will not be described here.

[0096] ​​Optionally, the memory 402 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, a magneto-optical disk, a magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by the computer, but is not limited to this. The memory 402 can be integrated with the processor 401 or exist independently and be coupled to the processor 401 through the interface circuit (not shown in the figure) of the key-based smart door lock control device 400. The embodiments of the present application are not limited in this regard. Figure 4

[0097] The transceiver 403 is configured to communicate with other key-based smart door lock control devices. For example, the key-based smart door lock control device 400 is a terminal, and the transceiver 403 can be configured to communicate with a network device or another terminal device. For another example, the key-based smart door lock control device 400 is a network device, and the transceiver 403 can be configured to communicate with a terminal or another network device.

[0098] Optionally, the transceiver 403 can include a receiver and a transmitter (not shown in the figure) separately. The receiver is configured to implement the receiving function, and the transmitter is configured to implement the transmitting function. ​

[0099] Optionally, the transceiver 403 can be integrated with the processor 401 or exist independently and be coupled to the processor 401 through the interface circuit (not shown in the figure) of the key-based smart door lock control device 400. The embodiments of the present application are not limited in this regard. ​

[0100] It can be understood that the structure of the key-based smart door lock control device 400 shown in the figure does not constitute a limitation on the key-based smart door lock control device, and the actual key-based smart door lock control device can include more or fewer components than those shown in the figure, or combine certain components, or different component arrangements. ​

[0101] ​​​​In addition, the technical effects of the key-based intelligent door lock control device 400 can refer to the technical effects of the methods described in the above method embodiments, which will not be repeated here.

[0102] It should be understood that the processor in the embodiments of the present application can be a central processing unit (CPU), and the processor can also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.

[0103] It should also be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically EPROM (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM) used as an external cache. By way of example but not limitation, many forms of random access memory (RAM) are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM) and direct rambus RAM (DR RAM).

[0104] The above-described embodiments can be implemented in whole or in part by software, hardware (such as a circuit), firmware, or any combination thereof. When implemented in software, the above-described embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the processes or functions described in the embodiments of the present application are wholly or partially generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center through a wired (such as infrared, wireless, microwave, etc.) manner. The computer-readable storage medium can be any available medium accessible by a computer or a data storage device such as a server, data center, etc. containing one or more available medium collections. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state disk.

[0105] It should be understood that the term "and / or" herein merely describes an association relationship of associated objects, which means that there can be three relationships, for example, A and / or B can represent the following three cases: A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. In addition, the character " / " herein generally represents an "or" relationship between the associated objects before and after it, but it can also represent an "and / or" relationship, which can be understood according to the context before and after it.

[0106] In this application, "at least one" means one or more, and "multiple" means two or more. "At least one of the following" or similar expressions means any combination of these items, including any combination of single item or multiple items. For example, at least one of a, b, or c can represent a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c can be single or multiple.

[0107] It should be understood that in various embodiments of the present application, the size of the sequence number of the above-described processes does not mean the order of execution, and the execution order of the processes should be determined according to their functions and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0108] Those skilled in the art can clearly understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0109] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

[0110] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the above-described device embodiments are only schematic, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.

[0111] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

[0112] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically independently, or two or more units can be integrated into one unit.

[0113] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the parts that contribute to the prior art or parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0114] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A key-based intelligent door lock control method, characterized by, The method is applied to a control terminal and comprises the following steps: In response to an operation of a first user, the control terminal generates plaintext sidelink control information, wherein the sidelink control information is used to instruct the first user to require the smart door lock to perform a first operation; The control terminal encrypts the plaintext sidelink control information using a sidelink resource set to obtain encrypted sidelink control information, wherein the sidelink resource set comprises sidelink resources required for air interface transmission between the control terminal and the smart door lock; The control terminal sends the encrypted sidelink control information to the smart door lock through sidelink resources in the sidelink resource set.

2. The method of claim 1, wherein, The control terminal encrypts the plaintext sidelink control information using a sidelink resource set to obtain encrypted sidelink control information, comprising the following steps: The control terminal generates a sidelink key by taking time-frequency positions of sidelink resources in the sidelink resource set as input parameters; The control terminal encrypts the plaintext sidelink control information using the sidelink key to obtain the encrypted sidelink control information.

3. The method of claim 2, wherein, The control terminal generates a sidelink key by taking time-frequency positions of sidelink resources in the sidelink resource set as input parameters, comprising the following steps: The control terminal generates a sidelink master key by taking time-frequency positions of reserved sidelink resources in the sidelink resource set as input parameters, and generates a sidelink auxiliary key by taking time-frequency positions of non-reserved sidelink resources in the sidelink resource set as input parameters; wherein the non-reserved sidelink resources are sidelink resources required for first transmission of the sidelink control information, the reserved sidelink resources are sidelink resources reserved for retransmission of the sidelink control information, the number of the reserved sidelink resources is greater than the number of the non-reserved sidelink resources, and the sidelink key comprises the sidelink master key and the sidelink auxiliary key.

4. The method of claim 3, wherein, The reserved sidelink resources comprise N resource elements (REs), N is an integer greater than 1, and the control terminal generates a sidelink master key by taking time-frequency positions of the reserved sidelink resources in the sidelink resource set as input parameters, comprising the following steps: The control terminal randomly sorts identifiers of the N REs by using a first random algorithm to obtain an identifier sequence of the N REs; The control terminal sorts time-frequency positions of the N REs in a sequence indicated by the identifier sequence of the N REs to obtain a time-frequency position sequence of the N REs; The control terminal adds a cyclic prefix to the time-frequency position sequence of the N REs to obtain a time-frequency position sequence with a cyclic prefix added; The control terminal hashes the time-frequency position sequence with the cyclic prefix added, and determines a hash value obtained by the hashing as the sidelink master key.

5. The method of claim 3, wherein, The non-reserved sidelink resources comprise M REs, M is an integer greater than 1, and the control terminal generates a sidelink auxiliary key by taking time-frequency positions of the non-reserved sidelink resources in the sidelink resource set as input parameters, comprising the following steps: The control terminal randomly sorts identifiers of the M REs by using a second random algorithm to obtain an identifier sequence of the M REs; The control terminal sorts the time-frequency positions of the M REs in the order indicated by the sequence of identifiers of the M REs, to obtain a sequence of time-frequency positions of the M REs; The control terminal adds a cyclic prefix to the sequence of time-frequency positions of the M REs, to obtain a sequence of time-frequency positions with a cyclic prefix added; The control terminal hashes the sequence of time-frequency positions with the cyclic prefix added, and determines a hash value obtained as the sidelink secondary key.

6. The method according to any one of claims 3-5, characterized in that, The plaintext sidelink control information includes plaintext information for indicating the first user and plaintext information for indicating the first operation, and the control terminal encrypts the plaintext sidelink control information using the sidelink key to obtain the encrypted sidelink control information, including: The control terminal encrypts the plaintext information for indicating the first user using the sidelink primary key to obtain encrypted information for indicating the first user, and encrypts the plaintext information for indicating the first operation using the sidelink secondary key to obtain encrypted information for indicating the first operation.

7. The method of claim 2, wherein, The control terminal generates a sidelink key by taking the time-frequency positions of the sidelink resources in the sidelink resource set as input parameters. The control terminal generates a sidelink key by taking the time-frequency position relationship between the reserved sidelink resources and the non-reserved sidelink resources in the sidelink resource set as input parameters; the non-reserved sidelink resources are sidelink resources required for the first transmission of the sidelink control information, and the reserved sidelink resources are sidelink resources reserved for the retransmission of the sidelink control information.

8. The method of claim 7, wherein, The reserved sidelink resources include N resource elements (REs), and N is an integer greater than 1; the non-reserved sidelink resources include M REs, and M is an integer greater than 1; the control terminal generates a sidelink key by taking the time-frequency position relationship between the reserved sidelink resources and the non-reserved sidelink resources in the sidelink resource set as input parameters. The control terminal determines the time-frequency distances between the time-frequency positions of each of the N REs and the time-frequency positions of the M REs, to obtain N*M time-frequency distances; The control terminal is the N* The control terminal hashes the N*M time-frequency distances with the cyclic prefix added, and determines a hash value obtained as the sidelink key. M time-frequency distances; The method is applied to an intelligent door lock, and the method includes: 9.A key-based smart door lock control method, characterized by, The intelligent door lock receives encrypted sidelink control information from a control terminal through sidelink resources in a sidelink resource set, wherein the sidelink resource set includes sidelink resources required for air interface transmission between the control terminal and the intelligent door lock; The intelligent door lock decrypts the encrypted sidelink control information using the sidelink resource set to obtain plaintext sidelink control information, wherein the plaintext sidelink control information is used to indicate that a first user needs the intelligent door lock to perform a first operation; The intelligent door lock performs the first operation according to the plaintext sidelink control information. The module is used to execute the method in any one of claims 1-9.

10. A key-based smart door lock control device, characterized by, ​

Citation Information

Patent Citations

  • Intelligent door lock control method and related device

    CN109949457A

  • Communication method and device

    CN110972116A