CN114842580A - NFC digital key unlocking method and device - Google Patents

NFC digital key unlocking method and device Download PDF

Info

Publication number
CN114842580A
CN114842580A CN202210470912.XA CN202210470912A CN114842580A CN 114842580 A CN114842580 A CN 114842580A CN 202210470912 A CN202210470912 A CN 202210470912A CN 114842580 A CN114842580 A CN 114842580A
Authority
CN
China
Prior art keywords
door lock
digital key
user
data
matched
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210470912.XA
Other languages
Chinese (zh)
Inventor
李阳坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Avatr Technology Chongqing Co Ltd
Original Assignee
Avatr Technology Chongqing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Avatr Technology Chongqing Co Ltd filed Critical Avatr Technology Chongqing Co Ltd
Priority to CN202210470912.XA priority Critical patent/CN114842580A/en
Publication of CN114842580A publication Critical patent/CN114842580A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The embodiment of the invention relates to the technical field of door locks, and discloses an NFC digital key unlocking method and device, wherein the method comprises the following steps: acquiring a user position; determining matched door lock data according to the user position and the door lock position; acquiring an NFC digital key according to the matched door lock data; and unlocking the corresponding door lock by using the NFC digital key. According to the invention, when the door lock is unlocked by using the NFC digital key, the NFC digital key does not need to be manually switched, the door lock data can be determined and matched in real time according to the position of a user, and the NFC digital key corresponding to the door lock data is determined, so that the technical problem that manual switching is needed when a plurality of NFC digital keys are switched with each other in the prior art is solved.

Description

