CN109767533B - Automatic registration method and device for shopping cart electronic lock, gateway equipment and medium - Google Patents

Automatic registration method and device for shopping cart electronic lock, gateway equipment and medium Download PDF

Info

Publication number
CN109767533B
CN109767533B CN201910037915.2A CN201910037915A CN109767533B CN 109767533 B CN109767533 B CN 109767533B CN 201910037915 A CN201910037915 A CN 201910037915A CN 109767533 B CN109767533 B CN 109767533B
Authority
CN
China
Prior art keywords
lock
shopping cart
electronic lock
identity information
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910037915.2A
Other languages
Chinese (zh)
Other versions
CN109767533A (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.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910037915.2A priority Critical patent/CN109767533B/en
Publication of CN109767533A publication Critical patent/CN109767533A/en
Application granted granted Critical
Publication of CN109767533B publication Critical patent/CN109767533B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an automatic registration method, a device, equipment and a medium for an electronic lock of a shopping cart, wherein the method comprises the following steps: if the reporting information sent by the electronic lock of the shopping cart in the target range is acquired, identifying first lock identity information included in the reporting information; judging whether the shopping cart electronic lock is registered or not according to the identified first lock identity information; if the shopping cart electronic lock is not registered, generating a lock registration message corresponding to the shopping cart electronic lock and sending the lock registration message to a cloud server; uploading the report information to a cloud server, so that an equipment management desk registers the shopping cart electronic lock to the gateway equipment according to the lock registration information and the report information acquired from the cloud server. The invention realizes the automatic registration of the electronic lock of the shopping cart, saves the labor consumption of operation and maintenance of stores and reduces the workload of the operation and maintenance of the stores.

Description

Automatic registration method and device for shopping cart electronic lock, gateway equipment and medium
Technical Field
The invention relates to the technical field of intelligent shopping cart electronic locks, in particular to an automatic registration method and device of a shopping cart electronic lock, gateway equipment and a medium.
Background
As a novel electronic lock for shopping carts in offline stores, the intelligent electronic lock for shopping carts solves the problem that the traditional coin-feed shopping carts are inconvenient to take in electronic currency times due to the fact that the holding amount of coins is reduced. However, most of the existing intelligent electronic locks need to be manually registered by a shop worker when in use, and if the serial number of the electronic lock is manually entered into a store in a store management system, manual registration is time-consuming and labor-consuming, and the store needs to be manually re-registered once when the existing intelligent electronic lock is replaced, which increases the workload of store operation and maintenance.
Disclosure of Invention
The invention mainly aims to provide an automatic registration method, device, gateway equipment and medium for an electronic lock of a shopping cart, and aims to realize automatic registration of the electronic lock of the shopping cart, save labor and reduce the workload of operation and maintenance of stores.
In order to achieve the above object, the present invention provides an automatic registration method for an electronic lock of a shopping cart, which is applied to a gateway device, and the automatic registration method for the electronic lock of the shopping cart comprises the following steps:
if the reporting information sent by the electronic lock of the shopping cart in the target range is acquired, identifying first lock identity information included in the reporting information;
judging whether the shopping cart electronic lock is registered or not according to the identified first lock identity information;
if the shopping cart electronic lock is not registered, generating a lock registration message corresponding to the shopping cart electronic lock and sending the lock registration message to a cloud server;
uploading the report information to a cloud server, so that an equipment management desk registers the shopping cart electronic lock to the gateway equipment according to the lock registration information and the report information acquired from the cloud server.
Optionally, the step of determining whether the shopping cart electronic lock is registered according to the identified first lock identity information includes:
comparing the identified first lock identity information with a plurality of second lock identity information stored in the gateway equipment;
detecting whether second lock identity information matched with the first lock identity information exists or not;
and if the second lock identity information matched with the first lock identity information does not exist, judging that the shopping cart electronic lock is not registered.
Optionally, the step of determining that the shopping cart electronic lock is not registered if it is detected that there is no second lock identity information matching the first lock identity information further includes:
and storing the first lock identity information as second lock identity information matched with the first lock identity information to the gateway equipment.
Optionally, the automatic registration method of the shopping cart electronic lock further includes:
clearing a plurality of pieces of second lock identity information stored in the gateway equipment in response to the received clearing instruction;
if the reported information sent by the electronic lock of the shopping cart in the target range is acquired, the method comprises the following steps: generating a lock registration message corresponding to the shopping cart electronic lock and sending the lock registration message to a cloud server.
Optionally, the step of determining whether the shopping cart electronic lock is registered according to the identified first lock identity information further includes:
and if the shopping cart electronic lock is registered, uploading the reported information to a cloud server so that an equipment management desk can pull the reported information from the cloud server.
In addition, the invention also provides an automatic registration device of the shopping cart electronic lock, which comprises the following components:
the detection module is used for identifying first lock identity information included in the report information if the report information sent by the electronic lock of the shopping cart in the target range is acquired;
the judgment module is used for judging whether the shopping cart electronic lock is registered or not according to the first lock identity information identified by the detection module;
the generation module is used for judging that the shopping cart electronic lock is not registered in the judgment module and generating a lock registration message corresponding to the shopping cart electronic lock;
and the uploading module is used for sending the lock registration message and the report information to a cloud server so that the equipment management desk registers the electronic lock of the shopping cart to the gateway equipment according to the lock registration message and the report information acquired from the cloud server.
Optionally, the determining module includes:
the comparison unit is used for comparing the first lock identity information identified by the identification module with a plurality of second lock identity information stored in the gateway equipment;
the detection unit is used for detecting whether second lock identity information matched with the first lock identity information exists or not;
and the judging unit is used for judging that the shopping cart electronic lock is not registered when the detecting unit detects that the second lock identity information matched with the first lock identity information does not exist.
Optionally, the apparatus further comprises:
and the storage module is used for judging that the shopping cart electronic lock is not registered in the judging unit and storing the first lock identity information as second lock identity information matched with the first lock identity information to the gateway equipment.
Optionally, the apparatus further comprises:
the clearing module is used for responding to the received clearing instruction and clearing a plurality of pieces of second lock identity information stored in the gateway equipment;
the generation module is further used for generating a lock registration message corresponding to the shopping cart electronic lock and sending the lock registration message to a cloud server if the detection module acquires the reported information sent by the shopping cart electronic lock in the target range.
Optionally, the apparatus further comprises:
and the forwarding module is used for uploading the reported information to a cloud server if the judgment module judges that the shopping cart electronic lock is registered, so that the equipment management platform can pull the reported information from the cloud server.
In addition, the present invention also provides a gateway device, including: the automatic registration program of the shopping cart electronic lock is stored on the memory and can run on the processor, and when being executed by the processor, the automatic registration program of the shopping cart electronic lock realizes the steps of the automatic registration method of the shopping cart electronic lock.
In addition, the invention also provides a medium applied to a computer, wherein the medium stores an automatic registration program of the shopping cart electronic lock, and the automatic registration program of the shopping cart electronic lock realizes the steps of the automatic registration method of the shopping cart electronic lock when being executed by the processor.
According to the method, if the reporting information sent by the electronic lock of the shopping cart in the target range is acquired, the first lock identity information included in the reporting information is identified; judging whether the shopping cart electronic lock is registered or not according to the identified first lock identity information; if the shopping cart electronic lock is not registered, generating a lock registration message corresponding to the shopping cart electronic lock and sending the lock registration message to a cloud server; uploading the report information to a cloud server so that an equipment management desk registers the shopping cart electronic lock to the gateway equipment according to the lock registration information and the report information acquired from the cloud server; therefore, the gateway device judges whether the current shopping cart electronic lock is registered according to the first lock identity information included in the identified reported information when acquiring the reported information sent by the shopping cart electronic lock in the network range, generates a lock registration message and sends the registration message to the cloud server when judging that the current shopping cart electronic lock is not registered, and the device management platform registers the shopping cart electronic lock after acquiring the registration message from the cloud server, so that automatic registration of the shopping cart electronic lock is realized.
Drawings
FIG. 1 is a schematic diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a first embodiment of a method for automatically registering an electronic lock of a shopping cart according to the present invention;
FIG. 3 is a schematic structural diagram of a store management system according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a second embodiment of the method for automatically registering an electronic lock of a shopping cart according to the present invention;
FIG. 5 is a flowchart illustrating a fourth embodiment of the method for automatically registering an electronic lock of a shopping cart according to the present invention;
FIG. 6 is a flowchart illustrating an automatic registration method of the shopping cart electronic lock according to a preferred embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
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 structural diagram of a hardware operating environment according to an embodiment of the present invention.
It should be noted that fig. 1 is a schematic structural diagram of a hardware operating environment of a gateway device.
As shown in fig. 1, the gateway apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. 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 gateway device architecture shown in fig. 1 does not constitute a limitation of the gateway device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is one type of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an auto registration program for an electronic lock of a shopping cart. The operating system is a program for managing and controlling the hardware and software resources of the gateway device, and supports the automatic registration program of the shopping cart electronic lock and the running of other software or programs.
In the gateway apparatus shown in fig. 1, the user interface 1003 is mainly used for data communication with each terminal; the network interface 1004 is mainly used for connecting a background server and performing data communication with the background server; and processor 1001 may be configured to invoke an auto-registration procedure for the electronic lock of the shopping cart stored in memory 1005 and perform the following operations:
if the reporting information sent by the electronic lock of the shopping cart in the target range is acquired, identifying first lock identity information included in the reporting information;
judging whether the shopping cart electronic lock is registered or not according to the identified first lock identity information;
if the shopping cart electronic lock is not registered, generating a lock registration message corresponding to the shopping cart electronic lock and sending the lock registration message to a cloud server;
uploading the report information to a cloud server, so that an equipment management desk registers the shopping cart electronic lock to the gateway equipment according to the lock registration information and the report information acquired from the cloud server.
Further, the step of judging whether the shopping cart electronic lock is registered according to the identified first lock identity information comprises:
comparing the identified first lock identity information with a plurality of second lock identity information stored in the gateway equipment;
detecting whether second lock identity information matched with the first lock identity information exists or not;
and if the second lock identity information matched with the first lock identity information does not exist, judging that the shopping cart electronic lock is not registered.
Further, after the step of determining that the electronic shopping cart lock is not registered if it is detected that there is no second lock identity information matching with the first lock identity information, the processor 1001 may be further configured to invoke an automatic registration program of the electronic shopping cart lock stored in the memory 1005, and execute the following steps:
and storing the first lock identity information as second lock identity information matched with the first lock identity information to the gateway equipment.
Further, processor 1001 may be further configured to invoke an auto-registration procedure for the electronic lock of the shopping cart stored in memory 1005, and perform the following steps:
clearing a plurality of pieces of second lock identity information stored in the gateway equipment in response to the received clearing instruction;
if the reported information sent by the electronic lock of the shopping cart in the target range is acquired, the method comprises the following steps: generating a lock registration message corresponding to the shopping cart electronic lock and sending the lock registration message to a cloud server.
Further, after the step of determining whether the shopping cart electronic lock is already registered according to the identified first lock identity information, the processor 1001 may be further configured to invoke an automatic registration program of the shopping cart electronic lock stored in the memory 1005, and perform the following steps:
and if the shopping cart electronic lock is registered, uploading the reported information to a cloud server so that an equipment management desk can pull the reported information from the cloud server.
Based on the structure, various embodiments of the automatic registration method of the shopping cart electronic lock are provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the automatic registration method of the electronic lock of the shopping cart according to the present invention.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than that shown or described herein.
The automatic registration method of the shopping cart electronic lock provided by the embodiment of the invention is applied to the gateway equipment.
The automatic registration method of the shopping cart electronic lock comprises the following steps:
step S100, if reporting information sent by an electronic lock of a shopping cart in a target range is acquired, identifying first lock identity information included in the reporting information;
at present, an intelligent electronic lock for a shopping cart in an off-line store is taken as a novel electronic lock for the shopping cart, and the problem that the traditional coin-feed shopping cart is inconvenient to take in the electronic currency era and the holding amount of coins is reduced is solved. However, most of the existing intelligent electronic locks need to be manually registered when being used, for example, the identification code of the electronic lock is manually entered into a store belonging to the electronic lock management system, the manual registration is time-consuming and labor-consuming, and the current intelligent electronic lock needs to be manually re-registered once when the store is replaced once, so that the workload of store operation and maintenance is increased.
In this embodiment, the shopping cart electronic lock is started and networked, and then sends a report message according to a change of a working state of the shopping cart electronic lock, and the gateway device to which the current network area belongs obtains the report message, specifically, a target range is a network management range of the gateway device in this embodiment, and the report message may be lock opening state information, lock closing state information, fault information, electric quantity prompt information, and the like.
In this embodiment, after detecting report information sent by an electronic lock of a shopping cart in a current management range, a gateway device identifies first lock identity information included in the report information;
specifically, as an implementation manner, the first lock identity information included in the report information may be a code of a shopping cart electronic lock with a unique identifier, the first lock identity information included in the report information may be a character string extracted from the report information and having a preset feature, where the character string is the first lock identity information, the preset feature may be a specific length, a first number of bits of the character string is a fixed character combination, and the like, and the present embodiment does not specifically limit the identification manner, and the lock registration message reported by the shopping cart electronic lock may further include attribution information of the shopping cart electronic lock, such as gateway information corresponding to the shopping cart electronic lock, store information, and the like.
Step S200, judging whether the shopping cart electronic lock is registered or not according to the identified first lock identity information;
judging whether the shopping cart electronic lock is registered or not according to the identified first lock identity information, if so, generating a registration message and sending the generated registration message to a cloud server so that an equipment management platform registers the shopping cart electronic lock; specifically, as an implementation manner, a memory cache is maintained in the gateway device, and is used to store an identity of a shopping cart electronic lock that has communicated with the gateway device, after receiving a report message sent by a current shopping cart electronic lock, the gateway device determines whether the identity of the current shopping cart electronic lock is in the cache according to first lock identity information of the current shopping cart electronic lock, that is, the identity of the current shopping cart electronic lock, identified from the report message, and if the identity of the current shopping cart electronic lock is not in the cache, it determines that the shopping cart electronic lock is not registered.
Step S300, if the shopping cart electronic lock is not registered, generating a lock registration message corresponding to the shopping cart electronic lock and sending the lock registration message to a cloud server.
If the shopping cart electronic lock is determined to be unregistered, the gateway device generates a lock registration message corresponding to the shopping cart electronic lock and sends the lock registration message to the cloud server.
And step S400, uploading the report information to a cloud server, so that an equipment management desk registers the shopping cart electronic lock to the gateway equipment according to the lock registration message and the report information acquired from the cloud server.
The gateway equipment uploads the reported information of the shopping cart electronic lock to the cloud server, the equipment management platform registers the shopping cart electronic lock after acquiring the lock registration information and the reported information of the shopping cart electronic lock from the cloud server, and the state of the shopping cart electronic lock, such as lock opening, lock closing and the like, is modified according to the content of the reported information.
In the embodiment, after acquiring the report information sent by the electronic lock of the shopping cart in the target range and judging that the electronic lock of the shopping cart is not registered according to the report information, the gateway device generates a registration message and sends the registration message to the cloud server; after the shopping cart electronic lock is judged to be registered, the gateway equipment cannot generate registration information, and the equipment management desk cannot repeatedly register the registered shopping cart electronic lock, so that the frequency of invalid registration executed by the equipment management desk is reduced; each store is provided with a plurality of gateway devices, the number of shopping cart electronic locks in the area where each gateway device is responsible is limited, so that overload to the gateway devices cannot be caused, the condition that the reported information of all shopping cart electronic locks under a plurality of gateway devices in the whole store management system is uniformly concentrated to a background server to be registered and judged to cause burden to the background server is avoided, system resources are saved, and the information processing efficiency of the system is improved.
Please refer to fig. 3, where fig. 3 is a schematic structural diagram of a store management system according to an embodiment of the present invention, each offline store is provided with one or more gateway devices, each gateway device detects that a shopping cart electronic lock within a network management range sends a report message, and determines that the shopping cart electronic lock is not registered according to the first lock identity information of the current shopping cart electronic lock, the gateway device generates a lock registration message to a cloud server, and adds an identity of the current shopping cart electronic lock into a cache, the gateway device also sends the information reported by the shopping cart electronic lock to the cloud server after the operation, an equipment management console obtains information data from the cloud server and correspondingly processes the data, the equipment management console registers the shopping cart electronic lock after obtaining the lock registration message uploaded by the gateway device, and registers the shopping cart electronic lock to a corresponding store and gateway device, therefore, manual operation for registration is not needed, the shopping cart electronic lock is started and networked, and the gateway device can realize automatic registration of the shopping cart electronic lock after searching the reported information sent by the shopping cart electronic lock; the shopping cart electronic lock replacing store is characterized in that a gateway device corresponding to a shopping cart electronic lock changes, after the shopping cart electronic lock replacing store is accessed into a network range managed by a gateway device of a new store, reported information of the shopping cart electronic lock is acquired by the new gateway device, if the new gateway device detects the reported information sent by the shopping cart electronic lock in the management range of the new gateway device, first lock identity information included in the reported information is identified, namely, the step of the automatic registration method of the shopping cart electronic lock is entered, namely, the shopping cart electronic lock replacing store can also automatically realize re-registration, and the information of the affiliated store is updated without manual intervention; it can be understood that if the gateway device determines that the report information sent by the shopping cart electronic lock is registered in the current gateway device, the gateway device does not generate a lock registration message and only forwards the report information to the cloud server, so that repeated registration of the same shopping cart electronic lock in the same gateway device by the device management desk is reduced, the message processing efficiency is improved, repeated invalid operation is avoided, and the burden of a store management system is reduced.
If the reporting information sent by the electronic lock of the shopping cart in the target range is acquired, identifying first lock identity information included in the reporting information; judging whether the shopping cart electronic lock is registered or not according to the identified first lock identity information; if the shopping cart electronic lock is not registered, generating a lock registration message corresponding to the shopping cart electronic lock and sending the lock registration message to a cloud server; uploading the report information to a cloud server so that an equipment management desk registers the shopping cart electronic lock to the gateway equipment according to the lock registration information and the report information acquired from the cloud server; therefore, the gateway device acquires the reported information sent by the shopping cart electronic lock in the network range, judges whether the current shopping cart electronic lock is registered according to the first lock identity information included in the identified reported information, generates a lock registration message and sends the registration message to the cloud server under the condition that the current shopping cart electronic lock is not registered, and the device management platform acquires data from the cloud server and registers the shopping cart electronic lock, so that the automatic registration of the shopping cart electronic lock is realized, the shopping cart electronic lock does not need to be manually registered to a store in a store management system, and the store is not required to be manually re-registered when the shopping cart electronic lock is replaced.
Furthermore, a second embodiment of the automatic registration method of the shopping cart electronic lock is provided.
Referring to fig. 4 and fig. 4 are schematic flow charts of a second embodiment of the automatic registration method of the electronic lock of the shopping cart according to the present invention, based on the first embodiment of the automatic registration method of the electronic lock of the shopping cart, in this embodiment, step S200, according to the identified first lock identity information, the step of determining whether the electronic lock of the shopping cart is already registered includes:
step S201, comparing the identified first lock identity information with a plurality of second lock identity information stored in the gateway equipment;
step S202, detecting whether second lock identity information matched with the first lock identity information exists or not;
step S203, if it is detected that the second lock identity information matched with the first lock identity information does not exist, it is determined that the shopping cart electronic lock is not registered.
In this embodiment, specifically, after detecting the report information sent by the electronic shopping cart lock in the target range, the gateway device identifies first lock identity information included in the report information and compares the identified first lock identity information with a plurality of second lock identity information stored in the gateway device, and detects whether there is second lock identity information matching the first lock identity information, where the plurality of second lock identity information stored in the gateway device is identity information of the electronic shopping cart that has been registered after communicating with the gateway device, and if there is no second lock identity information matching the first lock identity information in the gateway device, it indicates that the electronic shopping cart lock is not registered in the current gateway device, and the gateway device generates a registration message for the electronic shopping cart and sends the registration message to the cloud server, and uploading the reported information to a cloud server, and registering the vehicle lock by the equipment management platform according to the lock registration information and the reported information acquired from the cloud server.
Further, in step S203, if it is detected that there is no second lock identity information matching with the first lock identity information, the step of determining that the shopping cart electronic lock is unregistered further includes:
step S204, the first lock identity information is used as second lock identity information matched with the first lock identity information and stored in the gateway equipment.
The gateway device stores the first lock identity information, and after the shopping cart electronic lock corresponding to the first lock identity information sends the report information to the current gateway device again, the gateway device can determine that the current shopping cart electronic lock is registered according to identity information matching, so that registration information cannot be generated, repeated registration of the same shopping cart electronic lock is avoided, and network resources are saved.
In this embodiment, if reporting information sent by an electronic shopping cart lock in a target range is acquired, first lock identity information included in the reporting information is identified, the identified first lock identity information is compared with a plurality of pieces of second lock identity information stored in the gateway device, whether second lock identity information matched with the first lock identity information exists is detected, if it is detected that the second lock identity information matched with the first lock identity information does not exist, it is determined that the electronic shopping cart lock is not registered, and if the electronic shopping cart lock is not registered, a lock registration message corresponding to the electronic shopping cart lock is generated and sent to a cloud server; uploading the report information to a cloud server so that an equipment management desk registers the shopping cart electronic lock to the gateway equipment according to the lock registration information and the report information acquired from the cloud server; after the shopping cart electronic lock is used or a store is replaced, manual registration is not needed, automatic registration and store updating of the shopping cart electronic lock are achieved, repeated registration of the same shopping cart electronic lock in the same gateway is avoided, and network resources are saved.
Furthermore, a third embodiment of the automatic registration method of the shopping cart electronic lock of the present invention is provided.
The automatic registration method of the shopping cart electronic lock comprises the following steps:
clearing a plurality of pieces of second lock identity information stored in the gateway equipment in response to the received clearing instruction;
and if the reported information sent by the electronic lock of the shopping cart in the target range is acquired, the step S300 is entered, a lock registration message corresponding to the electronic lock of the shopping cart is generated, and the lock registration message is sent to a cloud server.
In this embodiment, after receiving an emptying instruction, the gateway device empties, in response to the received emptying instruction, a plurality of pieces of second lock identity information stored in the gateway device, and if a report message sent by an electronic lock of a shopping cart in a target range is obtained, directly generates a lock registration message corresponding to the electronic lock of the shopping cart, sends the lock registration message to a cloud server, and uploads the report message to the cloud server, so that the device management console registers the electronic lock of the shopping cart to the gateway device according to the registration message and the report message obtained from the cloud server, as an implementation manner, after receiving the emptying instruction, the gateway device empties, if receiving a reset instruction, the plurality of pieces of second lock identity information stored in the gateway device, and if the gateway device clears the cache, namely emptying a plurality of pieces of second lock identity information stored in the gateway equipment; the gateway equipment identifies first lock identity information included in the report information, stores the identified first lock identity information as second lock identity information matched with the first lock identity information to the gateway equipment, and enters the steps of the first embodiment or the second embodiment of the automatic registration method of the shopping cart electronic lock after receiving the report information sent by the shopping cart electronic lock again, so that automatic registration of the shopping cart electronic lock is realized, manual intervention is not needed in the registration process, and the operation and maintenance cost is reduced.
Referring to fig. 5, fig. 5 is a schematic flowchart of a fourth embodiment of the method for automatically registering an electronic lock of a shopping cart according to the present invention, based on the first embodiment of the method for automatically registering an electronic lock of a shopping cart, in this embodiment, step S200, after the step of determining whether the electronic lock of a shopping cart is already registered according to the identified first lock identity information, further includes:
step S500, if the shopping cart electronic lock is registered, uploading the reported information to a cloud server so that an equipment management desk can pull the reported information from the cloud server.
Specifically, after detecting the reported information sent by the electronic lock of the shopping cart in the target range, the gateway device identifies first lock identity information included in the reported information, judges whether the electronic lock of the shopping cart is registered according to the identified first lock identity information, if the electronic lock of the shopping cart is judged to be registered, second lock identity information matched with the first lock identity information exists in the gateway device, namely, the fact that the current electronic lock of the shopping cart is communicated with the gateway device before and is registered is represented, the gateway device does not regenerate registration information, but directly uploads the reported information to a cloud server so that an equipment management platform can pull the reported information from the cloud server and execute corresponding processing, judges whether the electronic lock of the shopping cart is registered through the gateway device, each store is provided with a plurality of gateway devices, the shopping cart electronic locks in each gateway device area are limited in number, so that overload to the gateway devices is avoided, the phenomenon that the load to the background server is caused by the fact that the reported information of all shopping cart electronic locks under a plurality of gateway devices in the whole store management system is concentrated to the background server for registration judgment is avoided, system resources are saved, and the information processing efficiency of the system is improved.
Further, to more clearly describe the automatic registration method of the electronic lock of the shopping cart of the present invention, please refer to fig. 6, which is a flowchart of a preferred embodiment of the automatic registration method of the electronic lock of the shopping cart of the present invention, fig. 6 is a flowchart of the automatic registration method of the electronic lock of the shopping cart of the present invention, when the electronic lock of the shopping cart is accessed into a network within a management range of a gateway device, a status of the electronic lock of the shopping cart changes, such as unlocking and locking of the electronic lock of the shopping cart, a gateway device detects information reported by the electronic lock of the shopping cart, identifies first lock identity information included in the reported information, if the gateway device detects that the first lock identity information does not exist in its own cache, the gateway device determines that the electronic lock of the shopping cart is not registered, generates a lock registration message corresponding to the electronic lock of the shopping cart and sends the lock registration message to a cloud server, and adds an identity of the electronic lock of the shopping cart to, after the operation, the gateway equipment also sends information reported by the electronic lock of the shopping cart to the cloud server, the equipment management platform acquires information data from the cloud server and correspondingly processes the data, and after the equipment management platform acquires the lock registration message from the cloud server, the equipment management platform registers the shopping cart according to the acquired information data without manual operation registration, and the shopping cart can be automatically registered as long as the electronic lock of the shopping cart is started and networked; the shopping cart electronic lock replacing store is characterized in that a gateway device corresponding to a shopping cart electronic lock changes, after the shopping cart electronic lock replacing store is accessed into a network range managed by a gateway device of a new store, reported information of the shopping cart electronic lock is acquired by the new gateway device, if the new gateway device receives the reported information sent by the shopping cart electronic lock in the management range, first lock identity information included in the reported information is identified, namely, the step of the automatic registration method of the shopping cart electronic lock is entered, namely, the shopping cart electronic lock replacing store can also automatically realize re-registration, and the information of the affiliated store is updated without manual intervention; it can be understood that, if the gateway device detects that the first lock identity information exists in its own cache, it determines that the shopping cart electronic lock is registered, and the gateway does not generate a registration message, and the device management station does not perform a registration action, so that the number of invalid information processed by the device management station is reduced, and the management system is not burdened due to inefficient processing, and a manager can monitor the state of the shopping cart electronic lock on the device management station and issue a control instruction to the shopping cart electronic lock.
In addition, an embodiment of the present invention further provides an automatic registration apparatus for an electronic lock of a shopping cart, where the automatic registration apparatus for an electronic lock of a shopping cart includes:
the detection module is used for identifying first lock identity information included in the report information if the report information sent by the electronic lock of the shopping cart in the target range is acquired;
the judgment module is used for judging whether the shopping cart electronic lock is registered or not according to the first lock identity information identified by the detection module;
the generation module is used for judging that the shopping cart electronic lock is not registered in the judgment module and generating a lock registration message corresponding to the shopping cart electronic lock;
and the uploading module is used for sending the lock registration message and the report information to a cloud server so that the equipment management desk registers the electronic lock of the shopping cart to the gateway equipment according to the lock registration message and the report information acquired from the cloud server.
Preferably, the judging module includes:
the comparison unit is used for comparing the first lock identity information identified by the identification module with a plurality of second lock identity information stored in the gateway equipment;
the detection unit is used for detecting whether second lock identity information matched with the first lock identity information exists or not;
and the judging unit is used for judging that the shopping cart electronic lock is not registered when the detecting unit detects that the second lock identity information matched with the first lock identity information does not exist.
Preferably, the apparatus further comprises:
and the storage module is used for judging that the shopping cart electronic lock is not registered in the judging unit and storing the first lock identity information as second lock identity information matched with the first lock identity information to the gateway equipment.
Preferably, the apparatus further comprises:
the clearing module is used for responding to the received clearing instruction and clearing a plurality of pieces of second lock identity information stored in the gateway equipment;
the generation module is further used for generating a lock registration message corresponding to the shopping cart electronic lock and sending the lock registration message to a cloud server if the detection module acquires the reported information sent by the shopping cart electronic lock in the target range.
Preferably, the apparatus further comprises:
and the forwarding module is used for uploading the reported information to a cloud server if the judgment module judges that the shopping cart electronic lock is registered, so that the equipment management platform can pull the reported information from the cloud server.
The steps of the automatic registration method for the electronic lock of the shopping cart described above are implemented when each module of the automatic registration device for the electronic lock of the shopping cart provided by this embodiment operates, and are not described herein again.
In addition, an embodiment of the present invention further provides a medium applied to a computer, that is, the medium is a computer-readable storage medium, on which an automatic registration program of an electronic lock of a shopping cart is stored, and when the automatic registration program of the electronic lock of the shopping cart is executed by a processor, the steps of the automatic registration method of the electronic lock of the shopping cart as described above are implemented.
The method for implementing the automatic registration program of the electronic lock of the shopping cart running on the processor when executed can refer to each embodiment of the automatic registration method of the electronic lock of the shopping cart of the present invention, and details are not repeated here.
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 apparatus 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 apparatus. 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 apparatus 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 solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as 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.

Claims (12)

1. The automatic registration method of the shopping cart electronic lock is applied to gateway equipment, and comprises the following steps:
if the reporting information sent by the electronic lock of the shopping cart in the target range is acquired, identifying first lock identity information included in the reporting information;
judging whether the shopping cart electronic lock is registered or not according to the identified first lock identity information;
if the shopping cart electronic lock is not registered, generating a lock registration message corresponding to the shopping cart electronic lock and sending the lock registration message to a cloud server;
uploading the report information to a cloud server, so that an equipment management desk registers the shopping cart electronic lock to the gateway equipment according to the lock registration information and the report information acquired from the cloud server.
2. The method of claim 1, wherein the step of determining whether the shopping cart electronic lock is registered based on the identified first lock identification information comprises:
comparing the identified first lock identity information with a plurality of second lock identity information stored in the gateway equipment;
detecting whether second lock identity information matched with the first lock identity information exists or not;
and if the second lock identity information matched with the first lock identity information does not exist, judging that the shopping cart electronic lock is not registered.
3. The method of claim 2, wherein the step of determining that the shopping cart electronic lock is unregistered if it is detected that there is no second lock identification information matching the first lock identification information further comprises:
and storing the first lock identity information as second lock identity information matched with the first lock identity information to the gateway equipment.
4. The method of automatically registering an electronic lock of a shopping cart of claim 2 or 3, wherein the method of automatically registering an electronic lock of a shopping cart further comprises:
clearing a plurality of pieces of second lock identity information stored in the gateway equipment in response to the received clearing instruction;
if the reported information sent by the electronic lock of the shopping cart in the target range is acquired, the method comprises the following steps: generating a lock registration message corresponding to the shopping cart electronic lock and sending the lock registration message to a cloud server.
5. The method of any of claims 1-3, wherein the step of determining whether the shopping cart electronic lock has been registered based on the identified first lock identification information further comprises:
and if the shopping cart electronic lock is registered, uploading the reported information to a cloud server so that an equipment management desk can pull the reported information from the cloud server.
6. An automatic registration device of an electronic lock of a shopping cart, comprising:
the detection module is used for identifying first lock identity information included in the report information if the report information sent by the electronic lock of the shopping cart in the target range is acquired;
the judgment module is used for judging whether the shopping cart electronic lock is registered or not according to the first lock identity information identified by the detection module;
the generation module is used for judging that the shopping cart electronic lock is not registered in the judgment module and generating a lock registration message corresponding to the shopping cart electronic lock;
and the uploading module is used for sending the lock registration message and the report information to a cloud server so that the equipment management desk registers the electronic lock of the shopping cart to the gateway equipment according to the lock registration message and the report information acquired from the cloud server.
7. The shopping cart electronic lock auto-registration apparatus of claim 6, wherein the determination module comprises:
the comparison unit is used for comparing the first lock identity information identified by the detection module with a plurality of second lock identity information stored in the gateway equipment;
the detection unit is used for detecting whether second lock identity information matched with the first lock identity information exists or not;
and the judging unit is used for judging that the shopping cart electronic lock is not registered when the detecting unit detects that the second lock identity information matched with the first lock identity information does not exist.
8. The shopping cart electronic lock auto-registration apparatus of claim 7, wherein the apparatus further comprises:
and the storage module is used for judging that the shopping cart electronic lock is not registered in the judging unit and storing the first lock identity information as second lock identity information matched with the first lock identity information to the gateway equipment.
9. The automatic registration apparatus for an electronic lock of a shopping cart according to claim 7 or 8, wherein the apparatus further comprises:
the clearing module is used for responding to the received clearing instruction and clearing a plurality of pieces of second lock identity information stored in the gateway equipment;
the generation module is further used for generating a lock registration message corresponding to the shopping cart electronic lock and sending the lock registration message to a cloud server if the detection module acquires the reported information sent by the shopping cart electronic lock in the target range.
10. The automatic registration apparatus for an electronic lock of a shopping cart according to any one of claims 6 to 8, wherein the apparatus further comprises:
and the forwarding module is used for uploading the reported information to a cloud server if the judgment module judges that the shopping cart electronic lock is registered, so that the equipment management platform can pull the reported information from the cloud server.
11. A gateway device, characterized in that the device comprises: memory, a processor and an auto-registration program of an electronic lock of a shopping cart stored on the memory and executable on the processor, the auto-registration program of an electronic lock of a shopping cart realizing the steps of the method for auto-registration of an electronic lock of a shopping cart according to any one of claims 1 to 5 when executed by the processor.
12. A medium applied to a computer, wherein an automatic registration program of an electronic lock of a shopping cart is stored on the medium, and the automatic registration program of the electronic lock of the shopping cart realizes the steps of the automatic registration method of the electronic lock of the shopping cart according to any one of claims 1 to 5 when being executed by a processor.
CN201910037915.2A 2019-01-14 2019-01-14 Automatic registration method and device for shopping cart electronic lock, gateway equipment and medium Active CN109767533B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910037915.2A CN109767533B (en) 2019-01-14 2019-01-14 Automatic registration method and device for shopping cart electronic lock, gateway equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910037915.2A CN109767533B (en) 2019-01-14 2019-01-14 Automatic registration method and device for shopping cart electronic lock, gateway equipment and medium

Publications (2)

Publication Number Publication Date
CN109767533A CN109767533A (en) 2019-05-17
CN109767533B true CN109767533B (en) 2021-02-19

Family

ID=66454098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910037915.2A Active CN109767533B (en) 2019-01-14 2019-01-14 Automatic registration method and device for shopping cart electronic lock, gateway equipment and medium

Country Status (1)

Country Link
CN (1) CN109767533B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481114A (en) * 2002-09-06 2004-03-10 联想(北京)有限公司 Method for device to register service in household network
WO2010031351A1 (en) * 2008-09-18 2010-03-25 Huawei Technologies Co., Ltd. Network attachment for ims systems for legacy cs ue with home node b access
CN101902460A (en) * 2010-03-30 2010-12-01 华为终端有限公司 Method and device for generating and processing operating component of network access object
CN103209183A (en) * 2013-03-25 2013-07-17 中山大学 Method for equipment registration based on digital home network
CN104349511A (en) * 2013-08-01 2015-02-11 中国电信股份有限公司 Distribution method and apparatus of AP addresses in WLAN
CN104660509A (en) * 2013-11-19 2015-05-27 中国科学院声学研究所 Forward processing method of data message in access gateway
JP2015162895A (en) * 2014-02-28 2015-09-07 Kddi株式会社 Transmission method of push notification, and control device
CN106656697A (en) * 2016-12-28 2017-05-10 重庆金鑫科技产业发展有限公司 Smart home control method and system, and gateway
CN108848025A (en) * 2018-06-26 2018-11-20 中国联合网络通信集团有限公司 Gateway, internet of things equipment and system, register method and information processing method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481114A (en) * 2002-09-06 2004-03-10 联想(北京)有限公司 Method for device to register service in household network
WO2010031351A1 (en) * 2008-09-18 2010-03-25 Huawei Technologies Co., Ltd. Network attachment for ims systems for legacy cs ue with home node b access
CN101902460A (en) * 2010-03-30 2010-12-01 华为终端有限公司 Method and device for generating and processing operating component of network access object
CN103209183A (en) * 2013-03-25 2013-07-17 中山大学 Method for equipment registration based on digital home network
CN104349511A (en) * 2013-08-01 2015-02-11 中国电信股份有限公司 Distribution method and apparatus of AP addresses in WLAN
CN104660509A (en) * 2013-11-19 2015-05-27 中国科学院声学研究所 Forward processing method of data message in access gateway
JP2015162895A (en) * 2014-02-28 2015-09-07 Kddi株式会社 Transmission method of push notification, and control device
CN106656697A (en) * 2016-12-28 2017-05-10 重庆金鑫科技产业发展有限公司 Smart home control method and system, and gateway
CN108848025A (en) * 2018-06-26 2018-11-20 中国联合网络通信集团有限公司 Gateway, internet of things equipment and system, register method and information processing method

Also Published As

Publication number Publication date
CN109767533A (en) 2019-05-17

Similar Documents

Publication Publication Date Title
CN109672580B (en) Full link monitoring method, device, terminal equipment and storage medium
CN109271391B (en) Data storage method, server, storage medium and device
US9326126B2 (en) Transferring operating environment of registered network to unregistered network
US9930632B2 (en) M2M application remote registration method, device, system and storage medium
CN108335237B (en) Scheme setting method, terminal and computer readable storage medium
CN108965267B (en) Network attack processing method and device and vehicle
CN109495467B (en) Method and device for updating interception rule and computer readable storage medium
CN111038906B (en) Order sorting method and device
CN109905431B (en) Message processing method and system, storage medium and electronic equipment
CN101594376A (en) The method and the corresponding device thereof of device are provided to the CIMOM registering CIM
WO2011134287A1 (en) Management method of notification message of internet of things and notification service capability apparatus
CN114040024A (en) Gateway-based micro-service gray level publishing method, device, equipment and storage medium
CN109767533B (en) Automatic registration method and device for shopping cart electronic lock, gateway equipment and medium
CN110741617A (en) Resource updating method and device, computer equipment and storage medium
CN111126774A (en) Abnormal vehicle identification method and device and electronic equipment
CN112927548A (en) Mechanical garage vehicle taking method and system and storage medium
CN110019372B (en) Data monitoring method, device, server and storage medium
US20100318563A1 (en) Terminal and method for identifying contents
CN107679871B (en) List management method, device, system and computer readable storage medium
CN111817878A (en) Networking method and device of intelligent equipment and cloud server
CN111161460A (en) Face authentication method, device, terminal and storage medium based on intelligent routing table
CN111045725A (en) Control method, device and storage medium of code management system
CN110175043A (en) The generation method and device of protocol interface code release update notification
CN114866970A (en) Policy control method, system and related equipment
CN108881513B (en) Method, device, equipment and storage medium for generating equipment 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