Cable conduit lock key information transmission system and method based on Bluetooth connection
By performing key authentication and Bluetooth connection establishment in the cable piping intelligent lock management system, the problem of low security between user-side devices and smart key Bluetooth connection in the existing technology is solved, and the secure transmission of keys and high security management of cable piping intelligent locks are realized.
Patent Information
- Application Number
- CN202411706447.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2044-11-26
AI Technical Summary
In the existing cable piping intelligent lock management technology, the security of Bluetooth connection between user-side devices and smart keys is low, resulting in relatively low key transmission security.
The cable piping lock management device queries the associated smart key information collection, and obtains the pre-opened cable piping smart lock information of the user terminal device, determines the associated smart key of the user terminal device, and sends the key information with the smart key to be verified and identification information to the user terminal device. The user terminal device performs the order of splitting and matching combination processing of the code to be verified, and performs key authentication based on the analytical data and identification information. If it is passed, establish a Bluetooth connection and transmits the key information.
It realizes a secure connection between the user-side device and the smart key, ensures the secure transmission of the key, and improves the security of the smart lock of the cable piping.
Smart Images

Figure CN119810955A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of cable duct intelligent lock management, and in particular, to a cable duct lock key information transmission system and method based on Bluetooth connection. Background Art
[0002] During the cable laying process, there are often problems such as cables not being installed in the prescribed order, cables not being in the same position in each cable well, and cables being tangled in a disorderly manner, which increases the difficulty of the workers' work and increases the difficulty and time of maintenance work. In addition, the underground resources in first-tier cities are extremely tight at present, and cable ducts, as special ducts for cable laying, are often occupied, such as optical cables and communication lines, which affects the subsequent power construction and operation. In order to solve the above problems, cable duct smart locks came into being. Cable duct smart locks combine digital encryption, wireless communication and remote management technology to ensure that only authorized personnel can access cable ducts, thereby effectively preventing unauthorized access and potential threats.
[0003] In the relevant cable and duct smart lock management solution, when the user-end device receives the key issued by the cable and duct smart lock management platform, it needs to establish a Bluetooth connection with the smart key and transmit the key to the smart key for insertion into the cable and duct smart lock to open it. In this way, the security of the Bluetooth connection between the user-end device and the smart key is low, resulting in relatively low security of key transmission. Summary of the invention
[0004] The embodiments of the present invention provide a cable duct lock key information transmission system and method based on Bluetooth connection, which solves the problem that the security of Bluetooth connection between user-end devices and smart keys in existing cable duct smart lock management technologies is low, resulting in relatively low security of key transmission. It can achieve a secure connection between user-end devices and smart keys and ensure the secure transmission of keys.
[0005] In a first aspect, an embodiment of the present invention provides a method for transmitting key information of a cable duct lock based on a Bluetooth connection, comprising:
[0006] The cable duct lock management device, when key information has been generated, queries the associated smart key information set according to the received user terminal device information, and obtains the pre-opening cable duct smart lock information uploaded by the user terminal device corresponding to the stored user terminal device information;
[0007] The cable duct lock management device determines the associated smart key of the user terminal device according to the smart key information set and the pre-opening cable duct smart lock information, wherein the smart key information set includes codes to be verified and identification information of multiple smart keys, and synchronously sends the key information and the codes to be verified and identification information of the associated smart key to the user terminal device;
[0008] The user terminal device receives the key information, the code to be verified and the identification information of the associated smart key sent by the cable duct lock management device, sequentially splits and matches the code to be verified to obtain parsed data, and determines whether the key identity verification of the associated smart key is successful based on the parsed data and the identification information. If the key identity verification is successful, the user terminal device establishes a Bluetooth connection with the associated smart key based on the identification information;
[0009] The user terminal device transmits the key information to the associated smart key based on the established Bluetooth connection.
[0010] Optionally, determining the associated smart key of the user terminal device according to the smart key information set and the pre-opening cable duct smart lock information includes:
[0011] The cable duct lock management device acquires connection record data of each smart key in the stored smart key information set, and determines a plurality of associated smart keys to be determined that meet preset connectable conditions among the smart keys based on the connection record data;
[0012] The cable duct lock management device matches the pre-opened cable duct smart lock information with the identification information of each to-be-determined associated smart key, and determines the to-be-determined associated smart key corresponding to the identification information that successfully matches the pre-opened cable duct smart lock information as the associated smart key of the user terminal device.
[0013] Optionally, the determining, based on the connection record data, a plurality of to-be-determined associated smart keys that meet a preset connectable condition among the smart keys includes:
[0014] The cable duct lock management device determines the number of connections of each smart key within a preset time according to the connection record data, and determines the smart key whose number of connections does not reach the preset number as the associated smart key to be determined.
[0015] Optionally, sequentially splitting and matching the codes to be verified to obtain parsed data includes:
[0016] The user terminal device determines adjacent coded characters with the same format from front to back in the code to be verified as a matching object, and performs matching and combination processing on each of the matching objects and pre-stored matching information to obtain parsed data.
[0017] Optionally, the pre-stored matching information includes a plurality of preset matching objects and corresponding character strings, and the matching and combining processing of each of the matching objects with the pre-stored matching information to obtain parsed data includes:
[0018] The user terminal device matches each of the matching objects with each of the preset matching objects respectively, determines the character string corresponding to the successfully matched preset matching object as the to-be-combined parsed data of the matching object, and combines the to-be-combined parsed data of each of the matching objects according to the arrangement order in the to-be-verified code to obtain parsed data.
[0019] Optionally, the determining whether the key identity authentication of the associated smart key is successful based on the parsed data and the identification information includes:
[0020] The user terminal device obtains pre-stored comparison information, the pre-stored comparison information including a plurality of comparison and analysis data and associated comparison identification information, and queries whether there is comparison and analysis data identical to the analysis data in the pre-stored comparison information;
[0021] When there is comparison parsing data that is identical to the parsing data, the user terminal device determines whether the comparison identification information associated with the comparison parsing data is identical to the identification information. If they are the same, it is determined that the key identity authentication of the associated smart key is successful; otherwise, it is determined that the key identity authentication of the associated smart key is unsuccessful.
[0022] Optionally, the user terminal device establishes a Bluetooth connection with the associated smart key based on the identification information, including:
[0023] The user terminal device sets the identification information as priority search information and searches for broadcast information containing the identification information. When broadcast information containing the identification information is found, the user terminal device automatically connects to the smart key that sends the broadcast information containing the identification information.
[0024] In a second aspect, an embodiment of the present invention further provides a cable duct lock key information transmission system based on Bluetooth connection, comprising:
[0025] A query module, used for the cable duct lock management device to query the associated smart key information set according to the received user terminal device information when the key information has been generated;
[0026] An acquisition module, used to acquire the pre-opening cable duct smart lock information uploaded by the user terminal device corresponding to the stored user terminal device information;
[0027] A key determination module, used for the cable duct lock management device to determine the associated smart key of the user terminal device according to the smart key information set and the pre-opening cable duct smart lock information, wherein the smart key information set includes codes to be verified and identification information of multiple smart keys;
[0028] An information sending module, used for synchronously sending the key information, the code to be verified and the identification information of the associated smart key to the user terminal device;
[0029] The parsed data determination module is used for receiving the key information, the code to be verified and the identification information of the associated smart key sent by the cable duct lock management device on the user terminal device, and performing sequential splitting and matching combination processing on the code to be verified to obtain parsed data;
[0030] A key identity authentication module, used to determine whether the key identity authentication of the associated smart key is successful based on the parsed data and the identification information;
[0031] A Bluetooth connection establishing module, configured to establish a Bluetooth connection between the user terminal device and the associated smart key based on the identification information when the key identity authentication passes;
[0032] The key transmission module is used for the user terminal device to transmit the key information to the associated smart key based on the established Bluetooth connection.
[0033] In a third aspect, an embodiment of the present invention further provides a cable duct lock key information transmission device based on Bluetooth connection, the device comprising:
[0034] one or more processors;
[0035] a storage device for storing one or more programs,
[0036] When the one or more programs are executed by the one or more processors, the one or more processors implement the cable duct lock key information transmission method based on Bluetooth connection according to an embodiment of the present invention.
[0037] In a fourth aspect, an embodiment of the present invention further provides a storage medium storing computer executable instructions, which, when executed by a computer processor, are used to execute the cable duct lock key information transmission method based on Bluetooth connection described in an embodiment of the present invention.
[0038] In an embodiment of the present invention, when the key information has been generated, the cable duct lock management device queries the associated smart key information set according to the received user terminal device information, and obtains the pre-opening cable duct smart lock information uploaded by the user terminal device corresponding to the stored user terminal device information. The cable duct lock management device determines the associated smart key of the user terminal device according to the smart key information set and the pre-opening cable duct smart lock information. The smart key information set includes the to-be-verified codes and identification information of multiple smart keys. The key information and the to-be-verified codes and identification information of the associated smart key are synchronously sent to the user terminal device. The user terminal device receives the key information, the to-be-verified codes and identification information of the associated smart key sent by the cable duct lock management device, sequentially splits and matches the to-be-verified codes to obtain parsed data, and determines whether the key identity authentication of the associated smart key is successful based on the parsed data and the identification information. If the key identity authentication is successful, the user terminal device establishes a Bluetooth connection with the associated smart key based on the identification information, and the user terminal device transmits the key information to the associated smart key based on the established Bluetooth connection. This solution solves the problem of low security of Bluetooth connection between user-end devices and smart keys in existing cable duct smart lock management technology through key identity authentication, which leads to relatively low security of key transmission. It can realize secure connection between user-end devices and smart keys and ensure secure transmission of keys. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A flowchart of a method for transmitting key information of a cable duct lock based on Bluetooth connection provided by an embodiment of the present invention;
[0040] Figure 2 A flowchart of another method for transmitting key information of a cable duct lock based on Bluetooth connection provided by an embodiment of the present invention;
[0041] Figure 3 A flowchart of another method for transmitting key information of a cable duct lock based on Bluetooth connection provided by an embodiment of the present invention;
[0042] Figure 4 A module structure diagram of a cable duct lock key information transmission system based on Bluetooth connection provided by an embodiment of the present invention;
[0043] Figure 5 A schematic structural diagram of a cable pipe lock key information transmission device based on Bluetooth connection provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the embodiments of the present invention, rather than to limit the embodiments of the present invention. It is also necessary to explain that, for ease of description, only parts related to the embodiments of the present invention are shown in the accompanying drawings, rather than all structures.
[0045] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and or or" in the specification and claims represents at least one of the connected objects, and the character "or" generally indicates that the objects associated before and after are in an "or" relationship.
[0046] The cable duct lock key information transmission method based on Bluetooth connection provided in the embodiment of the present application can be applied to the key transmission scenario between the user terminal device and the smart key of the cable duct smart lock. The cable duct lock key information transmission method based on Bluetooth connection provided in the embodiment of the present application, the execution subject of each step can be a computer device, which refers to any electronic device with data calculation, processing and storage capabilities, such as mobile phones, PCs (Personal Computers), tablet computers and other terminal devices, and can also be servers and other devices, which are not limited in the embodiment of the present application.
[0047] Figure 1 A flowchart of a method for transmitting key information of a cable duct lock based on Bluetooth connection is provided in an embodiment of the present invention, such as Figure 1 As shown, specifically including:
[0048] Step S101: When the key information has been generated, the cable duct lock management device queries the associated smart key information set according to the received user terminal device information, and obtains the pre-opening cable duct smart lock information uploaded by the user terminal device corresponding to the stored user terminal device information.
[0049] Among them, the key information is used to represent the encrypted information verified when the cable duct smart lock is opened. The cable duct lock management device can be a management layer device for managing each cable duct smart lock, and the cable duct lock management device can be used to manage various related operations of each cable duct smart lock. The user-end device information is used to represent the relevant information of the user-end device requesting to open the cable duct smart lock. The user-end device can be a terminal device specially used for users to open the cable duct smart lock. The smart key information set can be a combination of multiple smart key information. The pre-opening cable duct smart lock information is used to represent the relevant information of the cable duct smart lock requested to be opened by the user-end device. An exemplary example can be that the user-end device information received by the cable duct lock management device is the user-end device identifier, and the user-end device identifier is A1, and the smart key information set associated with the user-end device identifier A1 is queried as the smart key information set a, and the pre-opening cable duct smart lock information uploaded by the user terminal device corresponding to the stored user-end device identifier A1 is obtained as the cable duct smart lock identifier T12.
[0050] Step S102, the cable duct lock management device determines the associated smart key of the user terminal device according to the smart key information set and the pre-opening cable duct smart lock information, the smart key information set includes the codes to be verified and identification information of multiple smart keys, and synchronously sends the key information and the codes to be verified and identification information of the associated smart keys to the user terminal device.
[0051] Among them, the associated smart key can be a smart key associated with the current situation of the user terminal device. The code to be verified is used to represent the data code waiting for verification. The identification information can be identification data representing the smart key. In one embodiment, the cable duct lock device matches the pre-open cable duct smart lock information with each identification information in the smart key information set, and determines the smart key corresponding to the successfully matched identification information as the associated smart key of the user terminal device. Optionally, a method for determining the associated smart key can be that the cable duct lock management device obtains the connection record data of each smart key in the stored smart key information set, determines multiple associated smart keys to be determined in each smart key that meet the preset connectable conditions based on the connection record data, and the cable duct lock management device matches the pre-open cable duct smart lock information with the identification information of each associated smart key to be determined, and determines the associated smart key to be determined corresponding to the identification information that successfully matches the pre-open cable duct smart lock information as the associated smart key of the user terminal device. By filtering the connectable smart keys in the smart key information set through the connection record data, and then matching them with the pre-open cable duct smart lock information, the workload of the matching process can be reduced, and the associated smart key of the user terminal device can be quickly determined.
[0052] Step S103: The user terminal device receives the key information, the code to be verified and the identification information of the associated smart key sent by the cable duct lock management device, sequentially splits and matches the code to be verified to obtain parsed data, and determines whether the key identity authentication of the associated smart key is successful based on the parsed data and the identification information.
[0053] Among them, key identity authentication is used to characterize the user terminal device's authentication of the identity of the determined associated smart key. In one embodiment, after the user terminal device receives the key information, the code to be verified of the associated smart key, and the identification information sent by the cable duct lock management device, it queries the preset parsing data comparison table according to the code to be verified of the associated smart key to obtain the corresponding parsing data. Optionally, a method for determining the parsing data may be that the user terminal device determines the adjacent coded characters with the same format from front to back in the code to be verified of the associated smart key as a matching object, and matches and combines each matching object with the pre-stored matching information to obtain the parsing data. By splitting the code to be verified to obtain multiple matching objects, and matching and combining each matching object to obtain the parsing data of the code to be verified, the complexity of the parsing of the code to be verified can be increased, so as to improve the security of subsequent key identity authentication.
[0054] In one embodiment, after sequentially splitting and matching the code to be verified of the associated smart key to obtain parsed data, the parsed data of the code to be verified of the associated smart key and the identification information of the associated smart key are integrated to obtain key identity authentication information, and the key identity authentication information is compared with each pre-stored comparison information. If there is pre-stored comparison information with successful comparison, it is determined that the key identity authentication of the associated smart key is successful, otherwise, it is determined that the key identity authentication of the associated smart key is unsuccessful. Optionally, a key identity authentication method may be that the user terminal device obtains pre-stored comparison information, the pre-stored comparison information includes multiple comparison parsed data and associated comparison identification information, and queries whether there is comparison parsed data identical to the parsed data in the pre-stored comparison information. If there is comparison parsed data identical to the parsed data, the user terminal device determines whether the comparison identification information associated with the comparison parsed data is identical to the identification information. If they are identical, it is determined that the key identity authentication of the associated smart key is successful, otherwise, it is determined that the key identity authentication of the associated smart key is unsuccessful. An illustrative example may be that the comparison and parsing data in the pre-stored comparison information obtained by the user terminal device are 11234679, 22347216, 39846514, 34580264, and 76452890, respectively, and the corresponding comparison identification information are A1, A2, A3, A4, and A5, respectively. The parsing data of the code to be verified of the associated smart key of the user terminal device is 22347216, and the identification information of the associated smart key of the user terminal device is A2. There is comparison and parsing data identical to the parsing data in the pre-stored comparison information, and the comparison identification information associated with the comparison and parsing data is the same as the identification information of the associated smart key of the user terminal device, both of which are A2, and it is determined that the key identity authentication of the associated smart key is successful.
[0055] Step S104: When the key identity authentication is passed, the user terminal device establishes a Bluetooth connection with the associated smart key based on the identification information, and transmits the key information to the associated smart key based on the established Bluetooth connection.
[0056] Among them, the Bluetooth connection is used to characterize a short-range wireless communication technology, which is usually used to connect electronic devices within a specified range, and uses low-power radio waves for communication. The user terminal device can transmit data to the associated smart key using the Bluetooth connection established between the user terminal device and the associated smart key. In one embodiment, when the key identity authentication is passed, the user terminal device matches the identification information of the associated smart key with each broadcast information within a preset range, and automatically connects to the smart key corresponding to the broadcast information of the successful match when there is a broadcast information with a successful match. Optionally, a method for establishing a Bluetooth connection can be that the user terminal device sets the identification information of the associated smart key as the priority search information, and searches for the broadcast information with the identification information of the associated smart key. When the broadcast information l with the identification information of the associated smart key is searched, the user terminal device automatically connects to the smart key that sends the broadcast information with the identification information of the associated smart key. An exemplary example may be that the identification information of the associated smart key of the user terminal device is A1, then A1 is set as the priority search information, and the broadcast information containing A1 is searched. The current broadcast information includes broadcast information 1, broadcast information 2, and broadcast information 3. Among them, if A1 exists in broadcast information 2, the user terminal device will automatically connect to the smart key that sends broadcast information 2 (the associated smart key of the user terminal device).
[0057] From the above, it can be seen that when the cable duct lock management device has generated key information, it queries the associated smart key information set according to the received user terminal device information, and obtains the pre-opening cable duct smart lock information uploaded by the user terminal device corresponding to the stored user terminal device information. The cable duct lock management device determines the associated smart key of the user terminal device according to the smart key information set and the pre-opening cable duct smart lock information. The smart key information set includes the to-be-verified codes and identification information of multiple smart keys. The key information and the to-be-verified codes and identification information of the associated smart key are synchronously sent to the user terminal device. The user terminal device receives the key information, the to-be-verified codes and identification information of the associated smart key sent by the cable duct lock management device, sequentially splits and matches the to-be-verified codes to obtain parsed data, and determines whether the key identity authentication of the associated smart key is successful based on the parsed data and the identification information. If the key identity authentication is successful, the user terminal device establishes a Bluetooth connection with the associated smart key based on the identification information, and the user terminal device transmits the key information to the associated smart key based on the established Bluetooth connection. This solution solves the problem of low security of Bluetooth connection between user-end devices and smart keys in existing cable duct smart lock management technology through key identity authentication, which leads to relatively low security of key transmission. It can realize secure connection between user-end devices and smart keys and ensure secure transmission of keys.
[0058] Figure 2 A flowchart of another method for transmitting key information of a cable duct lock based on Bluetooth connection provided by an embodiment of the present invention is provided, which provides an optional specific method for determining an associated smart key, such as Figure 2 As shown, specifically including:
[0059] Step S201: When the key information has been generated, the cable duct lock management device queries the associated smart key information set according to the received user terminal device information, and obtains the pre-opening cable duct smart lock information uploaded by the user terminal device corresponding to the stored user terminal device information.
[0060] Step S202: the cable duct lock management device obtains connection record data of each smart key in the stored smart key information set, and determines a plurality of associated smart keys to be determined that meet preset connectable conditions among the smart keys based on the connection record data.
[0061] The connection record data may be record data related to the establishment of a Bluetooth connection by a smart key. The connection record data may be used to determine the situation in which the smart key establishes a Bluetooth connection. The preset connectable condition is used to characterize the condition under which the preset smart key can make a Bluetooth connection. The to-be-determined associated smart key is used to characterize the smart key to be determined as an associated smart key. Optionally, a method for determining the to-be-determined associated smart key may be that the cable duct lock management device determines the number of connections of each smart key in the smart key information set within a preset time according to the connection record data, and determines the smart key whose number of connections does not reach the preset number as the to-be-determined associated smart key. An exemplary example may be that the smart key information set records the to-be-verified codes and identification information of smart key a1, smart key a2, smart key a3, and smart key a4, the preset time is 1 day, the preset number of times is 3 times, and the cable duct lock management device determines that the number of connections of smart key a1 in one day is 2 times, the number of connections of smart key a2 in one day is 1 time, the number of connections of smart key a3 in one day is 0 times, and the number of connections of smart key a4 in one day is 3 times, according to the connection record data of each smart key in the smart lock information set obtained, wherein the smart keys whose connection times do not reach the preset times, that is, the to-be-determined associated smart keys are smart key a1, smart key a2, and smart key a3. In another embodiment, the cable duct lock management device determines each smart key in the smart key information set that has not been connected within the preset time according to the connection record data, and determines each smart key that has not been connected as the to-be-determined associated smart key.
[0062] Step S203: The cable duct lock management device matches the pre-opened cable duct smart lock information with the identification information of each associated smart key to be determined, and determines the associated smart key to be determined corresponding to the identification information that successfully matches the pre-opened cable duct smart lock information as the associated smart key of the user terminal device.
[0063] Among them, after determining each to-be-determined associated smart key, the cable duct intelligent management device matches the pre-opened cable duct intelligent lock information with the identification information of each to-be-determined associated smart key, and determines the to-be-determined associated smart key corresponding to the identification information that successfully matches the pre-opened cable duct intelligent lock information as the associated smart key of the user terminal device. An exemplary example may be that the pre-opened cable duct intelligent lock information is the cable duct intelligent lock identification A1, and the identification information of each to-be-determined associated smart key is a1, a2, and a3 in sequence, and the preset matching smart lock identification of a1 is A1, the preset matching smart lock identification of a2 is A2, and the preset matching smart lock identification of a3 is A3, then the identification information that successfully matches the pre-opened cable duct intelligent lock information is a1, that is, the to-be-determined associated smart key corresponding to a1 is determined as the associated smart key of the user terminal device.
[0064] Step S204: the cable duct lock management device synchronously sends the key information, the code to be verified of the associated smart key, and the identification information to the user terminal device.
[0065] Step S205: The user terminal device receives the key information, the code to be verified and the identification information of the associated smart key sent by the cable duct lock management device, sequentially splits and matches the code to be verified to obtain parsed data, and determines whether the key identity authentication of the associated smart key is successful based on the parsed data and the identification information.
[0066] Step S206: When the key identity authentication is passed, the user terminal device establishes a Bluetooth connection with the associated smart key based on the identification information, and transmits the key information to the associated smart key based on the established Bluetooth connection.
[0067] As can be seen from the above, the cable duct lock management device obtains the connection record data of each smart key in the stored smart key information set, determines multiple to-be-determined associated smart keys that meet the preset connectable conditions in each smart key based on the connection record data, and the cable duct lock management device matches the pre-open cable duct smart lock information with the identification information of each to-be-determined associated smart key, and determines the to-be-determined associated smart key corresponding to the identification information that successfully matches the pre-open cable duct smart lock information as the associated smart key of the user terminal device. This solution filters the connectable smart keys in the smart key information set by the connection record data, and then matches them with the pre-open cable duct smart lock information, which can reduce the workload of the matching process and quickly determine the associated smart key of the user terminal device.
[0068] Figure 3 A flowchart of another method for transmitting key information of a cable duct lock based on Bluetooth connection provided by an embodiment of the present invention provides an optional specific method for determining parsed data, such as Figure 3 As shown, specifically including:
[0069] Step S301: When the key information has been generated, the cable duct lock management device queries the associated smart key information set according to the received user terminal device information, and obtains the pre-opening cable duct smart lock information uploaded by the user terminal device corresponding to the stored user terminal device information.
[0070] Step S302: The cable duct lock management device determines the associated smart key of the user terminal device based on the smart key information set and the pre-opening cable duct smart lock information, wherein the smart key information set includes codes to be verified and identification information of multiple smart keys, and synchronously sends the key information and the codes to be verified and identification information of the associated smart keys to the user terminal device.
[0071] Step S303: The user terminal device receives the key information, the code to be verified and the identification information of the associated smart key sent by the cable duct lock management device, determines the adjacent coded characters with the same format from front to back in the code to be verified as a matching object, and matches and combines each of the matching objects with the pre-stored matching information to obtain parsed data.
[0072] Among them, the format can be the format of each character in the code to be verified, for example, if the code to be verified is ac13AB, the formats of "a" and "c" are both lowercase letter formats, the formats of "1" and "2" are both digital formats, and the formats of "A" and "B" are both uppercase letter formats. The matching object is used to characterize the object for matching combination processing. The pre-stored matching information is used to characterize the pre-stored information for matching combination processing. The parsed data of the code to be verified of the associated smart key can be determined by performing matching combination processing using the respective matching objects and the pre-stored matching information. Optionally, the pre-stored matching information includes multiple preset matching objects and corresponding character strings. A matching combination processing method can be that the user terminal device matches each matching object with each preset matching object respectively, determines the character string corresponding to the successfully matched preset matching object as the parsed data to be combined of the matching object, and combines the parsed data to be combined of each matching object according to the arrangement order in the code to be verified to obtain the parsed data. An exemplary example may be that the code to be verified is ac13AB, the matching object 1 is ac, the matching object 2 is 13, the matching object 3 is AB, the character string corresponding to the preset matching object with the content of ac, that is, the data to be combined and parsed of the matching object 1 is xz, the character string corresponding to the preset matching object with the content of 13, that is, the data to be combined and parsed of the matching object 2 is mac, the character string corresponding to the preset matching object with the content of AB, that is, the data to be combined and parsed of the matching object 3 is 12ab, and the parsed data to be combined of each matching object is combined according to the arrangement order in the code to be verified to obtain the parsed data xzmac12ab. In another embodiment, the user terminal device matches each matching object with each preset matching object in the pre-stored matching information, determines the character string corresponding to the preset matching object that has been successfully matched as the parsed data to be combined of the matching object, and combines the parsed data to be combined of each matching object according to the preset arrangement order to obtain the parsed data.
[0073] Step S304: determining whether the key identity authentication of the associated smart key is successful based on the parsed data and the identification information.
[0074] Step S305: When the key identity authentication is passed, the user terminal device establishes a Bluetooth connection with the associated smart key based on the identification information, and transmits the key information to the associated smart key based on the established Bluetooth connection.
[0075] As can be seen from the above, the user terminal device determines the adjacent coded characters with the same format from front to back in the code to be verified of the associated smart key as a matching object, and performs matching and combination processing on each matching object and the pre-stored matching information to obtain parsed data. This solution can increase the complexity of parsing the code to be verified by splitting the code to be verified to obtain multiple matching objects, and performing matching and combination processing on each matching object to obtain parsed data of the code to be verified, so as to improve the security of subsequent key identity authentication.
[0076] Figure 4 This is a module structure diagram of a cable duct lock key information transmission system based on Bluetooth connection provided by an embodiment of the present invention. The system is used to execute the cable duct lock key information transmission method based on Bluetooth connection provided by the above embodiment, and has the corresponding functional modules and beneficial effects of the execution method. Figure 4 As shown, the system specifically includes:
[0077] The query module 101 is used for the cable duct lock management device to query the associated smart key information set according to the received user terminal device information when the key information has been generated;
[0078] An acquisition module 102 is used to acquire the pre-opening cable duct smart lock information uploaded by the user terminal device corresponding to the stored user terminal device information;
[0079] A key determination module 103, for the cable duct lock management device to determine the associated smart key of the user terminal device according to the smart key information set and the pre-opening cable duct smart lock information, wherein the smart key information set includes codes to be verified and identification information of multiple smart keys;
[0080] An information sending module 104, used for synchronously sending the key information, the code to be verified and the identification information of the associated smart key to the user terminal device;
[0081] The parsed data determination module 105 is used for the user terminal device to receive the key information, the code to be verified and the identification information of the associated smart key sent by the cable duct lock management device, and sequentially split and match the code to be verified to obtain parsed data;
[0082] A key identity authentication module 106, configured to determine whether the key identity authentication of the associated smart key is successful based on the parsed data and the identification information;
[0083] A Bluetooth connection establishing module 107, configured to establish a Bluetooth connection between the user terminal device and the associated smart key based on the identification information when the key identity authentication passes;
[0084] The key transmission module 108 is used for the user terminal device to transmit the key information to the associated smart key based on the established Bluetooth connection.
[0085] It can be seen from the above scheme that when the cable duct lock management device has generated key information, it queries the associated smart key information set according to the received user terminal device information, and obtains the pre-opening cable duct smart lock information uploaded by the user terminal device corresponding to the stored user terminal device information. The cable duct lock management device determines the associated smart key of the user terminal device according to the smart key information set and the pre-opening cable duct smart lock information. The smart key information set includes the to-be-verified codes and identification information of multiple smart keys. The key information and the to-be-verified codes and identification information of the associated smart key are synchronously sent to the user terminal device. The user terminal device receives the key information, the to-be-verified codes and identification information of the associated smart key sent by the cable duct lock management device, sequentially splits and matches the to-be-verified codes to obtain parsed data, and determines whether the key identity authentication of the associated smart key is successful based on the parsed data and the identification information. If the key identity authentication is successful, the user terminal device establishes a Bluetooth connection with the associated smart key based on the identification information, and the user terminal device transmits the key information to the associated smart key based on the established Bluetooth connection. This solution solves the problem of low security of Bluetooth connection between user-end devices and smart keys in existing cable duct smart lock management technology through key identity authentication, which leads to relatively low security of key transmission. It can realize secure connection between user-end devices and smart keys and ensure secure transmission of keys.
[0086] In a possible embodiment, the key determination module 103 is specifically configured to:
[0087] The cable duct lock management device acquires connection record data of each smart key in the stored smart key information set, and determines a plurality of associated smart keys to be determined that meet preset connectable conditions among the smart keys based on the connection record data;
[0088] The cable duct lock management device matches the pre-opened cable duct smart lock information with the identification information of each to-be-determined associated smart key, and determines the to-be-determined associated smart key corresponding to the identification information that successfully matches the pre-opened cable duct smart lock information as the associated smart key of the user terminal device.
[0089] In a possible embodiment, the key determination module 103 is further configured to:
[0090] The cable duct lock management device determines the number of connections of each smart key within a preset time according to the connection record data, and determines the smart key whose number of connections does not reach the preset number as the associated smart key to be determined.
[0091] In a possible embodiment, the parsed data determination module 105 is specifically configured to:
[0092] The user terminal device determines adjacent coded characters with the same format from front to back in the code to be verified as a matching object, and performs matching and combination processing on each of the matching objects and pre-stored matching information to obtain parsed data.
[0093] In a possible embodiment, the parsed data determination module 105 is further configured to:
[0094] The user terminal device matches each of the matching objects with each of the preset matching objects respectively, determines the character string corresponding to the successfully matched preset matching object as the to-be-combined parsed data of the matching object, and combines the to-be-combined parsed data of each of the matching objects according to the arrangement order in the to-be-verified code to obtain parsed data.
[0095] In a possible embodiment, the key identity verification module 106 is specifically used to:
[0096] The user terminal device obtains pre-stored comparison information, the pre-stored comparison information including a plurality of comparison and analysis data and associated comparison identification information, and queries whether there is comparison and analysis data identical to the analysis data in the pre-stored comparison information;
[0097] When there is comparison parsing data that is identical to the parsing data, the user terminal device determines whether the comparison identification information associated with the comparison parsing data is identical to the identification information. If they are the same, it is determined that the key identity authentication of the associated smart key is successful; otherwise, it is determined that the key identity authentication of the associated smart key is unsuccessful.
[0098] In a possible embodiment, the Bluetooth connection establishing module 107 is specifically configured to:
[0099] The user terminal device sets the identification information as priority search information and searches for broadcast information containing the identification information. When broadcast information containing the identification information is found, the user terminal device automatically connects to the smart key that sends the broadcast information containing the identification information.
[0100] Figure 5 A schematic diagram of a cable duct lock key information transmission device based on Bluetooth connection provided by an embodiment of the present invention, such as Figure 5As shown, the device includes a processor 201, a memory 202, an input device 203 and an output device 204; the number of processors 201 in the device can be one or more. Figure 5 A processor 201 is taken as an example; the processor 201, memory 202, input device 203 and output device 204 in the device can be connected by a bus or other means. Figure 5 The example of the connection via bus is taken. The memory 202, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions or modules corresponding to the cable duct lock key information transmission method based on Bluetooth connection in the embodiment of the present invention. The processor 201 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 202, that is, the cable duct lock key information transmission method based on Bluetooth connection is realized. The input device 203 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the device. The output device 204 may include a display device such as a display screen.
[0101] The embodiment of the present invention further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute a method for transmitting key information of a cable duct lock based on a Bluetooth connection when executed by a computer processor, the method comprising:
[0102] The cable duct lock management device, when key information has been generated, queries the associated smart key information set according to the received user terminal device information, and obtains the pre-opening cable duct smart lock information uploaded by the user terminal device corresponding to the stored user terminal device information;
[0103] The cable duct lock management device determines the associated smart key of the user terminal device according to the smart key information set and the pre-opening cable duct smart lock information, wherein the smart key information set includes codes to be verified and identification information of multiple smart keys, and synchronously sends the key information and the codes to be verified and identification information of the associated smart key to the user terminal device;
[0104] The user terminal device receives the key information, the code to be verified and the identification information of the associated smart key sent by the cable duct lock management device, sequentially splits and matches the code to be verified to obtain parsed data, and determines whether the key identity verification of the associated smart key is successful based on the parsed data and the identification information. If the key identity verification is successful, the user terminal device establishes a Bluetooth connection with the associated smart key based on the identification information;
[0105] The user terminal device transmits the key information to the associated smart key based on the established Bluetooth connection.
[0106] It is worth noting that in the embodiment of the cable pipe lock key information transmission method system based on Bluetooth connection, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.
[0107] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the embodiments of the present invention are not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention are described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.
Claims
1. A method for transmitting key information of a cable duct lock based on Bluetooth connection, characterized in that: include: The cable duct lock management device queries the associated smart key information set according to the received user terminal device information when the key information has been generated, and obtains the pre-opening cable duct smart lock information uploaded by the user terminal device corresponding to the stored user terminal device information; The cable duct lock management device determines the associated smart key of the user terminal device according to the smart key information set and the pre-opening cable duct smart lock information, wherein the smart key information set includes codes to be verified and identification information of multiple smart keys, and synchronously sends the key information and the codes to be verified and identification information of the associated smart key to the user terminal device; The user terminal device receives the key information, the code to be verified and the identification information of the associated smart key sent by the cable duct lock management device, sequentially splits and matches the code to be verified to obtain parsed data, and determines whether the key identity verification of the associated smart key is successful based on the parsed data and the identification information. If the key identity verification is successful, the user terminal device establishes a Bluetooth connection with the associated smart key based on the identification information; The user terminal device transmits the key information to the associated smart key based on the established Bluetooth connection.
2. The method for transmitting key information of a cable duct lock based on Bluetooth connection according to claim 1, characterized in that: The step of determining the associated smart key of the user terminal device according to the smart key information set and the pre-opening cable conduit smart lock information includes: The cable duct lock management device acquires connection record data of each smart key in the stored smart key information set, and determines a plurality of associated smart keys to be determined that meet preset connectable conditions among the smart keys based on the connection record data; The cable duct lock management device matches the pre-opened cable duct smart lock information with the identification information of each to-be-determined associated smart key, and determines the to-be-determined associated smart key corresponding to the identification information that successfully matches the pre-opened cable duct smart lock information as the associated smart key of the user terminal device.
3. The method for transmitting key information of a cable duct lock based on Bluetooth connection according to claim 2, characterized in that: The determining, based on the connection record data, a plurality of to-be-determined associated smart keys that meet a preset connectable condition among the smart keys comprises: The cable duct lock management device determines the number of connections of each smart key within a preset time according to the connection record data, and determines the smart key whose number of connections does not reach the preset number as the associated smart key to be determined.
4. The method for transmitting key information of a cable duct lock based on Bluetooth connection according to any one of claims 1 to 3, characterized in that: Sequentially splitting and matching the codes to be verified to obtain parsed data includes: The user terminal device determines adjacent coded characters with the same format from front to back in the code to be verified as a matching object, and performs matching and combination processing on each of the matching objects and pre-stored matching information to obtain parsed data.
5. The method for transmitting key information of a cable duct lock based on Bluetooth connection according to claim 4, characterized in that: The pre-stored matching information includes a plurality of preset matching objects and corresponding character strings, and the matching and combining processing of each of the matching objects with the pre-stored matching information to obtain parsed data includes: The user terminal device matches each of the matching objects with each of the preset matching objects respectively, determines the character string corresponding to the successfully matched preset matching object as the to-be-combined parsed data of the matching object, and combines the to-be-combined parsed data of each of the matching objects according to the arrangement order in the to-be-verified code to obtain parsed data.
6. The method for transmitting key information of a cable duct lock based on Bluetooth connection according to any one of claims 1 to 3, characterized in that: The determining whether the key identity authentication of the associated smart key is successful based on the parsed data and the identification information includes: The user terminal device obtains pre-stored comparison information, the pre-stored comparison information including a plurality of comparison and analysis data and associated comparison identification information, and queries whether there is comparison and analysis data identical to the analysis data in the pre-stored comparison information; When there is comparison parsing data that is identical to the parsing data, the user terminal device determines whether the comparison identification information associated with the comparison parsing data is identical to the identification information. If they are the same, it is determined that the key identity authentication of the associated smart key is successful; otherwise, it is determined that the key identity authentication of the associated smart key is unsuccessful.
7. The method for transmitting key information of a cable duct lock based on Bluetooth connection according to any one of claims 1 to 3, characterized in that: The user terminal device establishes a Bluetooth connection with the associated smart key based on the identification information, including: The user terminal device sets the identification information as priority search information and searches for broadcast information containing the identification information. When broadcast information containing the identification information is found, the user terminal device automatically connects to the smart key that sends the broadcast information containing the identification information.
8. Cable duct lock key information transmission system based on Bluetooth connection, characterized in that: include: A query module, used for the cable duct lock management device to query the associated smart key information set according to the received user terminal device information when the key information has been generated; An acquisition module, used to acquire the pre-opening cable duct smart lock information uploaded by the user terminal device corresponding to the stored user terminal device information; A key determination module, used for the cable duct lock management device to determine the associated smart key of the user terminal device according to the smart key information set and the pre-opening cable duct smart lock information, wherein the smart key information set includes codes to be verified and identification information of multiple smart keys; An information sending module, used for synchronously sending the key information, the code to be verified and the identification information of the associated smart key to the user terminal device; The parsed data determination module is used for receiving the key information, the code to be verified and the identification information of the associated smart key sent by the cable duct lock management device on the user terminal device, and performing sequential splitting and matching combination processing on the code to be verified to obtain parsed data; A key identity authentication module, used to determine whether the key identity authentication of the associated smart key is successful based on the parsed data and the identification information; A Bluetooth connection establishing module, configured to establish a Bluetooth connection between the user terminal device and the associated smart key based on the identification information when the key identity authentication passes; The key transmission module is used for the user terminal device to transmit the key information to the associated smart key based on the established Bluetooth connection.
9. A cable duct lock key information transmission device based on Bluetooth connection, the device comprising: one or more processors; A storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the cable duct lock key information transmission method based on Bluetooth connection as described in any one of claims 1-7.
10. A storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the cable duct lock key information transmission method based on Bluetooth connection as claimed in any one of claims 1 to 7 when executed by a computer processor.
Citation Information
Patent Citations
Intelligent electric control lock control system and method
CN106127885A
Intelligent Bluetooth electronic lock
CN106600794A
Method and device for controlling intelligent lock and vehicle
CN107978049A
Bluetooth lock binding method and related control system
CN113298982A
Apartment intelligent lock management method and system
CN113593094A