Method, device, storage medium and terminal device for accessing door lock to Internet of Things platform

Obtain the IMEI number and MAC address of the smart NB-IOT door lock through terminal devices and connect it to the Internet of Things platform, solving the problems of slow speed and complex processes of traditional gateway distribution networks, and achieving a faster and simpler distribution process.

CN114760711BActive Publication Date: 2025-05-06SHENZHEN DANBAY TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011607678.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-29
Publication Date
2025-05-06
Estimated Expiration
2040-12-29

AI Technical Summary

Technical Problem

In the prior art, intelligent NB-IOT door locks are distributed through gateways, and there are problems such as slow distribution speed and complex process.

Method used

Establish a Bluetooth connection with the target door lock through the terminal device, obtain the door lock information (IMEI number and MAC address), and connect the door lock to the Internet of Things platform based on this information to avoid relying on the gateway for network distribution.

Benefits of technology

The distribution network process is simplified, the distribution network speed is improved, and the problems of slow distribution network speed and complex processes in traditional methods are solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114760711B_ABST
    Figure CN114760711B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, storage medium and terminal device for accessing a door lock to an Internet of Things platform. The method comprises: when the terminal device establishes a Bluetooth connection with a target door lock, obtaining door lock information of the target door lock, the door lock information including an IMEI number and a MAC address; and accessing the target door lock to the Internet of Things platform according to the door lock information. The present invention configures the door lock through the Internet of Things platform without relying on a gateway for network configuration, thereby simplifying the network configuration process and improving the network configuration speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of door lock network distribution processing, and in particular to a method, device, storage medium and terminal equipment for accessing a door lock to an Internet of Things platform. Background Art

[0002] With the continuous advancement of Internet of Things technology, more and more apartments, hotels and families choose to use smart NB-IOT door locks, allowing users to abandon the current situation of unlocking with keys. Therefore, in an Internet environment, users can use mobile phones and computers to check the status of door locks and manage door lock passwords anytime and anywhere, thereby improving the quality of life of users and bringing them many conveniences.

[0003] However, in order for mobile phones and computers to control smart NB-IOT door locks, smart devices need to be configured to access the Internet. Traditional door locks rely on gateways for network configuration, which has problems such as slow network configuration speed and complicated processes.

[0004] Therefore, the prior art needs to be improved and developed. Summary of the invention

[0005] The technical problem to be solved by the present invention is that, in view of the deficiencies in the prior art, a method, device, storage medium and terminal device for accessing a door lock to an Internet of Things platform are provided, aiming to solve the problem that when a door lock is connected to a network through a gateway, the network connection is slow and the process is complicated.

[0006] In order to achieve the above object, the present invention adopts the following technical solutions:

[0007] In a first aspect, an embodiment of the present invention provides a method for accessing a door lock to an Internet of Things platform, including:

[0008] When the terminal device establishes a Bluetooth connection with the target door lock, the door lock information of the target door lock is obtained, and the door lock information includes the IMEI number and MAC address;

[0009] Connect the target door lock to the IoT platform based on the door lock information.

[0010] In a second aspect, an embodiment of the present invention provides a door lock access Internet of Things platform device, including:

[0011] The acquisition module is used to obtain the door lock information of the target door lock when the terminal device establishes a Bluetooth connection with the target door lock. The door lock information includes the IMEI number and the MAC address;

[0012] The access module is used to connect the target door lock to the Internet of Things platform according to the door lock information.

[0013] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a door lock access to the Internet of Things platform program, and the door lock access to the Internet of Things platform program is executed by a processor to implement the steps in any one of the above methods.

[0014] In a fourth aspect, an embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a door lock access Internet of Things platform program stored in the memory and executable on the processor, and when the door lock access Internet of Things platform program is executed by the processor, the steps in any one of the above methods are implemented.