NFC digital key unlocking method and device
Technical Field
The embodiment of the invention relates to the technical field of door locks, in particular to an NFC digital key unlocking method and device.
Background
Nowadays, in the era of mobile internet, NFC digital keys are popular with users as a wide solution to replace physical keys, and are widely popularized and used, but in an actual use scenario, due to the presence of digital keys corresponding to a plurality of door locks, a mobile phone often needs to be taken out and switched among a plurality of NFC digital keys, which is inconvenient to use.
Disclosure of Invention
In order to solve the problem that a plurality of existing NFC digital keys are inconvenient to use due to mutual switching, embodiments of the present invention provide an NFC digital key unlocking method and apparatus, which are used to solve the technical problem that manual switching is required when a plurality of existing NFC digital keys are switched with each other.
According to an aspect of the embodiments of the present invention, there is provided an NFC digital key unlocking method, including:
acquiring a user position;
determining matched door lock data according to the user position and the door lock position;
acquiring an NFC digital key according to the matched door lock data;
and unlocking the corresponding door lock by using the NFC digital key.
In an alternative embodiment, the step of determining matching door lock data according to the user position and the door lock position includes:
matching the user position with at least one first preset door lock data stored in advance, and confirming whether the distance between the user position and the door lock position in the first preset door lock data is within an error range; wherein the first preset door lock data comprises the door lock position;
and if the distance between the user position and the door lock position is within a preset error range, determining that the first preset door lock data is the matched door lock data.
In an optional implementation manner, the step of determining the matched door lock data according to the user position and the door lock position further includes:
if the distance between the user position and the door lock position exceeds the error range, outputting error range updating prompt information to prompt the user to update the error range;
and acquiring range information input by a user, and taking the range information as a new error range.
In an alternative embodiment, the step of determining matching door lock data according to the user position and the door lock position includes:
uploading the user position and the user information to a server side, so that the server side matches users according to the user information, and confirming first preset door lock data matched with the user position according to at least one piece of first preset door lock data prestored under the matched users;
and receiving the first preset door lock data sent by the server, and determining that the first preset door lock data is the matched door lock data.
In an optional implementation manner, the step of determining the matched door lock data according to the user position and the door lock position further includes:
if the error range updating information sent by the server is received, outputting error range updating prompt information to prompt a user to update a preset error range;
and acquiring range information input by a user, and taking the range information as a new error range.
In an optional embodiment, the step of acquiring an NFC digital key according to the matched door lock data includes:
if a plurality of matched door lock data exist, outputting door lock selection prompt information to prompt a user to select one of the door lock data;
and acquiring the door lock data selected by the user, and taking the digital key corresponding to the door lock data as the NFC digital key.
In an optional embodiment, after the step of unlocking the corresponding door lock by using the NFC digital key, the method further includes:
if the door is failed to open, outputting manual selection prompt information to prompt a user to manually select door lock data;
acquiring the door lock data selected by a user, and taking a digital key corresponding to the door lock data as a new NFC digital key;
and unlocking the door lock by using the new NFC digital key.
In an alternative embodiment, the door lock data includes: a door lock type; the door lock types include: a mobile door lock and a fixed door lock;
after the step of determining the matched door lock data according to the user position and the door lock position, the method further comprises the following steps:
if the matched door lock data is determined to be failed, taking the digital key corresponding to the door lock data of the movable door lock as the NFC digital key;
and unlocking the corresponding door lock by using the NFC digital key.
In an alternative embodiment, the door lock data includes: door lock type and door lock position; the door lock types include: a mobile door lock and a fixed door lock;
after the step of using the NFC digital key to unlock the corresponding door lock, the method further includes:
and if the door is opened successfully and the door lock type of the matched door lock data is a fixed door lock, taking the user position as the door lock position of the door lock.
In an alternative embodiment, the door lock data further comprises: error range; after the step of using the user position as the door lock position of the door lock, the method further comprises:
and narrowing the error range.
In an optional embodiment, the method further comprises:
creating first preset door lock data;
reading and copying NFC key information of an NFC entity card to obtain an NFC digital key;
and establishing a corresponding relation between the first preset door lock data and the NFC digital key.
In an alternative embodiment, the step of creating the first preset door lock data includes:
setting a door lock type; the door lock types include: a mobile door lock and a fixed door lock;
setting a door lock position;
setting an error range;
and adding the door lock type, the door lock position and the error range into the first preset door lock data.
In an alternative embodiment, the step of setting the door lock position includes:
if the door lock type is a mobile door lock, acquiring at least one common address selected by a user;
setting all the common addresses as the door lock positions of the movable door lock;
if the door lock type is a fixed door lock, acquiring the geographical position of the fixed door lock;
setting the geographic location as the door lock position of a fixed door lock.
According to another aspect of the embodiments of the present invention, there is provided an NFC digital key unlocking device, including:
the positioning module is used for acquiring the position of a user;
the data matching module is used for determining matched door lock data according to the user position and the door lock position;
the key acquisition module is used for acquiring the NFC digital key according to the matched door lock data;
and the unlocking module is used for unlocking the corresponding door lock by using the NFC digital key.
According to another aspect of the embodiments of the present invention, there is provided an electronic device including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation of the NFC digital key unlocking method.
According to another aspect of the embodiments of the present invention, there is provided a computer-readable storage medium having at least one executable instruction stored therein, which when running on an NFC digital key unlocking device or a door lock, causes the NFC digital key unlocking device or the door lock to perform the operations of the NFC digital key unlocking method described above.
The embodiment of the invention obtains the user position; therefore, the matched door lock data can be determined according to the user position and the door lock position; acquiring an NFC digital key according to the matched door lock data; and the corresponding door lock is unlocked by using the NFC digital key; the door lock data are directly associated with the NFC digital key, the door lock data matched with the NFC digital key are confirmed through the user position and the door lock position, the corresponding NFC digital key can be determined and used for unlocking the corresponding door lock, therefore, when the door lock is unlocked through the NFC digital key, the NFC digital key does not need to be manually switched, the door lock data can be determined and matched through the user position in real time, the NFC digital key corresponding to the door lock data is determined, and the technical problem that manual switching is needed when a plurality of existing NFC digital keys are switched mutually is solved.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and the embodiments of the present invention can be implemented according to the content of the description in order to make the technical means of the embodiments of the present invention more clearly understood, and the detailed description of the present invention is provided below in order to make the foregoing and other objects, features, and advantages of the embodiments of the present invention more clearly understandable.
Drawings
The drawings are only for purposes of illustrating embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 shows a schematic flowchart of a first embodiment of an NFC digital key unlocking method provided by the present invention;
fig. 2 shows a schematic flowchart of a second embodiment of the NFC digital key unlocking method provided in the present invention;
fig. 3 shows a schematic flowchart of a third embodiment of the NFC digital key unlocking method provided in the present invention;
fig. 4 shows a flowchart of a fourth embodiment of the NFC digital key unlocking method provided in the present invention
Fig. 5 shows a block diagram of an NFC digital key unlocking device provided by the present invention;
fig. 6 shows a module diagram of an electronic device provided by the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein.
Fig. 1 shows a flowchart of a first embodiment of the NFC digital key unlocking method of the present invention, which is performed by an NFC digital key unlocking device. As shown in fig. 1, the method comprises the steps of:
step 110: acquiring a user position;
the user position is actually the position that can be determined by the electronic equipment held by the user, in a real-time use scene, the electronic equipment used by the user can be a mobile phone, handheld equipment such as a tablet or other wearable equipment such as a watch, or other electronic equipment capable of carrying an NFC digital key, the user position can be obtained through a positioning system carried by the equipment when the electronic equipment is used in real time, the user position can be obtained through GPS positioning, the user position can be obtained through base station positioning by installing SIM card equipment, and the user position can also be obtained through positioning of a local area network connected with the equipment. In addition, when the positioning of the electronic device is failed, the user position can be obtained by manually inputting the user position by the user.
Step 120: determining matched door lock data according to the user position and the door lock position;
wherein, when matching lock data according to user position and lock position, different lock positions can correspond different lock data, consequently can match lock data according to user position and lock position.
Step 130: acquiring an NFC digital key according to the matched door lock data;
after the corresponding door lock data are determined, the corresponding NFC digital key can be determined according to the door lock data.
It should be noted that, the correspondence between the door lock data and the NFC digital key is generally preset in advance by the user.
Step 140: and unlocking the corresponding door lock by using the NFC digital key.
According to the embodiment, when the door lock is unlocked by using the NFC digital key, the door lock data can be determined and matched according to the user position and the door lock position in real time, the NFC digital key corresponding to the door lock data is determined, and the corresponding door lock is unlocked by using the NFC digital key; each piece of door lock data is directly associated with one NFC digital key, the association relation of the door lock data is preset by a user, the door lock data matched with the door lock data is confirmed through the position of the user and the position of the door lock, the NFC digital key matched with the door lock data can be accurately determined and output, so that the corresponding door lock can be accurately opened, the corresponding NFC digital key can be automatically switched and output without manually switching the NFC digital keys, and the technical problem that manual switching is needed when a plurality of NFC digital keys are switched mutually in the prior art is solved.
In an alternative, as shown in fig. 2, the step of determining the matched door lock data according to the user position and the door lock position includes:
step 1201: matching the user position with at least one first preset door lock data stored in advance, and confirming whether the distance between the user position and the door lock position in the first preset door lock data is within an error range; wherein the first preset door lock data comprises a door lock position;
the first preset door lock data are door lock data pre-stored in the electronic equipment by a user, at the moment, a plurality of first preset door lock data can be pre-stored, and the user is matched with the first preset door lock data one by one or simultaneously matched with the first preset door lock data.
Step 1202: and if the distance between the user position and the door lock position is within a preset error range, determining that the first preset door lock data is the matched door lock data.
When the distance between the user position and the door lock position is within an error range, it is indicated that the user position is matched with the door lock position, and therefore, it can be determined that the first preset door lock data corresponding to the current door lock position is matched door lock data, and because different door lock data also correspond to different NFC digital keys, when it is determined that the corresponding first preset door lock data is matched door lock data, it is also uniquely determined that the NFC digital key corresponding to the first preset door lock data is the matched NFC digital key. Thereby ensuring the matching accuracy.
In an alternative mode, as shown in fig. 2, in order to improve the accuracy of the NFC digital key matching, the step of determining matching door lock data according to the user position and the door lock position further includes:
step 1203: if the distance between the user position and the door lock position exceeds the error range, outputting error range updating prompt information to prompt the user to update the error range;
step 1204: and acquiring range information input by a user, and taking the range information as a new error range.
If the distance between the user position and the door lock position exceeds the error range, at the moment, a certain error may exist between the user position and the door lock position, so that the distance between the user position and the door lock position exceeds a preset range, the error range is updated to enlarge the error range, and the error range is also included, namely, the positioning error or other errors caused by the error range are included, so that the condition that the user position and the door lock position cannot be matched due to the fact that the error range is set to be smaller can be guaranteed.
After the updating, the user position is matched with the first preset door lock data, so that the error of the user position and the door lock position positioning or the error caused by other reasons can be eliminated, and the condition that the user position cannot be matched due to the small error range can be avoided. For example, if the original error range is 20m, if there is no matched door lock position before updating, the error range is 25m after updating, and at this time, there may exist other door lock positions matched with the user position in 25m, so that the matching degree of the door lock data can be improved as much as possible, and when the door lock to be matched is a movable door lock, the matching accuracy can be further improved.
It should be noted that, after the step of matching the user position with at least one first preset door lock data stored in advance is performed on the premise that the step is performed at this time, all the first preset door lock data and the user position should be matched at this time, and the distance between the user position and the door lock position of each first preset door lock data is determined to exceed the error range. Therefore, the condition that one user position is matched with a plurality of door lock positions due to the fact that the matching range is randomly expanded can be avoided, and uniqueness and accuracy of matching are guaranteed.
In an alternative mode, as shown in fig. 3, the step of determining the matched door lock data according to the user position and the door lock position includes:
step 1211: uploading the user position and the user information to a server side, so that the server side matches users according to the user information, and confirming first preset door lock data matched with the user position according to at least one piece of first preset door lock data prestored under the matched users;
the server can match the user according to the user information by uploading the user position and the user information to the server, and determine the matched door lock data according to the door lock position of the first preset door lock data prestored by the matched user and the user position.
It should be noted that, the server may store a plurality of user information and at least one first preset door lock data corresponding to each user information, and through step-by-step matching, the corresponding door lock data may be matched according to the user position and the door lock position after the user is matched, so that accurate matching may be achieved.
Step 1212: and receiving the first preset door lock data sent by the server, and determining that the first preset door lock data is the matched door lock data.
The electronic equipment held by the user receives the door lock data sent by the server, the door lock data is determined to be matched door lock data, and at the moment, the NFC digital key corresponding to the first preset door lock data can be determined to be the matched NFC digital key according to the matched door lock data.
Through the optional implementation scheme, when the NFC digital key unlocking method is actually executed, the equipment or the server of the user is selected to execute 'the door lock data matched is determined according to the position of the user and the position of the door lock' according to the actual network or the storage condition of the user, so that the matched door lock data can be flexibly called, and the matched NFC digital key is conveniently determined. And the matching process is placed in the user equipment for execution, so that the rapid matching can be carried out under the condition of network disconnection or incapability of networking in time, and the requirement on the configuration of the equipment can be reduced by placing the matching process in the server for execution, so that the application threshold is reduced, and the large-scale implementation is facilitated.
In an alternative mode, as shown in fig. 4, the step of determining the matched door lock data according to the user position and the door lock position further includes:
step 1213: if the error range updating information sent by the server is received, outputting error range updating prompt information to prompt a user to update a preset error range;
and the error range updating information is sent by the server when the server judges that the distance between the user position and the door lock position exceeds the error range. And the error range updating prompt message is sent by the equipment held by the user and is used for prompting the user to update the preset error range.
Step 1214: and acquiring range information input by a user, and taking the range information as a new error range.
In the above embodiment, a certain error may exist between the user position and the door lock position, so that the distance between the user position and the door lock position exceeds a preset range, the error range is updated to enlarge the error range, that is, the positioning error or other errors are included, and the situation that the user position and the door lock position cannot be matched due to the small error range can be ensured.
It should be noted that, the range information at this time is input by the user, and personalized adaptation can be performed to ensure accurate matching.
In an optional manner, the step of acquiring an NFC digital key according to the matched door lock data includes:
if a plurality of matched door lock data exist, outputting door lock selection prompt information to prompt a user to select one of the door lock data;
and acquiring the door lock data selected by the user, and taking the digital key corresponding to the door lock data as the NFC digital key.
Through the scheme, the condition that a plurality of matched NFC digital keys exist at the same time can be avoided, and the uniqueness and the accuracy of the digital key corresponding to the door lock data are guaranteed.
In an optional manner, after the step of unlocking the corresponding door lock by using the NFC digital key, the method further includes:
if the door is failed to open, outputting manual selection prompt information to prompt a user to manually select door lock data;
the prompt message may be in one or more forms of voice, pop-up window, image, broadcast, etc.
Acquiring the door lock data selected by a user, and taking a digital key corresponding to the door lock data as a new NFC digital key;
the door lock data selected by the user can be acquired through GUI interaction or key pressing.
And unlocking the door lock by using the new NFC digital key.
By the scheme, the door lock data selected by the user is used as a basis to directly correspond to the digital key and used as a new NFC digital key, so that the corresponding relation between the door lock data and the position of the door lock and the position of the user can be ensured, and the accuracy of the door lock data and the position of the user can be ensured.
In an optional manner, the method further comprises:
creating first preset door lock data;
the first preset door lock data is a structure body in procedure and comprises various parameters.
Reading and copying NFC key information of an NFC entity card to obtain an NFC digital key;
this step may be implemented by a card reader.
And establishing a corresponding relation between the first preset door lock data and the NFC digital key.
According to the embodiment, the first preset door lock data correspond to the NFC digital key, so that the unique corresponding NFC digital key can be determined through the door lock data. And ensuring the accurate matching in the follow-up process.
In an alternative mode, the step of creating the first preset door lock data includes:
setting a door lock type; the door lock types include: a mobile door lock and a fixed door lock;
setting a door lock position;
when the door lock is a fixed door lock, the geographical position is a fixed position, and when the door lock is a movable door lock, the geographical position is set as a common address.
Setting an error range;
the error range can be set according to the user requirement, and can also be set as a default value. Meanwhile, the error range of each door lock can be set to the same value by default, and can also be set to different values according to user preference. When the data are set according to needs, the setting of the error range can be intelligently changed according to needs, so that the finally matched data are more accurate, and the error range is not required to be matched and debugged for many times.
And adding the door lock type, the door lock position and the error range into the first preset door lock data.
In the real-time scheme, the door lock type, the door lock position and the error range are correspondingly stored as the first preset door lock data, so that a corresponding database is provided for determining the unique corresponding digital key according to the user position and the door lock position, and accurate matching of follow-up realization is ensured.
In an alternative form, the step of setting the door lock position includes:
if the door lock type is a mobile door lock, acquiring at least one common address selected by a user;
setting all the common addresses as the door lock positions of the movable door lock;
if the door lock type is a fixed door lock, acquiring the geographical position of the fixed door lock;
setting the geographic location as the door lock position of a fixed door lock.
Through the setting of the door lock position, the reliability of data is guaranteed.
In an alternative form, the door lock data includes: a door lock type; the door lock types comprise a movable door lock and a fixed door lock; after the step of determining the matched door lock data according to the user position and the door lock position, the method further comprises the following steps of:
if the matched door lock data is determined to be failed, taking the digital key corresponding to the door lock data of the movable door lock as the NFC digital key;
and unlocking the corresponding door lock by using the NFC digital key.
When the door lock data cannot be matched according to the position of the user, the situation that the door lock cannot be matched exists nearby, possibly because the preset position of the mobile door lock is not accurate enough, the mobile door lock can be regarded as the door lock to be unlocked by default, the NFC digital key corresponding to the door lock data of the mobile door lock is correspondingly adopted for unlocking, programs manually selected by the user are reduced, and automatic matching efficiency is improved. In addition, if the NFC digital key of the mobile door lock still cannot be successfully unlocked, the step of "outputting a manual selection prompt message if the door opening fails to be performed so as to prompt the user to manually select the door lock data" may be entered, so that the user manually selects the door lock data.
In an alternative form, the door lock data includes: door lock type and door lock position; the door lock types include: a mobile door lock and a fixed door lock;
after the step of using the NFC digital key to unlock the corresponding door lock, the method further includes:
and if the door is opened successfully and the door lock type of the matched door lock data is a fixed door lock, taking the user position as the door lock position of the door lock.
Through the mode, the position of the door lock position can be further accurately measured, so that the matching degree of subsequent measurement is improved, and the intelligent degree is higher.
In an optional manner, the door lock data further includes: error range; after the step of using the user position as the door lock position of the door lock, the method further comprises the following steps:
and narrowing the error range.
After the user position is used as the door lock position of the door lock, the data detected by the carrying platform in the current method can be more fit with the door lock position, the error range is reduced, and the situation that the user position and the door lock position correspond to a plurality of door lock data can be reduced on the basis of not influencing the matching degree, so that the intellectualization and the rapid matching are further realized. The reduction mode can be that the program automatically adjusts the original error range to a certain proportion, for example, to 80% of the original error range, or initiates a reduction prompt to remind the user to self-define the adjustment.
In an optional manner, the method for setting the first preset door lock data includes:
acquiring the type, the digital key and the geographic position of the current door lock;
the type of the door lock comprises a movable door lock and a fixed door lock, the digital key is an NFC digital key corresponding to the current door lock, the geographical position is set according to the type of the door lock, when the door lock is the fixed door lock, the geographical position is the fixed position, and when the door lock is the movable door lock, the geographical position is set to be a common address.
Determining the type of a digital key according to the type of the current door lock;
the digital key type is mainly divided into default and non-default, wherein the default is that the content set as the default is preferentially selected when the preset judgment condition is not met, the non-default is opposite to the default, the content set as the non-default is not preferentially selected, and the non-default content is executed only when the preset judgment condition is met. When there is no executable data, then a default digital key type may be executed.
In the above real-time scheme, the types of the digital key are mainly divided into default and non-default, so that if it is determined that the matched door lock data fails, the digital key corresponding to the door lock data of the mobile door lock is used as the NFC digital key, and thus there is an execution basis, that is, when there is no matched data, the default type of the digital key is executed to unlock the door lock. Thereby further improving the automation of each process.
Fig. 5 shows a schematic structural diagram of an embodiment of the NFC digital key unlocking device according to the present invention. As shown in fig. 5, the apparatus 300 includes: a location module 310, a data matching module 320, a key acquisition module 330, and an unlocking module 340.
A positioning module 310, configured to obtain a user position;
the data matching module 320 is used for determining matched door lock data according to the user position and the door lock position;
the key acquisition module 330 is configured to acquire an NFC digital key according to the matched door lock data;
and the unlocking module 340 is used for unlocking the corresponding door lock by using the NFC digital key.
In an optional manner, the data matching module 320 is configured to match the user position with at least one first preset door lock data stored in advance, and determine whether a distance between the user position and a door lock position in the first preset door lock data is within an error range; wherein the first preset door lock data comprises the door lock position;
and if the distance between the user position and the door lock position is within a preset error range, determining that the first preset door lock data is the matched door lock data.
In an optional manner, the data matching module 320 is further configured to output an error range update prompting message to prompt the user to update the error range if the distance between the user position and the door lock position exceeds the error range;
and acquiring range information input by a user, and taking the range information as a new error range.
In an optional manner, the data matching module 320 is further configured to upload the user location and the user information to a server, so that the server matches a user according to the user information, and confirms the first preset door lock data matched with the user location according to at least one first preset door lock data pre-stored by the matched user;
and receiving the first preset door lock data sent by the server, and determining that the first preset door lock data is the matched door lock data.
In an optional manner, the data matching module 320 is further configured to:
if the error range updating information sent by the server is received, outputting error range updating prompt information to prompt a user to update a preset error range;
and acquiring range information input by a user, and taking the range information as a new error range.
In an optional manner, the key obtaining module 330 is further configured to output a door lock selection prompt message to prompt the user to select one of the door lock data if there are a plurality of the matched door lock data;
and acquiring the door lock data selected by the user, and taking the digital key corresponding to the door lock data as the NFC digital key.
In an optional manner, the unlocking module 340 is further configured to output a manual selection prompt message to prompt the user to manually select the door lock data if the door opening fails;
acquiring the door lock data selected by a user, and taking a digital key corresponding to the door lock data as a new NFC digital key;
and unlocking the door lock by using the new NFC digital key.
In an alternative form, the door lock data includes: a door lock type; the door lock types include: a mobile door lock and a fixed door lock; the unlocking module 340 is further configured to: if the matched door lock data is determined to be failed, taking the digital key corresponding to the door lock data of the movable door lock as the NFC digital key;
and unlocking the corresponding door lock by using the NFC digital key.
In an alternative form, the door lock data includes: door lock type and door lock position; the door lock types include: a mobile door lock and a fixed door lock;
the unlocking module 340 is further configured to use the user position as the door lock position of the door lock if the door opening is successful and the door lock type of the matched door lock data is a fixed door lock.
In an optional manner, the door lock data further includes: the unlocking module 340 is also used to narrow the error range.
In an optional manner, the method may further include a preset module, configured to:
creating first preset door lock data;
reading and copying NFC key information of an NFC entity card to obtain an NFC digital key;
and establishing a corresponding relation between the first preset door lock data and the NFC digital key.
In an optional manner, the preset module is further configured to:
setting a door lock type; the door lock types include: a mobile door lock and a fixed door lock;
setting a door lock position;
setting an error range;
and adding the door lock type, the door lock position and the error range into the first preset door lock data.
In an optional embodiment, the preset module is further configured to:
if the door lock type is a mobile door lock, acquiring at least one common address selected by a user;
setting all the common addresses as the door lock positions of the movable door lock;
if the door lock type is a fixed door lock, acquiring the geographical position of the fixed door lock;
setting the geographical location as the door lock position of a fixed door lock
The NFC digital key unlocking device of the embodiment of the invention obtains the position of a user; therefore, the matched door lock data can be determined according to the user position and the door lock position; acquiring an NFC digital key according to the matched door lock data; the corresponding door lock is unlocked by using the NFC digital key; the door lock data are directly associated with the NFC digital key, the door lock data matched with the NFC digital key are confirmed through the user position and the door lock position, the corresponding NFC digital key can be determined and used for unlocking the corresponding door lock, therefore, when the door lock is unlocked through the NFC digital key, the NFC digital key does not need to be manually switched, the door lock data can be determined and matched through the user position in real time, the NFC digital key corresponding to the door lock data is determined, and the technical problem that manual switching is needed when a plurality of NFC digital keys are switched with one another is solved.
Fig. 6 is a schematic structural diagram of an embodiment of the electronic device according to the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.
As shown in fig. 6, the electronic device may include: a processor (processor)402, a Communications Interface 404, a memory 406, and a Communications bus 408.
Wherein: the processor 402, communication interface 404, and memory 406 communicate with each other via a communication bus 408. A communication interface 404 for communicating with network elements of other devices, such as clients or other servers. The processor 402 is configured to execute the program 410, and may specifically execute the relevant steps in the embodiment of the NFC digital key unlocking method described above.
In particular, program 410 may include program code comprising computer-executable instructions.
The processor 402 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention. The electronic device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 406 for storing a program 410. Memory 406 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 410 may specifically be invoked by the processor 402 to cause the electronic device to perform the following operations:
acquiring a user position;
determining matched door lock data according to the user position and the door lock position;
acquiring an NFC digital key according to the matched door lock data;
and unlocking the corresponding door lock by using the NFC digital key.
In an alternative embodiment, the step of determining matching door lock data according to the user position and the door lock position includes:
matching the user position with at least one first preset door lock data stored in advance, and confirming whether the distance between the user position and the door lock position in the first preset door lock data is within an error range; wherein the first preset door lock data comprises the door lock position;
and if the distance between the user position and the door lock position is within a preset error range, determining that the first preset door lock data is the matched door lock data.
In an optional implementation manner, the step of determining the matched door lock data according to the user position and the door lock position further includes:
if the distance between the user position and the door lock position exceeds the error range, outputting error range updating prompt information to prompt the user to update the error range;
and acquiring range information input by a user, and taking the range information as a new error range.
In an alternative embodiment, the step of determining matching door lock data according to the user position and the door lock position includes:
uploading the user position and the user information to a server side, so that the server side matches users according to the user information, and confirming first preset door lock data matched with the user position according to at least one piece of first preset door lock data prestored under the matched users;
and receiving the first preset door lock data sent by the server, and determining that the first preset door lock data is the matched door lock data.
In an optional implementation manner, the step of determining the matched door lock data according to the user position and the door lock position further includes:
if the error range updating information sent by the server is received, outputting error range updating prompt information to prompt a user to update a preset error range;
and acquiring range information input by a user, and taking the range information as a new error range.
In an optional embodiment, the step of acquiring an NFC digital key according to the matched door lock data includes:
if a plurality of matched door lock data exist, outputting door lock selection prompt information to prompt a user to select one of the door lock data;
and acquiring the door lock data selected by the user, and taking the digital key corresponding to the door lock data as the NFC digital key.
In an optional embodiment, after the step of unlocking the corresponding door lock by using the NFC digital key, the method further includes:
if the door is failed to open, outputting manual selection prompt information to prompt a user to manually select door lock data;
acquiring the door lock data selected by a user, and taking a digital key corresponding to the door lock data as a new NFC digital key;
and unlocking the door lock by using the new NFC digital key.
In an alternative embodiment, the door lock data includes: a door lock type; the door lock types include: a mobile door lock and a fixed door lock;
after the step of determining the matched door lock data according to the user position and the door lock position, the method further comprises the following steps of:
if the matched door lock data is determined to be failed, taking the digital key corresponding to the door lock data of the movable door lock as the NFC digital key;
and unlocking the corresponding door lock by using the NFC digital key.
In an alternative embodiment, the door lock data includes: door lock type and door lock position; the door lock types include: a mobile door lock and a fixed door lock;
after the step of using the NFC digital key to unlock the corresponding door lock, the method further includes:
and if the door is opened successfully and the door lock type of the matched door lock data is a fixed door lock, taking the user position as the door lock position of the door lock.
In an alternative embodiment, the door lock data further comprises: error range; after the step of using the user position as the door lock position of the door lock, the method further comprises:
and narrowing the error range.
In an optional embodiment, the method further comprises:
creating first preset door lock data;
reading and copying NFC key information of an NFC entity card to obtain an NFC digital key;
and establishing a corresponding relation between the first preset door lock data and the NFC digital key.
In an alternative embodiment, the step of creating the first preset door lock data includes:
setting a door lock type; the door lock types include: a mobile door lock and a fixed door lock;
setting a door lock position;
setting an error range;
and adding the door lock type, the door lock position and the error range into the first preset door lock data.
In an alternative embodiment, the step of setting the door lock position includes:
if the door lock type is a mobile door lock, acquiring at least one common address selected by a user;
setting all the common addresses as the door lock positions of the movable door lock;
if the door lock type is a fixed door lock, acquiring the geographical position of the fixed door lock;
setting the geographic location as the door lock position of a fixed door lock.
The electronic equipment of the embodiment can confirm the matched door lock data through the user position and the door lock position in real time when the door lock is unlocked by utilizing the NFC digital key, and confirm the NFC digital key corresponding to the door lock data, so that the door lock data can be matched only through the user position and the door lock position, the NFC digital key matched with the electronic equipment can be accurately confirmed, the electronic equipment is output, the corresponding door lock is accurately opened, the corresponding NFC digital key can be automatically switched and output without manually switching the NFC digital key, and the technical problem that manual switching is needed when a plurality of existing NFC digital keys are switched mutually is solved.
An embodiment of the present invention provides a computer-readable storage medium, where the storage medium stores at least one executable instruction, and when the executable instruction runs on an electronic device/NFC digital key unlocking apparatus, the electronic device/apparatus executes the NFC digital key unlocking method in any method embodiment described above.
The executable instructions may be specifically configured to cause the electronic device/NFC digital key unlocking apparatus to perform the following operations:
acquiring a user position;
determining matched door lock data according to the user position and the door lock position;
acquiring an NFC digital key according to the matched door lock data;
and unlocking the corresponding door lock by using the NFC digital key.
In an alternative embodiment, the step of determining matching door lock data according to the user position and the door lock position includes:
matching the user position with at least one first preset door lock data stored in advance, and determining whether the distance between the user position and the door lock position in the first preset door lock data is within an error range; wherein the first preset door lock data comprises the door lock position;
and if the distance between the user position and the door lock position is within a preset error range, determining that the first preset door lock data is the matched door lock data.
In an optional implementation manner, the step of determining the matched door lock data according to the user position and the door lock position further includes:
if the distance between the user position and the door lock position exceeds the error range, outputting error range updating prompt information to prompt the user to update the error range;
and acquiring range information input by a user, and taking the range information as a new error range.
In an alternative embodiment, the step of determining matching door lock data according to the user position and the door lock position includes:
uploading the user position and the user information to a server side, so that the server side matches users according to the user information, and confirming first preset door lock data matched with the user position according to at least one piece of first preset door lock data prestored under the matched users;
and receiving the first preset door lock data sent by the server, and determining that the first preset door lock data is the matched door lock data.
In an optional implementation manner, the step of determining the matched door lock data according to the user position and the door lock position further includes:
if the error range updating information sent by the server is received, outputting error range updating prompt information to prompt a user to update a preset error range;
and acquiring range information input by a user, and taking the range information as a new error range.
In an optional embodiment, the step of acquiring an NFC digital key according to the matched door lock data includes:
if a plurality of matched door lock data exist, outputting door lock selection prompt information to prompt a user to select one of the door lock data;
and acquiring the door lock data selected by the user, and taking the digital key corresponding to the door lock data as the NFC digital key.
In an optional embodiment, after the step of unlocking the corresponding door lock by using the NFC digital key, the method further includes:
if the door is failed to open, outputting manual selection prompt information to prompt a user to manually select door lock data;
acquiring the door lock data selected by a user, and taking a digital key corresponding to the door lock data as a new NFC digital key;
and unlocking the door lock by using the new NFC digital key.
In an alternative embodiment, the door lock data includes: a door lock type; the door lock types include: a mobile door lock and a fixed door lock;
after the step of determining the matched door lock data according to the user position and the door lock position, the method further comprises the following steps of:
if the matched door lock data is determined to be failed, taking the digital key corresponding to the door lock data of the movable door lock as the NFC digital key;
and unlocking the corresponding door lock by using the NFC digital key.
In an alternative embodiment, the door lock data includes: door lock type and door lock position; the door lock types include: a mobile door lock and a fixed door lock;
after the step of using the NFC digital key to unlock the corresponding door lock, the method further includes:
and if the door is opened successfully and the door lock type of the matched door lock data is a fixed door lock, taking the user position as the door lock position of the door lock.
In an alternative embodiment, the door lock data further comprises: error range; after the step of using the user position as the door lock position of the door lock, the method further comprises:
and narrowing the error range.
In an optional embodiment, the method further comprises:
creating first preset door lock data;
reading and copying NFC key information of an NFC entity card to obtain an NFC digital key;
and establishing a corresponding relation between the first preset door lock data and the NFC digital key.
In an alternative embodiment, the step of creating the first preset door lock data includes:
setting a door lock type; the door lock types include: a mobile door lock and a fixed door lock;
setting a door lock position;
setting an error range;
and adding the door lock type, the door lock position and the error range into the first preset door lock data.
In an alternative embodiment, the step of setting the door lock position includes:
if the door lock type is a mobile door lock, acquiring at least one common address selected by a user;
setting all the common addresses as the door lock positions of the movable door lock;
if the door lock type is a fixed door lock, acquiring the geographical position of the fixed door lock;
setting the geographic location as the door lock position of a fixed door lock.
The computer-readable storage medium in the above embodiment may determine, when the door lock is unlocked by using the NFC digital key, the matched door lock data through the user position and the door lock position in real time, and determine the NFC digital key corresponding to the door lock data, so that the matched door lock position may be determined only through the user position and the door lock position, and the NFC digital key matched with the door lock position may be accurately determined and output to accurately open the corresponding door lock, and thus the corresponding NFC digital key may be automatically switched and output without manually switching the NFC digital key, and the technical problem that manual switching is required when a plurality of existing NFC digital keys are switched with each other is solved.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. In addition, embodiments of the present invention are not directed to any particular programming language.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. Similarly, in the above description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. Where the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. Except that at least some of such features and/or processes or elements are mutually exclusive.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.

