CN113160460B - Lock management method, electronic device, storage medium and sharing bicycle - Google Patents

Lock management method, electronic device, storage medium and sharing bicycle Download PDF

Info

Publication number
CN113160460B
CN113160460B CN202110362477.4A CN202110362477A CN113160460B CN 113160460 B CN113160460 B CN 113160460B CN 202110362477 A CN202110362477 A CN 202110362477A CN 113160460 B CN113160460 B CN 113160460B
Authority
CN
China
Prior art keywords
lock
information
sent
electric quantity
master
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
Application number
CN202110362477.4A
Other languages
Chinese (zh)
Other versions
CN113160460A (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.)
Shanghai Chuanggong Telecom Technology Co Ltd
Original Assignee
Shanghai Chuanggong Telecom 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 Shanghai Chuanggong Telecom Technology Co Ltd filed Critical Shanghai Chuanggong Telecom Technology Co Ltd
Priority to CN202110362477.4A priority Critical patent/CN113160460B/en
Publication of CN113160460A publication Critical patent/CN113160460A/en
Application granted granted Critical
Publication of CN113160460B publication Critical patent/CN113160460B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • 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/00571Electronically 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
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/0042Coin-freed apparatus for hiring articles; Coin-freed facilities or services for hiring of objects
    • G07F17/0057Coin-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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention relates to the technical field of shared bicycle management, and discloses a bicycle lock management method, electronic equipment, a storage medium and a shared bicycle. In the invention, communication connection is established with a second lock of at least one second sharing bicycle, first information of a first lock is sent to the second lock, and second information sent by the second lock is received; the first information at least comprises the identity information of the first lock, and the second information at least comprises the identity information of the second lock; determining a main lock, if the first lock is determined to be the main lock, storing the identity information of the second lock locally, and sending a successful storage response to the second lock, so that the second lock can close the power consumption and provide the functional information after receiving the response; according to the identity information of the second lock, third information of the alternative function information is sent to the second lock; therefore, on the premise of not affecting the normal use of the lock, the power consumption of part of the lock is reduced, and the overall power consumption of the lock is reduced.

Description