[0015] Beneficial effects: Compared with the prior art, the present invention provides a method, device, storage medium and terminal device for accessing a door lock to an Internet of Things platform. The method comprises: when the terminal device establishes a Bluetooth connection with a target door lock, obtaining the door lock information of the target door lock, wherein the door lock information includes an IMEI number and a MAC address; and accessing the target door lock to the Internet of Things platform according to the door lock information. The present invention configures the door lock through the Internet of Things platform without relying on the gateway for network configuration, thereby simplifying the network configuration process and improving the network configuration speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 A flow chart of the method for connecting a door lock to an Internet of Things platform provided by the present invention;

[0018] Figure 2 Another flow chart of the method for accessing a door lock to an Internet of Things platform provided by the present invention;

[0019] Figure 3 A schematic diagram of the structure of a door lock access Internet of Things platform device provided by the present invention;

[0020] Figure 4 This is a structural principle diagram of the terminal device provided by the present invention. DETAILED DESCRIPTION

[0021] The present invention provides a method, device, storage medium and terminal device for accessing an Internet of Things platform to a door lock. In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0022] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "an" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0023] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as herein.

[0024] The development of IoT technology is becoming more mature, and its application is becoming more and more extensive, with more and more IoT devices emerging. Among them, smart door locks based on IoT have received widespread attention. Since smart door locks based on IoT allow users to no longer rely on keys to unlock, users can use smart devices such as mobile phones and computers to check the status of door locks and manage door lock passwords anytime and anywhere in a network environment, which improves the quality of life of users and brings many conveniences to users. At present, more and more apartments, hotels or families choose to use smart door locks based on IoT. Among them, smart NB-IOT door locks are one of the most widely used smart door locks based on IoT. Narrowband Internet of Things (NB-IOT) is an important branch of the Internet of Things. NB-IOT is built on cellular networks and consumes only about 180kHz of bandwidth. It can be directly deployed on GSM networks, UMTS networks or LTE networks to reduce deployment costs and achieve smooth upgrades, so it is widely used.

[0025] However, in order for mobile phones and computers to control smart NB-IOT door locks, it is necessary to configure smart devices to access the Internet. Traditional door locks rely on gateways for network configuration, which has problems such as slow network configuration speed and complicated processes. Therefore, a better way to connect door locks to the Internet is needed.

[0026] In order to solve the problems existing in the prior art, the present invention provides a method for connecting a door lock to an Internet of Things platform. In an embodiment of the present invention, when a terminal device establishes a Bluetooth connection with a target door lock, the door lock information of the target door lock is obtained, and the door lock information includes an IMEI number and a MAC address; the target door lock is connected to the Internet of Things platform according to the door lock information. The present invention configures the door lock through the Internet of Things platform without relying on the gateway for network configuration, thereby simplifying the network configuration process and improving the network configuration speed.

[0027] The invention is further described below by describing embodiments in conjunction with the accompanying drawings.

[0028] This embodiment provides a method for accessing a door lock to an Internet of Things platform. Figure 1 and Figure 2 As shown, the method includes:

[0029] S100. When the terminal device establishes a Bluetooth connection with the target door lock, the terminal device obtains door lock information of the target door lock, wherein the door lock information includes an IMEI number and a MAC address.

[0030] Specifically, the terminal device can be a mobile phone, a tablet computer, an e-book reader, etc., or a fixed terminal such as a TV, a computer, etc., which is not limited here; the target door lock is a smart NB-IOT door lock. In this embodiment, the terminal device can establish a Bluetooth connection with the target door lock, and after the terminal device establishes a Bluetooth connection with the target door lock, the door lock information of the security door lock is obtained, and then the door lock is included in the Internet of Things platform based on the door lock information. Specifically, the terminal device establishes a Bluetooth connection with the target door lock, which specifically includes: calling a preset SDK file so that the terminal device and the target door lock establish a Bluetooth connection according to the SDK file. In other words, the preset SDK file can be based on the Bluetooth SDK design corresponding to the smart door lock provided by the manufacturer.

