CN110718005A - Garage key management method and device, server and readable storage medium - Google Patents

Garage key management method and device, server and readable storage medium Download PDF

Info

Publication number
CN110718005A
CN110718005A CN201910943041.7A CN201910943041A CN110718005A CN 110718005 A CN110718005 A CN 110718005A CN 201910943041 A CN201910943041 A CN 201910943041A CN 110718005 A CN110718005 A CN 110718005A
Authority
CN
China
Prior art keywords
key
target
main
master
auxiliary
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.)
Granted
Application number
CN201910943041.7A
Other languages
Chinese (zh)
Other versions
CN110718005B (en
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.)
Zhejiang Dasou Vehicle Software Technology Co Ltd
Original Assignee
Zhejiang Dasou Vehicle Software Technology 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 Zhejiang Dasou Vehicle Software Technology Co Ltd filed Critical Zhejiang Dasou Vehicle Software Technology Co Ltd
Priority to CN201910943041.7A priority Critical patent/CN110718005B/en
Publication of CN110718005A publication Critical patent/CN110718005A/en
Application granted granted Critical
Publication of CN110718005B publication Critical patent/CN110718005B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/00896Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47BTABLES; DESKS; OFFICE FURNITURE; CABINETS; DRAWERS; GENERAL DETAILS OF FURNITURE
    • A47B81/00Cabinets or racks specially adapted for other particular purposes, e.g. for storing guns or skis
    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B19/00Keys; Accessories therefor
    • 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/00896Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses
    • G07C2009/00928Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses for garage doors

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The application relates to a garage key management method, a device, a server and a readable storage medium. The method comprises the following steps: receiving a key position query instruction aiming at a target key sent by a terminal; determining a target main key associated with the target key according to the target key, wherein the target key is the target main key or an auxiliary key associated with the target main key; acquiring a key position of a target main key in a key cabinet according to a preset corresponding relation between the main key and the key position; each key cabinet stores each main key, and at least one auxiliary key related to the main key is stored in the vehicle corresponding to each main key; and sending the key position of the target master key to the terminal. Therefore, when a plurality of vehicles exist, each vehicle corresponds to one key, but in the application, one main key corresponds to a plurality of auxiliary keys, only the main key is stored in the key cabinet, and the auxiliary keys are stored in the vehicles corresponding to the main keys, so that the number of the key cabinets can be reduced, and the garage key management cost is reduced.

Description

