CN111862402B - Intelligent lock management method and related device - Google Patents
Intelligent lock management method and related device Download PDFInfo
- Publication number
- CN111862402B CN111862402B CN201911404611.1A CN201911404611A CN111862402B CN 111862402 B CN111862402 B CN 111862402B CN 201911404611 A CN201911404611 A CN 201911404611A CN 111862402 B CN111862402 B CN 111862402B
- Authority
- CN
- China
- Prior art keywords
- information
- server
- intelligent lock
- strategy
- order information
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME 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/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
- G07C9/00309—Electronically 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
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME 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/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
- G07C9/00571—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F17/00—Coin-freed apparatus for hiring articles; Coin-freed facilities or services
- G07F17/0042—Coin-freed apparatus for hiring articles; Coin-freed facilities or services for hiring of objects
- G07F17/0057—Coin-freed apparatus for hiring articles; Coin-freed facilities or services for hiring of objects for the hiring or rent of vehicles, e.g. cars, bicycles or wheelchairs
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application provides an intelligent lock management method and a related device, wherein the method comprises the following steps: acquiring a strategy ID which is sent by a server and corresponds to order information; the strategy ID exists in the server uniquely within any preset time period; when the locking operation of a user is detected, generating single uploading information according to the strategy ID and the current state information; and sending the single uploading information to the server so that the server settles the order information according to the strategy ID and the current state information. When the intelligent lock detects the locking operation of the user, the single uploading information comprising the strategy ID and the current state information is sent to the server, so that the server can settle the order information according to the information. Namely, when the intelligent lock uploads information to the server, data for settling order information can be transmitted to the server once, so that the information uploading efficiency is improved, and the success rate of the intelligent lock when the intelligent lock uploads the information to the server is improved.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to an intelligent lock management method and a related apparatus.
Background
At present, the sharing bicycle becomes one of the main transportation means for people to go out. The sharing bicycle is usually installed with an intelligent lock, and the intelligent lock is connected with a server of an operation company in a 2G (2-Generation wireless telephone technology, second-Generation mobile phone communication technical specification) communication mode.
In order to minimize the power consumption of the smart lock and save the traffic, the length of the information uploaded by the current smart lock is very limited when the current smart lock uploads the information to the server, and the information is generally uploaded to the server only when the smart lock is opened or closed. Therefore, when the intelligent lock uploads the information to the server, the transmission delay is long, and the success rate of information transmission is low.
Disclosure of Invention
In view of this, an object of the present application is to provide an intelligent lock management method and a related apparatus, which can improve a success rate of an intelligent lock when uploading information to a server.
In a first aspect, an embodiment provides an intelligent lock management method, which is applied to an intelligent lock, where the intelligent lock is in communication connection with a server, and the method includes: acquiring a strategy ID which is sent by the server and corresponds to the order information; wherein the policy ID exists uniquely in the server within any one preset time period; when locking operation of a user is detected, generating single-time uploading information according to the strategy ID and the current state information; and sending the single uploading information to the server so that the server can settle the order information according to the strategy ID and the current state information.
In an optional embodiment, before the step of generating single upload information according to the policy ID and the current state information when the locking operation of the user is detected, the method further includes: acquiring order information which is sent by the server and corresponds to the strategy ID; after the step of generating single-time uploading information according to the policy ID and the current state information when the locking operation of the user is detected, the method further comprises the following steps: and sending the order information and the current state information to the server so that the server settles the order information.
In a second aspect, an embodiment provides an intelligent lock management method, which is applied to a server, where the server is in communication connection with an intelligent lock and a user terminal, respectively, and the method includes: acquiring unlocking information which is sent by the user terminal and corresponds to the intelligent lock, and generating order information according to the unlocking information; generating a strategy ID corresponding to the order information according to a preset rule; wherein the policy ID exists uniquely in the server within any one preset time period; sending the policy ID to the smart lock; acquiring single uploading information sent by the intelligent lock; the single uploading information comprises the strategy ID and the current state information of the intelligent lock; and when the single-time uploading information is acquired, settlement is carried out on the order information according to the strategy ID and the current state information.
In an optional embodiment, before the step of acquiring the single upload information sent by the smart lock, the method further includes: sending the order information to the intelligent lock; after the step of obtaining the single upload information sent by the smart lock, the method further includes: and when the order information and the current state information sent by the intelligent lock are acquired, the order information is settled.
In an optional embodiment, the step of generating a policy ID corresponding to the order information according to a preset rule includes: generating a strategy ID corresponding to the order information according to the generation time information of the order information and the identity information of the user terminal; wherein the policy ID exists uniquely in the server within a preset time period.
In an optional embodiment, after the step of performing settlement on the order information according to the policy ID and the current state information when the single upload information is acquired, the method further includes: and deleting the strategy ID corresponding to the order information.
In a third aspect, an embodiment provides an intelligent lock management apparatus, which is applied to an intelligent lock, where the intelligent lock is in communication connection with a server, and the apparatus includes: the first acquisition module is used for acquiring the strategy ID which is sent by the server and corresponds to the order information; wherein the policy ID exists uniquely in the server within any one preset time period; the generation module is used for generating single uploading information according to the strategy ID and the current state information when the locking operation of the user is detected; and the uploading module is used for sending the single uploading information to the server so that the server can settle the order information according to the strategy ID and the current state information.
In an optional implementation manner, the first obtaining module is configured to obtain order information corresponding to the policy ID and sent by the server; the uploading module is used for sending the order information and the current state information to the server so that the server can settle the order information.
In a fourth aspect, an embodiment provides an intelligent lock management device, which is applied to a server, where the server is in communication connection with an intelligent lock and a user terminal, respectively, and the device includes: the second acquisition module is used for acquiring unlocking information which is sent by the user terminal and corresponds to the intelligent lock and generating order information according to the unlocking information; the settlement module is used for generating a strategy ID corresponding to the order information according to a preset rule; wherein the policy ID exists uniquely in the server within any one preset time period; the sending module is used for sending the strategy ID to the intelligent lock; the second acquisition module is further used for acquiring single uploading information sent by the intelligent lock; the single uploading information comprises the strategy ID and the current state information of the intelligent lock; and the settlement module is also used for settling the order information according to the strategy ID and the current state information when the single uploading information is obtained.
In an optional embodiment, the sending module is configured to send the order information to the intelligent lock; and the settlement module is used for settling the order information when the order information and the current state information sent by the intelligent lock are obtained.
In an optional embodiment, the settlement module is configured to generate a policy ID corresponding to the order information according to the generation time information of the order information and the identity information of the user terminal; wherein the policy ID exists uniquely in the server within a preset time period.
In an optional embodiment, the settlement module is configured to delete the policy ID corresponding to the order information.
In a fifth aspect, an embodiment provides an intelligent lock management system, which includes an intelligent lock and a server, where the server is in communication connection with a user terminal, and the server is configured to obtain unlocking information, which is sent by the user terminal and corresponds to the intelligent lock, and generate order information according to the unlocking information; the server is further used for generating a strategy ID corresponding to the order information according to a preset rule; wherein the policy ID exists uniquely in the server within any one preset time period; the server is further used for sending the strategy ID to the intelligent lock; the intelligent lock is used for acquiring the strategy ID sent by the server; the intelligent lock is also used for generating single uploading information according to the strategy ID and the current state information when the locking operation of the user is detected; the intelligent lock is also used for sending the single uploading information to the server; the server is also used for acquiring single uploading information sent by the intelligent lock; the single uploading information comprises the strategy ID and the current state information of the intelligent lock; and the server is also used for settling the order information according to the strategy ID and the current state information when the single uploading information is obtained.
In an optional embodiment, the server is configured to send the order information to the smart lock; the intelligent lock is used for acquiring the order information sent by the server; the intelligent lock is also used for sending the order information and the current state information to the server; and the server is also used for settling the order information when the order information and the current state information sent by the intelligent lock are obtained.
In an optional implementation manner, the server is configured to generate a policy ID corresponding to the order information according to the generation time information of the order information and the identity information of the user terminal; wherein the policy ID exists uniquely in the server within a preset time period.
In an optional embodiment, the server is configured to delete the policy ID corresponding to the order information.
In a sixth aspect, embodiments provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, performs the steps of the method according to any of the preceding embodiments.
In a seventh aspect, embodiments provide a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the method according to any of the foregoing embodiments.
In an eighth aspect, an embodiment provides a smart lock, including: the intelligent lock comprises a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, when the intelligent lock is operated, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to execute the steps of the method according to any one of the preceding embodiments.
In a ninth aspect, an embodiment provides a server, including: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, when the server runs, the processor and the storage medium communicate with each other through the bus, and the processor executes the machine-readable instructions to execute the steps of the method according to any one of the preceding embodiments.
Based on any aspect, when the intelligent lock detects the locking operation of the user, the single-time uploading information including the strategy ID and the current state information is sent to the server, so that the server can settle the order information according to the information. Namely, when the intelligent lock uploads information to the server, data used for settlement order information can be transmitted to the server once, so that the information uploading efficiency is improved, and the success rate of the intelligent lock when the intelligent lock uploads the information to the server is improved.
Drawings
To more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic diagram illustrating a step of implementing management of an intelligent lock through bluetooth according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating another step of implementing management of an intelligent lock through bluetooth according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a step of implementing management of an intelligent lock by means of traffic according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating another step of implementing management of an intelligent lock by means of traffic according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating an architecture of an intelligent lock management system according to an embodiment of the present application;
fig. 6 is a schematic flowchart illustrating an intelligent lock management method according to an embodiment of the present application;
fig. 7 is a schematic flowchart illustrating another intelligent lock management method according to an embodiment of the present application;
fig. 8 is a schematic flowchart illustrating another intelligent lock management method according to an embodiment of the present application;
fig. 9 is a schematic flowchart illustrating another intelligent lock management method according to an embodiment of the present application;
fig. 10 is a schematic flowchart illustrating another intelligent lock management method according to an embodiment of the present application;
fig. 11 is a schematic diagram illustrating a specific application step of the intelligent lock management method according to an embodiment of the present application;
fig. 12 is a schematic diagram illustrating another specific application step of the intelligent lock management method according to an embodiment of the present application;
fig. 13 is a functional block diagram of an intelligent lock management device applied to an intelligent lock according to an embodiment of the present application;
FIG. 14 is a schematic structural diagram illustrating an intelligent lock provided by an embodiment of the present application;
fig. 15 is a functional block diagram of an intelligent lock management device applied to a server according to an embodiment of the present application;
fig. 16 shows a schematic structural diagram of a server provided in an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
To enable those skilled in the art to use the present disclosure, the following embodiments are given in conjunction with a specific application scenario "user uses shared bicycle through user terminal". It will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the application. Although the present application is described primarily in the context of a user using a shared bicycle via a user terminal, it should be understood that this is merely one exemplary embodiment.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
The Positioning technology used in the present application may be based on a Global Positioning System (GPS), a Global Navigation Satellite System (GLONASS), a COMPASS Navigation System (COMPASS), a galileo Positioning System, a Quasi-Zenith Satellite System (QZSS), a Wireless Fidelity (WiFi) Positioning technology, or any combination thereof. One or more of the above-described positioning systems may be used interchangeably in this application.
In the process of implementing the technical solution of the embodiment of the present application, the inventors of the present application find that:
in practical applications, the intelligent lock management method of each shared bicycle enterprise varies with different requirements and intelligent lock configurations. However, the sharing bicycle operator and the intelligent lock supplier both have cumin optimization solutions, and on one hand, the solution pursues to save flow and electric power; on the other hand, the connection reliability of the shared bicycle needs to be improved.
At present, the following two schemes are mainly used for managing the intelligent lock:
in the first scheme, the management of the intelligent lock is realized through bluetooth (please refer to fig. 1 and 2).
Firstly, a user scans a two-dimensional code on an intelligent lock through a user terminal (such as a mobile phone) to acquire ID information of the intelligent lock, and then sends an unlocking request (generally carrying the ID information of the intelligent lock and the user ID information of the user terminal) to a server according to the ID information of the intelligent lock. And after receiving the unlocking request, the server checks the ID information of the intelligent lock and the user ID information, and after the checking is passed, the server sends unlocking authorization information to the user terminal. (see steps 1 and 2 in FIG. 1)
And secondly, after receiving the unlocking authorization information, the user terminal sends the unlocking authorization information to the intelligent lock in a Bluetooth transmission mode. The intelligent lock checks the unlocking authorization information, after the information passes the checking, the information of successful unlocking is fed back to the user terminal in a Bluetooth transmission mode, and the lock ring is opened. (see steps 3 and 4 in FIG. 1)
And thirdly, after receiving the unlocking success information, the user terminal sends the unlocking success information to the server. And after receiving the unlocking success information, the server generates order information according to the unlocking success information, charges the riding process of the user and sends the order information to the user terminal. (see steps 5 and 6 in FIG. 1)
And fourthly, in the riding process of the user, the intelligent lock and the user terminal respectively send the positioning information of the intelligent lock and the user terminal to the server so as to charge. (see step 7 in FIG. 1)
After the user locks the intelligent lock (namely locking the intelligent lock), the intelligent lock sends the information of successful locking of the vehicle to the user terminal in a Bluetooth transmission mode, and sends the position information to the server. (see steps 0, 1, 3 in FIG. 2)
And sixthly, after receiving the vehicle locking success information, the user terminal sends the vehicle locking success information and the order information to the server. After receiving the order information and the position information sent by the user terminal, the server settles the corresponding order information to obtain expense settlement information, and feeds the expense settlement information back to the user terminal. (see steps 2 and 3 in FIG. 2)
And in the second scheme, the intelligent lock is managed in a flow mode (please refer to fig. 3 and 4).
Firstly, a user scans a two-dimensional code on an intelligent lock through a user terminal (such as a mobile phone) to acquire ID information of the intelligent lock, and then sends an unlocking request (generally carrying the ID information of the intelligent lock and the user ID information of the user terminal) to a server according to the ID information of the intelligent lock. And after receiving the unlocking request, the server checks the ID information of the intelligent lock and the user ID information, and sends the unlocking instruction information to the intelligent lock after the checking is passed. (see steps 1 and 2 in FIG. 3)
And secondly, after the intelligent lock receives the unlocking instruction information, the lock ring is opened, and the unlocking success information is sent to the server. (see step 3 in FIG. 3)
And thirdly, after receiving the unlocking success information, the server generates order information according to the unlocking success information, charges the riding process of the user and sends the order information to the user terminal and the intelligent lock. (see step 4 in FIG. 3)
And fourthly, in the riding process of the user, the intelligent lock and the user terminal respectively send the positioning information of the intelligent lock and the user terminal to the server so as to facilitate charging. (see step 5 in FIG. 3)
After the user locks the intelligent lock (namely, locks the intelligent lock), the intelligent lock sends the information of successful locking of the intelligent lock and the order information to the server, and sends the position information to the server. (see steps 0, 1, 2 in FIG. 4)
And sixthly, after receiving the vehicle locking success information, the order information and the position information, the server settles the corresponding order information to obtain expense settlement information, and feeds the expense settlement information back to the user terminal. (see step 3 in FIG. 4)
Because the electric energy loss of the intelligent lock needs to be reduced as much as possible and the flow needs to be saved, the existing intelligent lock is connected with a server of an operation company in a 2G communication mode, and when the intelligent lock uploads information to the server, the maximum length of the information uploaded at a single time is 16 bytes, namely, the length of the information uploaded to the server by the intelligent lock is limited. Furthermore, considering that there cannot be duplicate order information in all time periods, the current order information generally has a length of 11-18 bytes, and the status information of the smart lock used to settle the order information (e.g., the location information in the above-mentioned prior art scheme) also has a length of at least more than 5 bytes.
Therefore, the current intelligent lock cannot send order information and state information of the intelligent lock for settling the order information to the server once in single uploading information. However, when the user finishes the riding process of the shared bicycle and needs to settle the billing, the server at least needs to acquire the state information and the specific order information of the intelligent lock of the shared bicycle to complete settlement billing, so that when the intelligent lock is locked, the server at least needs to go through the process of uploading information for many times to send the order information and the state information to the server, so that the server completes settlement billing of the order information. That is, the current solution for managing the smart lock requires multiple transmissions of information to the server when accounting is performed. For example, in the second solution (please refer to steps 0, 1, and 3 of fig. 4), after the user finishes riding the intelligent lock and locks the intelligent lock, the intelligent lock sequentially sends the order information and the current positioning information to the server (at least two information transmissions are required).
Because the current scheme for managing the intelligent lock needs to transmit information to the server for multiple times when settlement and charging are carried out, the settlement and charging can fail when any information transmission fails. And usually, information is uploaded to the server only when the intelligent lock is opened or closed, so that the existing scheme for managing the intelligent lock has longer transmission delay and lower success rate of information transmission.
Although in the first solution, the user terminal is configured to unlock the smart lock by using the bluetooth mode, and before performing the fee settlement, the smart lock only needs to report the location information to the server, which can reduce the communication traffic (communication cost) and power consumption of the smart lock to a certain extent, the bluetooth communication adopted still has the disadvantage of low success rate of information transmission due to poor stability and compatibility.
Therefore, at present, no matter whether the first scheme or the second scheme is adopted to manage the intelligent lock, the problems of long transmission delay and low success rate of information transmission exist.
In order to overcome the above drawbacks, embodiments of the present application provide an intelligent lock management method and a related apparatus, which can improve a success rate of an intelligent lock when uploading information to a server. It should be noted that the defects of the solutions in the above prior art are the results obtained after the inventor has made practice and careful study, and therefore, the discovery process of the above problems and the solutions proposed by the embodiments of the present application in the following description should be the contribution of the inventor to the present application in the course of the present application.
First, an aspect of the present application relates to an intelligent lock management system. An intelligent lock in the system can acquire a strategy ID which is sent by a server and corresponds to order information; the strategy ID exists in the server uniquely within any preset time period; when the locking operation of a user is detected, generating single uploading information according to the strategy ID and the current state information; and sending the single uploading information to the server so that the server settles the order information according to the strategy ID and the current state information. When the intelligent lock detects the locking operation of a user, single uploading information comprising the strategy ID and the current state information is sent to the server, so that the server can settle the order information according to the information. That is, the intelligent lock can transmit the data for settling the order information to the server once when uploading the information to the server.
It should be noted that, before the application is filed, the existing intelligent lock cannot transmit data for settling order information to the server at one time when uploading information to the server. However, the intelligent lock in the system provided by the application can transmit the data for settling the order information to the server once when the intelligent lock uploads the information to the server. Therefore, the intelligent lock management system can improve the uploading efficiency of the information and improve the success rate of the intelligent lock when the information is uploaded to the server.
Fig. 5 is a schematic architecture diagram of an intelligent lock management system 100 according to an embodiment of the present application. For example, the smart lock management system 100 may be an online transportation service platform for transportation services such as shared bicycle service, shared electric vehicle service, shared motorcycle service, or any combination thereof. The intelligent lock management system 100 may include one or more of an intelligent lock 110 and a server 120.
In some embodiments, the smart lock 110 may be a bicycle, electric vehicle, motorcycle, or the like that requires a locking service.
In some embodiments, the server 120 may include a processor. The processor may process information and/or data related to the service request to perform one or more of the functions described herein. For example, the processor may implement management of the smart lock 110 based on unlocking information corresponding to the smart lock 110 obtained from the user terminal. In some embodiments, a processor may include one or more processing cores (e.g., a single-core processor (S) or a multi-core processor (S)). By way of example only, a Processor may include a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), an Application Specific Instruction Set Processor (ASIP), a Graphics Processing Unit (GPU), a Physical Processing Unit (PPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), a Programmable Logic Device (PLD), a controller, a microcontroller Unit, a Reduced Instruction Set Computer (RISC), a microprocessor, or the like, or any combination thereof.
The device type of the user terminal may be a mobile device, and for example, the device type may include an intelligent mobile device, an intelligent home device, a wearable device, a virtual reality device, an augmented reality device, or the like, and may also be a tablet computer, a laptop computer, or the like.
The following describes the intelligent lock management method provided in the embodiment of the present application in detail with reference to the content described in the intelligent lock management system 100 shown in fig. 5.
Referring to fig. 6, which is a schematic flowchart of an intelligent lock management method provided in an embodiment of the present application, the method may be executed by the intelligent lock 110 in the intelligent lock management system 100, and the specific execution process includes:
s100, acquiring a strategy ID which is sent by a server and corresponds to order information;
wherein the policy ID exists uniquely in the server within any one preset time period.
In some possible embodiments, the smart lock 110 may acquire the policy ID corresponding to the order information sent by the server 120 by means of 2G communication. For the above policy ID, it may be uniquely present in the storage medium of the server 120 for any one of the preset time periods. For example, assuming that the length of a preset time period is days, one policy ID may be uniquely present in the storage medium of the server 120 in any day, that is, all policy IDs stored in the storage medium of the server 120 are different in any day, and the policy IDs stored in the storage medium of the server 120 may be the same between different days.
In practical applications, taking the operation service of a shared bicycle as an example, in order to keep a record of all order information, there cannot be duplicate order information in all time periods, and therefore, the existing order information generally has a length of 11-18 bytes. In order to achieve the purpose that the intelligent lock can send single upload information including the policy ID and the current state information to the server when detecting the locking operation of the user, the length of the order information needs to be shortened.
Since all policy IDs stored in the storage medium of the server 120 are different on any day, the policy IDs stored in the storage medium of the server 120 may be the same between different days. In other words, there may be no repeated policy ID in any preset time period, and the information length of the policy ID may be smaller than the length of the corresponding order information. Since the policy ID corresponds to the order information, the length of the order information is shortened.
And S110, when the locking operation of the user is detected, generating single uploading information according to the strategy ID and the current state information.
In some possible embodiments, the locking operation of the user may be to close the lock ring of the smart lock 110, and the smart lock 110 may detect whether the locking operation is performed by the user by determining whether the lock ring is closed through a sensor. When the locking operation of the user is detected, the current state information may be obtained first, and then the policy ID and the current state information are encapsulated into an upload message (the upload message is single upload information). For example, the current state information may include at least one of data types such as current location information, current electric quantity information, and locking time information of the smart lock 110, so that the data type of the current state information is only a data type that enables the server to perform settlement according to the current state information and the policy ID, and the data type of the current state information may be set according to actual requirements in actual applications, and the specific data type of the current state information is not limited in the present application.
It is understood that the single upload message may be less than or equal to the length of the single message transmission of the smart lock 110. In addition, since the information length of the policy ID may be smaller than the length of the order information corresponding to the policy ID, the policy ID and the current state information may be encapsulated in one upload message (i.e., single upload information is generated according to the policy ID and the current state information). In other words, the information length of the policy ID in the present application may be adjusted to be smaller, and the information length of the single upload information may be smaller than or equal to the single information transmission length of the smart lock 110, that is, the information lengths of the policy ID and the current state information are smaller than or equal to the single information transmission length of the smart lock 110.
And S120, sending the single uploading information to the server so that the server settles the order information according to the strategy ID and the current state information.
In some possible embodiments, after obtaining the current state information and encapsulating the policy ID and the current state information into an upload message, the smart lock 110 may further send the upload message to a server through a 2G network, so that the server settles order information corresponding to the policy ID according to the policy ID and the current state information.
It should be understood that when the intelligent lock detects the locking operation of the user, the single uploading message including the policy ID and the current state information is sent to the server, so that the server settles the order information according to the message. Namely, when the intelligent lock uploads information to the server, data used for settlement order information can be transmitted to the server once, so that the information uploading efficiency is improved, and the success rate of the intelligent lock when the intelligent lock uploads the information to the server is improved.
Further, in order to further improve the success rate of information transmission, referring to fig. 7 on the basis of fig. 6, before S110, the intelligent lock management method provided in the present application further includes:
s101, obtaining order information corresponding to the strategy ID sent by the server.
After S110, the intelligent lock management method provided by the present application further includes:
and S111, sending the order information and the current state information to a server so that the server can settle the order information.
Since the intelligent lock 110 can obtain not only the policy ID corresponding to the order information but also the order information, and after detecting the locking operation of the user, send the order information and the current state information to the server, so that the server 120 settles the order information in its storage medium according to the order information and the current state information sent by the intelligent lock 110. That is, the path for the server 120 to settle the order information at least includes settlement according to the single upload information sent by the smart lock 110 and settlement according to the order information and the current state information sent by the smart lock 110, so that the situation that the server 120 cannot settle normally when the single upload information sent by the smart lock 110 fails is avoided, and the success rate of information transmission is further improved.
Further, referring to fig. 8, a flowchart of another intelligent lock management method provided in the embodiment of the present application is shown, where the method may be executed by the server 120 in the intelligent lock management system 100, and the specific execution process is as follows:
s200, unlocking information corresponding to the intelligent lock and sent by the user terminal is obtained, and order information is generated according to the unlocking information.
In some possible embodiments, a user may scan a two-dimensional code on an intelligent lock through a user terminal (e.g., a mobile phone, a tablet computer, a notebook, etc.), acquire ID information of the intelligent lock, and then send unlocking information corresponding to the intelligent lock to a server according to the ID information of the intelligent lock (the unlocking information generally carries the ID information of the intelligent lock and the user ID information of the user terminal). After obtaining the unlocking information, the server 120 may generate order information according to the unlocking information.
It can be understood that, in an actual application, when acquiring the unlocking information corresponding to the smart lock and sent by the user terminal, the server 120 may first check the unlocking information, and after the checking is passed, send the unlocking instruction information to the smart lock 110, so that the smart lock 110 opens the lock ring according to the unlocking instruction information and feeds back the unlocking success information. And after the unlocking success information fed back by the intelligent lock 110 is obtained, the order information is generated according to the unlocking information.
S210, generating a strategy ID corresponding to the order information according to a preset rule;
wherein the policy ID exists uniquely in the server within any one preset time period.
For the policy ID mentioned above, it may be uniquely present in the storage medium of the server 120 for any preset period of time. For example, assuming that the length of a preset time period is day, the server 120 may generate a policy ID corresponding to the order information according to a preset rule, and the information length of the policy ID may be 4 bytes. When the information length of the policy ID is 4 bytes, it can be understood that the policy ID may take 4 power of 256 (equal to about 45 hundred million), which ensures that the policy ID is not duplicated in one day. Further, one policy ID may be uniquely present in the storage medium of the server 120 on any day, i.e., all policy IDs stored in the storage medium of the server 120 are different on any day, and the policy IDs stored in the storage medium of the server 120 may be the same between different days.
In practical applications, taking the operation service of a shared bicycle as an example, in order to keep a record of all order information, there cannot be duplicate order information in all time periods, so the existing order information generally has a length of 11-18 bytes. In order to achieve the purpose that the intelligent lock can send single upload information including the policy ID and the current state information to the server when detecting the locking operation of the user, the length of the order information needs to be shortened.
Since all policy IDs stored in the storage medium of the server 120 are different on any day, the policy IDs stored in the storage medium of the server 120 may be the same between different days. In other words, there may be no repeated policy ID in any preset time period, and the information length of the policy ID may be smaller than the length of the corresponding order information. And the strategy ID corresponds to the order information, so the aim of shortening the length of the order information is fulfilled.
In some possible embodiments, the server 120 may generate a random number as the policy ID, and record the correspondence between the random number and the generated order information (i.e., corresponding a random number to the order information).
It will be appreciated that when a plurality of other policy IDs are already stored in the server 120, the random number generated by the server 120 also needs to be ensured to be different from the plurality of other policy IDs already stored.
In some other possible embodiments, a data set may be stored in the server 120, and any two data in the data set are different. The server 120 may arbitrarily select, as the policy ID, unselected data from the data set, and record the correspondence between the data and the generated order information (that is, associate any unselected data in the data set with the order information).
S220, the strategy ID is sent to the intelligent lock.
S230, acquiring single uploading information sent by the intelligent lock; the single upload information includes the policy ID and the current state information of the smart lock.
The generation manner of the single upload information may refer to S110 and S120, which is not described herein again.
It is understood that the server 120 can obtain the single upload information sent by the smart lock 110 by receiving the information once.
And S240, when the single uploading information is acquired, settlement is carried out on the order information according to the strategy ID and the current state information.
In some possible embodiments, when obtaining the single upload information, the server 120 may first obtain the order information corresponding to the policy ID, and then perform settlement on the order information according to the current state information. For example, the server 120 may obtain the initial positioning information sent by the smart lock 110 after obtaining the unlocking information corresponding to the smart lock sent by the user terminal, and then perform settlement according to the initial positioning information, the current state information, and the order information, and it is understood that how to perform settlement according to the policy ID and the current state information is not limited by itself.
Further, to further improve the success rate of information transmission, on the basis of fig. 8 and with reference to fig. 9, before S230, the intelligent lock management method provided by the present application further includes:
and S221, sending the order information to the intelligent lock.
After S230, the intelligent lock management method provided by the present application further includes:
and S231, when the order information and the current state information sent by the intelligent lock are acquired, settling the order information.
Since the intelligent lock 110 may obtain not only the policy ID corresponding to the order information, but also the order information and the current state information of the intelligent lock (that is, the current state information is the current state information of the intelligent lock), and after detecting the lock closing operation of the user, send the order information and the current state information to the server 120. The server 120 may settle the order information in its storage medium according to the order information and the current status information sent by the smart lock 110. That is to say, the way for the server 120 to settle the order information at least includes settling according to the single upload information sent by the intelligent lock 110 and settling according to the order information and the current state information sent by the intelligent lock 110, so that a situation that the server 120 cannot settle normally when the intelligent lock 110 fails to send the single upload information is avoided, and the success rate of information transmission is further improved.
After S240, the intelligent lock management method provided by the present application further includes:
s241, deletes the policy ID corresponding to the order information.
It can be understood that, since there cannot be a duplicate policy ID in any preset time period, that is, if the server 120 does not process the generated policy ID, the purpose of "there cannot be a duplicate policy ID in any preset time period" must not be achieved. In order to implement that "there cannot be a duplicate policy ID for any preset period of time", the server 120 may delete the policy ID corresponding to the order information after the order information is settled according to the policy ID and the current state information.
Furthermore, it can be further understood that if the policy ID corresponding to the order information is not deleted after the order information is settled according to the policy ID and the current state information, in order to implement "there cannot be a duplicate policy ID in any preset time period", the method provided by the present application may further mark the policy ID as a used policy ID after the order information is settled according to the policy ID and the current state information, so that the used policy ID is distinguished from policy IDs that may be generated in the future, and the same effect as "there cannot be a duplicate policy ID in any preset time period" is achieved.
As to how to generate the policy ID corresponding to the order information according to the preset rule, referring to fig. 10 on the basis of fig. 8, S210 may include:
S210A, generating a strategy ID corresponding to the order information according to the generation time information of the order information and the identity information of the user terminal; wherein the policy ID exists uniquely in the server within a preset time period.
The server 120 may select a part or all of the data from the generation time information and a part or all of the data from the identity information, and combine the two selected data into one data as the policy ID corresponding to the order information. For example, assuming that the generation time information is "20191222192263" and the identity information is "35152668", the server 120 may pick "22192263" from "20191222192263", pick "5152668" from "35152668", and combine "22192263" and "5152668" into "221922635152668" as the policy ID corresponding to the order information.
S100-S120 and S200-S240 described above will be further explained in conjunction with the practical application scenario "user uses shared bicycle through user terminal".
Referring to fig. 11 and 12, firstly, a user scans a two-dimensional code on an intelligent lock through a user terminal (for example, a mobile phone), acquires ID information of the intelligent lock, and then sends an unlocking request to a server according to the ID information of the intelligent lock (the unlocking request generally carries the ID information of the intelligent lock and the user ID information of the user terminal). And after receiving the unlocking request, the server checks the ID information of the intelligent lock and the user ID information, and sends the unlocking instruction information to the intelligent lock after the checking is passed. (see steps 1 and 2 in FIG. 11)
And secondly, after the intelligent lock receives the unlocking instruction information, the lock ring is opened, and the unlocking success information is sent to the server. (see step 3 in FIG. 11)
After receiving the unlocking success information, the server generates order information according to the unlocking success information, generates a strategy ID corresponding to the order information according to a preset rule, charges the riding process of the user, sends the order information to the user terminal and sends the strategy ID to the intelligent lock. (see step 4 in FIG. 11)
And fourthly, in the riding process of the user, the intelligent lock and the user terminal respectively send the positioning information of the intelligent lock and the user terminal to the server so as to facilitate charging. (see step 5 in FIG. 11)
After the user locks the intelligent lock (namely, locks the intelligent lock), the intelligent lock directly generates single uploading information according to the strategy ID and the current positioning information. And transmits the single upload information to the server (see steps 0 and 1 in fig. 12)
After receiving the single uploading information, the server settles the corresponding order information according to the strategy ID and the current positioning information to obtain expense settlement information, and feeds the expense settlement information back to the user terminal. (see step 2 in FIG. 12)
In practical application, when the intelligent lock detects the locking operation of the user, the single-time uploading information including the policy ID and the current positioning information is sent to the server, so that the server settles the order information according to the information. Namely, when the intelligent lock uploads information to the server, data used for settlement order information can be transmitted to the server once, so that the information uploading efficiency is improved, and the success rate of the intelligent lock when the intelligent lock uploads the information to the server is improved.
In order to execute the corresponding steps in the foregoing embodiment and various possible manners, an implementation manner of the intelligent lock management device applied to the intelligent lock is given below, please refer to fig. 13, and fig. 13 shows a functional block diagram of the intelligent lock management device applied to the intelligent lock provided in the embodiment of the present application. It should be noted that the basic principle and the generated technical effect of the intelligent lock management device 200 applied to the intelligent lock provided in the present embodiment are the same as those of the above embodiments, and for the sake of brief description, no part of the present embodiment is mentioned, and reference may be made to the corresponding contents in the above embodiments. The intelligent lock management device 200 applied to the intelligent lock includes: the device comprises a first acquisition module 112A, a generation module 112B and an uploading module 112C.
Alternatively, the modules may be stored in a memory or be fixed in an Operating System (OS) of the smart lock in the form of software or Firmware (Firmware), and may be executed by a processor in the smart lock. Meanwhile, data, codes of programs, etc. required to execute the above modules may be stored in the memory.
The first acquisition module 112A may be configured to support the smart lock to perform the above-described S100, S101, etc., and/or other processes for the techniques described herein.
The generation module 112B may be used to support the smart lock in performing the above-described S110, etc., and/or other processes for the techniques described herein.
Upload module 112C may be used to support smart locks performing S120, S111, etc., described above, and/or other processes for the techniques described herein.
It should be noted that all relevant contents of each step related to the method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
Based on the foregoing method embodiment, an embodiment of the present application further provides an intelligent lock 110, as shown in fig. 14, which is a schematic structural diagram of the intelligent lock 110 provided in the embodiment of the present application, and includes: a processor 111, a memory 112, and a bus 113. The memory 112 may be used to store one or more computer programs including instructions (e.g., corresponding execution instructions for the first obtaining module 112A, the generating module 112B, the uploading module 112C, etc. in the apparatus in fig. 13). When the smart lock 110 is in operation, the processor 111 and the memory 112 communicate with each other through the bus 113, and the processor 111 may execute the above instructions stored in the memory 112, so as to enable the smart lock 110 to perform the smart lock management provided in some embodiments of the present application, as well as various functional applications and data processing.
Based on the above method embodiments, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program executes the steps of the intelligent lock management method, for example, S100 to S120.
Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, and the like, and when a computer program on the storage medium is executed, the intelligent lock management method can be executed, so that the technical problems that the intelligent lock has a long transmission delay and a low success rate of information transmission when uploading information to the server are solved, and the effect of improving the success rate of the intelligent lock when uploading information to the server is achieved.
In addition, in order to execute corresponding steps in the foregoing embodiment and various possible manners, an implementation manner of the intelligent lock management device applied to the server is provided below, please refer to fig. 15, and fig. 15 shows a functional block diagram of the intelligent lock management device applied to the server according to the embodiment of the present application. It should be noted that the basic principle and the generated technical effect of the intelligent lock management device 300 applied to the server provided in the present embodiment are the same as those of the above embodiments, and for a brief description, reference may be made to corresponding contents in the above embodiments for parts that are not mentioned in the present embodiment. The intelligent lock management device 300 applied to the server includes: a second obtaining module 122A, a settlement module 122B, and a sending module 122C.
Alternatively, the modules may be stored in a memory or be fixed in an Operating System (OS) of the server in the form of software or Firmware (Firmware), and may be executed by a processor in the server. Meanwhile, data, codes of programs, and the like required to execute the above modules may be stored in the memory.
Among other things, the second acquisition module 122A may be used to support the server performing the above-described S200, S230, etc., and/or other processes for the techniques described herein.
Settlement module 122B may be used to support the server performing S210, S210A, S240, S231, S241, etc., described above, and/or other processes for the techniques described herein.
The sending module 122C may be used to support the server performing the above-described S220, S221, etc., and/or other processes for the techniques described herein.
It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
Based on the foregoing method embodiment, an embodiment of the present application further provides a server 120, as shown in fig. 16, which is a schematic structural diagram of the server 120 provided in the embodiment of the present application, and includes: a processor 121, a memory 122, and a bus 123. The memory 122 may be configured to store one or more computer programs including instructions (e.g., corresponding execution instructions for the second obtaining module 122A, the settlement module 122B, the sending module 122C, etc. in the apparatus in fig. 15). When the server 120 is running, the processor 121 and the memory 122 communicate with each other through the bus 123, and the processor 121 may execute the above instructions stored in the memory 122, so as to enable the server 120 to perform the intelligent lock management provided in some embodiments of the present application, and various functional applications and data processing.
Based on the foregoing method embodiments, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program executes the steps of the foregoing intelligent lock management method, for example, S200-S240.
Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, and the like, and when a computer program on the storage medium is run, the intelligent lock management method can be executed, so that the technical problems that the intelligent lock has a long transmission delay and a low success rate of information transmission when uploading information to the server are solved, and the effect of improving the success rate of the intelligent lock when uploading information to the server is achieved.
In summary, the present application provides an intelligent lock management method and a related apparatus. The method comprises the following steps: acquiring a strategy ID which is sent by a server and corresponds to order information; the strategy ID exists in the server uniquely within any preset time period; when the locking operation of a user is detected, generating single uploading information according to the strategy ID and the current state information; and sending the single uploading information to the server so that the server settles the order information according to the strategy ID and the current state information. When the intelligent lock detects the locking operation of a user, single uploading information comprising the strategy ID and the current state information is sent to the server, so that the server can settle the order information according to the information. Namely, when the intelligent lock uploads information to the server, data used for settlement order information can be transmitted to the server once, so that the information uploading efficiency is improved, and the success rate of the intelligent lock when the intelligent lock uploads the information to the server is improved.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to corresponding processes in the method embodiments, and are not described in detail in this application. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice, and for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some communication interfaces, indirect coupling or communication connection between devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in software functional units and sold or used as a stand-alone product, may be stored in a non-transitory computer-readable storage medium executable by a processor. Based on such understanding, the technical solutions of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall cover the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (20)
1. An intelligent lock management method is applied to an intelligent lock, the intelligent lock is in communication connection with a server, and the method comprises the following steps:
acquiring a strategy ID which is sent by the server and corresponds to the order information; the strategy ID exists only in the server within any preset time period, and the order information is generated by the server according to unlocking information which is sent by a user terminal and corresponds to the intelligent lock; generating a strategy ID corresponding to the order information for the server according to a preset rule; the information length of the strategy ID is smaller than that of the corresponding order information;
when locking operation of a user is detected, generating single uploading information according to the strategy ID and the current state information;
sending the single uploading information to the server so that the server settles the order information according to the strategy ID and the current state information;
the information length of the strategy ID can be adjusted and reduced, and the information length of the strategy ID and the current state information is smaller than or equal to the single information transmission length of the intelligent lock.
2. The method of claim 1, wherein before the step of generating single upload information from the policy ID and current state information when a user's lock-off operation is detected, the method further comprises:
acquiring order information which is sent by the server and corresponds to the strategy ID;
after the step of generating single upload information according to the policy ID and the current state information when the locking operation of the user is detected, the method further includes:
and sending the order information and the current state information to the server so that the server settles the order information.
3. An intelligent lock management method is applied to a server, wherein the server is respectively in communication connection with an intelligent lock and a user terminal, and the method comprises the following steps:
acquiring unlocking information which is sent by the user terminal and corresponds to the intelligent lock, and generating order information according to the unlocking information;
generating a strategy ID corresponding to the order information according to a preset rule; the strategy ID exists in the server only within any preset time period, and the order information is generated by the server according to unlocking information which is sent by a user terminal and corresponds to the intelligent lock; the information length of the strategy ID is smaller than the length of the corresponding order information;
sending the policy ID to the smart lock;
acquiring single uploading information sent by the intelligent lock; the single uploading information comprises the strategy ID and the current state information of the intelligent lock;
when the single-time uploading information is obtained, settlement is carried out on the order information according to the strategy ID and the current state information;
the information length of the strategy ID can be adjusted and reduced, and the information length of the strategy ID and the current state information is smaller than or equal to the single information transmission length of the intelligent lock.
4. The method of claim 3, wherein the step of obtaining the single upload message sent by the smart lock is preceded by the method further comprising:
sending the order information to the intelligent lock;
after the step of obtaining the single upload information sent by the smart lock, the method further includes:
and when the order information and the current state information sent by the intelligent lock are acquired, the order information is settled.
5. The method according to claim 3, wherein the step of generating the policy ID corresponding to the order information according to a preset rule comprises:
generating a strategy ID corresponding to the order information according to the generation time information of the order information and the identity information of the user terminal; wherein the policy ID exists uniquely in the server for a preset time period.
6. The method according to claim 3, wherein after the step of settling the order information according to the policy ID and the current status information when the single upload information is acquired, the method further comprises:
and deleting the strategy ID corresponding to the order information.
7. The utility model provides an intelligent lock management device which characterized in that is applied to intelligent lock, intelligent lock and server communication connection, the device includes:
the first acquisition module is used for acquiring the strategy ID which is sent by the server and corresponds to the order information; the strategy ID exists only in the server within any preset time period, and the order information is generated by the server according to unlocking information which is sent by a user terminal and corresponds to the intelligent lock; generating a strategy ID corresponding to the order information for the server according to a preset rule; the information length of the strategy ID is smaller than that of the corresponding order information;
the generation module is used for generating single uploading information according to the strategy ID and the current state information when the locking operation of the user is detected;
the uploading module is used for sending the single uploading information to the server so that the server can settle the order information according to the strategy ID and the current state information;
the information length of the strategy ID can be adjusted and reduced, and the information length of the strategy ID and the current state information is smaller than or equal to the single information transmission length of the intelligent lock.
8. The apparatus according to claim 7, wherein the first obtaining module is configured to obtain order information corresponding to the policy ID sent by the server;
the uploading module is used for sending the order information and the current state information to the server so that the server can settle the order information.
9. The utility model provides an intelligence lock management device which characterized in that is applied to the server, the server respectively with intelligent lock, user terminal communication connection, the device includes:
the second acquisition module is used for acquiring unlocking information which is sent by the user terminal and corresponds to the intelligent lock and generating order information according to the unlocking information;
the settlement module is used for generating a strategy ID corresponding to the order information according to a preset rule; the strategy ID exists in the server only within any preset time period, and the order information is generated by the server according to unlocking information which is sent by a user terminal and corresponds to the intelligent lock; the information length of the strategy ID is smaller than the length of the corresponding order information;
the sending module is used for sending the strategy ID to the intelligent lock;
the second acquisition module is further used for acquiring single uploading information sent by the intelligent lock; the single uploading information comprises the strategy ID and the current state information of the intelligent lock;
the settlement module is further used for settling the order information according to the strategy ID and the current state information when the single-time uploading information is obtained;
the information length of the strategy ID can be adjusted and reduced, and the information length of the strategy ID and the current state information is smaller than or equal to the single information transmission length of the intelligent lock.
10. The apparatus of claim 9, wherein the sending module is configured to send the order information to the smart lock;
and the settlement module is used for settling the order information when the order information and the current state information sent by the intelligent lock are obtained.
11. The apparatus according to claim 9, wherein the settlement module is configured to generate a policy ID corresponding to the order information according to generation time information of the order information and identity information of the user terminal; wherein the policy ID exists uniquely in the server within a preset time period.
12. The apparatus of claim 9, wherein the settlement module is configured to delete a policy ID corresponding to the order information.
13. An intelligent lock management system is characterized by comprising an intelligent lock and a server, wherein the server is in communication connection with a user terminal, and is used for acquiring unlocking information which is sent by the user terminal and corresponds to the intelligent lock and generating order information according to the unlocking information;
the server is further used for generating a strategy ID corresponding to the order information according to a preset rule; wherein the policy ID exists uniquely in the server within any one preset time period; the information length of the strategy ID is smaller than the length of the corresponding order information;
the server is further used for sending the strategy ID to the intelligent lock;
the intelligent lock is used for acquiring the strategy ID sent by the server;
the intelligent lock is also used for generating single uploading information according to the strategy ID and the current state information when the locking operation of the user is detected;
the intelligent lock is also used for sending the single uploading information to the server;
the server is also used for acquiring single uploading information sent by the intelligent lock; the single uploading information comprises the strategy ID and the current state information of the intelligent lock;
the server is further used for settling the order information according to the strategy ID and the current state information when the single uploading information is obtained;
the information length of the strategy ID can be adjusted and reduced, and the information length of the strategy ID and the current state information is smaller than or equal to the single information transmission length of the intelligent lock.
14. The system of claim 13, wherein the server is configured to send the order information to the smart lock;
the intelligent lock is used for acquiring the order information sent by the server;
the intelligent lock is further used for sending the order information and the current state information to the server;
and the server is also used for carrying out settlement on the order information when the order information and the current state information sent by the intelligent lock are obtained.
15. The system according to claim 13, wherein the server is configured to generate a policy ID corresponding to the order information according to the generation time information of the order information and the identity information of the user terminal; wherein the policy ID exists uniquely in the server for a preset time period.
16. The system of claim 13, wherein the server is configured to delete the policy ID corresponding to the order information.
17. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1 to 2.
18. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 3 to 6.
19. An intelligent lock, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the smart lock is in operation, the processor executing the machine-readable instructions to perform the steps of the method according to any one of claims 1 to 2.
20. A server, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the server is running, the processor executing the machine-readable instructions to perform the steps of the method according to any one of claims 3 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911404611.1A CN111862402B (en) | 2019-12-31 | 2019-12-31 | Intelligent lock management method and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911404611.1A CN111862402B (en) | 2019-12-31 | 2019-12-31 | Intelligent lock management method and related device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111862402A CN111862402A (en) | 2020-10-30 |
CN111862402B true CN111862402B (en) | 2022-07-22 |
Family
ID=72970902
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911404611.1A Active CN111862402B (en) | 2019-12-31 | 2019-12-31 | Intelligent lock management method and related device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111862402B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107392694A (en) * | 2017-06-27 | 2017-11-24 | 北京摩拜科技有限公司 | Order processing method, smart lock, sharing articles and the system of sharing articles |
CN107424259A (en) * | 2017-06-27 | 2017-12-01 | 北京摩拜科技有限公司 | Order processing method, smart lock, sharing articles and the system of sharing articles |
CN107516201A (en) * | 2017-08-31 | 2017-12-26 | 江西博瑞彤芸科技有限公司 | A kind of order method of payment |
CN107742336A (en) * | 2017-09-19 | 2018-02-27 | 深圳市几米软件有限公司 | A kind of data transmission method and terminal device for being used to share bicycle smart lock |
CN109064267A (en) * | 2018-07-16 | 2018-12-21 | 武汉小安科技有限公司 | Order processing method, system, shared bicycle and the storage medium of shared bicycle |
-
2019
- 2019-12-31 CN CN201911404611.1A patent/CN111862402B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107392694A (en) * | 2017-06-27 | 2017-11-24 | 北京摩拜科技有限公司 | Order processing method, smart lock, sharing articles and the system of sharing articles |
CN107424259A (en) * | 2017-06-27 | 2017-12-01 | 北京摩拜科技有限公司 | Order processing method, smart lock, sharing articles and the system of sharing articles |
CN107516201A (en) * | 2017-08-31 | 2017-12-26 | 江西博瑞彤芸科技有限公司 | A kind of order method of payment |
CN107742336A (en) * | 2017-09-19 | 2018-02-27 | 深圳市几米软件有限公司 | A kind of data transmission method and terminal device for being used to share bicycle smart lock |
CN109064267A (en) * | 2018-07-16 | 2018-12-21 | 武汉小安科技有限公司 | Order processing method, system, shared bicycle and the storage medium of shared bicycle |
Also Published As
Publication number | Publication date |
---|---|
CN111862402A (en) | 2020-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Pedrosa et al. | ChargeltUp: On blockchain-based technologies for autonomous vehicles | |
CN111143378B (en) | Method for processing data and device for implementing the method | |
US11593898B2 (en) | Method for processing data and apparatuses for implementing the same | |
KR102689413B1 (en) | Computer-implemented methods, software programs, and systems for providing vehicle services and triggering payment processes for vehicle services. | |
CN108920257B (en) | Transaction processing method, device, equipment and storage medium | |
CN114465998B (en) | Multi-device file transmission method and device, terminal device and readable storage medium | |
CN115269038B (en) | Stateless computing data processing method, program product and electronic device | |
CN112912918B (en) | Method, system and computer readable storage medium for managing a shared vehicle | |
CN109842678B (en) | Vehicle sharing method and device | |
US20220301046A1 (en) | Method for Information Processing and Electronic Device | |
US20190278352A1 (en) | Method and server for managing power supply devices | |
CN109670808A (en) | Reimbursement of expense method, apparatus, computer installation, storage medium and vehicle washing system | |
CN112906921A (en) | Method, apparatus, and computer storage medium for information processing | |
CN111862402B (en) | Intelligent lock management method and related device | |
CN112466047A (en) | Dual offline vehicle management method and related device | |
CN111861829B (en) | Prompt method and device based on shared equipment, electronic equipment and storage medium | |
CN111861611B (en) | Resource processing method and device based on block chain, electronic equipment and storage medium | |
CN111292104B (en) | Information pushing method and device, electronic equipment and storage medium | |
US20220156650A1 (en) | Electronic Device, Server and Method for Providing a Personal Mobility Service of a Server | |
CN115174575A (en) | Service control method and device, electronic equipment and storage medium | |
CN114973524A (en) | Return processing method and device of shared equipment and computer equipment | |
JP2018148559A (en) | Apparatus, method, and computer program for mobile device | |
JP6761143B2 (en) | Management system, program, management method, and management server | |
CN111192031A (en) | Electronic bill generation method and device, electronic equipment and readable storage medium | |
CN110717746A (en) | Transfer method, transfer system, address naming 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220803 Address after: Room 2110, No. 79, Wanwan 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province, 511400 Patentee after: Guangzhou Qian Technology Co.,Ltd. Address before: Room 203, 2 / F, building 34, yard 8, Dongbei Wangxi Road, Haidian District, Beijing 100193 Patentee before: Beijing Qisheng Technology Co.,Ltd. |
|
TR01 | Transfer of patent right |