[0031] Furthermore, after the terminal device establishes a Bluetooth connection with the target door lock, the door lock information of the target door lock is obtained, wherein the door lock information includes the IMEI number and the MAC address. Specifically, the IMEI number is the international mobile equipment identity code corresponding to the door lock, and the MAC address is the unique identifier of the target door lock. When the terminal device obtains the door lock information, it can perform network configuration according to the door lock information.

[0032] In actual applications, before the terminal device establishes a Bluetooth connection with the target door lock, it also includes: controlling the target smart door lock to enter the configurable mode. For smart door locks with configurable modes, manufacturers generally provide methods for entering the configurable mode of the corresponding smart door lock, for example, pressing a button to open the configurable mode. Based on the corresponding method for entering the configurable mode, the target door lock is controlled to enter the network distribution mode, so as to further bind the door lock to the room.

[0033] S200. The terminal device connects the target door lock to the Internet of Things platform according to the door lock information.

[0034] In this embodiment, connecting the target door lock to the Internet of Things platform according to the door lock information specifically includes:

[0035] The terminal device calls the preset network distribution interface to enable the server to record the door lock information and call the preset Internet of Things platform registration interface according to the door lock information to connect the target door lock to the Internet of Things platform.

[0036] Specifically, when the terminal device obtains the door lock information corresponding to the door lock, it can call the network configuration interface provided by the server (cloud) to enable the server to save and record the door lock information. In actual applications, in order to improve the security of the door lock information, the door lock information must be encrypted according to the preset key. In this way, after the server receives the encrypted door lock information, it must first decrypt it before it can obtain the original door lock information. Therefore, calling the preset network configuration interface specifically includes:

[0037] Encrypting the door lock information to obtain encrypted door lock information;

[0038] The preset network configuration interface is called so that the server can decrypt the encrypted door lock information to obtain the door lock information.

[0039] Specifically, the encryption process of the door lock information can be executed at the door lock end or at the terminal device end. In this embodiment, the encryption process at the door lock end is used as an example for explanation. The door lock can be pre-set with an encryption key. Optionally, the encryption key can be pre-set for the door lock. Therefore, the IMEI number and MAC address corresponding to the door lock are encrypted by random numbers, so that the encrypted IMEI number and MAC address can be obtained. In other words, the encrypted IMEI number and MAC address constitute the encrypted door lock information. After the terminal device obtains the encrypted door lock information, it calls the preset network distribution interface. The preset network distribution interface is pre-set for the server. In other words, the terminal device calls the network distribution interface, and the server receives the encrypted door lock information. Then, the server decrypts the encrypted door lock information to obtain the door lock information. Therefore, the server end is also pre-set with a key consistent with the door lock, and the encrypted door lock is decrypted by the key, thereby improving the security of the door lock information.

[0040] Furthermore, after recording the door lock information, the server will also call the preset Internet of Things platform registration interface according to the door lock information to connect the target door lock to the Internet of Things platform. In this embodiment, the preset Internet of Things platform registration interface can determine whether the target door lock has been registered on the Internet of Things platform according to the target door lock information. Only when it is determined that the target door lock has been successfully registered on the Internet of Things platform can the next step of binding the room and the door lock be performed. It can be understood that if the target door lock is not successfully registered on the Internet of Things platform, that is, the door lock that has not been authenticated by the Internet of Things platform for legitimacy, the next step of binding the door lock and the room in the embodiment of the present invention cannot be performed.

[0041] Furthermore, after the target door lock is connected to the Internet of Things platform according to the door lock information, the following steps are also included:

[0042] The terminal device marks the network configuration status of the target door lock as configured.

[0043] In this embodiment, when the target door lock is successfully connected to the Internet of Things platform, the network configuration status of the target door lock is marked as configured; correspondingly, when the target door lock is not successfully connected to the Internet of Things platform, the network configuration status of the target door lock is marked as not configured. Therefore, after the server determines the network configuration status of the door lock, it first records the network configuration status corresponding to the door lock, and then feeds back the network configuration status to the terminal device. In this way, when the terminal terminal determines that the network configuration status of the target door lock is configured, it calls the network configuration success interface to achieve the binding of the target door lock and the target room.

[0044] Correspondingly, marking the network configuration status of the target door lock as configured also includes:

[0045] The terminal device obtains the target room and the room identifier corresponding to the target room;

[0046] The terminal device binds the target door lock to the target room according to the room identification and door lock information.

[0047] In this embodiment, when the target door lock is successfully networked, the target room will be obtained, wherein the target room refers to the room to be bound and paired with the target door lock, and the target room is configured with a room identifier, and the room identifier is unique, thereby improving the efficiency and accuracy of room binding. Further, the terminal device can call a pre-set network configuration success interface according to the room identifier and the door lock information of the target door lock, thereby realizing the binding of the target door lock and the target room. Optionally, the target door lock information can specifically be the MAC address of the door lock, so the MAC address is unique, so the MAC address of the target door lock can be quickly bound to the room identifier of the room. It should be noted that the network configuration success interface is pre-set by the server, so in this embodiment, the server realizes the binding of the target room and the target door lock, and then feeds back the binding result to the terminal device. Therefore, the present invention realizes an efficient, safe and reliable intelligent door lock network configuration and binding method.

[0048] In summary, compared with the prior art, the embodiments of the present invention have the following advantages:

[0049] The present invention discloses a method for accessing a door lock to an Internet of Things platform, the method comprising: when a terminal device establishes a Bluetooth connection with a target door lock, obtaining door lock information of the target door lock, the door lock information including an IMEI number and a MAC address; and accessing the target door lock to the Internet of Things platform according to the door lock information. The present invention performs network configuration for the door lock through the Internet of Things platform, rather than relying on a gateway for network configuration, thereby simplifying the network configuration process and improving the network configuration speed.

[0050] Based on the above-mentioned method for accessing the door lock to the Internet of Things platform, the present invention also provides a device for accessing the door lock to the Internet of Things platform, such as Figure 3 As shown, the device comprises:

[0051] The acquisition module 41 is used to acquire the door lock information of the target door lock when the terminal device establishes a Bluetooth connection with the target door lock, and the door lock information includes the IMEI number and the MAC address;

[0052] The access module 42 is used to connect the target door lock to the Internet of Things platform according to the door lock information.

[0053] Furthermore, the acquisition module 41 includes:

[0054] The Bluetooth connection module is used to call the preset SDK file so that the terminal device and the target door lock establish a Bluetooth connection according to the SDK file.

[0055] Further, the access module 42 includes:

[0056] The registration module is used to call the preset network distribution interface so that the server can record the door lock information and call the preset Internet of Things platform registration interface according to the door lock information to connect the target door lock to the Internet of Things platform.

[0057] Further, the access module 42 includes:

[0058] An encryption module, used for encrypting door lock information to obtain encrypted door lock information;

[0059] The decryption module is used to call the preset network configuration interface so that the server can decrypt the encrypted door lock information to obtain the door lock information.

[0060] Furthermore, the device also includes:

[0061] The marking module is used to mark the network configuration status of the target door lock as configured.

[0062] Furthermore, the device also includes:

[0063] A room acquisition module is used to acquire a target room and a room identifier corresponding to the target room;

[0064] The room binding module is used to bind the target door lock to the target room according to the room identification and door lock information.

[0065] Furthermore, the device also includes:

[0066] A control unit is used to control the target smart door lock to enter a configurable mode.

[0067] It should be noted that technical personnel in the relevant field can clearly understand that the specific implementation process of the above-mentioned door lock access to the Internet of Things platform device and each module can refer to the corresponding description in the aforementioned door lock access to the Internet of Things platform method embodiment. For the convenience and conciseness of the description, it will not be repeated here.

[0068] The above-mentioned door lock access to the Internet of Things platform device can be implemented in the form of a computer program, and the computer program can be as follows Figure 4 The terminal equipment shown is running.