Lock management method, electronic device, storage medium and sharing bicycle
Technical Field
The embodiment of the invention relates to the technical field of shared bicycle management, in particular to a bicycle lock management method, electronic equipment, a storage medium and a shared bicycle.
Background
The appearance of sharing bicycle has solved the trip problem of people last kilometer, and intelligent lock on the sharing bicycle is an embedded equipment, and intelligent lock is as a long-term outdoor use and does not have a special power supply's equipment, needs the manual work to maintain the electric quantity of intelligent lock, but because the intelligent lock of sharing bicycle need use general wireless packet service (General packet radio service, GPRS) to keep in touch with the server of sharing bicycle to and the intelligent lock of sharing bicycle still need keep in touch with the basic station to acquire positioning information etc. for the consumption of the intelligent lock of sharing bicycle is higher, leads to the work load of manual maintenance intelligent lock great, so the electric quantity problem of the intelligent lock of sharing bicycle needs to be solved.
Disclosure of Invention
The embodiment of the invention aims to provide a vehicle lock management method, electronic equipment, a storage medium and a sharing bicycle, so that the power consumption of part of the vehicle locks is reduced on the premise of not influencing the normal use of the vehicle locks, and the overall power consumption of the vehicle locks is reduced.
To solve the above technical problem, an embodiment of the present invention provides a vehicle lock management method, which is applied to a first vehicle lock of a first sharing bicycle, and the method includes: establishing communication connection with a second lock of at least one second sharing bicycle, transmitting first information of the first lock to the second lock, and receiving second information transmitted by the second lock; the first information at least comprises the identity information of the first lock, and the second information at least comprises the identity information of the second lock; determining a main lock, if the first lock is determined to be the main lock, storing the identity information of the second lock locally, and sending a successful storage response to the second lock, so that the second lock can close the power consumption and provide functional information after receiving the response; wherein the functional information is replaced by third information provided by the master lock; and according to the identity information of the second lock, third information replacing the functional information is sent to the second lock, and the second lock executes corresponding operation according to the third information.
The embodiment of the invention also provides a vehicle lock, which comprises: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any one of the above-described vehicle lock management methods.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program which, when executed by a processor, implements the vehicle lock management method of any one of the above.
Compared with the prior art, the embodiment of the invention has the advantages that the first lock of the first sharing bicycle is in communication connection with the second lock of the at least one second sharing bicycle, the first information of the first lock is sent to the second lock, the second information sent by the second lock is received, the first information at least comprises the identity information of the first lock, and the second information at least comprises the identity information of the second lock; if the first lock is determined to be the main lock, the identity information of the second lock is stored locally, and a successful storage response is sent to the second lock, so that the second lock can close the power consumption and provide the functional information after receiving the response; wherein the functional information is replaced by third information provided by the master lock; according to the identity information of the second lock, the third information of the alternative function information is sent to the second lock, and the third information of the alternative function information can be received from the first lock, so that the normal use of the second lock cannot be influenced after the functional module of the second lock is closed, the functional module of the consumed electric quantity of the second lock is closed, the electric quantity consumed by communication with the first lock is smaller, the electric quantity consumed by the second lock can be reduced, namely, the power consumption of part of the locks is reduced on the premise that the normal use of the locks is not influenced, and the overall power consumption of the locks is reduced.
In addition, after the determining the master lock, the method further includes: if the second lock is determined to be the main lock, closing the power consumption and providing the functional information after receiving a response sent by the main lock and used for successfully storing the information of the first lock; wherein the functional information is replaced by third information provided by the master lock; and receiving the third information sent by the master lock, and executing corresponding operation according to the third information. If it is determined that the second lock is the main lock, because the third information of the alternative function information can be received from the second lock, normal use of the first lock cannot be affected after the functional module of the first lock is closed, the functional module of the consumed electric quantity of the first lock is closed, the electric quantity consumed by communication with the second lock is smaller, the electric quantity consumed by the first lock can be reduced, namely, the power consumption of part of the locks is reduced on the premise that normal use of the locks is not affected, and therefore the overall power consumption of the locks is reduced.
In addition, the functional module includes a module for communicating with a background server; the step of sending third information replacing the functional information to the second lock according to the identity information of the second lock, wherein the second lock executes corresponding operations according to the third information, and the method comprises the steps of: the corresponding relation between the identity information of the first lock and the identity information of the second lock is sent to the background server, the corresponding relation is stored by the background server, and the instruction is sent to the first lock when the instruction for opening the second lock sent by the mobile terminal is received; and sending the instruction to the second lock according to the identity information of the second lock, so that the second lock can unlock according to the instruction and unlock the functional module. Because the first lock and the second lock establish communication connection, and the first lock can normally communicate with the background server, the instruction for opening the second lock can be successfully sent to the second lock through the first lock by the method, so that a module of the second lock for communicating with the background server can be closed, and the instruction for opening the second lock can be acquired from the first lock.
In addition, the function module includes a module for positioning, and the sending, according to the identity information of the second lock, third information replacing the function information to the second lock includes: and according to the identity information of the second lock, transmitting positioning information acquired from a base station to the second lock, and determining the current position of the second lock according to the positioning information. Because the first lock and the second lock establish communication connection, the distance between the first lock and the second lock is short, the first lock and the second lock only need to be positioned, and the second lock can acquire the current position according to the positioning information sent by the first lock, so that a module of the second lock for positioning can be closed, and the positioning information is acquired from the first lock, thereby determining the current position.
In addition, the second information also comprises the electric quantity of a second bicycle lock; the determining a master lock includes: and determining the master lock according to the electric quantity of the first lock and the electric quantity of the second lock. The master lock can be determined more simply through the electric quantity.
In addition, the determining the master lock according to the electric quantity of the first lock and the electric quantity of the second lock includes: if the electric quantity of the first lock is larger than that of the second lock, determining that the first lock is a main lock; and if the electric quantity of the first lock is not greater than the electric quantity of the second lock, determining that the second lock is the main lock. By the method, the lock with the larger electric quantity is determined as the master lock, so that the power consumption of the lock with the smaller electric quantity can be reduced, and the service time of the lock with the smaller electric quantity can be prolonged.
In addition, the establishing a communication connection with a second lock of at least one second shared bicycle includes: broadcasting a Bluetooth signal through a built-in Bluetooth module; and if the second locks of the at least one second sharing bicycle exist around according to the Bluetooth signal, establishing connection with the second locks of the at least one second sharing bicycle through Bluetooth. Through the method, communication connection between the first lock and the second lock can be simply realized through Bluetooth, and the power consumption of the Bluetooth is small, so that the power consumption of the lock can be further reduced.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
FIG. 1 is a flowchart of a vehicle lock management method in a first embodiment according to the present invention;
FIG. 2 is a flow chart of one specific implementation of step 103 in a first embodiment of the present invention;
FIG. 3 is a flowchart of a vehicle lock management method in a second embodiment according to the present invention;
fig. 4 is a schematic structural view of a vehicle lock according to a third embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art will understand that in various embodiments of the present invention, numerous technical details have been set forth in order to provide a better understanding of the present application. However, the technical solutions claimed in the present application can be implemented without these technical details and with various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not be construed as limiting the specific implementation of the present invention, and the embodiments can be mutually combined and referred to without contradiction.
The first embodiment of the invention relates to a vehicle lock management method, which is applied to a first vehicle lock of a first sharing bicycle, and the specific flow is shown in fig. 1, and comprises the following steps:
step 101, establishing communication connection with a second lock of at least one second shared bicycle, sending first information of the first lock to the second lock, and receiving second information sent by the second lock; the first information at least comprises the identity information of the first lock, and the second information at least comprises the identity information of the second lock.
Specifically, after the first shared bicycle is parked at a certain place and the first lock of the first shared bicycle is closed, the first lock detects whether there is a second lock of the second shared bicycle around, and when it is detected that there is at least a second lock of the second shared bicycle, the first lock establishes communication connection with the second lock of the at least one second shared bicycle. After the first lock establishes communication connection with a second lock of a second shared bicycle, the first lock transmits first information of the first lock to the second lock, the second lock transmits second information of the second lock to the first lock, the first information at least comprises identity information of the first lock, and the second information at least comprises identity information of the second lock. In one example, the identity information may be an identification number (Identity document, ID).
In one example, establishing a communication connection with a second lock of at least one second shared bicycle includes: broadcasting a Bluetooth signal through a built-in Bluetooth module; if the second lock of the at least one second sharing bicycle is determined to exist around according to the Bluetooth signal, connection is established between the second lock of the at least one second sharing bicycle and the second lock of the at least one second sharing bicycle through Bluetooth. Specifically, the first lock broadcasts bluetooth information in real time or according to a preset period or randomness through the built-in bluetooth module, and if the second lock of at least one second sharing bicycle is determined to exist around according to the bluetooth signal, the first lock establishes communication connection with the second lock of the at least one second sharing bicycle through bluetooth. The communication connection of the first lock and the second lock can be simply realized through Bluetooth, and the Bluetooth consumes less electric quantity, so that the power consumption of the lock can be further reduced.
Step 102, determining a main lock, if the first lock is determined to be the main lock, storing the identity information of the second lock locally, and sending a successful response to the second lock, so that the second lock can close the power consumption and provide the functional module of the functional information after receiving the response; wherein the functional information is replaced by third information provided by the master lock.
Specifically, if it is determined that the first lock is the master lock, the first lock stores the identity information of the second lock locally, and the first lock sends a response to the second lock, when the second lock receives the response to which the second lock is stored successfully, the functional module consuming electricity and providing the functional information is turned off, and although the functional module is turned off, the functional information is replaced by third information provided by the first lock, that is, the function information and the third information have the same function, so that even if the functional module is turned off, normal use of the second lock is not affected.
In one example, the second information further includes an amount of power of the second lock, and determining the master lock includes: and determining the master lock according to the electric quantity of the first lock and the electric quantity of the second lock. Specifically, when the first lock receives second information sent by the second lock, electric quantity of the second lock in the second information is obtained, the electric quantity of the first lock is compared with the electric quantity of the second lock, and the main lock is determined according to the electric quantity. The master lock can be determined more simply through the electric quantity. In one example, determining the master lock based on the power of the first lock and the power of the second lock includes: if the electric quantity of the first lock is larger than that of the second lock, determining that the first lock is the main lock; and if the electric quantity of the first lock is not greater than the electric quantity of the second lock, determining that the second lock is the main lock. By the method, the lock with the larger electric quantity is determined as the master lock, so that the power consumption of the lock with the smaller electric quantity can be reduced, and the service time of the lock with the smaller electric quantity can be prolonged. In one example, determining the master lock based on the power of the first lock and the power of the second lock includes: if the electric quantity of the first lock is not greater than that of the second lock, determining that the first lock is the main lock; if the electric quantity of the first lock is larger than that of the second lock, determining that the second lock is the main lock.
In one example, the first lock or the second lock may be randomly determined to be the master lock.
Step 103, according to the identity information of the second lock, third information replacing the function information is sent to the second lock, so that the second lock can execute corresponding operation according to the third information.
Specifically, the first lock determines a transmission object according to the identity information of the second lock, transmits third information of the alternative function information to the second lock, and executes corresponding operation according to the third information after the second lock receives the third information.
In one example, the functional module includes a module for communicating with a background server, and according to the identity information of the second lock, the functional module sends third information of the alternative functional information to the second lock, so that the second lock performs a specific flow of corresponding operations according to the third information, as shown in fig. 2, and includes:
step 1031, sending the corresponding relation between the identity information of the first lock and the identity information of the second lock to the background server, storing the corresponding relation by the background server, and sending the instruction to the first lock when receiving the instruction for opening the second lock sent by the mobile terminal.
Step 1032, sending an instruction to the second lock according to the identity information of the second lock, so that the second lock can unlock according to the instruction and unlock the functional module.
Specifically, the first lock sends the corresponding relation between the identity information of the first lock and the identity information of the second lock to the background server, the background server stores the corresponding relation, when a user scans a bicycle code on the second shared bicycle through the mobile terminal, the mobile terminal sends an instruction for opening the second lock to the background server, the background server cannot directly send the instruction to the second lock because a module used for communicating with the background server in the second lock is closed, at the moment, the background server inquires the stored corresponding relation to obtain the identity information of the first lock corresponding to the identity information of the second lock, the background server sends the instruction to the first lock, after the first lock receives the instruction, the first lock determines a sending object according to the identity information of the second lock, the instruction is sent to the second lock through communication connection established by the first lock and the second lock, and the second lock performs unlocking operation according to the instruction and opens the functional module. Because the first lock and the second lock establish communication connection, and the first lock can normally communicate with the background server, the instruction for opening the second lock can be successfully sent to the second lock through the first lock by the method, so that a module of the second lock for communicating with the background server can be closed, and the instruction for opening the second lock can be acquired from the first lock.
In one example, the function module includes a module for locating, and sending third information of the alternative function information to the second lock according to the identity information of the second lock, including: and according to the identity information of the second lock, transmitting the positioning information acquired from the base station to the second lock for the second lock to determine the current position according to the positioning information. Specifically, the first lock determines the sending object according to the identity information of the second lock, when the first lock obtains the current positioning information from the base station, the positioning information is sent to the second lock, and the second lock determines the current position according to the positioning information. Because the first lock and the second lock establish communication connection, the distance between the first lock and the second lock is short, the first lock and the second lock only need to be positioned, and the second lock can acquire the current position according to the positioning information sent by the first lock, so that a module of the second lock for positioning can be closed, and the positioning information is acquired from the first lock, thereby determining the current position.
In one example, the function module includes a module for communicating with a background server and a module for locating, and according to the identity information of the second lock, sending third information of the alternative function information to the second lock, so that the second lock performs corresponding operations according to the third information, including: the corresponding relation between the identity information of the first lock and the identity information of the second lock is sent to a background server, the background server stores the corresponding relation, and the instruction is sent to the first lock when the instruction for opening the second lock sent by the mobile terminal is received; according to the identity information of the second lock, sending an instruction to the second lock, and enabling the second lock to unlock according to the instruction and unlock the functional module; and transmitting the positioning information acquired from the base station to the second lock according to the identity information of the second lock, so that the second lock can determine the current position according to the positioning information.
In this embodiment, a first lock of a first sharing bicycle and a second lock of at least one second sharing bicycle establish communication connection, first information of the first lock is sent to the second lock, and second information sent by the second lock is received, the first information at least includes identity information of the first lock, and the second information at least includes identity information of the second lock; if the first lock is determined to be the main lock, the identity information of the second lock is stored locally, and a successful storage response is sent to the second lock, so that the second lock can close the power consumption and provide the functional information after receiving the response; wherein the functional information is replaced by third information provided by the master lock; according to the identity information of the second lock, the third information of the alternative function information is sent to the second lock, and the third information of the alternative function information can be received from the first lock, so that the normal use of the second lock cannot be influenced after the functional module of the second lock is closed, the functional module of the consumed electric quantity of the second lock is closed, the electric quantity consumed by communication with the first lock is smaller, the electric quantity consumed by the second lock can be reduced, namely, the power consumption of part of the locks is reduced on the premise that the normal use of the locks is not influenced, and the overall power consumption of the locks is reduced.
A second embodiment of the present invention relates to a vehicle lock management method applied to a first vehicle lock of a first shared bicycle, and is substantially the same as the first embodiment, and is mainly different in that: determining that the second lock is a main lock, and closing a function module which consumes electric quantity and provides function information after receiving a response sent by the main lock and used for successfully storing the information of the first lock; wherein the functional information is replaced by third information provided by the master lock; receiving third information sent by the master lock, and executing corresponding operation according to the third information, wherein a specific flow chart is shown in fig. 3, and includes:
step 201, establishing communication connection with a second lock of at least one second sharing bicycle, sending first information of the first lock to the second lock, and receiving second information sent by the second lock; the first information at least comprises the identity information of the first lock, and the second information at least comprises the identity information of the second lock.
Step 201 is similar to step 101 in the first embodiment, and will not be described again.
Step 202, determining a main lock, if the second lock is determined to be the main lock, and closing a functional module which consumes electric quantity and provides functional information after receiving a response sent by the main lock and used for successfully storing the information of the first lock; wherein the functional information is replaced by third information provided by the master lock.
Specifically, if it is determined that the second lock is the master lock, the second lock stores the identity information of the first lock locally, and the second lock sends a response to the first lock, when the first lock receives the response to which the second lock is stored, the functional module consuming electricity and providing the functional information is turned off, and although the functional module is turned off, the functional information is replaced by third information provided by the second lock, that is, the function information and the third information have the same function, so that even if the functional module is turned off, normal use of the first lock is not affected.
In one example, the second information further includes an amount of power of the second lock, and determining the master lock includes: and determining the master lock according to the electric quantity of the first lock and the electric quantity of the second lock. Specifically, when the first lock receives second information sent by the second lock, electric quantity of the second lock in the second information is obtained, the electric quantity of the first lock is compared with the electric quantity of the second lock, and the main lock is determined according to the electric quantity. The master lock can be determined more simply through the electric quantity. In one example, determining the master lock based on the power of the first lock and the power of the second lock includes: if the electric quantity of the first lock is larger than that of the second lock, determining that the first lock is the main lock; and if the electric quantity of the first lock is not greater than the electric quantity of the second lock, determining that the second lock is the main lock. By the method, the lock with the larger electric quantity is determined as the master lock, so that the power consumption of the lock with the smaller electric quantity can be reduced, and the service time of the lock with the smaller electric quantity can be prolonged. In one example, determining the master lock based on the power of the first lock and the power of the second lock includes: if the electric quantity of the first lock is not greater than that of the second lock, determining that the first lock is the main lock; if the electric quantity of the first lock is larger than that of the second lock, determining that the second lock is the main lock.
In one example, the first lock or the second lock may be randomly determined to be the master lock.
And 203, receiving third information sent by the master lock, and executing corresponding operation according to the third information.
In one example, the functional module includes a module for communicating with a background server, receiving third information sent by the master lock, and performing a corresponding operation according to the third information, including: and receiving an instruction for unlocking the lock sent by the main lock, and unlocking the functional module according to the instruction. Specifically, the second lock sends the corresponding relation between the identity information of the first lock and the identity of the second lock to the background server, the background server stores the corresponding relation, when a user scans a single code on the first shared single vehicle through the mobile terminal, the mobile terminal sends an instruction for opening the first lock to the background server, the background server cannot directly send the instruction to the first lock because a module used for communicating with the background server in the first lock is closed, at the moment, the background server inquires the stored corresponding relation to obtain the identity information of the second lock corresponding to the identity information of the first lock, the background server sends the instruction to the second lock, after the second lock receives the instruction, the second lock determines a sending object according to the identity information of the first lock, the instruction is sent to the first lock through communication connection established by the first lock and the second lock, and the first lock performs unlocking operation according to the instruction and opens the functional module. Because the first lock and the second lock are in communication connection, and the second lock can normally communicate with the background server, the instruction for opening the first lock can be successfully sent to the first lock through the second lock by the method, so that a module of the first lock for communicating with the background server can be closed, and the instruction for opening the first lock can be acquired from the second lock.
In one example, the functional module includes a module for positioning, receiving third information sent by the master lock, and performing a corresponding operation according to the third information, including: receiving positioning information sent by a main lock, and determining the current position according to the positioning information; the positioning information is obtained from the base station. Specifically, the second lock determines the sending object according to the identity information of the first lock, and when the second lock obtains the current positioning information from the base station, the second lock sends the positioning information to the first lock, and the first lock determines the current position according to the positioning information. Because the first lock and the second lock establish communication connection, the distance between the first lock and the second lock is short, the first lock can acquire the current position according to the positioning information sent by the second lock only by positioning the second lock, so that a module of the first lock for positioning can be closed, and the positioning information is acquired from the second lock, thereby determining the current position.
In one example, the functional module includes a module for communicating with a background server and a module for positioning, receives third information sent by the master lock, and performs corresponding operations according to the third information, including: receiving an instruction for unlocking the lock sent by the main lock, and unlocking the function module according to the instruction; receiving positioning information sent by a main lock, and determining the current position according to the positioning information; the positioning information is obtained from the base station.
In this embodiment, if it is determined that the second lock is the master lock, since the third information that replaces the function information can be received from the second lock, the normal use of the first lock is not affected after the function module of the first lock is closed, and the function module of the power consumption of the first lock is closed, and the power consumption of communication with the second lock is smaller, so that the power consumption of the first lock is reduced, that is, the power consumption of part of the locks is reduced on the premise that the normal use of the locks is not affected, thereby reducing the overall power consumption of the locks.
The above steps of the methods are divided, for clarity of description, and may be combined into one step or split into multiple steps when implemented, so long as they include the same logic relationship, and they are all within the protection scope of this patent; it is within the scope of this patent to add insignificant modifications to the algorithm or flow or introduce insignificant designs, but not to alter the core design of its algorithm and flow.
A third embodiment of the invention relates to a vehicle lock, as shown in fig. 4, comprising at least one processor 301; and a memory 302 communicatively coupled to the at least one processor 301; wherein the memory 302 stores instructions executable by the at least one processor 301, the instructions being executable by the at least one processor 301 to enable the at least one processor 301 to perform the vehicle lock management method described above.
Where the memory and the processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting the various circuits of the one or more processors and the memory together. The bus may also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or may be a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over the wireless medium via the antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory may be used to store data used by the processor in performing operations.
A fourth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program implements the above-described method embodiments when executed by a processor.
A fifth embodiment of the invention relates to a sharing bicycle comprising the lock described above.
That is, it will be understood by those skilled in the art that all or part of the steps in implementing the methods of the embodiments described above may be implemented by a program stored in a storage medium, where the program includes several instructions for causing a device (which may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps in the methods of the embodiments described herein. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples of carrying out the invention and that various changes in form and details may be made therein without departing from the spirit and scope of the invention.

Claims (8)

1. A method of lock management for a first lock of a first shared bicycle, the method comprising:
establishing communication connection with a second lock of at least one second sharing bicycle, transmitting first information of the first lock to the second lock, and receiving second information transmitted by the second lock; the first information at least comprises the identity information of the first lock, and the second information at least comprises the identity information of the second lock;
determining a main lock, if the first lock is determined to be the main lock, storing the identity information of the second lock locally, and sending a successful storage response to the second lock, so that the second lock can close the power consumption and provide functional information after receiving the response; wherein the functional information is replaced by third information provided by the master lock, the functional module comprising a module for communicating with a background server; the functional module comprises a module for positioning;
according to the identity information of the second lock, third information replacing the function information is sent to the second lock, and the second lock executes corresponding operation according to the third information, specifically including: the corresponding relation between the identity information of the first lock and the identity information of the second lock is sent to the background server, the corresponding relation is stored by the background server, and the instruction is sent to the first lock when the instruction for opening the second lock sent by the mobile terminal is received; according to the identity information of the second lock, the instruction is sent to the second lock, so that the second lock can unlock according to the instruction and the functional module can be unlocked; and transmitting the positioning information acquired from the base station to the second lock for the second lock to determine the current position according to the positioning information.
2. The vehicle lock management method according to claim 1, characterized in that after the determination of the master vehicle lock, the method further comprises:
if the second lock is determined to be the main lock, closing the power consumption and providing the functional information after receiving a response sent by the main lock and used for successfully storing the information of the first lock; wherein the functional information is replaced by third information provided by the master lock;
and receiving the third information sent by the master lock, and executing corresponding operation according to the third information.
3. The vehicle lock management method according to claim 1 or 2, wherein the second information further includes an amount of electricity of a second vehicle lock; the determining a master lock includes:
and determining the master lock according to the electric quantity of the first lock and the electric quantity of the second lock.
4. The method of claim 3, wherein determining the master lock based on the power of the first lock and the power of the second lock comprises:
if the electric quantity of the first lock is larger than that of the second lock, determining that the first lock is a main lock;
and if the electric quantity of the first lock is not greater than the electric quantity of the second lock, determining that the second lock is the main lock.
5. The method of claim 1, wherein the establishing a communication connection with the second lock of the at least one second shared bicycle comprises:
broadcasting a Bluetooth signal through a built-in Bluetooth module;
and if the second locks of the at least one second sharing bicycle exist around according to the Bluetooth signal, establishing connection with the second locks of the at least one second sharing bicycle through Bluetooth.
6. A vehicle lock, comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the vehicle lock management method of any one of claims 1 to 5.
7. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the vehicle lock management method according to any one of claims 1 to 5.
8. A sharing bicycle, comprising: the vehicle lock of claim 6.
CN202110362477.4A 2021-04-02 2021-04-02 Lock management method, electronic device, storage medium and sharing bicycle Active CN113160460B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110362477.4A CN113160460B (en) 2021-04-02 2021-04-02 Lock management method, electronic device, storage medium and sharing bicycle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110362477.4A CN113160460B (en) 2021-04-02 2021-04-02 Lock management method, electronic device, storage medium and sharing bicycle

Publications (2)

Publication Number Publication Date
CN113160460A CN113160460A (en) 2021-07-23
CN113160460B true CN113160460B (en) 2023-07-28

Family

ID=76886419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110362477.4A Active CN113160460B (en) 2021-04-02 2021-04-02 Lock management method, electronic device, storage medium and sharing bicycle

Country Status (1)

Country Link
CN (1) CN113160460B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115083048B (en) * 2022-08-22 2022-11-29 宁波小遛共享信息科技有限公司 Unlocking method of shared vehicle and server

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6845882B2 (en) * 2019-03-19 2021-03-24 Kddi株式会社 Lock control system, lock control method and lock control program

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206539147U (en) * 2016-12-30 2017-10-03 东峡大通(北京)管理咨询有限公司 A kind of intelligent bicycle lock and bicycle
CN107241680A (en) * 2017-04-27 2017-10-10 北京摩拜科技有限公司 Communication means, vehicle and server for multiple vehicles
CN107195120A (en) * 2017-07-07 2017-09-22 常州摩本智能科技有限公司 Car body leases unlocking system and car body lease method for unlocking
CN108112054A (en) * 2017-12-18 2018-06-01 武汉小安科技有限公司 The self-organizing network system and method for shared motor bicycle
CN108156231B (en) * 2017-12-21 2020-11-03 北京摩拜科技有限公司 Method for communication between fault vehicle and server, vehicle and server
CN109410395A (en) * 2018-10-12 2019-03-01 深圳市博实结科技有限公司 Lock control method, lock, control device and user terminal
US10919490B1 (en) * 2019-10-08 2021-02-16 Ford Global Technologies, Llc Sustained neutral operation of vehicles
CN111148049B (en) * 2019-12-31 2021-11-09 上海钧正网络科技有限公司 Vehicle position reporting method and device, computer equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6845882B2 (en) * 2019-03-19 2021-03-24 Kddi株式会社 Lock control system, lock control method and lock control program

Also Published As

Publication number Publication date
CN113160460A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
US10244476B2 (en) Reducing power consumption for phone as a key (PAAK) vehicle system
US5726646A (en) Method and apparatus for activating and accessing remote meter interface devices
US6947732B2 (en) Method and system for communicating with a vehicle in a mixed communication service environment
US7372818B2 (en) Mobile vehicle quiescent cycle control method
KR101177660B1 (en) Vehicle management system through radio relay of vehicle remote controller
CA2404843C (en) Method and system for communicating with a quiescent mobile vehicle
CN104875716A (en) Method for automatically controlling safety lock and smart terminal
WO2017056721A1 (en) On-vehicle control device and on-vehicle control device information update system
US20030112178A1 (en) Method and apparatus for location based wireless roaming between communication networks
CN204740742U (en) Platform is shared on intelligence parking stall
CN107358696A (en) A kind of unlocking method of shared bicycle
CN113160460B (en) Lock management method, electronic device, storage medium and sharing bicycle
US7789313B2 (en) Fully simultaneous information on variations in status for an object with a dual interface
JP2008030691A (en) Message management device of vehicular control system, and vehicular control system
CN105656894A (en) Main control intelligent terminal, controlled intelligent terminal and monitoring method
US20040029563A1 (en) Method and system for controlling access
CN104737596A (en) Putting a piece of equipment connected to a multi-link network on standby
CN109765986A (en) Power-saving control method, terminal device and computer readable storage medium
CN110363894A (en) A kind of number key awakening method, wakeup unit and a kind of permission terminal
CN105978903A (en) Unlocking method and system of dynamic coded lock
CN110626209A (en) Charging method and system of charging pile
CN114237096A (en) Chip awakening method and device, electronic equipment and storage medium
CN111818622A (en) Method and device for adjusting communication mode, storage medium and electronic equipment
CN111739196A (en) Door lock, key terminal, door lock system, control method of door lock system and server
CN110992581A (en) City all-purpose card with dual identification code

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