Claims (14)

1. An NFC digital key unlocking method, comprising:
acquiring a user position;
determining matched door lock data according to the user position and the door lock position;
acquiring an NFC digital key according to the matched door lock data;
and unlocking the corresponding door lock by using the NFC digital key.
2. The NFC digital key unlocking method according to claim 1, wherein the step of determining the matched door lock data according to the user position and the door lock position includes:
matching the user position with at least one first preset door lock data stored in advance, and confirming whether the distance between the user position and the door lock position in the first preset door lock data is within an error range; wherein the first preset door lock data comprises the door lock position;
and if the distance between the user position and the door lock position is within a preset error range, determining that the first preset door lock data is the matched door lock data.
3. The NFC digital key unlocking method according to claim 2, wherein the step of determining the matched door lock data according to the user position and the door lock position further includes:
if the distance between the user position and the door lock position exceeds the error range, outputting error range updating prompt information to prompt the user to update the error range;
and acquiring range information input by a user, and taking the range information as a new error range.
4. The NFC digital key unlocking method according to claim 1, wherein the step of determining the matched door lock data according to the user position and the door lock position includes:
uploading the user position and the user information to a server side, so that the server side matches users according to the user information, and confirming first preset door lock data matched with the user position according to at least one piece of first preset door lock data prestored under the matched users;
and receiving the first preset door lock data sent by the server, and determining that the first preset door lock data is the matched door lock data.
5. The NFC digital key unlocking method of claim 4, wherein the step of determining the matched door lock data according to the user position and the door lock position further comprises:
if the error range updating information sent by the server is received, outputting error range updating prompt information to prompt a user to update a preset error range;
and acquiring range information input by a user, and taking the range information as a new error range.
6. The NFC digital key unlocking method according to claim 1, wherein the step of acquiring the NFC digital key according to the matched door lock data includes:
if a plurality of matched door lock data exist, outputting door lock selection prompt information to prompt a user to select one of the door lock data;
and acquiring the door lock data selected by the user, and taking the digital key corresponding to the door lock data as the NFC digital key.
7. The NFC digital key unlocking method according to claim 1, further comprising, after the step of unlocking the corresponding door lock using the NFC digital key:
if the door is failed to open, outputting manual selection prompt information to prompt a user to manually select door lock data;
acquiring the door lock data selected by a user, and taking a digital key corresponding to the door lock data as a new NFC digital key;
and unlocking the door lock by using the new NFC digital key.
8. The NFC digital key unlocking method according to claim 1 or 7, wherein the door lock data includes: a door lock type; the door lock types include: a mobile door lock and a fixed door lock;
after the step of determining the matched door lock data according to the user position and the door lock position, the method further comprises the following steps of:
if the matched door lock data is determined to be failed, taking the digital key corresponding to the door lock data of the movable door lock as the NFC digital key;
and unlocking the corresponding door lock by using the NFC digital key.
9. The NFC digital key unlocking method according to claim 1 or 7, wherein the door lock data includes: door lock type and door lock position; the door lock types include: a mobile door lock and a fixed door lock;
after the step of using the NFC digital key to unlock the corresponding door lock, the method further includes:
and if the door is opened successfully and the door lock type of the matched door lock data is a fixed door lock, taking the user position as the door lock position of the door lock.
10. The NFC digital key unlocking method according to claim 9, wherein the door lock data further includes: error range; after the step of using the user position as the door lock position of the door lock, the method further comprises:
and narrowing the error range.
11. The NFC digital key unlocking method of claim 1, further comprising:
creating first preset door lock data;
reading and copying NFC key information of an NFC entity card to obtain an NFC digital key;
and establishing a corresponding relation between the first preset door lock data and the NFC digital key.
12. The NFC digital key unlocking method according to claim 11, wherein the step of creating the first preset door lock data includes:
setting a door lock type; the door lock types include: a mobile door lock and a fixed door lock;
setting a door lock position;
setting an error range;
and adding the door lock type, the door lock position and the error range into the first preset door lock data.
13. The NFC digital key unlocking method according to claim 12, wherein the step of setting the door lock position includes:
if the door lock type is a mobile door lock, acquiring at least one common address selected by a user;
setting all the common addresses as the door lock positions of the movable door lock;
if the door lock type is a fixed door lock, acquiring the geographical position of the fixed door lock;
setting the geographic location as the door lock position of a fixed door lock.
14. An NFC digital key unlocking device, the device comprising:
the positioning module is used for acquiring the position of a user;
the data matching module is used for determining matched door lock data according to the user position and the door lock position;
the key acquisition module is used for acquiring an NFC digital key according to the matched door lock data;
and the unlocking module is used for unlocking the corresponding door lock by using the NFC digital key.
CN202210470912.XA 2022-04-28 2022-04-28 NFC digital key unlocking method and device Pending CN114842580A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210470912.XA CN114842580A (en) 2022-04-28 2022-04-28 NFC digital key unlocking method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210470912.XA CN114842580A (en) 2022-04-28 2022-04-28 NFC digital key unlocking method and device