[0069] Based on the above-mentioned method for door lock access to the Internet of Things platform, the present invention also provides a computer-readable storage medium, which stores one or more programs for door lock access to the Internet of Things platform. One or more programs for door lock access to the Internet of Things platform can be executed by one or more processors to implement the steps in the method for door lock access to the Internet of Things platform in the above-mentioned embodiment.

[0070] Based on the above-mentioned method for connecting a door lock to an Internet of Things platform, the present invention also provides a terminal device, such as Figure 4As shown, it includes at least one processor (processor) 20; display screen 21; and memory (memory) 22, and may also include a communications interface (Communications Interface) 23 and a bus 24. Among them, the processor 20, the display screen 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a preset user guide interface in the initial setting mode. The communication interface 23 can transmit information. The processor 20 can call the logic instructions in the memory 22 to execute the method in the above embodiment.

[0071] In addition, the logic instructions in the memory 22 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.

[0072] The memory 22 is a computer-readable storage medium that can be configured to store software programs, computer executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes functional applications and data processing by running the software programs, instructions or modules stored in the memory 22, that is, implementing the methods in the above embodiments.

[0073] The memory 22 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 22 may include a high-speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, may also be a transient storage medium.

[0074] In addition, the specific process of loading and executing the multiple instruction processors in the above-mentioned storage medium and the terminal device has been described in detail in the above-mentioned method, and will not be described one by one here.

[0075] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for accessing a door lock to an Internet of Things platform, characterized in that: include: When the terminal device establishes a Bluetooth connection with the target door lock, the door lock information of the target door lock is obtained, and the door lock information includes the IMEI number and the MAC address; Connecting the target door lock to the Internet of Things platform according to the door lock information; The terminal device establishes a Bluetooth connection with the target door lock, including: Calling a preset SDK file so that the terminal device and the target door lock establish a Bluetooth connection according to the SDK file; After connecting the target door lock to the Internet of Things platform according to the door lock information, the method further includes: Mark the network configuration status of the target door lock as configured; After marking the network configuration state of the target door lock as configured, the method further includes: Obtain a target room and a room identifier corresponding to the target room; The target door lock is bound to the target room according to the room identifier and the door lock information.

2. The method according to claim 1, characterized in that The step of connecting the target door lock to the Internet of Things platform according to the door lock information includes: The preset network distribution interface is called so that the server records the door lock information and calls the preset Internet of Things platform registration interface according to the door lock information to connect the target door lock to the Internet of Things platform.

3. The method according to claim 2, characterized in that The calling of the preset network configuration interface includes: Encrypting the door lock information to obtain encrypted door lock information; The preset network distribution interface is called so that the server can decrypt the encrypted door lock information to obtain the door lock information.

4. The method according to claim 1, characterized in that: Before the terminal device establishes a Bluetooth connection with the target door lock, the method further includes: Control the target smart door lock to enter a configurable mode.

5. A door lock access Internet of Things platform device, characterized in that: include: An acquisition module, used to acquire door lock information of the target door lock when the terminal device establishes a Bluetooth connection with the target door lock, wherein the door lock information includes an IMEI number and a MAC address; An access module, used to connect the target door lock to the Internet of Things platform according to the door lock information; The terminal device establishes a Bluetooth connection with the target door lock, including: Calling a preset SDK file so that the terminal device and the target door lock establish a Bluetooth connection according to the SDK file; After the target door lock is connected to the Internet of Things platform according to the door lock information, the method further includes: Mark the network configuration status of the target door lock as configured; After marking the network configuration state of the target door lock as configured, the method further includes: Obtain a target room and a room identifier corresponding to the target room; The target door lock is bound to the target room according to the room identifier and the door lock information.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a door lock access Internet of Things platform program, and the door lock access Internet of Things platform program is executed by a processor to implement the steps in the method according to any one of claims 1 to 4.

7. A terminal device, characterized in that: The terminal device includes a processor, a memory, and a door lock access Internet of Things platform program stored in the memory and executable on the processor. When the door lock access Internet of Things platform program is executed by the processor, the steps in the method described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • KR20200052434A