Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for controlling an intelligent cabinet, which can enable intelligent cabinets with different services in a site to communicate with each other, and are beneficial to service expansion.
In a first aspect, an embodiment of the present invention provides a method for controlling an intelligent cabinet, which is applicable to a server, and the method includes:
receiving a first service request sent by an operating device, wherein the first service request comprises a unique identifier, and the unique identifier is used for representing a target site;
acquiring a service set corresponding to the unique identifier, wherein the service set comprises at least one service type;
sending a service selection response to the operating device so that the operating device can display a selection interface of the service type, wherein the service selection response comprises the service set;
receiving a second service request sent by the operating device, wherein the second service request comprises a target service type; and
and generating a control instruction corresponding to the target service type and sending the control instruction to the intelligent cabinet so as to control the intelligent cabinet to execute corresponding operation.
In some embodiments, the method further comprises:
receiving configuration information, wherein the configuration information comprises a unique identifier and a service type;
adding the service type to a service set corresponding to the unique identifier; and
and adding the corresponding relation between the unique identification and the service set to a database.
In some embodiments, the acquiring the service set corresponding to the unique identifier specifically includes:
and acquiring a corresponding service set in the database according to the unique identifier.
In some embodiments, the configuration information further includes cabinet parameters;
wherein the generating a control instruction corresponding to the target service and sending the control instruction to the intelligent cabinet comprises:
acquiring cabinet parameters corresponding to the target service; and
and generating the control instruction according to the cabinet parameters.
In some embodiments, the unique identifier is two-dimensional code information set on the smart cabinet read by the operating device.
In some embodiments, the unique identifier is a smart cabinet identifier.
In some embodiments, the operating device is a user terminal.
In some embodiments, the operating device is an operating component of the intelligent cabinet.
In some embodiments, the intelligent cabinet comprises a main cabinet and a secondary cabinet, and the unique identifier is bound with the main cabinet.
In some embodiments, the type of transaction includes one or more of item access, item display, and item vending.
In some embodiments, the controlling the intelligent cabinet to execute the corresponding operation specifically includes:
and controlling the intelligent cabinet opening grids corresponding to the target service type.
In a second aspect, an embodiment of the present invention provides a control method for an intelligent cabinet, which is suitable for operating a device, and the method includes:
a first service request sent to a server, wherein the first service request comprises a unique identifier, so that the server acquires a service set corresponding to the unique identifier and generates a service selection response, the service set comprises at least one service type, and the service selection response comprises the service set;
responding to the received service selection response, and displaying a selection interface, wherein the selection interface comprises a selection control of each service type in the service set; and
and responding to the triggering of the selection control, generating a second service request and sending the second service request to the server, wherein the second service request comprises a target service type, so that the server generates a control instruction corresponding to the target service type to control the intelligent cabinet to execute corresponding operation.
In some embodiments, the operating device is an operating component of an intelligent cabinet;
the operating equipment acquires the unique identifier through the following steps:
and acquiring the unique identifier from pre-stored data, wherein the unique identifier is a communication address of the intelligent cabinet, a site identifier, a locker identifier or two-dimensional code information arranged on the intelligent cabinet.
In some embodiments, the operating device is a user terminal;
the operating equipment acquires the unique identifier through the following steps:
and reading two-dimensional code information arranged on the intelligent cabinet to acquire the unique identifier.
In some embodiments, the method further comprises:
receiving configuration information input by a user, wherein the configuration information comprises a unique identifier and a service type; and
and sending the configuration information to a server.
In some embodiments, the controlling the intelligent cabinet to execute the corresponding operation specifically includes:
and controlling the intelligent cabinet opening grids corresponding to the target service type.
In a third aspect, an embodiment of the present invention provides a control device for an intelligent cabinet, which is applied to a server, and the device includes:
a first service request receiving unit, configured to receive a first service request sent by an operating device, where the first service request includes a unique identifier, and the unique identifier is used to characterize a target site;
a service set obtaining unit, configured to obtain a service set corresponding to the unique identifier, where the service set includes at least one service type;
a service selection response sending unit, configured to send a service selection response to the operating device, so that the operating device displays a selection interface of a service type, where the service selection response includes the service set;
a second service request receiving unit, configured to receive a second service request sent by the operating device, where the second service request includes a target service type; and
and the intelligent cabinet control unit is used for generating a control instruction corresponding to the target service type and sending the control instruction to the intelligent cabinet so as to control the intelligent cabinet to execute corresponding operation.
In some embodiments, the apparatus further comprises:
the device comprises a configuration information receiving unit, a configuration information processing unit and a service processing unit, wherein the configuration information receiving unit is used for receiving configuration information which comprises a unique identifier and a service type;
a service set updating unit, configured to add the service type to a service set corresponding to the unique identifier; and
and the database updating unit is used for adding the corresponding relation between the unique identifier and the service set to a database.
In some embodiments, the service set obtaining unit is specifically configured to:
and acquiring a corresponding service set in the database according to the unique identifier.
In some embodiments, the configuration information further includes cabinet parameters;
wherein, intelligence cabinet the control unit includes:
a cabinet parameter obtaining subunit, configured to obtain a cabinet parameter corresponding to the target service; and
and the control instruction generating subunit is used for generating the control instruction according to the cabinet parameters by English.
In some embodiments, the unique identifier is two-dimensional code information set on the smart cabinet read by the operating device.
In some embodiments, the unique identifier is a smart cabinet identifier.
In some embodiments, the operating device is a user terminal.
In some embodiments, the operating device is an operating component of the intelligent cabinet.
In some embodiments, the intelligent cabinet comprises a main cabinet and a secondary cabinet, and the unique identifier is bound with the main cabinet.
In some embodiments, the type of transaction includes one or more of item access, item display, and item vending.
In some embodiments, the smart cabinet control unit is specifically configured to:
and controlling the intelligent cabinet opening grids corresponding to the target service type.
In a fourth aspect, an embodiment of the present invention provides a control apparatus for an intelligent cabinet, which is suitable for operating a device, and the apparatus includes:
a first service request sending unit, configured to send a first service request to a server, where the first service request includes a unique identifier, so that the server obtains a service set corresponding to the unique identifier and generates a service selection response, where the service set includes at least one service type, and the service selection response includes the service set;
a selection interface display unit, configured to display a selection interface in response to receiving the service selection response, where the selection interface includes a selection control for each service type in the service set; and
and the second service request sending unit is used for responding to the triggering of the selection control, generating a second service request and sending the second service request to the server, wherein the second service request comprises a target service type, so that the server generates a control instruction corresponding to the target service type to control the intelligent cabinet to execute corresponding operation.
In some embodiments, the operating device is an operating component of an intelligent cabinet;
wherein the apparatus further comprises:
the first unique identifier acquisition unit is used for acquiring the unique identifier from pre-stored data, wherein the unique identifier is a communication address of the intelligent cabinet, a site identifier, a locker identifier or two-dimensional code information arranged on the intelligent cabinet.
In some embodiments, the operating device is a user terminal;
wherein the apparatus further comprises:
and the second unique identifier acquisition unit is used for reading the two-dimensional code information arranged on the intelligent cabinet to acquire the unique identifier.
In some embodiments, the apparatus further comprises:
the system comprises a configuration information input unit, a service type input unit and a service identification unit, wherein the configuration information input unit is used for receiving configuration information input by a user, and the configuration information comprises a unique identification and a service type; and
and the configuration information sending unit is used for sending the configuration information to the server.
In a fifth aspect, embodiments of the present invention provide a computer-readable storage medium on which computer program instructions are stored, which when executed by a processor implement the method according to the first and second aspects.
In a sixth aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, the memory being configured to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to the first and second aspects.
According to the technical scheme of the embodiment of the invention, the service set corresponding to the unique identifier in the site is obtained and sent to the operation equipment for selection by the user, and the corresponding control instruction is generated according to the target service type selected by the user so as to control the intelligent cabinet to execute the corresponding operation. Therefore, the intelligent cabinets of different services in the site can be communicated, and service expansion is facilitated.
Detailed Description
The present invention will be described below based on examples, but the present invention is not limited to only these examples. In the following detailed description of the present invention, certain specific details are set forth. It will be apparent to one skilled in the art that the present invention may be practiced without these specific details. Well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the present invention.
Further, those of ordinary skill in the art will appreciate that the drawings provided herein are for illustrative purposes and are not necessarily drawn to scale.
Unless the context clearly requires otherwise, throughout the description, the words "comprise", "comprising", and the like are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, what is meant is "including, but not limited to".
In the description of the present invention, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Fig. 1 is a schematic diagram of an intelligent cabinet control system according to a first embodiment of the present invention. In the embodiment shown in fig. 1, the control system of the intelligent cabinet comprises a server 1 and an intelligent cabinet 2. Wherein, the server 1 can communicate with the intelligent cabinet 2 for data interaction.
In this embodiment, the server 1 may be an independent server, or may be a server cluster composed of a plurality of servers.
In the present embodiment, the intelligent cabinet 2 is disposed in a predetermined station, which may be one or more of a takeout cabinet, an express cabinet, an access cabinet, a display cabinet, and a vending cabinet.
Furthermore, at least one operating device is arranged in the station, and the operating device can be a device which is independent from the intelligent cabinets and is in communication connection with each intelligent cabinet so as to perform data interaction. The operating device can also be an operating component arranged on the intelligent cabinet.
Specifically, the operating device at least comprises a human-computer interaction interface and a communication component.
The human-computer interaction interface is used for achieving human-computer interaction between a user and the intelligent cabinet, displaying relevant information to the user, receiving operation input by the user and the like.
The communication component is used for communicating with other communication devices, for example, the communication component may perform data communication with the server, for example, send an operation input by a user to the server, report a state of the intelligent cabinet to the server, receive a control instruction sent by the server, and the like.
Further, the operating device has a unique identifier, which may be a communication address of the operating device or another unique sequence, and this is not limited in this embodiment of the present invention.
Therefore, when a user needs to use the intelligent cabinet, a first service request is sent to the server through the operating equipment, wherein the first service request comprises a unique identifier, and the unique identifier is used for representing a target site. After receiving a service request, a server acquires a service set of a site corresponding to a unique identifier according to the unique identifier in the service request and sends the service set to an operating device, wherein the service set comprises one or more service types, and the service types in the service set are service types which can be supported by an intelligent cabinet. The operation equipment displays the selection control of each service type in each service set, so that a user can select the corresponding target service type through the operation equipment, generate a second service request and send the second service request to the server. And the server generates a control instruction for the intelligent cabinet according to the target service type in the second service request, and transmits the control instruction to the intelligent cabinet so as to control the intelligent cabinet to execute corresponding operation. Therefore, the intelligent cabinet can be managed through the server.
Fig. 2 is a schematic diagram of an intelligent cabinet control system according to a second embodiment of the invention. In the embodiment shown in fig. 2, the control system of the intelligent cabinet comprises a server 1, an intelligent cabinet 2 and a user terminal 3. The server 1 can communicate with the intelligent cabinet 2 and the user terminal 3 for data interaction.
In this embodiment, the server 1 may be an independent server, or may be a server cluster composed of a plurality of servers.
In this embodiment, the intelligent cabinet 2 is disposed in a predetermined station, and may be one or more of a take-out cabinet, an express delivery cabinet, an access cabinet, a display cabinet, and a vending cabinet.
Further, a machine-readable mark is disposed on the smart cabinet, and in the embodiment shown in fig. 2, the machine-readable mark is taken as a two-dimensional code for example, but the embodiment of the present invention is not limited thereto, and any mark that can be recognized by a machine can be applied to the technical solution of the embodiment of the present invention. For example, the machine-readable mark may be implemented by an NFC (Near Field Communication) tag. The two-dimensional code or the bar code is scanned and read through the terminal equipment, and the NFC label is read through the terminal equipment close to the identification area.
Further, the machine-readable indicia carries a unique identifier.
The unique identifier may be two-dimensional code information, specifically, the unique identifier is a sequence that can be recognized by the terminal reading the two-dimensional code, for example, a combination of numbers and/or letters, the sequence corresponds to the site and/or the intelligent cabinet one to one, and the server stores the correspondence in advance. Or the unique identifier is set to be the same as the station identifier and/or the intelligent cabinet identifier and used for representing the unique station and/or the intelligent cabinet.
It should be noted that, as described above, the intelligent cabinet may include a plurality of different cabinets, and the intelligent cabinet in the embodiment of the present invention refers to a combination of a plurality of cabinets in the same site.
In the present embodiment, the user terminal 3 is a terminal device used by a user.
Specifically, the user scans the two-dimensional code on the smart cabinet by using an APP (Application program) pre-installed in the user terminal to read the unique identifier carried by the machine-readable mark.
In an alternative implementation, the pre-installed APP is a dedicated APP (Application) corresponding to the smart cabinet. When the user uses other APP to scan the two-dimensional code, whether the user installs a special APP is detected, if the user installs the special APP, the user jumps to the special APP, and if the user does not install the special APP, the user jumps to a downloading interface of the special APP for downloading.
In another optional implementation manner, the pre-installed APP may also be various browsers or other APPs with scanning controls, and when the two-dimensional code is scanned, the smart cabinet management applet is automatically activated.
Further, the user terminal 3 comprises at least a human-machine interaction interface and a communication component.
The human-computer interaction interface is used for realizing human-computer interaction between a user and the terminal so as to display related information to the user and receive operation input by the user.
The communication component is used for communicating with other communication devices, for example, the communication component can be used for data communication with the server, for example, sending operations input by a user to the server, receiving data sent by the server and the like.
Specifically, when a user needs to use the intelligent cabinet, the unique identifier in the two-dimensional code is read by operating the user terminal 3, a first service request is generated and sent to the server, and the first service request comprises the unique identifier. After receiving the first service request, the server acquires a service set of a site corresponding to the unique identifier according to the unique identifier in the service request and sends the service set to the user terminal, wherein the service set comprises one or more service types, and the service types in the service set are service types which can be supported by the intelligent cabinet. And the user terminal displays the selection control of each service type in each service set, so that the user can select the corresponding target service type through the user terminal, generate a second service request and send the second service request to the server. And the server generates a control instruction for the intelligent cabinet according to the target service type in the second service request, and transmits the control instruction to the intelligent cabinet so as to control the intelligent cabinet to execute corresponding operation. Therefore, the intelligent cabinet can be managed through the server.
Further, fig. 3 is a schematic structural diagram of an intelligent cabinet according to an embodiment of the present invention. In the embodiment shown in fig. 3, the intelligent cabinet includes a takeaway access cabinet 31, a takeaway access cabinet 32, a takeaway access cabinet 33, a blind box cabinet 34, a retail cabinet 35, and a medicine selling cabinet 36. The number of each cabinet grid is from 01 to 28.
The takeaway access cabinet 31 includes a display screen (e.g., a black frame in the figure) and a plurality of cabinet compartments. Wherein, the display screen is used for showing information to the user, and the cabinet check is used for accessing article.
In some embodiments, the display screen is a touch screen for human-computer interaction.
The takeaway access cabinet 32 and the takeaway access cabinet 33 include a plurality of cabinet compartments for accessing items.
The blind box cabinet 34 is used for selling blind boxes, and a goods taking port is arranged below the blind box cabinet. The retail cabinet 35 is used for selling articles such as drinks, foods, daily necessities, toys, etc., and a goods access opening is provided thereunder. The cabinet 36 is for vending items, and includes a plurality of cabinet compartments in which the medications are placed.
Further, the intelligence cabinet is provided with the two-dimensional code, and the two-dimensional code carries only sign. The unique identification is a sequence which can be identified by the terminal reading the two-dimensional code, such as a combination of numbers and/or letters, the sequence corresponds to the sites and/or the intelligent cabinets one by one, and the server stores the corresponding relation in advance. Or the unique identifier is set to be the same as the station identifier and/or the intelligent cabinet identifier and used for representing the unique station and/or the intelligent cabinet.
As described above, in combination with the embodiment shown in fig. 1, at least one operating device is disposed in the station, and the operating device may be a device independent from the intelligent cabinet, and is in communication connection with the intelligent cabinet to perform data interaction. The operating device can be an operating component arranged on the intelligent cabinet.
Further, the embodiment of the present invention may divide the plurality of cabinets included in the intelligent cabinet into a main cabinet and a sub-cabinet, wherein the operation component is disposed on the main cabinet. Taking fig. 3 as an example, the takeaway access cabinet 31 is a main cabinet, and the operation device is a display screen provided on the takeaway access cabinet 31. The display screen is a touch screen and can perform human-computer interaction. Meanwhile, the operation equipment is in communication connection with other cabinets and is used for data transmission. The takeaway access cabinet 32, the takeaway access cabinet 33, the blind box cabinet 34, the retail cabinet 35, and the drug selling cabinet 36 are sub-cabinets.
In an alternative implementation, each secondary cabinet communicates with the server via the main cabinet. That is, when the sub-cabinet needs to send data to the server or needs to receive data from the server, the sub-cabinet communicates with the main cabinet.
In another alternative implementation, each sub-cabinet may communicate directly with the server.
It should be understood that the intelligent cabinet shown in fig. 3 is only one example of the embodiment of the present invention, and the number and the type of the cabinets in the intelligent cabinet are not limited in the embodiment of the present invention, and the types or the number of the cabinets may be added or deleted according to actual requirements.
Taking a new cabinet as an example for explanation, fig. 4 is a flowchart of configuring an intelligent cabinet according to an embodiment of the present invention. In the embodiment shown in fig. 4, the configuration of the intelligent cabinet comprises the following steps:
and step S110, receiving configuration information.
In this embodiment, the server receives configuration information sent by the operating device, where the configuration information includes a unique identifier and a service type.
In an optional implementation manner, a user may scan the two-dimensional codes set on the intelligent cabinets through a user terminal to implement configuration of the intelligent cabinets, in the embodiment shown in fig. 3, two-dimensional codes are set on each cabinet in the intelligent cabinet, and each two-dimensional code is the same, and the user may scan any one of the two-dimensional codes. Specifically, the user enters the configuration interface through the APP or applet of the terminal device, as shown in fig. 5. And calling a camera to start scanning the two-dimensional code by clicking a 'click scanning site two-dimensional code' control. After the two-dimensional code is scanned, the unique identifier is obtained, and an input interface of the service type is entered, specifically as shown in fig. 6, a user may select the corresponding service type, or may manually input the service type. And after the operation is finished, the terminal sends the unique identifier and the service type to the server together.
In some embodiments, the configuration information further includes cabinet parameters. Therefore, the user also needs to input cabinet parameters on an input interface of the configuration information, wherein the cabinet parameters comprise information such as cabinet identification, communication address, cabinet grid number and cabinet grid number. Or when the newly added cabinet and the server belong to the same platform, the server stores the cabinet identifier and the corresponding cabinet parameter in advance, at the moment, the user only needs to input the cabinet identifier, and the server acquires the corresponding cabinet parameter according to the cabinet identifier. Or when the two-dimensional code or the bar code is arranged on the newly added cabinet, the two-dimensional code or the bar code on the scanning control scanning cabinet can be clicked to obtain the cabinet identifier.
It should be understood that the configuration manner of the intelligent cabinet listed above is only an example given by the embodiment of the present invention, and the embodiment of the present invention is not limited thereto, and the user terminal device may obtain the unique identifier, the service type, the cabinet parameter, and the like based on various existing manners.
In another alternative implementation, when the site is established, the server binds the main cabinet with the site, so that a user can add a new cabinet in the site through the operation component arranged on the main cabinet to realize the configuration of the intelligent cabinet.
Specifically, taking the intelligent cabinet shown in fig. 3 as an example for explanation, the user may add a new cabinet through the touch screen disposed on the takeaway access cabinet 31. And a user selects a related control configured by the intelligent cabinet through the touch screen, and the touch screen jumps to a configuration interface to enter an intelligent cabinet configuration flow. And adding the service type and the cabinet parameter through the configuration interface. The service type is used for representing the service type or the function supported by the cabinet, such as storing and/or taking, selling, displaying and the like. For example, when the existing takeaway access cabinet in the site cannot meet the requirement, if a takeaway access cabinet needs to be added in the site, a cabinet identifier is input on a configuration interface, and the service type is selected as the takeaway access cabinet. Meanwhile, the takeaway access cabinet 31 transmits the service type and the unique identifier input by the user to the server together through the communication component. The unique identification is a communication address of the communication assembly, or a prestored station identification, or a prestored locker identification, or a prestored two-dimensional code identification arranged on a smart locker.
And step S120, adding the service type to a service set corresponding to the unique identifier.
In this embodiment, when a site is established, a server binds a unique identifier with the site, and simultaneously establishes a service set corresponding to the site, where the service set includes one or more service types, and a service type in the service set is a service supported by the site. Therefore, when the configuration information is received, the corresponding service set can be obtained based on the unique identifier, and the service type is added to the service set.
And step S130, adding the corresponding relation between the unique identification and the service set to a database.
In this embodiment, the server adds the correspondence between the unique identifier and the service set to the database.
In particular, FIG. 7 is a schematic diagram of a database of an embodiment of the present invention. In the embodiment shown in fig. 7, the database comprises a plurality of unique identifiers corresponding to service sets, wherein a service combination comprises one or more service types. Specifically, fig. 7 shows three corresponding relationships, and the service set corresponding to the unique identifier ID001 includes takeout access, express access, and beverage selling. The service set corresponding to the unique identifier ID002 comprises takeout access, express access, beverage selling and medicine selling. The service set corresponding to the unique identification ID003 comprises takeout access, express access, drink selling, medicine selling and blind box selling.
Therefore, after the server receives the first service request, the corresponding service set can be obtained from the database.
Further, after the configuration is completed, when a user needs to use the intelligent cabinet, the unique identifier is sent to the server through the operating device, and after the server receives the unique identifier, the service set corresponding to the unique identifier is obtained according to the database and is issued to the operating device. The operation equipment displays the selection control of each service type, so that a user can select corresponding operation and send a corresponding operation request to the server through the operation equipment, and the server generates a control instruction for the intelligent cabinet according to the operation request and sends the control instruction to the intelligent cabinet so as to control the intelligent cabinet to execute the corresponding operation. Therefore, the intelligent cabinet can be managed through the server.
Specifically, fig. 8 is a flowchart of a control method of the intelligent cabinet according to the embodiment of the present invention. In the embodiment shown in fig. 8, the control method of the intelligent cabinet includes the following steps:
and step S201, acquiring the unique identifier.
In this embodiment, when the user needs to use the intelligent cabinet, the unique identifier of the station is obtained.
When the operating equipment is the user terminal, the two-dimensional code arranged on the intelligent cabinet is scanned through the user terminal, and the scanned two-dimensional code information is used as the unique identifier.
When the operating device is an operating component arranged on the intelligent cabinet, the two-dimensional code does not need to be scanned, and the operating component stores a unique identifier in advance, wherein the unique identifier can be a communication address of the intelligent cabinet, or a pre-stored station identifier, or a pre-stored locker identifier, or pre-stored two-dimensional code information and the like arranged on the intelligent cabinet.
Step S202, a first service request is sent.
In this embodiment, an operating device generates a first service request, where the first service request is used to request to acquire a service set.
Wherein the first service request comprises a unique identification.
And step S203, acquiring a service set.
In this embodiment, after receiving a first service request, a server parses the first service request, obtains a unique identifier in the first service request, and obtains a corresponding service set in a database according to the unique identifier.
Further, taking the database shown in fig. 7 as an example for explanation, assuming that the received unique identifier is ID002, the acquired service set includes takeout access, express access, beverage selling, and medicine selling.
And step S204, sending a service selection response.
In this embodiment, after acquiring the service set corresponding to the unique identifier, the server sends a service selection response to the operating device, where the service selection response includes the service set, so that the operating device displays a selection interface of a service type.
And step S205, displaying a selection interface.
In this embodiment, after receiving the service selection response, the operating device obtains a service set in the service selection response, and displays a selection interface of a service type in the service set.
Specifically, taking the database shown in fig. 7 as an example for explanation, assuming that the unique identifier is ID002, and correspondingly, the service set includes takeout access, express access, beverage selling, and medicine selling, the selection interface may be as shown in fig. 9. The selection interface shown in fig. 9 includes selection controls corresponding to take-out access, express access, drink sale, and medicine sale. Meanwhile, the take-out and express delivery controls respectively comprise take-out storage controls, take-out controls, express delivery storage controls and express delivery control controls.
Therefore, the user can select the corresponding service type through the selection interface.
In some embodiments, when the take away and/or express take control is clicked, the interface jumps to a take code input interface to cause the user to enter a take code.
In some embodiments, when a drink or drug vending control is clicked, the interface jumps to a product selection interface to cause the user to select a certain drink or a certain drug. And after the user finishes the commodity selection, the interface jumps to a payment interface so that the user can pay.
It should be understood that the selection interface shown in fig. 9 is only one example of the embodiment of the present invention, and the control of the selection interface is not limited by the embodiment of the present invention. For example, take-away and take-away may also be the same control "take-away" that, when clicked, enters a take-away or take-away selection interface for further selection by the user. Or, when the operating device is a user terminal, if the user logs in the account, whether the user is a rider or a meal ordering user can be judged through the account.
And step S206, sending a second service request.
In this embodiment, after the user selects the service type through the selection interface, the operation device takes the service type selected by the user as the target service type, and generates a second service request according to the target service type to send to the server.
Step S207, a control command is generated.
In this embodiment, after receiving the second service request, the server parses the second service request to obtain the target service type, and generates a corresponding control instruction.
For example, when the target business type is express deposit or take-out deposit, the server acquires an idle cabinet lattice in the express deposit cabinet or the take-out cabinet and generates an unlocking instruction of the cabinet lattice.
For another example, when the target service type is express pickup or takeout pickup, the second service request further includes a pickup code, and the server acquires the corresponding cabinet lattice according to the pickup code and generates a cabinet lattice unlocking instruction.
For another example, when the target business type is a drink, the server generates a release instruction of the drink, so that the drink selling cabinet releases the corresponding drink to the pickup bin.
And step S208, sending a control command.
In this embodiment, the server issues a control command.
In an optional implementation manner, the server may directly issue the control instruction to the corresponding cabinet. For example, when the target service type is express storage or express taking, the server issues the control command to the express storage cabinet. And when the target service type is a beverage, the server issues the control command to the beverage selling cabinet.
In another alternative implementation, the server may issue the control command to the main cabinet, and the control command is forwarded to the corresponding cabinet by the main cabinet. Taking the intelligent cabinet shown in fig. 3 as an example for explanation, the takeout access cabinet 31 is a main cabinet, and when the target service type is takeout or takeout, the server issues a control command to the takeout access cabinet 31. When the target service type is a blind box, the server issues the control command to the takeout access cabinet 31, and the control command is forwarded to the blind box cabinet 34 by the takeout access cabinet 31.
Step S209, an operation is performed.
In this embodiment, after the intelligent cabinet receives the control instruction, the corresponding operation is executed.
Furthermore, after the intelligent cabinet receives the control command, the cabinet grids are opened.
According to the method and the device, the service set corresponding to the unique identifier in the site is obtained and sent to the operation equipment for selection by the user, and the corresponding control instruction is generated according to the target service type selected by the user so as to control the intelligent cabinet to execute the corresponding operation. Therefore, the intelligent cabinets of different services in the site can be communicated, and service expansion is facilitated.
Fig. 10 is a flowchart of a method for controlling an intelligent cabinet of a server according to an embodiment of the present invention. In the embodiment shown in fig. 10, the intelligent cabinet control method includes the following steps:
step S310, receiving a first service request sent by an operating device, where the first service request includes a unique identifier, and the unique identifier is used to characterize a target site.
Step S320, obtaining a service set corresponding to the unique identifier, where the service set includes at least one service type.
Step S330, sending a service selection response to the operating device, so that the operating device displays a selection interface of a service type, where the service selection response includes the service set.
Step S340, receiving a second service request sent by the operating device, where the second service request includes a target service type.
And S350, generating a control instruction corresponding to the target service type and sending the control instruction to the intelligent cabinet so as to control the intelligent cabinet to execute corresponding operation.
In some embodiments, the method further comprises:
receiving configuration information, wherein the configuration information comprises a unique identifier and a service type;
adding the service type to a service set corresponding to the unique identifier; and
and adding the corresponding relation between the unique identification and the service set to a database.
In some embodiments, the acquiring the service set corresponding to the unique identifier specifically includes:
and acquiring a corresponding service set in the database according to the unique identifier.
In some embodiments, the configuration information further includes cabinet parameters;
wherein the generating a control instruction corresponding to the target service and sending the control instruction to the intelligent cabinet comprises:
acquiring cabinet parameters corresponding to the target service; and
and generating the control instruction according to the cabinet parameters.
In some embodiments, the unique identifier is two-dimensional code information set on the smart cabinet read by the operating device.
In some embodiments, the unique identifier is a smart cabinet identifier.
In some embodiments, the operating device is a user terminal.
In some embodiments, the operating device is an operating component of the intelligent cabinet.
In some embodiments, the intelligent cabinet comprises a main cabinet and a secondary cabinet, and the unique identifier is bound with the main cabinet.
In some embodiments, the type of transaction includes one or more of item access, item display, and item vending.
In some embodiments, the controlling the intelligent cabinet to execute the corresponding operation specifically includes:
and controlling the intelligent cabinet opening grids corresponding to the target service type.
According to the method and the device, the service set corresponding to the unique identifier in the site is obtained and sent to the operation equipment for selection by the user, and the corresponding control instruction is generated according to the target service type selected by the user so as to control the intelligent cabinet to execute the corresponding operation. Therefore, the intelligent cabinets of different services in the site can be communicated, and service expansion is facilitated.
Fig. 11 is a flowchart of an intelligent cabinet control method of an operating device according to an embodiment of the present invention. In the embodiment shown in fig. 11, the intelligent cabinet control method includes the following steps:
step S410, a first service request is sent to a server, where the first service request includes a unique identifier, so that the server obtains a service set corresponding to the unique identifier and generates a service selection response, where the service set includes at least one service type, and the service selection response includes the service set.
Step S420, in response to receiving the service selection response, displaying a selection interface, where the selection interface includes a selection control of each service type in the service set.
Step S430, responding to the triggering of the selection control, generating a second service request and sending the second service request to the server, wherein the second service request comprises a target service type, so that the server generates a control instruction corresponding to the target service type to control the intelligent cabinet to execute corresponding operation.
In some embodiments, the operating device is an operating component of an intelligent cabinet;
the operating equipment acquires the unique identifier through the following steps:
and acquiring the unique identifier from pre-stored data, wherein the unique identifier is a communication address of the intelligent cabinet, a site identifier, a locker identifier or two-dimensional code information arranged on the intelligent cabinet.
In some embodiments, the operating device is a user terminal;
the operating equipment acquires the unique identifier through the following steps:
and reading two-dimensional code information arranged on the intelligent cabinet to acquire the unique identifier.
In some embodiments, the method further comprises:
receiving configuration information input by a user, wherein the configuration information comprises a unique identifier and a service type; and
and sending the configuration information to a server.
In some embodiments, the controlling the intelligent cabinet to execute the corresponding operation specifically includes:
and controlling the intelligent cabinet opening grids corresponding to the target service type.
According to the method and the device, the service set corresponding to the unique identifier in the site is obtained and sent to the operation equipment for selection by the user, and the corresponding control instruction is generated according to the target service type selected by the user so as to control the intelligent cabinet to execute the corresponding operation. Therefore, the intelligent cabinets of different services in the site can be communicated, and service expansion is facilitated.
Fig. 12 is a schematic diagram of an intelligent cabinet control device of a server according to an embodiment of the present invention. In the embodiment shown in fig. 12, the intelligent cabinet control device includes a first service request receiving unit 121, a service set obtaining unit 122, a service selection response sending unit 123, a second service request receiving unit 124, and an intelligent cabinet control unit 125. The first service request receiving unit 121 is configured to receive a first service request sent by an operating device, where the first service request includes a unique identifier, and the unique identifier is used to characterize a target site. The service set obtaining unit 122 is configured to obtain a service set corresponding to the unique identifier, where the service set includes at least one service type. The service selection response sending unit 123 is configured to send a service selection response to the operating device, so that the operating device displays a selection interface of a service type, where the service selection response includes the service set. The second service request receiving unit 124 is configured to receive a second service request sent by the operating device, where the second service request includes a target service type. The intelligent cabinet control unit 125 is configured to generate a control instruction corresponding to the target service type and send the control instruction to the intelligent cabinet, so as to control the intelligent cabinet to execute a corresponding operation.
In some embodiments, the apparatus further comprises:
the device comprises a configuration information receiving unit, a configuration information processing unit and a service processing unit, wherein the configuration information receiving unit is used for receiving configuration information which comprises a unique identifier and a service type;
a service set updating unit, configured to add the service type to a service set corresponding to the unique identifier; and
and the database updating unit is used for adding the corresponding relation between the unique identifier and the service set to a database.
In some embodiments, the service set obtaining unit is specifically configured to:
and acquiring a corresponding service set in the database according to the unique identifier.
In some embodiments, the configuration information further includes cabinet parameters;
wherein, intelligence cabinet the control unit includes:
a cabinet parameter obtaining subunit, configured to obtain a cabinet parameter corresponding to the target service; and
and the control instruction generating subunit is used for generating the control instruction according to the cabinet parameters by English.
In some embodiments, the unique identifier is two-dimensional code information set on the smart cabinet read by the operating device.
In some embodiments, the unique identifier is a smart cabinet identifier.
In some embodiments, the operating device is a user terminal.
In some embodiments, the operating device is an operating component of the intelligent cabinet.
In some embodiments, the intelligent cabinet comprises a main cabinet and a secondary cabinet, and the unique identifier is bound with the main cabinet.
In some embodiments, the type of transaction includes one or more of item access, item display, and item vending.
In some embodiments, the smart cabinet control unit is specifically configured to:
and controlling the intelligent cabinet opening grids corresponding to the target service type.
According to the method and the device, the service set corresponding to the unique identifier in the site is obtained and sent to the operation equipment for selection by the user, and the corresponding control instruction is generated according to the target service type selected by the user so as to control the intelligent cabinet to execute the corresponding operation. Therefore, the intelligent cabinets of different services in the site can be communicated, and service expansion is facilitated.
Fig. 13 is a schematic diagram of an intelligent cabinet control apparatus for operating a device according to an embodiment of the present invention. In the embodiment shown in fig. 13, the intelligent cabinet control device includes a first service request transmitting unit 131, a selection interface presenting unit 132, and a second service request transmitting unit 133. The first service request sending unit 131 is configured to send a first service request to a server, where the first service request includes a unique identifier, so that the server obtains a service set corresponding to the unique identifier and generates a service selection response, where the service set includes at least one service type, and the service selection response includes the service set. The selection interface presentation unit 132 is configured to present a selection interface in response to receiving the service selection response, where the selection interface includes a selection control for each service type in the service set. The second service request sending unit 133 is configured to generate a second service request in response to the selection control being triggered, and send the second service request to the server, where the second service request includes a target service type, so that the server generates a control instruction corresponding to the target service type to control the intelligent cabinet to execute a corresponding operation.
In some embodiments, the operating device is an operating component of an intelligent cabinet;
wherein the apparatus further comprises:
the first unique identifier acquisition unit is used for acquiring the unique identifier from pre-stored data, wherein the unique identifier is a communication address of the intelligent cabinet, a site identifier, a locker identifier or two-dimensional code information arranged on the intelligent cabinet.
In some embodiments, the operating device is a user terminal;
wherein the apparatus further comprises:
and the second unique identifier acquisition unit is used for reading the two-dimensional code information arranged on the intelligent cabinet to acquire the unique identifier.
In some embodiments, the apparatus further comprises:
the system comprises a configuration information input unit, a service type input unit and a service identification unit, wherein the configuration information input unit is used for receiving configuration information input by a user, and the configuration information comprises a unique identification and a service type; and
and the configuration information sending unit is used for sending the configuration information to the server.
According to the method and the device, the service set corresponding to the unique identifier in the site is obtained and sent to the operation equipment for selection by the user, and the corresponding control instruction is generated according to the target service type selected by the user so as to control the intelligent cabinet to execute the corresponding operation. Therefore, the intelligent cabinets of different services in the site can be communicated, and service expansion is facilitated.
Fig. 14 is a schematic diagram of an electronic device of an embodiment of the invention. In this embodiment, the electronic device includes a server, a terminal, and the like. As shown in fig. 14, the electronic apparatus: includes at least one processor 141; and a memory 142 communicatively coupled to the at least one processor 141; and a communication component 143 communicatively coupled to the scanning device, the communication component 143 receiving and transmitting data under control of the processor 141; the memory 142 stores instructions executable by the at least one processor 141, and the instructions are executed by the at least one processor 141 to implement the intelligent cabinet control method.
Specifically, the electronic device includes: one or more processors 141 and a memory 142, with one processor 141 being an example in fig. 14. The processor 141 and the memory 142 may be connected by a bus or other means, and fig. 14 illustrates the connection by a bus as an example. Memory 142, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The processor 141 executes various functional applications and data processing of the device by running nonvolatile software programs, instructions, and modules stored in the memory 142, that is, implements the above-described intelligent cabinet control method.
The memory 142 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store a list of options, etc. Further, the memory 142 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 142 optionally includes memory located remotely from processor 141, which may be connected to an external device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in memory 142 and, when executed by the one or more processors 141, perform the intelligent cabinet control method of any of the method embodiments described above.
The product can execute the method provided by the embodiment of the application, has corresponding functional modules and beneficial effects of the execution method, and can refer to the method provided by the embodiment of the application without detailed technical details in the embodiment.
According to the method and the device, the service set corresponding to the unique identifier in the site is obtained and sent to the operation equipment for selection by the user, and the corresponding control instruction is generated according to the target service type selected by the user so as to control the intelligent cabinet to execute the corresponding operation. Therefore, the intelligent cabinets of different services in the site can be communicated, and service expansion is facilitated.
Embodiments of the present invention relate to a non-volatile storage medium for storing a computer-readable program for causing a computer to perform some or all of the above-described method embodiments.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.