Garage key management method and device, server and readable storage medium
Technical Field
The application relates to the technical field of garage key management, in particular to a garage key management method, a device, a server and a readable storage medium.
Background
With the development of the field of vehicle circulation, how vehicles can be conveniently stored and taken is an important aspect, and a warehouse parking lot is established for meeting the storage and management of the vehicles; in vehicle management, the key link is the management of vehicle keys.
In the traditional technology, a single management method of one vehicle and one key can be adopted, and a key cabinet is adopted to store vehicle keys for convenient management so as to facilitate vehicle taking and returning; each key position in the key cabinet can only correspondingly store one vehicle key.
However, the key locker is expensive, and when the number of vehicles stored in the parking lot of the warehouse is too large, the key locker needs to be added at the same time, which results in an increase in the cost of the garage key management.
Disclosure of Invention
In view of the above, it is necessary to provide a garage key management method, a device, a server and a readable storage medium, which can reduce the cost of garage key management.
In a first aspect, a method for managing garage keys is provided, the method comprising:
receiving a key position query instruction aiming at a target key sent by a terminal;
determining a target main key associated with the target key according to the target key; the target master key is the target key or a master key associated with the target key;
acquiring a key position of the target master key in a key cabinet according to a preset corresponding relation between the master key and the key position; each key cabinet stores various main keys, and each main key is at least associated with one auxiliary key;
and sending the key position of the target master key to the terminal.
The embodiment provides a garage key management method, which includes the steps that firstly, a terminal sends a key position query instruction aiming at a target key to a server, the server determines a target main key associated with the target key according to the target key instruction, wherein the target key is the target main key or an auxiliary key associated with the target main key, then the server obtains the key position of the target main key in a key cabinet according to a preset corresponding relation between the main key and the key position, each main key is stored in the key cabinet, at least one auxiliary key associated with the main key is stored in a vehicle corresponding to each main key, and finally, the terminal receives the key position of the target main key sent by the server, so that the target main key can be found in the key cabinet; if the target key is a target master key, the target key has been acquired; if the target key is an auxiliary key associated with the target main key, the auxiliary key can be found from a vehicle corresponding to the target main key; therefore, when a plurality of vehicles exist, each vehicle corresponds to one key, but in the application, one main key corresponds to a plurality of auxiliary keys, only the main key is stored in the key cabinet, and the auxiliary keys are stored in the vehicles corresponding to the main keys, so that the number of the key cabinets can be reduced, the garage key management cost is reduced, and when the keys need to be managed for a large-scale garage, the method improves the key management efficiency.
In one embodiment, the determining a target master key associated with the target key according to the target key includes:
determining a key type of the target key; the key type is a main key type or an auxiliary key type;
and if the target key is of the master key type, determining that the target key is the target master key.
The embodiment provides a garage key management method, which is used for determining a key type of a target key, and determining that the target key is a target master key if the target key is a master key type.
In one embodiment, the determining a target master key associated with the target key according to the target key further includes:
if the target key is of the auxiliary key type, determining a main key corresponding to the target key as the target main key according to a preset incidence relation between the main key and the auxiliary key;
correspondingly, the sending the key position of the target master key to the terminal includes:
and sending the key position of the target main key and the incidence relation between the target main key and the target key to the terminal.
In this embodiment, when a target key is an auxiliary key and a single-direction terminal returns to a key position of a target master key, a situation that the target master key is mistaken as the target key may be caused, so to avoid such a situation, an association relationship between the target master key and the target key is returned at the same time, the returned key position is determined to be the key position of the target master key, and the target key needs to be taken out from a vehicle corresponding to the target master key after the target master key is taken out; thus, the efficiency of key management can be further improved.
In one embodiment, the method further comprises:
receiving and storing the association relation between the main key and the auxiliary key sent by the terminal; the incidence relation between the main key and the auxiliary key is set according to the storage position of each vehicle; and the vehicle corresponding to each main key and the vehicle corresponding to the auxiliary key associated with the main key are positioned in the same storage position unit.
The embodiment provides a garage key management method, which can use a main key to find other auxiliary keys, can find the auxiliary keys in a vehicle by opening the vehicle corresponding to the main key, and can be convenient for obtaining the auxiliary keys if all vehicles corresponding to all auxiliary keys related to the main key and the main key are located in the same garage position unit in the scene.
In one embodiment, determining the key type of the target key comprises:
judging whether the target key exists in a preset master key list or not;
if yes, determining that the target key is of a master key type;
if not, determining that the target key is of the auxiliary key type.
The embodiment provides a garage key management method, which can determine the key type of a target key according to a preset master key list, and is beneficial to determining the key type of the target key more conveniently.
In one embodiment, the obtaining the key position of the target master key in the key locker according to a preset correspondence between the master key and the key position includes:
sending a key position query instruction aiming at the target master key to a key cabinet; the key cabinet stores the corresponding relation between the main key and the key position;
and receiving the key position of the target master key returned by the key cabinet.
The embodiment provides a garage key management method, wherein a key cabinet stores a corresponding relation between a main key and a key position, the key position of a target main key can be directly searched according to the corresponding relation, a server does not need to search the key position of the target main key locally, and maintenance and management work of the server is reduced.
In one embodiment, the obtaining the key position of the target master key in the key locker according to a preset correspondence between the master key and the key position includes:
and acquiring the key position of the target master key according to the corresponding relation between the master key and the key position preset in the server.
The embodiment provides a garage key management method, wherein a server can determine a master key associated with a target key according to the key type of the target key; when the target key is the master key type, the target key can be directly, simply and quickly determined to be the target master key; when the target key is of the auxiliary key type, the main key corresponding to the target key can be determined to be the target main key according to the preset association relationship between the main key and the auxiliary key, so that the efficiency of determining the target main key associated with the target key can be improved, and the efficiency of determining the key position of the target main key associated with the target key can be further improved.
In a second aspect, there is provided a garage key management device, the device comprising:
the receiving module is used for receiving a key position inquiry instruction aiming at a target key, which is sent by a terminal;
the determining module is used for determining a target master key related to the target key according to the target key; the target master key is the target key or a master key associated with the target key;
the key position acquisition module is used for acquiring the key position of the target master key in the key cabinet according to the corresponding relation between the preset master key and the key position; each key cabinet stores various main keys, and each main key is at least associated with one auxiliary key;
and the sending module is used for sending the key position of the target master key to the terminal.
In a third aspect, a server is provided, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the garage key management method according to any one of the first aspect when executing the computer program.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the garage key management method of any of the first aspects.
The garage key management method, the device, the server and the readable storage medium have the advantages that:
firstly, a terminal sends a key position query instruction aiming at a target key to a server, the server determines a target main key associated with the target key according to the target key instruction, wherein the target key is the target main key or an auxiliary key associated with the target main key, then the server acquires the key position of the target main key in a key cabinet according to a preset corresponding relation between the main key and the key position, wherein each main key is stored in the key cabinet, at least one auxiliary key associated with the main key is stored in a vehicle corresponding to each main key, and finally, the terminal receives the key position of the target main key sent by the server, so that the target main key can be found in the key cabinet; if the target key is a target master key, the target key has been acquired; if the target key is an auxiliary key associated with the target main key, the auxiliary key can be found from a vehicle corresponding to the target main key; therefore, when a plurality of vehicles exist, each vehicle corresponds to one key, but in the application, one main key corresponds to a plurality of auxiliary keys, only the main key is stored in the key cabinet, and the auxiliary keys are stored in the vehicles corresponding to the main keys, so that the number of the key cabinets can be reduced, the garage key management cost is reduced, and when the keys need to be managed for a large-scale garage, the method improves the key management efficiency.
Drawings
Fig. 1 is a schematic view of an application environment of a garage key management method according to an embodiment of the present application;
fig. 2 is a flowchart of a garage key management method according to an embodiment of the present application;
fig. 3 is a schematic view of a garage key management method according to an embodiment of the present application;
fig. 4 is a flowchart of another garage key management method according to an embodiment of the present application;
fig. 5 is a flowchart of another garage key management method according to an embodiment of the present application;
fig. 6 is a block diagram of a garage key management apparatus according to an embodiment of the present application;
fig. 7 is a block diagram of another garage key management apparatus according to an embodiment of the present application;
fig. 8 is a block diagram of a server according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The garage key management method provided by the application can be applied to the application environment shown in fig. 1. The application environment may include a server 102 and a terminal 103, where the server 102 and the terminal 103 communicate through a network, the terminal sends a key position query instruction for a target key to the server, the server determines a target master key associated with the target key according to the key position query instruction for the target key, then the server obtains a key position of the target master key in a key locker according to a preset correspondence between the master key and the key position, and finally, the terminal receives the key position of the target master key sent by the server. Of course, the above application environment may further include a key cabinet 101, the server 102 may communicate with the key cabinet 101, and the key cabinet may store a corresponding relationship between the master key and the key position, so that the server searches for the information of the key position through the key cabinet. The terminal 103 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 102 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a garage key management method is provided, which is exemplified by the application of the method to the server in fig. 1, and may include the following steps:
s201, receiving a key position inquiry command aiming at a target key sent by a terminal.
The key position query instruction may carry an identifier of the target key, and the identifier of the target key may be a number of the target key or an identifier of a vehicle corresponding to the target key, which may represent information of the target key. The terminal can send a key position query instruction to the server through the Internet, and the server can receive and analyze the key position query instruction to obtain the identifier of the target key carried in the key position query instruction.
For example, the terminal sends a key bit inquiry command for a target key of the vehicle B, and the server receives the key bit inquiry command and performs key bit inquiry that the identifier of the target key is the vehicle B. The key bit query command may be generated by inputting an identifier of a target key in the terminal, for example, inputting an identifier of the target key in a query input box on an APP (Application) of the terminal, where the identifier of the target key may be an identifier formed by a plurality of numbers, and after "send" is clicked, the terminal generates a key bit query command for the target key and directly sends the key bit query command to the server. The key position query instruction may carry the identifiers of the plurality of target keys, the key positions of the plurality of target keys may be queried at one time, and the server may also receive the key position query instruction for the plurality of target keys at one time.
S202, determining a target master key associated with the target key according to the target key; the target master key is the target key or a master key associated with the target key.
In one embodiment, the server may store a list, the left side of the list stores the identifier of the key, and the right side of the list stores the identifier of the master key associated with the identifier of the key, and the target master key associated with the target key may be directly queried according to the list.
S203, acquiring a key position of the target master key in the key cabinet according to a preset corresponding relation between the master key and the key position; the key cabinet stores master keys, each master key being associated with at least one secondary key.
In one embodiment, the identification of the target key is transmitted to a key locker, the key locker storing a correspondence between the master key and the key position of the master key, and the server can receive the key position of the target master key returned by the key locker according to the correspondence. In another embodiment, the server stores a corresponding relationship between the master key and the key position of the master key, and according to the corresponding relationship, the server can obtain the key position of the target master key from the server; for example, the server may receive and store the correspondence between the master key and the key position of the master key sent by the terminal in advance, where the terminal here may be another terminal such as a vehicle key management terminal, and may be the same as or different from the terminal in S201.
The vehicle corresponding to each main key stores at least one auxiliary key related to the main key, namely the vehicle corresponding to each main key stores at least one auxiliary key related to the main key, only the main key is stored in the key cabinet, and the auxiliary keys adopt an independent storage method. In one embodiment, all secondary keys associated with the primary key may be stored in the vehicle to which the primary key corresponds. In one embodiment, all the auxiliary keys related to the main key can be respectively stored in the vehicles corresponding to the main key and the auxiliary keys in an arbitrary combination mode; as long as the main key is obtained, the vehicle corresponding to the main key is opened through the main key, the auxiliary key stored in the vehicle corresponding to the main key is found, the vehicle corresponding to the auxiliary key is opened through the auxiliary key, other auxiliary keys stored in the vehicle are found, and the steps are sequentially executed, so that the auxiliary keys corresponding to the other vehicles can be obtained.
Illustratively, all the auxiliary keys related to the main key adopt a pressing storage mode, wherein the pressing storage mode is that the key of the previous vehicle is stored in the next vehicle, and the key of the last vehicle is stored in the vehicle corresponding to the main key; for example, in a plurality of vehicles arranged in a row, the pressing mode is that one of the vehicles is a vehicle corresponding to a master key, and the auxiliary keys corresponding to the other vehicles are stored in the pressing mode except that the master key corresponding to the vehicle is stored in a key cabinet. As shown in fig. 3, the cars A, B, C, D are arranged in a row, the car D is a car corresponding to a master key, and the remaining cars A, B, C are stored by a push-type car, specifically, a key arranged in the first car a is placed in the second car B, a key arranged in the second car B is placed in the third car C, a key arranged in the third car C is placed in the fourth car D, and a key (master key) of the car D is stored in a key position in a key locker.
And S204, sending the key position of the target master key to the terminal.
The server acquires the key position of the target master key in the key cabinet according to the corresponding relation between the preset master key and the key position, and then sends the key position of the target master key to the terminal as an inquiry result, so that the target master key can be found in the key cabinet; if the target key is the target master key, the target key has been acquired; if the target key is the secondary key associated with the target primary key, the secondary key can be found from the vehicle corresponding to the target primary key.
In one embodiment, the server may be connected to a plurality of terminals simultaneously, or may receive key position query instructions sent by the plurality of terminals simultaneously; correspondingly, the server can search the key positions of the target master keys associated with the plurality of target keys and respectively send the key positions of the target keys to the corresponding terminals.
In the garage key management method, firstly, a terminal sends a key position query instruction aiming at a target key to a server, the server determines a target main key associated with the target key according to the target key instruction, wherein the target key is the target main key or an auxiliary key associated with the target main key, then the server acquires the key position of the target main key in a key cabinet according to the corresponding relation between a preset main key and the key position, wherein each main key is stored in the key cabinet, at least one auxiliary key associated with the main key is stored in a vehicle corresponding to each main key, and finally, the terminal receives the key position of the target main key sent by the server, so that the target main key can be found in the key cabinet; if the target key is the target master key, the target key has been acquired; if the target key is the auxiliary key associated with the target main key, the auxiliary key can be found from the vehicle corresponding to the target main key; therefore, when a plurality of vehicles exist, each vehicle corresponds to one key, but in the application, one main key corresponds to a plurality of auxiliary keys, only the main key is stored in the key cabinet, and the auxiliary keys are stored in the vehicles corresponding to the main keys, so that the number of the key cabinets can be reduced, the garage key management cost is reduced, and the key management efficiency is improved by the method when the keys need to be managed for a large-scale garage.
In one embodiment, as shown in fig. 4, the process of how to determine the target master key associated with the target key may include the following steps:
optionally, prior to determining the key type of the target key, in one embodiment, the master key identification may be stored with the key type to form a master key list.
S301, determining the key type of the target key; the key type is a master key type or a servant key type.
In one embodiment, the server may determine the key type of the target key according to a preset key identifier determination rule and a target key identifier, for example, a "primary" or "secondary" exists in the preset key identifier, and is used to indicate that the key type of the target key is a primary key type or a secondary key type respectively; for example, if the server obtains the identifier of the target key as "secondary" by analyzing the key bit query command, the server may determine that the target key is of the secondary key type from the identifier of the target key.
In one embodiment, the server may determine whether the target key exists in a preset master key list; if yes, determining that the target key is of a master key type; if not, the target key is determined to be the auxiliary key type, and the server can directly inquire the key type of the target key through the table.
And S302, if the target key is the master key type, determining that the target key is the target master key.
And S303, if the target key is the auxiliary key type, determining that the main key corresponding to the target key is the target main key according to the preset association relationship between the main key and the auxiliary key.
In this embodiment, the server may determine a master key associated with the target key according to the key type of the target key; when the target key is the master key type, the target key can be directly, simply and quickly determined to be the target master key; when the target key is of the auxiliary key type, the main key corresponding to the target key can be determined to be the target main key according to the preset association relationship between the main key and the auxiliary key, so that the efficiency of determining the target main key associated with the target key can be improved, and the efficiency of determining the key position of the target main key associated with the target key can be further improved.
On the basis of the foregoing embodiment, accordingly, the foregoing S204 may include: and sending the key position of the target master key and the incidence relation between the target master key and the target key to the terminal. The server may send multiple primary key to secondary key associations simultaneously. It can be understood that when the target key is the secondary key, when the key position of the target primary key is returned by the one-way terminal, the target primary key may be mistaken as the target key, so to avoid this, the association relationship between the target primary key and the target key is returned at the same time, the returned key position is the key position of the target primary key definitely, and the target key needs to be taken out from the vehicle corresponding to the target primary key after the target primary key is taken out; thus, the efficiency of key management can be further improved.
Further, the server can receive and store the association relationship between the main key and the auxiliary key sent by the terminal; the incidence relation between the main key and the auxiliary key is set according to the storage position of each vehicle; and the vehicle corresponding to each main key and the vehicle corresponding to the auxiliary key associated with the main key are positioned in the same storage position unit. It can be understood that, in this embodiment, other auxiliary keys can be found by using the main key, and by opening the vehicle corresponding to the main key, the auxiliary key can be found in the vehicle. In particular, for the push type, as shown in fig. 3, when the target key corresponding to the vehicle a is to be obtained, after the master key corresponding to the vehicle D is obtained from the key locker, the auxiliary key corresponding to the vehicle C is obtained from the vehicle D, the auxiliary key corresponding to the vehicle B is obtained from the vehicle C, and finally the auxiliary key corresponding to the vehicle a, that is, the target key is obtained from the vehicle B; when the vehicle A, B, C, D is located in the same garage location unit, the efficiency of acquiring the assist key is improved.
In one embodiment, as shown in fig. 5, the present embodiment relates to a process of how to obtain a key bit, which may include the following steps:
s401, sending a key position query instruction aiming at a target master key to a key cabinet; the key cabinet stores the corresponding relation between the main key and the key position.
The server can send a key position query instruction aiming at the target master key to the key cabinet through the Internet, and the key position query instruction is used for querying the key position of the target master key in the key cabinet. The key cabinet stores the corresponding relationship between the master key and the key position, and the corresponding relationship can be that one master key corresponds to one key position. In an implementation manner, a plurality of key cabinets exist, so that the server can query the target key cabinet according to the target master key first and then send a key position query instruction to the target key cabinet, and the target key cabinet receives the key position query instruction and analyzes the key position query instruction to obtain the identifier of the target master key carried in the key position query instruction, so that the key position of the target master key can be queried and returned. For example, the way of querying the target key locker according to the target master key may be to identify from an identifier of the target master key, for example, an identifier of a key locker where the target master key is located exists in the identifier of the target master key; or different storage areas correspond to different key cabinets, and the server can determine the storage area where the vehicle corresponding to the target master key is located from a preset vehicle storage database according to the identification of the target master key and then determine the target key cabinet corresponding to the target master key from the corresponding relationship between the pre-stored storage area and the key cabinet. This may further improve key management efficiency when there are multiple key lockers.
And S402, receiving the key position of the target master key returned by the key cabinet.
The server can receive the key position of the target main key sent by the key cabinet and return the key position of the target main key to the terminal; when a plurality of key cabinets are available, the server also needs to return the identification of the target key cabinet to the terminal, so that the user can conveniently acquire the target master key, namely the target key or the master key associated with the target key, from the corresponding key position of the target key cabinet.
In this embodiment, the key cabinet stores a corresponding relationship between the master key and the key position, and according to the corresponding relationship, the key position of the target master key can be directly found without the server finding the key position of the target master key locally, thereby reducing maintenance and management work on the server.
It should be understood that although the various steps in the flowcharts of fig. 2, 4-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2, 4-5 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 6, a garage key management apparatus 500 is provided and may include:
a receiving module 501, configured to receive a key position query instruction for a target key sent by a terminal;
a determining module 502, configured to determine, according to the target key, a target master key associated with the target key; the target master key is the target key or a master key associated with the target key;
a key position obtaining module 503, configured to obtain a key position of the target master key in the key cabinet according to a preset correspondence between the master key and the key position; the key cabinet stores various main keys, and each main key is at least associated with one auxiliary key;
a sending module 504, configured to send the key bit of the target master key to the terminal.
In one embodiment, as shown in fig. 7, the determining module 502 may include:
a key type determination unit 5021 for determining the key type of the target key; the key type is a main key type or an auxiliary key type;
the first master key determination unit 5022 is configured to determine that the target key is the target master key if the target key is the master key type.
In one embodiment, the determining module 502 may further include:
a second master key determining unit 5023, configured to determine, if the target key is the type of the secondary key, that the master key corresponding to the target key is the target master key according to a preset association relationship between the master key and the secondary key;
accordingly, the sending module 504 may include:
and a key position transmitting unit 5041, configured to transmit the key position of the target master key and the association relationship between the target master key and the target key to the terminal.
In one embodiment, the apparatus 500 may further include:
a storage module 505, configured to receive and store an association relationship between a primary key and a secondary key sent by a terminal; the incidence relation between the main key and the auxiliary key is set according to the storage position of each vehicle; and the vehicle corresponding to each main key and the vehicle corresponding to the auxiliary key associated with the main key are positioned in the same storage position unit.
In one embodiment, the key type determining unit 5021 is specifically configured to determine whether a target key exists in a preset master key list; if yes, determining that the target key is the main key type; if not, the target key is determined to be the auxiliary key type.
In one embodiment, as shown in fig. 7, the key position obtaining module 503 may include:
a key position inquiry unit 5031, configured to send a key position inquiry instruction for a target primary key to a key locker; the key cabinet stores the corresponding relation between the main key and the key position;
a key position receiving unit 5032, configured to receive the key position of the target primary key returned by the key locker.
In one embodiment, the key bit acquisition module 503 may include:
and the key position acquisition unit is used for acquiring the key position of the target main key according to the corresponding relation between the main key and the key position preset in the server.
For specific limitations of the garage key management device, reference may be made to the above limitations of the garage key management method, which are not described herein again. All or part of each module in the garage key management device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing garage key management data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a garage key management method.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
receiving a key position query instruction aiming at a target key sent by a terminal;
determining a target main key associated with the target key according to the target key; the target master key is the target key or a master key associated with the target key;
acquiring a key position of the target master key in a key cabinet according to a preset corresponding relation between the master key and the key position; each key cabinet stores various main keys, and each main key is at least associated with one auxiliary key;
and sending the key position of the target master key to the terminal.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining a key type of a target key; the key type is a main key type or an auxiliary key type; and if the target key is the master key type, determining that the target key is the target master key.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the target key is of the auxiliary key type, determining a main key corresponding to the target key as the target main key according to the preset association relationship between the main key and the auxiliary key; and sending the key position of the target master key and the incidence relation between the target master key and the target key to the terminal.
In one embodiment, the processor, when executing the computer program, further performs the steps of: receiving and storing the association relation between the main key and the auxiliary key sent by the terminal; the incidence relation between the main key and the auxiliary key is set according to the storage position of each vehicle; and the vehicle corresponding to each main key and the vehicle corresponding to the auxiliary key associated with the main key are positioned in the same storage position unit.
In one embodiment, the processor, when executing the computer program, further performs the steps of: judging whether a target key exists in a preset master key list or not; if yes, determining that the target key is the main key type; if not, the target key is determined to be the auxiliary key type.
In one embodiment, the processor, when executing the computer program, further performs the steps of: sending a key position query instruction aiming at a target master key to a key cabinet; the key cabinet stores the corresponding relation between the main key and the key position; and receiving the key position of the target master key returned by the key cabinet.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and acquiring the key position of the target master key according to the corresponding relation between the master key and the key position preset in the server.
In one embodiment, a readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of:
receiving a key position query instruction aiming at a target key sent by a terminal;
determining a target main key associated with the target key according to the target key; the target master key is the target key or a master key associated with the target key;
acquiring a key position of the target master key in a key cabinet according to a preset corresponding relation between the master key and the key position; each key cabinet stores various main keys, and each main key is at least associated with one auxiliary key;
and sending the key position of the target master key to the terminal.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining a key type of a target key; the key type is a main key type or an auxiliary key type; and if the target key is the master key type, determining that the target key is the target master key.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the target key is of the auxiliary key type, determining a main key corresponding to the target key as the target main key according to the preset association relationship between the main key and the auxiliary key; and sending the key position of the target master key and the association relation between the target master key and the target key to the terminal.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving and storing the association relation between the main key and the auxiliary key sent by the terminal; the incidence relation between the main key and the auxiliary key is set according to the storage position of each vehicle; and the vehicle corresponding to each main key and the vehicle corresponding to the auxiliary key associated with the main key are positioned in the same storage position unit.
In one embodiment, the computer program when executed by the processor further performs the steps of: judging whether a target key exists in a preset master key list or not; if yes, determining that the target key is the main key type; if not, the target key is determined to be the auxiliary key type.
In one embodiment, the computer program when executed by the processor further performs the steps of: sending a key position query instruction aiming at a target master key to a key cabinet; the key cabinet stores the corresponding relation between the main key and the key position; and receiving the key position of the target master key returned by the key cabinet.
In one embodiment, the computer program when executed by the processor further performs the steps of: and acquiring the key position of the target master key according to the corresponding relation between the master key and the key position preset in the server.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of managing garage keys, the method comprising:
receiving a key position query instruction aiming at a target key sent by a terminal;
determining a target main key associated with the target key according to the target key; the target master key is the target key or a master key associated with the target key;
acquiring a key position of the target master key in a key cabinet according to a preset corresponding relation between the master key and the key position; each key cabinet stores various main keys, and each main key is at least associated with one auxiliary key;
and sending the key position of the target master key to the terminal.
2. The method of claim 1, wherein determining a target primary key associated with the target key based on the target key comprises:
determining a key type of the target key; the key type is a main key type or an auxiliary key type;
and if the target key is of the master key type, determining that the target key is the target master key.
3. The method of claim 2, wherein determining a target primary key associated with the target key based on the target key further comprises:
if the target key is of the auxiliary key type, determining a main key corresponding to the target key as the target main key according to a preset incidence relation between the main key and the auxiliary key;
correspondingly, the sending the key position of the target master key to the terminal includes:
and sending the key position of the target main key and the incidence relation between the target main key and the target key to the terminal.
4. The method of claim 3, further comprising:
receiving and storing the association relation between the main key and the auxiliary key sent by the terminal; the incidence relation between the main key and the auxiliary key is set according to the storage position of each vehicle; and the vehicle corresponding to each main key and the vehicle corresponding to the auxiliary key associated with the main key are positioned in the same storage position unit.
5. The method of claim 2, wherein said determining a key type of the target key comprises:
judging whether the target key exists in a preset master key list or not;
if yes, determining that the target key is of a master key type;
if not, determining that the target key is of the auxiliary key type.
6. The method according to any one of claims 1 to 5, wherein the obtaining the key position of the target master key in the key locker according to the preset correspondence between master keys and key positions comprises:
sending a key position query instruction aiming at the target master key to a key cabinet; the key cabinet stores the corresponding relation between the main key and the key position;
and receiving the key position of the target master key returned by the key cabinet.
7. The method according to any one of claims 1 to 5, wherein the obtaining the key position of the target master key in the key locker according to the preset correspondence between master keys and key positions comprises:
and acquiring the key position of the target master key according to the corresponding relation between the master key and the key position preset in the server.
8. A garage key management device, comprising:
the receiving module is used for receiving a key position inquiry instruction aiming at a target key, which is sent by a terminal;
the determining module is used for determining a target master key related to the target key according to the target key; the target key is the target main key or an auxiliary key associated with the target main key;
the key position acquisition module is used for acquiring the key position of the target master key in the key cabinet according to the corresponding relation between the preset master key and the key position; each key cabinet stores each main key, and at least one auxiliary key related to the main key is stored in the vehicle corresponding to each main key;
and the sending module is used for sending the key position of the target master key to the terminal.
9. A server comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201910943041.7A 2019-09-30 2019-09-30 Garage key management method and device, server and readable storage medium Active CN110718005B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910943041.7A CN110718005B (en) 2019-09-30 2019-09-30 Garage key management method and device, server and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910943041.7A CN110718005B (en) 2019-09-30 2019-09-30 Garage key management method and device, server and readable storage medium