Publications (1)

Publication Number Publication Date
CN114842580A true CN114842580A (en) 2022-08-02

Family

ID=82567001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210470912.XA Pending CN114842580A (en) 2022-04-28 2022-04-28 NFC digital key unlocking method and device

Country Status (1)

Country Link
CN (1) CN114842580A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105336024A (en) * 2015-09-28 2016-02-17 北京橙鑫数据科技有限公司 Virtual entrance guard card punching method and device
CN107024980A (en) * 2016-10-26 2017-08-08 阿里巴巴集团控股有限公司 Customer location localization method and device based on augmented reality
CN207148947U (en) * 2017-09-08 2018-03-27 深圳传音通讯有限公司 A kind of gate control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105336024A (en) * 2015-09-28 2016-02-17 北京橙鑫数据科技有限公司 Virtual entrance guard card punching method and device
CN107024980A (en) * 2016-10-26 2017-08-08 阿里巴巴集团控股有限公司 Customer location localization method and device based on augmented reality
CN207148947U (en) * 2017-09-08 2018-03-27 深圳传音通讯有限公司 A kind of gate control system

Similar Documents

Publication Publication Date Title
AU2015323425B2 (en) Systems and methods for identifying mobile devices
CN105827683A (en) Data synchronization method, server and electronic device
CN110209652A (en) Tables of data moving method, device, computer equipment and storage medium
CN109951354B (en) Terminal equipment identification method, system and storage medium
CN107197462B (en) Wireless network type detection method and device and electronic equipment
WO2004004246A1 (en) A method for establishing a connection between a mobile device and a second device
US11238563B2 (en) Noise processing method and apparatus
US11637591B2 (en) NFC device and method of operating the same
CN113515612A (en) Heiyou mobile phone number identification method and device
CN114842580A (en) NFC digital key unlocking method and device
CN112887451A (en) Domain name resolution method and device and computer equipment
CN105827809A (en) Method for searching contact number, and terminal
CN112433935A (en) Test method, test device, electronic equipment and storage medium
CN114584261B (en) Data processing method, device and storage medium
CN109670122A (en) Address information earth-filling method, device, equipment and computer readable storage medium
CN104331649A (en) Identity recognition system and method based on network connection
CN107888772A (en) A kind of method, apparatus and storage medium for determining configuration information
CN110456398B (en) Geographic position determining method, device, storage medium and equipment
JP2009230255A (en) Information providing device, information providing method and information providing processing program
CN111400181A (en) Object testing method and device and server
CN111541815A (en) Terminal interaction method and device based on electronic compass and storage medium
CN106375993A (en) Electronic equipment, and electronic equipment searching system and method
CN108132990B (en) Method and device for replacing APP built-in picture and storage medium
CN107704614B (en) Notification information change method and system
CN111432397B (en) Communication number registration method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination