Lock control method, device and computer storage medium
By establishing a connection between the smart lock and the mobile device, the signal strength and binding status are used to automatically control the lock status, which solves the problem of cumbersome use of smart locks and improves user experience and security.
Patent Information
- Application Number
- CN202210505742.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-10
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-05-10
AI Technical Summary
Existing smart locks require frequent code scanning when users use shared vehicles multiple times in a short period of time, resulting in a cumbersome unlocking process and poor user experience.
By establishing a connection between the smart lock and the mobile device, the signal strength and binding status are used to automatically control the opening and closing status of the lock, reducing user operations and preventing malicious pairing.
It reduces the tediousness of user operations, improves user experience, enhances security, avoids unnecessary connection requests, and improves the intelligence level of smart locks.
Smart Images

Figure CN114926923B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a lock control method, device and computer storage medium. Background Art
[0002] With the development of science and technology, smart locks have penetrated into all areas of people's lives and have become an important encryption device for users to safely manage the entrances and exits of important departments or machines, such as shared vehicles.
[0003] In the prior art, when a user wants to use a shared vehicle, he or she often needs to obtain the right to use the shared vehicle by scanning a code. When the user locks the vehicle for a short time, if he or she wants to use the shared vehicle again, he or she still needs to scan the code again. Therefore, the user's unlocking process is relatively cumbersome and the user experience is poor.
[0004] Therefore, those skilled in the art are committed to developing a lock control method, device and computer storage medium that can reduce the complexity of unlocking a lock for a user. Summary of the invention
[0005] In view of the above-mentioned defects of the prior art, the technical problem to be solved by the present invention is to reduce the complexity of unlocking by users.
[0006] To achieve the above object, the present invention adopts the following technical solution:
[0007] In a first aspect, the present invention provides a lock control method, which includes: receiving a connection request while broadcasting first status information, the connection request including first identification information of a mobile device, the first status information being used to prompt that the smart lock is in a scannable and connectable state; determining whether it is in a binding allowed state with the mobile device based on the first identification information; if so, sending a response message of the connection request to the mobile device to establish a connection with the mobile device; and when a connection is established with the mobile device, controlling the smart lock to be in an open state.
[0008] In a preferred embodiment of the present invention, before controlling the smart lock to be in an open state, the method also includes: detecting the signal strength with the mobile device when a connection is established with the mobile device; controlling the smart lock to be in an open state includes: controlling the smart lock to be in an open state when the signal strength is greater than a first threshold.
[0009] In a preferred embodiment of the present invention, after controlling the smart lock to be in an open state, the method further includes: when the signal strength is less than a second threshold, disconnecting the connection with the mobile device and controlling the smart lock to be in a closed state; wherein the second threshold is less than the first threshold.
[0010] In a preferred embodiment of the present invention, the smart lock is a vehicle lock; before controlling the smart lock to be in a closed state, the method also includes: detecting the driving speed of the vehicle corresponding to the vehicle lock; disconnecting the connection with the mobile device and controlling the smart lock to be in a closed state when the signal strength is less than a second threshold, including: disconnecting the connection with the mobile device and controlling the smart lock to be in a closed state when the signal strength is less than the second threshold and the driving speed is less than a third threshold.
[0011] In a preferred embodiment of the present invention, when the driving speed is less than a third threshold, the method further includes: outputting a first prompt message, wherein the first prompt message is used to prompt the user that the vehicle lock will be closed after a preset time.
[0012] In a preferred embodiment of the present invention, determining whether the mobile device is in a state where binding is allowed based on the first identification information includes: traversing the connection information stored in the smart lock based on the first identification information; and determining that the smart lock and the mobile device are in a state where binding is allowed when the connection information stored in the smart lock includes the first connection information; wherein the first connection information includes at least one of the following: the first identification information, the latest historical connection time with the mobile device, and the account information of the mobile device for logging into a target application, and the target application is used to provide services required for the connection process and the encryption process.
[0013] In a preferred embodiment of the present invention, determining whether the smart lock and the mobile device are in a state where binding is allowed based on the first identification information includes: judging whether the first identification information is the same as the identification information contained in the first binding instruction; if they are the same, determining that the smart lock and the mobile device are in a state where binding is allowed; wherein the first binding instruction is a binding instruction sent by the cloud platform.
[0014] In a preferred embodiment of the present invention, before receiving the connection request, the method also includes: receiving the first binding instruction while broadcasting the second status information, the first binding instruction including the first identification information, the second status information being used to prompt that the smart lock is in a scannable but unconnectable state; determining the mobile device according to the first identification information, switching the binding status of the mobile device from the prohibited binding state to the allowed binding state, canceling the broadcast of the second status information and broadcasting the first status information.
[0015] In a preferred embodiment of the present invention, the first binding instruction also includes first encrypted information; after establishing the connection with the mobile device, the method also includes: obtaining second encrypted information from the mobile device, the second encrypted information being information in a second binding instruction returned by the cloud platform in response to a binding permission request sent by the mobile device; when the first encrypted information and the second encrypted information satisfy preset rules, storing the first connection information of the mobile device, and sending a binding success command to the cloud platform.
[0016] In a preferred embodiment of the present invention, establishing a connection with the mobile device includes: receiving an encrypted channel establishment request from the mobile device, the encrypted channel establishment request including at least one of the following: a feature query request, a service query request, an encryption request, and a start encryption request; and sending a response message of the encrypted channel establishment request to the mobile device.
[0017] In a second aspect, the present invention provides a lock control method, which includes: when receiving first status information, if a preset condition is met, sending a connection request to a smart lock that broadcasts the first status information, the connection request including first identification information of the mobile device, and the first status information is used to prompt that the smart lock is in a scannable and connectable state; receiving a response information to the connection request from the smart lock, and establishing a connection with the smart lock; wherein the preset condition includes at least one of the following: receiving a second binding instruction from a cloud platform, and the mobile device includes second connection information of the smart lock; the second binding instruction is used to indicate that a connection with the smart lock is allowed.
[0018] In the third aspect, the present invention provides a lock control device, comprising: a receiving unit, a processing unit and a sending unit; the receiving unit is used to receive a connection request while broadcasting first status information, the connection request including first identification information of a mobile device, and the first status information is used to prompt that the smart lock is in a scannable and connectable state; the processing unit is used to determine whether it is in a binding allowed state with the mobile device according to the first identification information; the sending unit is used to send response information of the connection request to the mobile device if so; the processing unit is also used to establish a connection with the mobile device, and when the connection is established with the mobile device, control the smart lock to be in an open state.
[0019] In a fourth aspect, the present invention provides a lock control device, comprising: a sending unit, a receiving unit and a processing unit; the sending unit is used to send a connection request to a smart lock that broadcasts the first status information when first status information is received and if a preset condition is met, the connection request includes first identification information of the mobile device, and the first status information is used to prompt that the smart lock is in a scannable and connectable state; the receiving unit is used to receive response information of the connection request from the smart lock; the processing unit is used to establish a connection with the smart lock; wherein the preset condition includes at least one of the following: receiving a second binding instruction from a cloud platform, and the mobile device includes second connection information of the smart lock; the second binding instruction is used to indicate that a connection with the smart lock is allowed.
[0020] In a fifth aspect, the present invention provides a lock control device, comprising a memory and a processor. The memory is used to store computer-executable instructions, and the processor is connected to the memory via a bus. When the lock control device is running, the processor executes the computer-executable instructions stored in the memory, so that the lock control device executes the lock control method provided by the first aspect and its various possible implementations or the second aspect.
[0021] In a sixth aspect, a computer-readable storage medium is provided, the computer-readable storage medium comprising computer execution instructions, which, when executed on a computer, enables a lock control device to execute the lock control method provided in the first aspect and its various possible implementations or the second aspect.
[0022] In a seventh aspect, a computer program product is provided, which includes computer instructions. When the computer instructions are executed on a computer, a lock control device executes the lock control method provided in the first aspect and its various possible implementations or the second aspect.
[0023] It should be noted that the above computer instructions may be stored in whole or in part on a computer-readable storage medium, wherein the computer-readable storage medium may be packaged together with the processor executing the lock control device, or may be packaged separately from the processor executing the lock control device, which is not limited in the embodiment of the present invention.
[0024] In the embodiment of the present invention, the mobile device can send a connection request to the smart lock when the preset conditions are met, and the smart lock can send a response message of the connection request to the mobile device when the mobile device is in a state of allowing binding, and then the mobile device and the smart lock can establish a connection. Through this solution, on the one hand, since the entire connection process does not require user participation, the user's operation complexity can be reduced and the user experience can be improved; on the other hand, since the smart lock can independently choose whether to send a response message according to the binding state with the mobile device, it can avoid being maliciously paired by other mobile devices, thereby improving security.
[0025] The concept, specific structure and technical effects of the present invention will be further described below in conjunction with the accompanying drawings to fully understand the purpose, characteristics and effects of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 This is one of the flow charts of a preferred embodiment of the lock control method provided by the embodiment of the present invention;
[0027] Figure 2 This is a second flow chart of a preferred embodiment of the lock control method provided by the embodiment of the present invention;
[0028] Figure 3 This is a flow chart of a preferred embodiment of the lock control method provided by the embodiment of the present invention;
[0029] Figure 4 This is a fourth flow chart of a preferred embodiment of the lock control method provided by the embodiment of the present invention;
[0030] Figure 5 It is one of the structural schematic diagrams of the lock control device provided by the embodiment of the present invention;
[0031] Figure 6 This is the second structural schematic diagram of the lock control device provided by the embodiment of the present invention;
[0032] Figure 7 This is the third structural schematic diagram of the lock control device provided in the embodiment of the present invention. DETAILED DESCRIPTION
[0033] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0034] It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0035] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present invention is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0036] In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, the words "first", "second", etc. are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first", "second", etc. are not limiting the quantity and execution order.
[0037] While some exemplary embodiments of the present invention have been described for the purpose of illustration, it should be understood that the present invention may be implemented in other ways not specifically shown in the drawings.
[0038] The above implementation is described in detail below with reference to specific embodiments and drawings.
[0039] like Figure 1As shown, an embodiment of the present invention provides a lock control method, which can be applied to a lock control system, and the lock control system includes a smart lock and a mobile device. The lock control method provided by the embodiment of the present invention is described in detail below. The lock control method may include: S101-S106:
[0040] S101. The smart lock broadcasts first status information.
[0041] Optionally, the smart lock can periodically send status information to all directions, and the status information may include first status information and second status information, wherein the data frame type of the first status information is scannable and connectable, which is used to prompt that the smart lock is in a scannable and connectable state; the data frame type of the second status information is scannable but not connectable, which is used to prompt that the smart lock is in a scannable but not connectable state.
[0042] Optionally, the smart lock may be a Bluetooth smart lock. In the case where the smart lock is a Bluetooth smart lock, the status information may be Bluetooth Low Energy (BLE) information.
[0043] Optionally, the mobile device may be a mobile phone, a tablet computer, a laptop computer, a PDA, a wearable device, etc.
[0044] Optionally, when the mobile device and the smart lock are in a binding allowed state, the smart lock can periodically broadcast first status information; when the mobile device and the smart lock are in a binding prohibited state, the smart lock can periodically broadcast second status information.
[0045] Optionally, when the mobile device and the smart lock respectively receive binding instructions sent by the cloud platform, the mobile device and the smart lock are in a binding allowed state; or, when the smart lock includes connection information of the mobile device, the mobile device and the smart lock are in a binding allowed state.
[0046] Optionally, when broadcasting the second status information, the smart lock can receive a first binding instruction sent by the cloud platform, and the first binding instruction includes first identification information of the mobile device; thereafter, the smart lock can determine the mobile device based on the first identification information, switch the binding status of the mobile device from the prohibited binding status to the allowed binding status, cancel the broadcast of the second status information and broadcast the first status information.
[0047] Specifically, the smart lock may first periodically broadcast the second status information. When the second status information is broadcast, if the user wants to open the smart lock, the target application installed in the mobile device may be in the running state, and the mobile device may send a request to allow binding to the cloud platform. The request may include the second identification information of the smart lock, the first identification information of the mobile device, and the account information of the target application. The target application may be used to provide services required for the connection and encryption process. Afterwards, the cloud platform may determine the legality of the request to allow binding. If it is legal, the cloud platform may send a first binding instruction to the smart lock, and the first binding instruction may include the first identification information, and send a second binding instruction to the mobile device. The second binding instruction is used to indicate that the connection with the smart lock is allowed. When the smart lock receives the first binding instruction, the smart lock may determine the mobile device according to the first identification information, switch the binding state of the mobile device from the prohibited binding state to the allowed binding state, cancel the broadcast of the second status information, and broadcast the first status information. When the mobile device receives the second binding instruction, the mobile device may send a connection request to the smart lock.
[0048] Optionally, after the binding state of the mobile device is switched from the prohibited binding state to the permitted binding state, the smart lock may switch the binding state of the mobile device from the permitted binding state to the prohibited binding state if the duration of the permitted binding state is greater than the first duration. That is, after the smart lock is in the permitted binding state, if the connection with the mobile device is not completed within the first duration, the smart lock may switch the binding state from the permitted binding state to the prohibited binding state.
[0049] S102: When receiving the first status information, if a preset condition is met, the mobile device sends a connection request to the smart lock that broadcasts the first status information.
[0050] Accordingly, the smart lock receives a connection request while broadcasting the first status information, wherein the connection request includes the first identification information of the mobile device, and the first status information is used to indicate that the smart lock is in a scannable and connectable state.
[0051] Optionally, when the smart lock broadcasts the first status information, if the mobile device receives the first status information broadcast by the smart lock, the mobile device can determine whether the current device status meets the preset conditions, and if the preset conditions are met, a connection request can be sent to the smart lock. The preset conditions may include at least one of the following: the mobile device receives the second binding instruction from the cloud platform, and the mobile device includes the second connection information of the smart lock.
[0052] It should be noted that when a mobile device establishes a connection with a smart lock for the first time, the mobile device needs to receive the second binding instruction from the cloud platform before it can send a connection request to the smart lock; when there is a connection history between the mobile device and the smart lock, the mobile device will have the second connection information of the smart lock. Therefore, the mobile device can bypass the cloud platform and send a connection request directly to the smart lock.
[0053] Optionally, the second connection information may include second identification information of the smart lock, where the second identification information is unique identification information of the smart lock. For example, the second identification information may be the factory serial number of the smart lock.
[0054] S103: The smart lock determines whether it is in a binding allowed state with the mobile device according to the first identification information.
[0055] Optionally, the smart lock can traverse the connection information stored in the smart lock according to the first identification information; and when the connection information stored in the smart lock includes the first connection information, determine that the smart lock and the mobile device are in a binding allowed state; wherein the first connection information includes at least one of the following: the first identification information, the latest historical connection time with the mobile device, and the account information of the mobile device for logging into the target application, and the target application is used to provide the services required during the connection process and the encryption process.
[0056] Optionally, when the mobile device establishes a connection with the smart lock for the first time, the smart lock may receive a first binding instruction sent by the cloud platform, and the first binding instruction may include first identification information. Therefore, the smart lock may also determine whether it is in a state of allowing binding with the mobile device based on the first binding instruction. Specifically, the smart lock may determine whether the first identification information is the same as the identification information included in the first binding instruction; if they are the same, it is determined that the smart lock is in a state of allowing binding with the mobile device; wherein the first binding instruction is a binding instruction sent by the cloud platform.
[0057] S104: If yes, the smart lock sends a response message of the connection request to the mobile device.
[0058] Correspondingly, the mobile device receives response information of the connection request from the smart lock.
[0059] Optionally, when the first connection information includes the latest historical connection time, before the smart lock sends the response information of the connection request to the mobile device, the storage time of the first connection information can be determined based on the current time and the latest historical connection time; and when the storage time is greater than a first threshold, the first connection information is deleted. In other words, the first connection information of the mobile device stored in the smart lock is time-limited. If the mobile device and the smart lock are not connected again within a time exceeding the first threshold, the smart lock can delete the first connection information.
[0060] S105: The mobile device establishes a connection with the smart lock.
[0061] Optionally, the smart lock establishes a connection with the mobile device, which may specifically include: after the mobile device receives the response information of the connection request, the mobile device may send an encrypted channel establishment request to the smart lock, and the encrypted channel establishment request includes at least one of the following: a feature query request, a service query request, an encryption request, and a start encryption request; accordingly, the smart lock receives the encrypted channel establishment request from the mobile device; then, the smart lock may send the response information of the encrypted channel establishment request to the mobile device, and accordingly, the mobile device may receive the response information of the encrypted channel establishment request from the smart lock. When the mobile device receives the response information of the smart lock, it successfully establishes a connection with the smart lock.
[0062] Specifically, Figure 2 As shown, since the encrypted channel establishment request may include at least one of the following: a feature query request, a service query request, an encryption request, and a start encryption request, the mobile device sending the encrypted channel establishment request to the smart lock may include S201a-S201d:
[0063] S201a. The mobile device sends a feature query request to the smart lock. The feature query request is used to query transmission feature information, for example, whether it is encrypted transmission, the transmission bandwidth, the transmission rate, etc.
[0064] S201b. The mobile device sends a service query request to the smart lock, where the service query request is used to query the transmission service type and transmission attribute type, etc.
[0065] S201c. The mobile device sends an encryption request to the smart lock, where the encryption request is used to send a partial transmission password required for encryption to the smart lock.
[0066] S201d. The mobile device sends a start encryption request to the smart lock, where the start encryption request is used to request to start the encryption transmission process.
[0067] Optionally, continue to refer to Figure 2, the response information of the encrypted channel establishment request may include first response information, second response information, third response information and fourth response information, and the response information of the encrypted channel establishment request sent by the smart lock to the mobile device may include S202a-S202d:
[0068] S202a. When the encrypted channel establishment request includes a feature query request, the smart lock may send a first response message to the mobile device, and the first response message may include an enable flag for using encrypted communication.
[0069] S202b. When the encryption channel establishment request includes a service query request, the smart lock may send a second response message to the mobile device, and the second response message may include a standard access service, a standard attribute service, and a custom service.
[0070] S202c. When the encryption channel establishment request includes an encryption request, the smart lock may send a third response message to the mobile device, and the third response message may include another part of the transmission password required for encryption.
[0071] S202d. When the encryption channel establishment request includes an encryption request, the smart lock may send a fourth response message to the mobile device, and the fourth response message may include a start encryption response data frame.
[0072] Optionally, in the case where the encryption channel establishment request includes an encryption request, the smart lock can receive an encryption request from a mobile device, and the encryption request can include M random passwords; thereafter, the smart lock can send a response message of the encryption request to the mobile device, and the response message of the encryption request can include N random passwords; the M random passwords and the N random passwords can be used as communication keys to achieve encrypted communication between the smart lock and the mobile device. That is, since the mobile device and the smart lock have M+N random passwords respectively, the smart lock can use the M random passwords and the N random passwords as communication keys to achieve encrypted communication with the mobile device, and the mobile device can also use the M random passwords and the N random passwords as communication keys to achieve encrypted communication with the smart lock; wherein M and N are both positive integers greater than 1. Based on this scheme, since the smart lock can determine the communication key by receiving an encryption request and sending a response, even if the encryption request or response is leaked during the transmission process, it will not cause the leakage of the communication key, thereby avoiding the failure of encrypted communication, and further improving the security of encrypted communication.
[0073] Optionally, after the smart lock establishes a connection with the mobile device, the smart lock may update the latest historical connection time in the first connection information.
[0074] Optionally, the first binding instruction may also include first encrypted information; after successfully establishing the connection, the smart lock can obtain second encrypted information from the mobile device through the BLE standard access service and the standard attribute service, and the second encrypted information is the information in the second binding instruction returned by the cloud platform in response to the binding request sent by the mobile device; thereafter, the smart lock can determine whether the first encrypted information and the second encrypted information meet the preset rules. If the preset rules are met, the smart lock can confirm the legal identity of the mobile device. Therefore, the smart lock can store the first connection information of the mobile device and send a binding success command to the cloud platform when the first encrypted information and the second encrypted information meet the preset rules.
[0075] Correspondingly, after successfully establishing a connection with the smart lock, the mobile device can obtain the first encrypted information from the smart lock, and if the first encrypted information and the second encrypted information meet the preset rules, store the second connection information of the smart lock and send a binding success command to the cloud platform.
[0076] Optionally, the second binding instruction may further include a broadcast frame feature; after receiving the second binding instruction from the cloud platform, the mobile device may determine target state information from the received state information according to the broadcast frame feature, and the target state information includes the first state information. Afterwards, the mobile device may send a connection request to the smart lock corresponding to each state information in the target state information. In this way, the efficiency of establishing the encrypted channel may be improved.
[0077] S106. When a connection is established with the mobile device, control the smart lock to be in an open state.
[0078] Optionally, before controlling the smart lock to be in an open state, the smart lock may detect the signal strength with the mobile device when a connection is established with the mobile device; and control the smart lock to be in an open state when the signal strength is greater than a first threshold.
[0079] That is to say, after establishing a connection with the mobile device, the smart lock also needs to determine whether the signal strength with the mobile device is greater than the first threshold. If so, the smart lock can be controlled to be in an open state. Through this solution, the smart lock can more intelligently determine the distance between the user and the smart lock, so that when the user is close to the smart lock, the smart lock is controlled to be in an open state. In this way, the safety of unlocking can be guaranteed and the user experience can be improved.
[0080] Optionally, after controlling the smart lock to be in an open state, the smart lock can disconnect from the mobile device and control the smart lock to be in a closed state when the signal strength is less than a second threshold; wherein the second threshold is less than the first threshold.
[0081] Specifically, when the signal strength is less than the second threshold, it means that the user is far away from the smart lock, and the user may need to close the lock. Therefore, the smart lock can disconnect the mobile device and control the smart lock to be in a closed state when the signal strength is less than the second threshold. Since the user does not need to perform any operation throughout the process, the user's operation complexity can be reduced and the user experience can be improved.
[0082] Optionally, the smart lock is a vehicle lock; before controlling the smart lock to be in a closed state, the smart lock can detect the driving speed of the vehicle corresponding to the vehicle lock; when the signal strength is less than a second threshold and the driving speed is less than a third threshold, the connection with the mobile device is disconnected and the smart lock is controlled to be in a closed state.
[0083] Specifically, when the smart lock is a vehicle lock, the user's vehicle safety also needs to be considered. If the user drops the mobile device during riding, the signal strength will still be less than the second threshold. Therefore, the smart lock also needs to detect the driving speed of the vehicle corresponding to the vehicle lock. When the signal strength is less than the second threshold and the driving speed is less than the third threshold, the smart lock is controlled to be in the closed state. In this way, the intelligence of the smart lock can be improved and the personal safety of the user can be guaranteed.
[0084] Optionally, when the driving speed is less than a third threshold, the smart lock may output a first prompt message, wherein the first prompt message is used to prompt the user that the vehicle lock will be closed after a preset time.
[0085] Specifically, since the first prompt information is outputted, the user can know that the smart lock is about to be closed. Therefore, the user can take corresponding measures for the vehicle according to his or her own needs, such as putting the vehicle in a parking space as soon as possible, or increasing the vehicle's driving speed.
[0086] In the embodiment of the present invention, the mobile device can send a connection request to the smart lock when the preset conditions are met, and the smart lock can send a response message of the connection request to the mobile device when the mobile device is in a state of allowing binding, and then the mobile device and the smart lock can establish a connection. Through this solution, on the one hand, since the entire connection process does not require user participation, the user's operation complexity can be reduced and the user experience can be improved; on the other hand, since the smart lock can independently choose whether to send a response message according to the binding state with the mobile device, it can avoid being maliciously paired by other mobile devices, thereby improving security.
[0087] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware 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 exceed the scope of the present application.
[0088] The lock control method provided in the embodiment of the present application can be executed by a lock control device or a control module for unlocking in the lock control device. In the embodiment of the present application, the lock control device provided in the embodiment of the present application is described by taking the lock control method executed by the lock control device as an example.
[0089] It should be noted that the embodiment of the present application can divide the functional modules of the lock control device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0090] like Figure 3 As shown, an embodiment of the present invention provides a connection method, which can be applied to the above-mentioned smart lock. The connection method may include: S301-S304:
[0091] S301. Receive a connection request while broadcasting first status information.
[0092] The connection request includes first identification information of the mobile device, and the first status information is used to prompt that the smart lock is in a scannable and connectable state.
[0093] Optionally, before receiving the connection request, the method also includes: receiving the first binding instruction while broadcasting the second status information, the first binding instruction including the first identification information, and the second status information is used to prompt that the smart lock is in a scannable but unconnectable state; determining the mobile device according to the first identification information, switching the binding status of the mobile device from the prohibited binding state to the allowed binding state, canceling the broadcast of the second status information and broadcasting the first status information.
[0094] S302: Determine, according to the first identification information, whether the mobile device is in a binding allowed state.
[0095] Optionally, determining whether the mobile device is in a binding allowed state based on the first identification information includes: traversing the connection information stored in the smart lock based on the first identification information; and determining that the smart lock and the mobile device are in a binding allowed state when the connection information stored in the smart lock includes the first connection information; wherein the first connection information includes at least one of the following: the first identification information, the latest historical connection time with the mobile device, and the account information of the mobile device for logging into a target application, and the target application is used to provide services required for the connection process and encryption process.
[0096] Optionally, determining whether the smart lock and the mobile device are in a state where binding is allowed based on the first identification information includes: judging whether the first identification information is the same as the identification information contained in the first binding instruction; if they are the same, determining that the smart lock and the mobile device are in a state where binding is allowed; wherein the first binding instruction is a binding instruction sent by the cloud platform.
[0097] S303: If yes, send response information of the connection request to the mobile device to establish a connection with the mobile device.
[0098] Optionally, establishing a connection with the mobile device includes: receiving an encrypted channel establishment request from the mobile device, the encrypted channel establishment request including at least one of the following: a feature query request, a service query request, an encryption request, and a start encryption request; and sending response information of the encrypted channel establishment request to the mobile device.
[0099] Optionally, the first binding instruction also includes first encrypted information; after establishing the connection with the mobile device, the method also includes: obtaining second encrypted information from the mobile device, the second encrypted information being information in a second binding instruction returned by the cloud platform in response to a binding request sent by the mobile device; when the first encrypted information and the second encrypted information meet preset rules, storing the first connection information of the mobile device, and sending a binding success command to the cloud platform.
[0100] S304: When a connection is established with the mobile device, control the smart lock to be in an open state.
[0101] Optionally, before controlling the smart lock to be in an open state, the smart lock may detect the signal strength with the mobile device when a connection is established with the mobile device; and control the smart lock to be in an open state when the signal strength is greater than a first threshold.
[0102] Optionally, after controlling the smart lock to be in an open state, the smart lock can disconnect from the mobile device and control the smart lock to be in a closed state when the signal strength is less than a second threshold; wherein the second threshold is less than the first threshold.
[0103] Optionally, the smart lock is a vehicle lock; before controlling the smart lock to be in a closed state, the smart lock can detect the driving speed of the vehicle corresponding to the vehicle lock; when the signal strength is less than a second threshold and the driving speed is less than a third threshold, the connection with the mobile device is disconnected and the smart lock is controlled to be in a closed state.
[0104] Optionally, when the driving speed is less than a third threshold, the smart lock may output a first prompt message, wherein the first prompt message is used to prompt the user that the vehicle lock will be closed after a preset time.
[0105] In an embodiment of the present invention, the smart lock can send a response message of the connection request to the mobile device when the mobile device is in a state of allowing binding, and then the mobile device and the smart lock can establish a connection. When the connection is established with the mobile device, the smart lock can be controlled to be in an open state. Through this solution, on the one hand, since the entire connection process does not require user participation, the user's operation complexity can be reduced and the user experience can be improved; on the other hand, since the smart lock can independently choose whether to send a response message according to the binding state with the mobile device, it can avoid being maliciously paired by other mobile devices, thereby improving security.
[0106] like Figure 4As shown, an embodiment of the present invention provides a connection method, which can be applied to the above mobile device. The connection method may include: S401-S402:
[0107] S401. When first status information is received, if a preset condition is met, a connection request is sent to the smart lock that broadcasts the first status information.
[0108] Among them, the connection request includes the first identification information of the mobile device, the first status information is used to prompt that the smart lock is in a scannable and connectable state, and the preset condition includes at least one of the following: receiving a second binding instruction from the cloud platform, and the mobile device includes the second connection information of the smart lock; the second binding instruction is used to indicate that a connection with the smart lock is allowed.
[0109] S402: Receive response information of the connection request from the smart lock and establish a connection with the smart lock.
[0110] In the embodiment of the present invention, the mobile device can send a connection request to the smart lock when the preset conditions are met, and establish a connection with the smart lock after receiving the response information sent by the smart lock. Through this solution, since the entire connection process does not require user participation, the user's operation complexity can be reduced and the user experience can be improved.
[0111] like Figure 5 As shown, an embodiment of the present application provides a lock control device 500, which is applied to a smart lock. The lock control device 500 includes: a receiving unit 501, a processing unit 502 and a sending unit 503; the receiving unit 501 is used to receive a connection request in the case of broadcasting first status information, wherein the connection request includes first identification information of a mobile device, and the first status information is used to prompt that the smart lock is in a scannable and connectable state; the processing unit 502 is used to determine whether it is in a binding-allowed state with the mobile device according to the first identification information; the sending unit 503 is used to send a response message of the connection request to the mobile device if so; the processing unit 502 is also used to establish a connection with the mobile device, and control the smart lock to be in an open state when the connection is established with the mobile device.
[0112] Optionally, before controlling the smart lock to be in an open state, the processing unit 502 is used to detect the signal strength with the mobile device when a connection is established with the mobile device; and control the smart lock to be in an open state when the signal strength is greater than a first threshold.
[0113] Optionally, after controlling the smart lock to be in an open state, the processing unit 502 is used to disconnect the connection with the mobile device and control the smart lock to be in a closed state when the signal strength is less than a second threshold; wherein the second threshold is less than the first threshold.
[0114] Optionally, the smart lock is a vehicle lock; before controlling the smart lock to be in a closed state, the processing unit 502 is used to detect the driving speed of the vehicle corresponding to the vehicle lock; when the signal strength is less than a second threshold and the driving speed is less than a third threshold, disconnect the connection with the mobile device and control the smart lock to be in a closed state.
[0115] Optionally, the device further includes an output unit 504; the output unit 504 is used to output a first prompt message when the driving speed is less than a third threshold, and the first prompt message is used to prompt the user that the vehicle lock will be closed after a preset time.
[0116] Optionally, the processing unit 502 is specifically used to traverse the connection information stored in the smart lock according to the first identification information; when the connection information stored in the smart lock includes the first connection information, determine that the smart lock and the mobile device are in a binding allowed state; wherein the first connection information includes at least one of the following: the first identification information, the latest historical connection time with the mobile device, and the account information of the mobile device for logging into the target application, and the target application is used to provide the services required for the connection process and the encryption process.
[0117] Optionally, the processing unit 502 is specifically used to determine whether the first identification information is the same as the identification information contained in the first binding instruction; if they are the same, it is determined that the smart lock and the mobile device are in a binding allowed state; wherein, the first binding instruction is a binding instruction sent by the cloud platform.
[0118] Optionally, the receiving unit 501 is also used to receive the first binding instruction before receiving the connection request, while broadcasting the second status information, wherein the first binding instruction includes the first identification information, and the second status information is used to prompt that the smart lock is in a scannable but non-connectable state; the processing unit 502 is also used to determine the mobile device based on the first identification information, switch the binding status of the mobile device from the prohibited binding state to the allowed binding state, cancel the broadcast of the second status information and broadcast the first status information.
[0119] Optionally, the first binding instruction also includes first encrypted information; after establishing the connection with the mobile device, the processing unit 502 is also used to obtain second encrypted information from the mobile device, and the second encrypted information is the information in the second binding instruction returned by the cloud platform in response to the binding permission request sent by the mobile device; when the first encrypted information and the second encrypted information meet the preset rules, the first connection information of the mobile device is stored; the sending unit 503 is also used to send a binding success command to the cloud platform.
[0120] Optionally, the receiving unit 501 is specifically used to receive an encrypted channel establishment request from the mobile device, and the encrypted channel establishment request includes at least one of the following: a feature query request, a service query request, an encryption request, and a start encryption request; the sending unit 503 is specifically used to send response information of the encrypted channel establishment request to the mobile device.
[0121] Of course, the lock control device 500 provided in the embodiment of the present application includes but is not limited to the above-mentioned units.
[0122] The lock control device provided in the embodiment of the present invention can send the response information of the connection request to the mobile device when the mobile device is in a state of allowing binding, and then the mobile device and the lock control device can establish a connection, and when the connection is established with the mobile device, the lock control device is controlled to be in an open state. Through this scheme, on the one hand, since the entire connection process does not require user participation, the user's operation complexity can be reduced and the user experience can be improved; on the other hand, since the lock control device can independently choose whether to send the response information according to the binding state with the mobile device, it can avoid being maliciously paired by other mobile devices, thereby improving security.
[0123] like Figure 6 As shown, an embodiment of the present application provides a lock control device 600, which is applied to a mobile device. The lock control device 600 includes: a sending unit 601, a receiving unit 602 and a processing unit 603; the sending unit 601 is used to send a connection request to the smart lock that broadcasts the first state information when receiving the first state information, if the preset condition is met, the connection request includes the first identification information of the mobile device, and the first state information is used to prompt that the smart lock is in a scannable and connectable state; the receiving unit 602 is used to receive the response information of the connection request from the smart lock; the processing unit 603 is used to establish a connection with the smart lock; wherein the preset condition includes at least one of the following: receiving a second binding instruction from the cloud platform, and the mobile device includes the second connection information of the smart lock; the second binding instruction is used to indicate that the connection with the smart lock is allowed.
[0124] The lock control device provided in the embodiment of the present invention can send a connection request to the smart lock when the preset conditions are met, and establish a connection with the smart lock after receiving the response information sent by the smart lock. Through this solution, since the entire connection process does not require user participation, the user's operation complexity can be reduced and the user experience can be improved.
[0125] The present application also provides a method Figure 7 The lock control device shown includes a processor 11, a memory 12, a communication interface 13, and a bus 14. The processor 11, the memory 12, and the communication interface 13 may be connected via the bus 14.
[0126] The processor 11 is the control center of the lock control device, which can be a processor or a general term for multiple processing elements. For example, the processor 11 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.
[0127] As an embodiment, the processor 11 may include one or more CPUs, such as Figure 7 CPU 0 and CPU 1 are shown in .
[0128] The memory 12 may 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, or an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0129] In a possible implementation, the memory 12 may exist independently of the processor 11, and the memory 12 may be connected to the processor 11 via a bus 14 to store instructions or program codes. When the processor 11 calls and executes the instructions or program codes stored in the memory 12, the deployment method of the service function chain provided in the embodiment of the present application can be implemented.
[0130] In another possible implementation, the memory 12 may also be integrated with the processor 11 .
[0131] The communication interface 13 is used to connect with other devices via a communication network. The communication network may be Ethernet, wireless access network, wireless local area network (WLAN), etc. The communication interface 13 may include a receiving unit for receiving data and a sending unit for sending data.
[0132] The bus 14 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0133] It should be pointed out that Figure 7 The structure shown does not constitute a limitation on the lock control device. Figure 7 In addition to the components shown, the lock control device may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0134] The embodiment of the present invention further provides a computer-readable storage medium, which includes computer-executable instructions. When the computer-executable instructions are executed on a computer, the computer executes the steps executed by the lock control device in the lock control method provided in the above embodiment.
[0135] An embodiment of the present invention also provides a computer program product, which can be directly loaded into a memory and contains software code. After being loaded and executed by a computer, the computer program product can implement the lock control method provided in the above embodiment and execute each step performed by the lock control device.
[0136] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for a terminal to execute the methods described in each embodiment of the present invention.
[0137] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A lock control method, It is characterized in that Applied to smart locks, including: In the case of broadcasting the first status information, receiving a connection request, the connection request including the first identification information of the mobile device, the first status information being used to prompt that the smart lock is in a scannable and connectable state; wherein, when there is a mobile device and the smart lock in a binding-allowed state, the smart lock periodically broadcasts the first status information; when the mobile device receives the first status information, if a preset condition is met, the mobile device sends a connection request to the smart lock that broadcasts the first status information; Determining whether the smart lock is in a binding-allowed state with the mobile device according to the first identification information; comprising: traversing the connection information stored in the smart lock according to the first identification information; and determining that the smart lock is in a binding-allowed state with the mobile device when the connection information stored in the smart lock includes the first connection information; If so, sending a response message of the connection request to the mobile device to establish a connection with the mobile device; When a connection is established with the mobile device, the smart lock is controlled to be in an open state.
2. The lock control method according to claim 1, It is characterized in that Before controlling the smart lock to be in an open state, the method further includes: When a connection is established with the mobile device, detecting a signal strength between the mobile device and the mobile device; The controlling the smart lock to be in an open state includes: When the signal strength is greater than a first threshold, the smart lock is controlled to be in an open state.
3. The lock control method according to claim 2, It is characterized in that After controlling the smart lock to be in an open state, the method further includes: When the signal strength is less than a second threshold, disconnecting from the mobile device and controlling the smart lock to be in a closed state; The second threshold is smaller than the first threshold.
4. The lock control method according to claim 3, It is characterized in that The smart lock is a vehicle lock; Before controlling the smart lock to be in a closed state, the method further includes: Detecting the driving speed of the vehicle corresponding to the vehicle lock; When the signal strength is less than a second threshold, disconnecting from the mobile device and controlling the smart lock to be in a closed state includes: When the signal strength is less than a second threshold and the driving speed is less than a third threshold, the connection with the mobile device is disconnected and the smart lock is controlled to be in a closed state.
5. The lock control method according to claim 4, It is characterized in that When the driving speed is less than a third threshold, the method further includes: Outputting a first prompt message, wherein the first prompt message is used to prompt a user that the vehicle lock will be closed after a preset time.
6. The lock control method according to claim 1, characterized in that: in, The first connection information includes at least one of the following: the first identification information, the latest historical connection time with the mobile device, and account information of the mobile device logging into a target application, where the target application is used to provide services required during the connection process and encryption process.
7. The lock control method according to claim 1, It is characterized in that The determining, according to the first identification information, whether the mobile device is in a binding allowed state includes: Determining whether the first identification information is the same as the identification information included in the first binding instruction; If they are the same, it is determined that the smart lock and the mobile device are in a binding permission state; The first binding instruction is a binding instruction sent by the cloud platform.
8. The lock control method according to claim 7, It is characterized in that Before receiving the connection request, the method further includes: In the case of broadcasting the second status information, receiving the first binding instruction, the first binding instruction including the first identification information, and the second status information is used to prompt that the smart lock is in a scannable but unconnectable state; The mobile device is determined according to the first identification information, the binding state of the mobile device is switched from the binding prohibited state to the binding allowed state, the broadcasting of the second state information is canceled and the first state information is broadcasted.
9. The lock control method according to claim 8, It is characterized in that The first binding instruction also includes first encryption information; after establishing the connection with the mobile device, the method further includes: Acquire second encrypted information from the mobile device, where the second encrypted information is information in a second binding instruction returned by the cloud platform in response to a binding permission request sent by the mobile device; When the first encryption information and the second encryption information satisfy a preset rule, the first connection information of the mobile device is stored, and a binding success command is sent to the cloud platform.
10. The lock control method according to claim 1, It is characterized in that The establishing a connection with the mobile device comprises: Receiving an encryption channel establishment request from the mobile device, the encryption channel establishment request comprising at least one of the following: a feature query request, a service query request, an encryption request, and a start encryption request; Sending response information of the encryption channel establishment request to the mobile device.
11. A lock control method, It is characterized in that Applicable to mobile devices, including: When the first status information is received, if a preset condition is met, a connection request is sent to the smart lock that broadcasts the first status information, wherein the connection request includes the first identification information of the mobile device, and the first status information is used to prompt that the smart lock is in a scannable and connectable state; wherein when there is a mobile device and the smart lock in a binding-allowed state, the smart lock periodically broadcasts the first status information; Receive response information of the connection request from the smart lock, and establish a connection with the smart lock; wherein the smart lock traverses the connection information stored in the smart lock according to the first identification information; and when the connection information stored in the smart lock includes the first connection information, determine that the smart lock and the mobile device are in a binding-allowed state, and send a response information of the connection request to the mobile device; Among them, the preset conditions include at least one of the following: receiving a second binding instruction from the cloud platform, and the mobile device includes second connection information of the smart lock; the second binding instruction is used to indicate that a connection with the smart lock is allowed.
12. A lock control device, It is characterized in that include: Receiving unit, processing unit and sending unit; The receiving unit is used to receive a connection request when broadcasting first status information, wherein the connection request includes first identification information of the mobile device, and the first status information is used to prompt that the smart lock is in a scannable and connectable state; wherein when there is a mobile device and the smart lock in a binding-allowed state, the device periodically broadcasts the first status information; when the mobile device receives the first status information, if a preset condition is met, the mobile device sends a connection request to the smart lock that broadcasts the first status information; The processing unit is used to determine whether the smart lock is in a binding-allowed state with the mobile device according to the first identification information; wherein the processing unit is specifically used to traverse the connection information stored in the smart lock according to the first identification information; and when the connection information stored in the smart lock includes the first connection information, determine that the smart lock and the mobile device are in a binding-allowed state; The sending unit is configured to send response information of the connection request to the mobile device if yes; The processing unit is further used to establish a connection with the mobile device, and control the smart lock to be in an open state when the connection is established with the mobile device.
13. A lock control device, It is characterized in that include: A sending unit, a receiving unit and a processing unit; The sending unit is used to send a connection request to the smart lock that broadcasts the first status information when the first status information is received and a preset condition is met, wherein the connection request includes the first identification information of the mobile device, and the first status information is used to prompt that the smart lock is in a scannable and connectable state; wherein when there is a mobile device and the smart lock in a binding-allowed state, the smart lock periodically broadcasts the first status information; The receiving unit is used to receive response information of the connection request from the smart lock; The processing unit is configured to establish a connection with the smart lock; wherein the smart lock traverses the connection information stored in the smart lock according to the first identification information; and when the connection information stored in the smart lock includes the first connection information, determines that the smart lock and the mobile device are in a binding-allowed state, and sends a response message of the connection request to the mobile device; Among them, the preset conditions include at least one of the following: receiving a second binding instruction from the cloud platform, and the mobile device includes second connection information of the smart lock; the second binding instruction is used to indicate that a connection with the smart lock is allowed.
14. A lock control device, It is characterized in that It includes a memory and a processor; the memory is used to store computer-executable instructions, and the processor is connected to the memory via a bus; When the lock control device is running, the processor executes the computer-executable instructions stored in the memory, so that the lock control device executes the lock control method according to any one of claims 1 to 10 or 11.
15. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes computer-executable instructions. When the computer-executable instructions are executed on a computer, the computer is enabled to execute the lock control method according to any one of claims 1 to 10 or 11.
Citation Information
Patent Citations
Intelligent parking space lock system
CN106256960A
Orderly bicycle parking management system and method based on low power consumption wide area network
CN107038808A
Mobile terminal, Bluetooth pairing name classification processing method therefor, and storage equipment
CN107155167A
A ZIGBEE-based shared bicycle management method and system
CN107316404A
Temporary parking method for site-specific returning bicycle sharing system
CN107464360A