Publications (2)

Publication Number Publication Date
CN110718005A true CN110718005A (en) 2020-01-21
CN110718005B CN110718005B (en) 2021-12-21

Family

ID=69211292

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910943041.7A Active CN110718005B (en) 2019-09-30 2019-09-30 Garage key management method and device, server and readable storage medium

Country Status (1)

Country Link
CN (1) CN110718005B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19644052A1 (en) * 1996-10-31 1998-05-07 Johann Binder System for ordered storage especially for car keys
CN1620544A (en) * 2002-01-22 2005-05-25 Sqs安全空间系统股份公司 Method for transporting an alarmed container
KR100933603B1 (en) * 2009-07-14 2009-12-23 문덕영 The electric key box system
CN103294018A (en) * 2013-02-08 2013-09-11 中国人民解放军理工大学 Intelligent key managing system and self-inspection processing method thereof
CN104504794A (en) * 2014-12-23 2015-04-08 昆山信德佳电气科技有限公司 Intelligent key cabinet
CN105074761A (en) * 2013-02-15 2015-11-18 钥匙咖啡馆公司 Methods and systems for management of key exchanges
CN206664538U (en) * 2017-02-28 2017-11-24 北京汽车股份有限公司 Vehicle with storing safety control system
CN107997414A (en) * 2017-12-29 2018-05-08 江苏云涌电子科技股份有限公司 A kind of modularization boxes for keys based on RFID technique
CN110163488A (en) * 2019-04-28 2019-08-23 西安艾润物联网技术服务有限责任公司 Officer's car key management method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19644052A1 (en) * 1996-10-31 1998-05-07 Johann Binder System for ordered storage especially for car keys
CN1620544A (en) * 2002-01-22 2005-05-25 Sqs安全空间系统股份公司 Method for transporting an alarmed container
KR100933603B1 (en) * 2009-07-14 2009-12-23 문덕영 The electric key box system
CN103294018A (en) * 2013-02-08 2013-09-11 中国人民解放军理工大学 Intelligent key managing system and self-inspection processing method thereof
CN105074761A (en) * 2013-02-15 2015-11-18 钥匙咖啡馆公司 Methods and systems for management of key exchanges
CN104504794A (en) * 2014-12-23 2015-04-08 昆山信德佳电气科技有限公司 Intelligent key cabinet
CN206664538U (en) * 2017-02-28 2017-11-24 北京汽车股份有限公司 Vehicle with storing safety control system
CN107997414A (en) * 2017-12-29 2018-05-08 江苏云涌电子科技股份有限公司 A kind of modularization boxes for keys based on RFID technique
CN110163488A (en) * 2019-04-28 2019-08-23 西安艾润物联网技术服务有限责任公司 Officer's car key management method and device

Also Published As

Publication number Publication date
CN110718005B (en) 2021-12-21

Similar Documents

Publication Publication Date Title
CN108924250B (en) Service request processing method and device based on block chain and computer equipment
CN108829781A (en) Client information inquiry method, device, computer equipment and storage medium
CN109408508A (en) The storage and querying method of monitoring data, device and computer equipment
CN108365958B (en) Account login verification method and device, computer equipment and storage medium
CN109361628B (en) Message assembling method and device, computer equipment and storage medium
CN108959384B (en) Webpage data acquisition method and device, computer equipment and storage medium
CN110795171B (en) Service data processing method, device, computer equipment and storage medium
CN109903034B (en) Rule matching method and device, computer readable storage medium and computer equipment
CN108965450B (en) Service request response method, device, computer equipment and storage medium
CN110647540A (en) Business data query method and device, computer equipment and storage medium
CN111898102A (en) Authority configuration method and device, computer equipment and storage medium
CN110837956A (en) Underground cable inspection task distribution method and device
CN111597272A (en) Method and device for storing engineering cost data, data server and storage medium
CN113242331A (en) Different types of address translation methods, different types of address translation devices, different types of computer equipment and different types of storage media
CN109218131B (en) Network monitoring method and device, computer equipment and storage medium
CN113065887B (en) Resource processing method, resource processing device, computer equipment and storage medium
CN110718005B (en) Garage key management method and device, server and readable storage medium
CN108389124B (en) Data processing method, data processing device, computer equipment and storage medium
CN112541102B (en) Abnormal data filtering method, device, equipment and storage medium
CN110597782B (en) Database dynamic switching method and device, computer equipment and storage medium
CN104750806A (en) Large data query method and system
CN110648052A (en) Wind control decision method and device, computer equipment and storage medium
CN112507010B (en) Service data processing method and device, computer equipment and storage medium
CN110717713B (en) Vehicle inventory checking method and device, computer equipment and storage medium
CN113612705A (en) Power grid monitoring system data transmission method based on Hash algorithm fragmentation and recombination

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
GR01 Patent grant
GR01 Patent grant