Disclosure of Invention
The invention mainly aims to provide a shopping cart electronic lock management method, a shopping cart electronic lock management system, a shopping cart electronic lock management device and a readable storage medium, and aims to reduce the time cost and the labor cost required for checking the operation condition of a shopping cart electronic lock and improve the accuracy of the operation condition of the shopping cart electronic lock.
In order to achieve the above object, the present invention provides a shopping cart electronic lock management method, comprising the steps of:
the method comprises the steps that a lock check instruction is sent to each shopping cart electronic lock at regular time, and lock check information returned by each shopping cart electronic lock based on the lock check instruction is received;
and determining whether an operation and maintenance reminding instruction is triggered or not according to the lock inventory information returned by each shopping cart electronic lock, and executing operation and maintenance reminding operation corresponding to the operation and maintenance reminding instruction if the operation and maintenance reminding instruction is triggered.
Optionally, the step of sending a lock inventory command to each shopping cart electronic lock at regular time and receiving the lock inventory information returned by each shopping cart electronic lock based on the lock inventory command includes:
sending a vehicle lock checking instruction to each shopping vehicle electronic lock at regular time through message middleware;
and receiving the lock inventory information returned by each shopping cart electronic lock based on the lock inventory instruction through the message middleware.
Optionally, the step of determining whether to trigger an operation and maintenance reminding instruction according to the lock inventory information returned by each shopping cart electronic lock includes:
judging whether the shopping cart electronic locks with the current state being the abnormal state exist in the shopping cart electronic locks according to the lock checking information returned by the shopping cart electronic locks;
if the shopping cart electronic lock in the current state is in the abnormal state exists in the shopping cart electronic locks, an operation and maintenance reminding instruction is triggered;
and if the shopping cart electronic lock in the abnormal state does not exist in the shopping cart electronic locks, not triggering the operation and maintenance reminding instruction.
Optionally, the step of determining whether there is a shopping cart electronic lock in which the current state is an abnormal state in each shopping cart electronic lock according to the lock inventory information returned by each shopping cart electronic lock includes:
judging whether the shopping cart electronic locks with abnormal electric quantity or abnormal firmware exist according to the lock checking information returned by the shopping cart electronic locks;
and if the shopping cart electronic locks with abnormal electric quantity or abnormal firmware exist in the shopping cart electronic locks, determining that the shopping cart electronic locks with the current state being the abnormal state exist in the shopping cart electronic locks.
Optionally, the step of determining whether to trigger an operation and maintenance reminding instruction according to the lock inventory information returned by each shopping cart electronic lock, and if the operation and maintenance reminding instruction is triggered, after the step of executing the operation and maintenance reminding operation corresponding to the operation and maintenance reminding instruction, further includes:
when a lock charging reminding instruction is received, determining the shopping cart electronic lock with the electric quantity lower than the preset electric quantity in each shopping cart electronic lock as a first target shopping cart electronic lock;
and sending the lock charging reminding instruction to the first target shopping cart electronic lock so as to enable the first target shopping cart electronic lock to execute corresponding charging reminding operation based on the lock charging reminding instruction.
Optionally, the step of determining whether to trigger an operation and maintenance reminding instruction according to the lock inventory information returned by each shopping cart electronic lock, and if the operation and maintenance reminding instruction is triggered, after the step of executing the operation and maintenance reminding operation corresponding to the operation and maintenance reminding instruction, further includes:
when a firmware upgrading instruction is received, acquiring corresponding target firmware;
determining the shopping cart electronic lock of the firmware to be upgraded in each shopping cart electronic lock as a second target shopping cart electronic lock, and generating a firmware upgrading request carrying the target firmware;
and sending the firmware upgrading request to the second target shopping cart electronic lock so that the second target shopping cart electronic lock executes firmware upgrading operation based on the firmware upgrading request.
In addition, in order to achieve the above object, the present invention further provides a shopping cart electronic lock management system, which includes shopping cart electronic locks and a shopping cart electronic lock management device, wherein:
the shopping cart electronic lock management device is used for sending a lock inventory instruction to each shopping cart electronic lock at regular time and receiving lock inventory information returned by each shopping cart electronic lock based on the lock inventory instruction;
the shopping cart electronic lock is used for receiving a shopping cart locking and checking instruction sent by the shopping cart electronic lock management device at regular time, acquiring locking and checking information based on the shopping cart locking and checking instruction, and sending the locking and checking information to the shopping cart electronic lock management device;
the shopping cart electronic lock management device is further used for determining whether an operation and maintenance reminding instruction is triggered or not according to the car lock inventory information returned by each shopping cart electronic lock, and if the operation and maintenance reminding instruction is triggered, executing operation and maintenance reminding operation corresponding to the operation and maintenance reminding instruction.
Optionally, the shopping cart electronic lock management system further comprises message middleware, wherein:
the shopping cart electronic lock management device is also used for sending a cart lock inventory instruction to the message middleware at regular time;
the message middleware is used for receiving a lock checking instruction sent by the shopping cart electronic lock management equipment and forwarding the lock checking instruction to each shopping cart electronic lock;
the shopping cart electronic lock is also used for receiving a cart lock checking instruction sent by the message middleware, acquiring cart lock checking information based on the cart lock checking instruction, and sending the cart lock checking information to the message middleware;
the message middleware is also used for receiving the lock checking information sent by each shopping cart electronic lock and forwarding the lock checking information to the shopping cart electronic lock management equipment;
the shopping cart electronic lock management device is further used for receiving the lock inventory information of each shopping cart electronic lock forwarded by the message middleware, determining whether to trigger an operation and maintenance reminding instruction or not based on the received lock inventory information, and executing operation and maintenance reminding operation corresponding to the operation and maintenance reminding instruction if the operation and maintenance reminding instruction is triggered.
In addition, to achieve the above object, the present invention also provides a shopping cart electronic lock management device, including: the shopping cart electronic lock management system comprises a memory, a processor and a shopping cart electronic lock management program which is stored on the memory and can run on the processor, wherein the shopping cart electronic lock management program realizes the steps of the shopping cart electronic lock management method when being executed by the processor.
The invention also provides a computer readable storage medium, which stores the shopping cart electronic lock management program, and when the shopping cart electronic lock management program is executed by a processor, the steps of the shopping cart electronic lock management method are realized.
The invention provides a shopping cart electronic lock management method, a system, equipment and a readable storage medium, wherein a cart lock inventory instruction is sent to each shopping cart electronic lock at regular time, cart lock inventory information returned by each shopping cart electronic lock based on the cart lock inventory instruction is received, then a cart lock inventory operation is executed according to the cart lock inventory information returned by each shopping cart electronic lock, whether an operation and maintenance reminding instruction is triggered or not is determined, if the operation and maintenance reminding instruction is triggered, the operation and maintenance reminding operation corresponding to the operation and maintenance reminding instruction is executed.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the shopping cart electronic lock management apparatus may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the shopping cart electronic lock management device configuration shown in FIG. 1 does not constitute a limitation of the shopping cart electronic lock management device and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a shopping cart electronic lock management program.
In the shopping cart electronic lock management device shown in fig. 1, the network interface 1004 is mainly used for connecting with a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the shopping cart electronic lock management program stored in the memory 1005, and perform the following steps:
the method comprises the steps that a lock check instruction is sent to each shopping cart electronic lock at regular time, and lock check information returned by each shopping cart electronic lock based on the lock check instruction is received;
and determining whether an operation and maintenance reminding instruction is triggered or not according to the lock inventory information returned by each shopping cart electronic lock, and executing operation and maintenance reminding operation corresponding to the operation and maintenance reminding instruction if the operation and maintenance reminding instruction is triggered.
Further, the processor 1001 may be configured to call the shopping cart electronic lock management program stored in the memory 1005, and further perform the following steps:
sending a vehicle lock checking instruction to each shopping vehicle electronic lock at regular time through message middleware;
and receiving the lock inventory information returned by each shopping cart electronic lock based on the lock inventory instruction through the message middleware.
Further, the processor 1001 may be configured to call the shopping cart electronic lock management program stored in the memory 1005, and further perform the following steps:
judging whether the shopping cart electronic locks with the current state being the abnormal state exist in the shopping cart electronic locks according to the lock checking information returned by the shopping cart electronic locks;
if the shopping cart electronic lock in the current state is in the abnormal state exists in the shopping cart electronic locks, an operation and maintenance reminding instruction is triggered;
and if the shopping cart electronic lock in the abnormal state does not exist in the shopping cart electronic locks, not triggering the operation and maintenance reminding instruction.
Further, the processor 1001 may be configured to call the shopping cart electronic lock management program stored in the memory 1005, and further perform the following steps:
judging whether the shopping cart electronic locks with abnormal electric quantity or abnormal firmware exist according to the lock checking information returned by the shopping cart electronic locks;
and if the shopping cart electronic locks with abnormal electric quantity or abnormal firmware exist in the shopping cart electronic locks, determining that the shopping cart electronic locks with the current state being the abnormal state exist in the shopping cart electronic locks.
Further, the processor 1001 may be configured to call the shopping cart electronic lock management program stored in the memory 1005, and further perform the following steps:
when a lock charging reminding instruction is received, determining the shopping cart electronic lock with the electric quantity lower than the preset electric quantity in each shopping cart electronic lock as a first target shopping cart electronic lock;
and sending the lock charging reminding instruction to the first target shopping cart electronic lock so as to enable the first target shopping cart electronic lock to execute corresponding charging reminding operation based on the lock charging reminding instruction.
Further, the processor 1001 may be configured to call the shopping cart electronic lock management program stored in the memory 1005, and further perform the following steps:
when a firmware upgrading instruction is received, acquiring corresponding target firmware;
determining the shopping cart electronic lock of the firmware to be upgraded in each shopping cart electronic lock as a second target shopping cart electronic lock, and generating a firmware upgrading request carrying the target firmware;
and sending the firmware upgrading request to the second target shopping cart electronic lock so that the second target shopping cart electronic lock executes firmware upgrading operation based on the firmware upgrading request.
The specific embodiment of the shopping cart electronic lock management device of the present invention is substantially the same as the specific embodiments of the shopping cart electronic lock management method described below, and will not be described herein again.
The invention provides a shopping cart electronic lock management method.
Referring to fig. 2, fig. 2 is a schematic flow chart of a shopping cart electronic lock management method according to a first embodiment of the present invention.
In this embodiment, the shopping cart electronic lock management method includes:
step S101, regularly sending a lock check instruction to each shopping cart electronic lock, and receiving lock check information returned by each shopping cart electronic lock based on the lock check instruction;
in this embodiment, the shopping cart electronic lock management method is applied to a shopping cart electronic lock management device, the shopping cart electronic lock management device may be a cloud server, the shopping cart electronic lock may directly communicate with the shopping cart electronic lock management device through a network module, the shopping cart electronic lock may also indirectly communicate with the shopping cart electronic lock management device through a message middleware, and a communication mode between the shopping cart electronic lock and the shopping cart electronic lock management device is not specifically limited in this embodiment. The shopping cart electronic lock comprises a shell, a battery bin, a battery, a circuit control board and an electric unlocking device, and optionally further comprises a network module. The message middleware may be selected as a wireless access device. The shopping cart electronic lock is arranged on a shopping cart of a supermarket and can be buckled with other shopping carts.
The shopping cart electronic lock management device sends a cart lock inventory command to each shopping cart electronic lock at regular time and receives cart lock inventory information returned by each shopping cart electronic lock based on the cart lock inventory command. After each shopping cart electronic lock receives a cart lock checking instruction sent by the shopping cart electronic lock management device, the cart lock checking information is obtained based on the cart lock checking instruction, and the cart lock checking information is sent to the shopping cart electronic lock management device. The lock inventory information includes, but is not limited to, a lock identifier, battery level, boot status, and firmware version number.
Further, the shopping cart electronic lock management device sends a cart lock inventory command to each shopping cart electronic lock at regular time through the message middleware, receives cart lock inventory information returned by each shopping cart electronic lock based on the cart lock inventory command through the message middleware, namely, the shopping cart electronic lock management device sends the cart lock inventory command to the message middleware at regular time and forwards the cart lock inventory command to each shopping cart electronic lock through the message middleware, the shopping cart electronic lock sends the cart lock inventory information acquired based on the cart lock inventory command to the message middleware, and the message middleware forwards the cart lock inventory information to the shopping cart electronic lock management device. The communication protocol between the message middleware and the shopping cart electronic lock management device can be selected as a message queue telemetry transmission protocol.
Step S102, determining whether an operation and maintenance reminding instruction is triggered or not according to the lock inventory information returned by each shopping cart electronic lock, and executing operation and maintenance reminding operation corresponding to the operation and maintenance reminding instruction if the operation and maintenance reminding instruction is triggered.
In this embodiment, after receiving the car lock inventory information returned by each shopping cart electronic lock, the shopping cart electronic lock management device determines whether to trigger an operation and maintenance reminding instruction according to the car lock inventory information returned by each shopping cart electronic lock, and if the operation and maintenance reminding instruction is triggered, executes the operation and maintenance reminding operation corresponding to the operation and maintenance reminding instruction. After receiving the lock inventory information returned by each shopping cart electronic lock, storing the lock inventory information returned by each shopping cart electronic lock, namely acquiring a preset blank lock inventory result table, reading corresponding specific parameters from the lock inventory information according to each column field of the blank lock inventory result table, and filling the read specific parameters to corresponding positions of the blank lock inventory result table, thereby storing the lock inventory information. The mode of determining whether to trigger the operation and maintenance reminding instruction is specifically to judge whether the shopping cart electronic locks in the current state are abnormal shopping cart electronic locks according to the lock inventory information returned by the shopping cart electronic locks, trigger the corresponding operation and maintenance reminding instruction according to the lock inventory information returned by the shopping cart electronic locks if the shopping cart electronic locks in the current state are abnormal, and not trigger the operation and maintenance reminding instruction if the shopping cart electronic locks in the current state are not abnormal.
Specifically, according to the lock checking information returned by each shopping cart electronic lock, whether the shopping cart electronic lock with abnormal electric quantity or abnormal firmware exists in each shopping cart electronic lock is judged, namely, the electric quantity value and the firmware version number of each shopping cart electronic lock are read from the lock inventory information returned by each shopping cart electronic lock, whether the electric quantity value of each shopping cart electronic lock is lower than the preset electric quantity value is judged, and judging whether the firmware version number of each shopping cart electronic lock is the same as the latest firmware version number, if the electric quantity value of one shopping cart electronic lock in the electric quantity values of the shopping cart electronic locks is lower than the preset electric quantity value, determining that the shopping cart electronic lock with abnormal electric quantity exists in each shopping cart electronic lock, if the firmware version number of one shopping cart electronic lock in the firmware version numbers of the shopping cart electronic locks is different from the latest firmware version number, determining that the shopping cart electronic lock with the abnormal firmware exists in each shopping cart electronic lock; if the shopping cart electronic lock with abnormal electric quantity exists in each shopping cart electronic lock or the shopping cart electronic lock with abnormal firmware exists in each shopping cart electronic lock, determining that the shopping cart electronic lock with the current state being the abnormal state exists in each shopping cart electronic lock, and if the shopping cart electronic lock with abnormal electric quantity does not exist in each shopping cart electronic lock and the shopping cart electronic lock with abnormal firmware does not exist in each shopping cart electronic lock, not processing. It should be noted that the preset electric quantity value may be set by a person skilled in the art based on actual situations, and this embodiment is not particularly limited thereto.
In the embodiment, the invention regularly sends the lock inventory command to each shopping cart electronic lock, receives the lock inventory information returned by each shopping cart electronic lock based on the lock inventory command, then executes the lock inventory operation according to the lock inventory information returned by each shopping cart electronic lock, determines whether to trigger the operation and maintenance reminding command, and executes the operation and maintenance reminding operation corresponding to the operation and maintenance reminding command if the operation and maintenance reminding command is triggered.
Furthermore, based on the first embodiment, a second embodiment of the shopping cart electronic lock management method of the present invention is provided, which is different from the foregoing embodiments in that after the shopping cart electronic lock management device performs the operation and maintenance reminding operation corresponding to the operation and maintenance reminding instruction, the lock operation and maintenance staff needs to charge the shopping cart electronic lock with insufficient electric quantity, the lock operation and maintenance staff needs to manually open the shopping cart electronic lock to check the electric quantity, so as to determine the shopping cart electronic lock that needs to be charged, and the number of the shopping cart electronic locks is large, so that a lot of time is consumed to find the shopping cart electronic lock that needs to be charged, which is inconvenient for the lock operation and maintenance staff to operate, and in order to solve the above problems, the lock operation and maintenance staff can send the reminding instruction to the shopping cart electronic lock that needs to be charged through the shopping cart electronic lock management device, and the shopping cart electronic lock that needs to be charged is based on the reminding instruction, reminding operation can be executed to inform the lock operation and maintenance personnel.
Specifically, when a lock charging reminding instruction is received, the shopping cart electronic lock management device determines the shopping cart electronic lock with the electric quantity lower than the preset electric quantity in each shopping cart electronic lock as a first target shopping cart electronic lock, namely the shopping cart electronic lock needing to be charged, and sends the lock charging reminding instruction to each first target shopping cart electronic lock, and after the lock charging reminding instruction is received by each first target shopping cart electronic lock, the corresponding charging reminding operation is executed based on the lock charging reminding instruction. The charging reminding operation includes but is not limited to lighting a charging warning lamp and broadcasting a preset warning sound, the charging warning lamp can be optionally lighted, the preset electric quantity can be set by a person skilled in the art based on actual conditions, and the embodiment is not particularly limited to this. The shopping cart electronic lock that needs to charge can be known to the lock fortune dimension personnel conveniently.
Further, based on the first or second embodiment, a third embodiment of the shopping cart electronic lock management method of the present invention is provided, which is different from the foregoing embodiments in that after the shopping cart electronic lock management device performs the operation and maintenance reminding operation corresponding to the operation and maintenance reminding instruction, there is a situation that the firmware of the shopping cart electronic lock needs to be upgraded, the cart lock operation and maintenance personnel needs to manually unlock the shopping cart electronic lock to check the firmware version number, determine which shopping cart electronic locks need to be upgraded, and then upgrade the firmware of the shopping cart electronic lock one by one, which is inconvenient for upgrading the firmware of the shopping cart electronic lock, in order to solve the above problems, the cart lock operation and maintenance personnel can upgrade the firmware of the shopping cart electronic lock through the shopping cart electronic lock management device, specifically, when receiving the firmware upgrading instruction, the shopping cart electronic lock management device obtains the corresponding target firmware, the method comprises the steps of obtaining firmware of the latest version, determining the shopping cart electronic lock of the firmware to be upgraded in each shopping cart electronic lock as a second target shopping cart electronic lock, generating a firmware upgrading request carrying the target firmware, sending the firmware upgrading request to the second target shopping cart electronic lock, and executing firmware upgrading operation based on the firmware upgrading request after the second target shopping cart electronic lock receives the firmware upgrading request sent by a shopping cart electronic lock management device, namely obtaining the target firmware from the firmware upgrading request and executing the firmware upgrading operation based on the target firmware. The whole process does not need to manually check the firmware version number, and does not need to manually upgrade the firmware of the shopping cart electronic lock needing the upgraded firmware one by one, so that the convenience and the efficiency of firmware upgrade are effectively improved.
The invention also provides a shopping cart electronic lock management system.
Referring to fig. 3, fig. 3 is a functional module schematic diagram of a shopping cart electronic lock management system according to a first embodiment of the present invention.
In this embodiment, the shopping cart electronic lock management system includes a shopping cart electronic lock management device 100 and a shopping cart electronic lock 200, wherein:
the shopping cart electronic lock management device 100 is configured to send a lock inventory instruction to each shopping cart electronic lock at regular time, and receive lock inventory information returned by each shopping cart electronic lock based on the lock inventory instruction;
the shopping cart electronic lock 200 is configured to receive a cart lock inventory instruction sent by the shopping cart electronic lock management device at regular time, acquire cart lock inventory information based on the cart lock inventory instruction, and send the cart lock inventory information to the shopping cart electronic lock management device;
in this embodiment, the shopping cart electronic lock 200 includes a housing, a battery compartment, a battery, a circuit control board, and an electric unlocking device, and optionally, the shopping cart electronic lock further includes a network module, the shopping cart electronic lock 200 communicates with the shopping cart electronic lock management device 100 through the network module, and the shopping cart electronic lock is mounted on a shopping cart in a supermarket and can be fastened to other shopping carts. The shopping cart electronic lock management device 100 sends a lock inventory command to each shopping cart electronic lock at regular time, and receives lock inventory information returned by each shopping cart electronic lock 200 based on the lock inventory command. After receiving the lock checking instruction sent by the shopping cart electronic lock management device, each shopping cart electronic lock 200 acquires lock checking information based on the lock checking instruction, and sends the lock checking information to the shopping cart electronic lock management device. The lock inventory information includes, but is not limited to, a lock identifier, battery level, boot status, and firmware version number.
The shopping cart electronic lock management device 100 is further configured to determine whether to trigger an operation and maintenance prompting instruction according to the lock inventory information returned by each shopping cart electronic lock, and if the operation and maintenance prompting instruction is triggered, execute an operation and maintenance prompting operation corresponding to the operation and maintenance prompting instruction.
In this embodiment, after receiving the car lock inventory information returned by each shopping cart electronic lock, the shopping cart electronic lock management device determines whether to trigger an operation and maintenance reminding instruction according to the car lock inventory information returned by each shopping cart electronic lock, and if the operation and maintenance reminding instruction is triggered, executes the operation and maintenance reminding operation corresponding to the operation and maintenance reminding instruction. After receiving the lock inventory information returned by each shopping cart electronic lock, storing the lock inventory information returned by each shopping cart electronic lock, namely acquiring a preset blank lock inventory result table, reading corresponding specific parameters from the lock inventory information according to each column field of the blank lock inventory result table, and filling the read specific parameters to corresponding positions of the blank lock inventory result table, thereby storing the lock inventory information. The mode of determining whether to trigger the operation and maintenance reminding instruction is specifically to judge whether the shopping cart electronic locks in the current state are abnormal shopping cart electronic locks according to the lock inventory information returned by the shopping cart electronic locks, trigger the corresponding operation and maintenance reminding instruction according to the lock inventory information returned by the shopping cart electronic locks if the shopping cart electronic locks in the current state are abnormal, and not trigger the operation and maintenance reminding instruction if the shopping cart electronic locks in the current state are not abnormal.
Specifically, according to the lock inventory information returned by each shopping cart electronic lock, whether a shopping cart electronic lock with abnormal electric quantity exists in each shopping cart electronic lock or not is judged, whether a shopping cart electronic lock with abnormal firmware exists in each shopping cart electronic lock or not is judged, namely, the electric quantity value and the firmware version number of each shopping cart electronic lock are read from the lock inventory information returned by each shopping cart electronic lock, whether the electric quantity value of each shopping cart electronic lock is lower than a preset electric quantity value or not is judged, whether the firmware version number of each shopping cart electronic lock is the same as the latest firmware version number or not is judged, if the electric quantity value of one shopping cart electronic lock in each shopping cart electronic lock is lower than the preset electric quantity value, the shopping cart electronic lock with abnormal electric quantity exists in each shopping cart electronic lock, and if the firmware version number of one shopping cart electronic lock in the firmware of each shopping cart electronic lock is different from the latest firmware version number, determining that the shopping cart electronic lock with abnormal firmware exists in each shopping cart electronic lock; if the shopping cart electronic lock with abnormal electric quantity exists in each shopping cart electronic lock or the shopping cart electronic lock with abnormal firmware exists in each shopping cart electronic lock, determining that the shopping cart electronic lock with the current state being the abnormal state exists in each shopping cart electronic lock, and if the shopping cart electronic lock with abnormal electric quantity does not exist in each shopping cart electronic lock and the shopping cart electronic lock with abnormal firmware does not exist in each shopping cart electronic lock, not processing. It should be noted that the preset electric quantity value may be set by a person skilled in the art based on actual situations, and this embodiment is not particularly limited thereto.
In the embodiment, the invention regularly sends the lock inventory command to each shopping cart electronic lock, receives the lock inventory information returned by each shopping cart electronic lock based on the lock inventory command, then executes the lock inventory operation according to the lock inventory information returned by each shopping cart electronic lock, determines whether to trigger the operation and maintenance reminding command, and executes the operation and maintenance reminding operation corresponding to the operation and maintenance reminding command if the operation and maintenance reminding command is triggered.
Further, referring to fig. 4, a second embodiment of the shopping cart electronic lock management system of the present invention is proposed based on the above first embodiment, which is different from the foregoing embodiments in that the shopping cart electronic lock management system further includes a message middleware 300, wherein:
the shopping cart electronic lock management device 100 is further configured to send a lock checking instruction to the message middleware at regular time;
the message middleware 300 is configured to receive a lock inventory instruction sent by the shopping cart electronic lock management device, and forward the lock inventory instruction to each shopping cart electronic lock;
the shopping cart electronic lock 200 is further configured to receive a lock inventory instruction sent by the message middleware, acquire lock inventory information based on the lock inventory instruction, and send the lock inventory information to the message middleware;
the message middleware 300 is further configured to receive the lock inventory information sent by each shopping cart electronic lock, and forward the lock inventory information to the shopping cart electronic lock management device;
the shopping cart electronic lock management device 100 is further configured to receive the lock inventory information of each shopping cart electronic lock forwarded by the message middleware.
In this embodiment, the present invention realizes the communication between the shopping cart electronic lock management device 100 and the shopping cart electronic lock 200 through the message middleware 300, specifically, the shopping cart electronic lock management device 100 sends the lock checking instruction to the message middleware 300 at regular time, the message middleware 300 forwards the lock inventory instruction to each shopping cart electronic lock, then the shopping cart electronic lock 200 sends the lock inventory information acquired based on the lock inventory instruction to the message middleware 300, the message middleware 300 forwards the lock inventory information to the shopping cart electronic lock management device 100, the shopping cart electronic lock management device 100 receives the lock inventory information of each shopping cart electronic lock forwarded by the message middleware 300, and determining whether an operation and maintenance reminding instruction is triggered or not based on the received vehicle lock inventory information, and executing operation and maintenance reminding operation corresponding to the operation and maintenance reminding instruction if the operation and maintenance reminding instruction is triggered. The subsequent processes can refer to the first embodiment, and are not described herein. Optionally, message middleware 300 is a wireless access device.
In the embodiment, the communication between the shopping cart electronic lock management device and the shopping cart electronic lock is realized through the message middleware, so that the realization complexity of the shopping cart electronic lock can be reduced, and the production cost of the shopping cart electronic lock is reduced.
Further, based on the first or second embodiment, a third embodiment of the shopping cart electronic lock management system of the present invention is provided, which is different from the foregoing embodiment in that the shopping cart electronic lock management device 100 is further configured to, when receiving a lock charging reminding instruction, determine a shopping cart electronic lock with an electric quantity lower than a preset electric quantity in each shopping cart electronic lock as a first target shopping cart electronic lock, that is, a shopping cart electronic lock that needs to be charged, and send the lock charging reminding instruction to each first target shopping cart electronic lock, and after receiving the lock charging reminding instruction, each first target shopping cart electronic lock executes a corresponding charging reminding operation based on the lock charging reminding instruction. The charging reminding operation includes, but is not limited to, lighting a charging warning lamp and broadcasting a preset warning sound, which is not specifically limited in this embodiment, and the charging warning lamp may be optionally lit. The shopping cart electronic lock that needs to charge can be known to the lock fortune dimension personnel conveniently.
Further, a fourth embodiment of the shopping cart electronic lock management system of the present invention is proposed based on the first, second or third embodiment described above, and is different from the foregoing embodiments in that, the shopping cart electronic lock management device 100 is further configured to, upon receiving a firmware upgrade instruction, retrieve a corresponding target firmware, namely, the firmware of the latest version is acquired, then the shopping cart electronic lock with the firmware to be upgraded in each shopping cart electronic lock is determined as the second target shopping cart electronic lock, generating a firmware upgrading request carrying the target firmware, finally sending the firmware upgrading request to a second target shopping cart electronic lock, after the second target shopping cart electronic lock receives the firmware upgrading request sent by the shopping cart electronic lock management device, the firmware upgrading operation is executed based on the firmware upgrading request, that is, the target firmware is obtained from the firmware upgrade request, and the firmware upgrade operation is performed based on the target firmware. The whole process does not need to manually check the firmware version number, and does not need to manually upgrade the firmware of the shopping cart electronic lock needing the upgraded firmware one by one, so that the convenience and the efficiency of firmware upgrade are effectively improved.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a shopping cart electronic lock management program is stored on the computer-readable storage medium, and when executed by a processor, the shopping cart electronic lock management program performs the following steps:
the method comprises the steps that a lock check instruction is sent to each shopping cart electronic lock at regular time, and lock check information returned by each shopping cart electronic lock based on the lock check instruction is received;
and determining whether an operation and maintenance reminding instruction is triggered or not according to the lock inventory information returned by each shopping cart electronic lock, and executing operation and maintenance reminding operation corresponding to the operation and maintenance reminding instruction if the operation and maintenance reminding instruction is triggered.
Further, when the shopping cart electronic lock management program is executed by the processor, the following steps are also executed:
sending a vehicle lock checking instruction to each shopping vehicle electronic lock at regular time through message middleware;
and receiving the lock inventory information returned by each shopping cart electronic lock based on the lock inventory instruction through the message middleware.
Further, when the shopping cart electronic lock management program is executed by the processor, the following steps are also executed:
judging whether the shopping cart electronic locks with the current state being the abnormal state exist in the shopping cart electronic locks according to the lock checking information returned by the shopping cart electronic locks;
if the shopping cart electronic lock in the current state is in the abnormal state exists in the shopping cart electronic locks, an operation and maintenance reminding instruction is triggered;
and if the shopping cart electronic lock in the abnormal state does not exist in the shopping cart electronic locks, not triggering the operation and maintenance reminding instruction.
Further, when the shopping cart electronic lock management program is executed by the processor, the following steps are also executed:
judging whether the shopping cart electronic locks with abnormal electric quantity or abnormal firmware exist according to the lock checking information returned by the shopping cart electronic locks;
and if the shopping cart electronic locks with abnormal electric quantity or abnormal firmware exist in the shopping cart electronic locks, determining that the shopping cart electronic locks with the current state being the abnormal state exist in the shopping cart electronic locks.
Further, when the shopping cart electronic lock management program is executed by the processor, the following steps are also executed:
when a lock charging reminding instruction is received, determining the shopping cart electronic lock with the electric quantity lower than the preset electric quantity in each shopping cart electronic lock as a first target shopping cart electronic lock;
and sending the lock charging reminding instruction to the first target shopping cart electronic lock so as to enable the first target shopping cart electronic lock to execute corresponding charging reminding operation based on the lock charging reminding instruction.
Further, when the shopping cart electronic lock management program is executed by the processor, the following steps are also executed:
when a firmware upgrading instruction is received, acquiring corresponding target firmware;
determining the shopping cart electronic lock of the firmware to be upgraded in each shopping cart electronic lock as a second target shopping cart electronic lock, and generating a firmware upgrading request carrying the target firmware;
and sending the firmware upgrading request to the second target shopping cart electronic lock so that the second target shopping cart electronic lock executes firmware upgrading operation based on the firmware upgrading request.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the shopping cart electronic lock management method, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.