Control method and device of intelligent cabinet
By receiving the unique identifier of the operating device to obtain the service set and generate control commands, the problem of the smart cabinet operating independently in different situations is solved, and the interoperability and service expansion of the smart cabinet are realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- RAJAX NETWORK &TECHNOLOGY (SHANGHAI) CO LTD
- Filing Date
- 2022-01-21
- Publication Date
- 2026-05-05
AI Technical Summary
Existing smart cabinets are usually independent of each other in different situations, making it impossible to achieve scenario interoperability and business expansion.
By receiving a unique identifier sent by the operating device, the corresponding service set is obtained, and control commands are generated to control the smart cabinet to perform operations, thereby enabling the interconnection of different services within the site.
It enables interconnection between smart cabinets for different services within the site, which is beneficial for business expansion.
Smart Images

Figure CN116386204B_ABST
Abstract
Description
[0001] This application is a divisional application of Chinese patent application filed on January 21, 2022, with application number 202210074235.X and invention title "Control Method and Device for Intelligent Cabinet". Technical Field
[0002] This invention relates to the field of smart cabinet technology, and in particular to a control method and device for a smart cabinet. Background Technology
[0003] Currently, smart lockers are frequently used in various settings, such as for food delivery, parcel pickup and drop-off, supermarket baggage storage, train station baggage storage, and vending machines (for drinks, medicine, blind boxes, etc.). However, smart lockers in different settings are usually independent of each other, and cannot achieve interoperability or business expansion. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a control method and device for smart cabinets, which enables smart cabinets for different services within a site to communicate with each other, which is beneficial for business expansion.
[0005] In a first aspect, embodiments of the present invention provide a control method for an intelligent cabinet, applicable to servers, the method comprising:
[0006] Receive a first service request sent by the operating device, the first service request including a unique identifier, the unique identifier being used to identify the target site;
[0007] Obtain the service set corresponding to the unique identifier, wherein the service set includes at least one service type;
[0008] Send a service selection response to the operating device so that the operating device displays a service type selection interface, the service selection response including the service set;
[0009] Receive a second service request sent by the operating device, the second service request including a target service type; and
[0010] The system generates control commands corresponding to the target service type and sends them to the smart cabinet to control the smart cabinet to perform the corresponding operations.
[0011] In some embodiments, the method further includes:
[0012] Receive configuration information, which includes a unique identifier and a service type;
[0013] Add the business type to the business set corresponding to the unique identifier; and
[0014] Add the mapping between the unique identifier and the business set to the database.
[0015] In some embodiments, obtaining the service set corresponding to the unique identifier specifically involves:
[0016] The corresponding business set is retrieved from the database based on the unique identifier.
[0017] In some embodiments, the configuration information further includes cabinet parameters;
[0018] The step of generating the control command corresponding to the target service and sending it to the smart cabinet includes:
[0019] Obtain the cabinet parameters corresponding to the target service; and
[0020] The control command is generated based on the cabinet parameters.
[0021] In some embodiments, the unique identifier is the QR code information set on the smart cabinet that is read by the operating device.
[0022] In some embodiments, the unique identifier is a smart cabinet identifier.
[0023] In some embodiments, the operating device is a user terminal.
[0024] In some embodiments, the operating device is the operating component of the smart cabinet.
[0025] In some embodiments, the smart cabinet includes a main cabinet and a secondary cabinet, and the unique identifier is bound to the main cabinet.
[0026] In some embodiments, the business type includes one or more of item storage, item display, and item sales.
[0027] In some embodiments, controlling the smart cabinet to perform the corresponding operation specifically includes:
[0028] Control the smart cabinet corresponding to the target service type to open the cabinet compartment.
[0029] Secondly, embodiments of the present invention provide a control method for an intelligent cabinet, applicable to operating equipment, the method comprising:
[0030] A first service request is sent to the server, the first service request including a unique identifier, so that the server obtains a service set corresponding to the unique identifier and generates a service selection response, the service set including at least one service type, and the service selection response including the service set;
[0031] In response to receiving the service selection response, a selection interface is displayed, the selection interface including selection controls for each service type in the service set; and
[0032] In response to the selection control being triggered, a second business request is generated and sent to the server. The second business request includes a target business type, so that the server generates a control instruction corresponding to the target business type to control the smart cabinet to perform the corresponding operation.
[0033] In some embodiments, the operating device is an operating component of a smart cabinet;
[0034] The operating device obtains its unique identifier through the following steps:
[0035] The unique identifier is obtained from the pre-stored data. The unique identifier is the communication address of the smart cabinet, the site identifier, the locker identifier, or the QR code information set on the smart cabinet.
[0036] In some embodiments, the operating device is a user terminal;
[0037] The operating device obtains its unique identifier through the following steps:
[0038] Read the QR code information set on the smart cabinet to obtain the unique identifier.
[0039] In some embodiments, the method further includes:
[0040] Receive configuration information input by the user, the configuration information including a unique identifier and a service type; and
[0041] Send the configuration information to the server.
[0042] In some embodiments, controlling the smart cabinet to perform the corresponding operation specifically includes:
[0043] Control the smart cabinet corresponding to the target service type to open the cabinet compartment.
[0044] Thirdly, embodiments of the present invention provide a control device for an intelligent cabinet, applicable to servers, the device comprising:
[0045] The first service request receiving unit is configured to receive a first service request sent by the operating device, wherein the first service request includes a unique identifier, and the unique identifier is used to identify the target site.
[0046] A service set acquisition unit is used to acquire a service set corresponding to the unique identifier, wherein the service set includes at least one service type;
[0047] A service selection response sending unit is used to send a service selection response to the operating device so that the operating device displays a service type selection interface, wherein the service selection response includes the service set;
[0048] The second service request receiving unit is configured to receive a second service request sent by the operating device, the second service request including a target service type; and
[0049] The smart cabinet control unit is used to generate control commands corresponding to the target service type and send them to the smart cabinet to control the smart cabinet to perform the corresponding operations.
[0050] In some embodiments, the apparatus further includes:
[0051] A configuration information receiving unit is used to receive configuration information, which includes a unique identifier and a service type.
[0052] A service set update unit is used to add the service type to the service set corresponding to the unique identifier; and
[0053] The database update unit is used to add the correspondence between the unique identifier and the business set to the database.
[0054] In some embodiments, the service set acquisition unit is specifically used for:
[0055] The corresponding business set is retrieved from the database based on the unique identifier.
[0056] In some embodiments, the configuration information further includes cabinet parameters;
[0057] The intelligent cabinet control unit includes:
[0058] A cabinet parameter acquisition subunit is used to acquire cabinet parameters corresponding to the target service; and
[0059] The control command generation subunit generates the control commands based on the cabinet parameters.
[0060] In some embodiments, the unique identifier is the QR code information set on the smart cabinet that is read by the operating device.
[0061] In some embodiments, the unique identifier is a smart cabinet identifier.
[0062] In some embodiments, the operating device is a user terminal.
[0063] In some embodiments, the operating device is the operating component of the smart cabinet.
[0064] In some embodiments, the smart cabinet includes a main cabinet and a secondary cabinet, and the unique identifier is bound to the main cabinet.
[0065] In some embodiments, the business type includes one or more of item storage, item display, and item sales.
[0066] In some embodiments, the intelligent cabinet control unit is specifically used for:
[0067] Control the smart cabinet corresponding to the target service type to open the cabinet compartment.
[0068] Fourthly, embodiments of the present invention provide a control device for an intelligent cabinet, suitable for operating equipment, the device comprising:
[0069] The first service request sending unit is configured to send a first service request to the server. 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. The service set includes at least one service type, and the service selection response includes the service set.
[0070] A selection interface display unit is configured to display a selection interface in response to receiving the service selection response, the selection interface including selection controls for each service type in the service set; and
[0071] The second service request sending unit is used to generate a second service request and send it to the server in response to the selection control being triggered. 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 smart cabinet to perform the corresponding operation.
[0072] In some embodiments, the operating device is an operating component of a smart cabinet;
[0073] The device further includes:
[0074] The first unique identifier acquisition unit is used to acquire the unique identifier from pre-stored data. The unique identifier is the communication address of the smart cabinet, the site identifier, the locker identifier, or the QR code information set on the smart cabinet.
[0075] In some embodiments, the operating device is a user terminal;
[0076] The device further includes:
[0077] The second unique identifier acquisition unit is used to read the QR code information set on the smart cabinet to obtain the unique identifier.
[0078] In some embodiments, the apparatus further includes:
[0079] A configuration information input unit is used to receive configuration information input by the user, the configuration information including a unique identifier and a service type; and
[0080] The configuration information sending unit is used to send the configuration information to the server.
[0081] Fifthly, embodiments of the present invention provide a computer-readable storage medium having stored computer program instructions thereon, which, when executed by a processor, implement the methods described in the first and second aspects.
[0082] In a sixth aspect, embodiments of the present invention provide an electronic device, including a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the methods as described in the first and second aspects.
[0083] The technical solution of this invention obtains a set of services corresponding to unique identifiers within a site and sends it to the operating device for user selection. Based on the user-selected target service type, a corresponding control command is generated to control the smart cabinet to perform the corresponding operation. This enables smart cabinets offering different services within the site to communicate with each other, facilitating service expansion. Attached Figure Description
[0084] The above and other objects, features and advantages of the present invention will become clearer from the following description of embodiments of the invention with reference to the accompanying drawings, in which:
[0085] Figure 1 This is a schematic diagram of the intelligent cabinet control system according to the first embodiment of the present invention;
[0086] Figure 2 This is a schematic diagram of the intelligent cabinet control system according to the second embodiment of the present invention;
[0087] Figure 3 This is a schematic diagram of the structure of the smart cabinet according to an embodiment of the present invention;
[0088] Figure 4 This is a flowchart illustrating the configuration of the intelligent cabinet according to an embodiment of the present invention;
[0089] Figure 5 This is a schematic diagram illustrating an example of the configuration interface of an embodiment of the present invention;
[0090] Figure 6 This is a schematic diagram of another example of the configuration interface of an embodiment of the present invention;
[0091] Figure 7 This is a schematic diagram of the database according to an embodiment of the present invention;
[0092] Figure 8 This is a flowchart of the control method for the intelligent cabinet according to an embodiment of the present invention;
[0093] Figure 9This is a schematic diagram of the selection interface according to an embodiment of the present invention;
[0094] Figure 10 This is a flowchart of a smart cabinet control method for a server according to an embodiment of the present invention;
[0095] Figure 11 This is a flowchart of the intelligent cabinet control method for the operating device according to an embodiment of the present invention;
[0096] Figure 12 This is a schematic diagram of the intelligent cabinet control device for the server according to an embodiment of the present invention;
[0097] Figure 13 This is a schematic diagram of the intelligent cabinet control device of the operating equipment according to an embodiment of the present invention;
[0098] Figure 14 This is a schematic diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0099] The present invention is described below based on embodiments, but the invention is not limited to these embodiments. In the detailed description of the invention below, certain specific details are described in detail. Those skilled in the art will fully understand the invention even without these details. To avoid obscuring the essence of the invention, well-known methods, processes, flows, elements, and circuits are not described in detail.
[0100] Furthermore, those skilled in the art should understand that the accompanying drawings provided herein are for illustrative purposes only and are not necessarily drawn to scale.
[0101] Unless the context explicitly requires it, words such as "including" or "contains" in the instruction manual should be interpreted as including rather than exclusive or exhaustive; that is, meaning "including but not limited to".
[0102] In the description of this invention, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this invention, unless otherwise stated, "a plurality of" means two or more.
[0103] Figure 1 This is a schematic diagram of the intelligent cabinet control system according to the first embodiment of the present invention. Figure 1 In the illustrated embodiment, the control system of the smart cabinet includes a server 1 and a smart cabinet 2. The server 1 can communicate with the smart cabinet 2 to exchange data.
[0104] In this embodiment, server 1 can be a standalone server or a server cluster consisting of multiple servers.
[0105] In this embodiment, the smart cabinet 2 is set up in a predetermined station, and it can be one or more of the following: takeaway cabinet, express delivery cabinet, storage cabinet, display cabinet, and vending cabinet.
[0106] Furthermore, at least one operating device is installed within the site. This operating device can be an independent device from the smart cabinets, communicating with each smart cabinet to exchange data. Alternatively, the operating device can be an operating component installed on the smart cabinet.
[0107] Specifically, the operating device includes at least a human-machine interface and communication components.
[0108] The human-computer interaction interface is used to enable human-computer interaction between users and the smart cabinet, to display relevant information to users, and to receive user input.
[0109] The communication component is used to communicate with other communication devices. For example, the communication component can communicate with the server, such as sending user input operations to the server, reporting the status of the smart cabinet to the server, and receiving control commands sent by the server.
[0110] Furthermore, the operating device has a unique identifier, which can be the communication address of the operating device or other unique sequences. This embodiment of the invention does not impose any restrictions on this.
[0111] Therefore, when a user needs to use the smart locker, they send a first service request to the server through the operating device. This first service request includes a unique identifier, which identifies the target site. Upon receiving the service request, the server retrieves the service set corresponding to the unique identifier based on the identifier and sends it to the operating device. This service set includes one or more service types, which are those supported by the smart locker. The operating device displays selection controls for each service type within each service set, allowing the user to select the corresponding target service type and generate a second service request, which is then sent to the server. The server generates control instructions for the smart locker based on the target service type in the second service request and sends them to the smart locker to control it to perform the corresponding operation. Thus, the smart locker can be managed through the server.
[0112] Figure 2 This is a schematic diagram of the intelligent cabinet control system according to the second embodiment of the present invention. Figure 2 In the illustrated embodiment, the control system of the smart cabinet includes a server 1, a smart cabinet 2, and a user terminal 3. The server 1 can communicate with the smart cabinet 2 and the user terminal 3 to exchange data.
[0113] In this embodiment, server 1 can be a standalone server or a server cluster consisting of multiple servers.
[0114] In this embodiment, the smart cabinet 2 is set up in a predetermined station, and it can be one or more of the following: takeaway cabinet, express delivery cabinet, storage cabinet, display cabinet, and vending cabinet.
[0115] Furthermore, the smart cabinet is equipped with machine-readable tags. Figure 2 In the illustrated embodiment, a machine-readable identifier, a QR code, is used as an example for explanation. However, this embodiment of the invention is not limited to this; any machine-readable tag can be applied to the technical solution of this embodiment. For example, a machine-readable tag can also be implemented using an NFC (Near Field Communication) tag. While QR codes or barcodes are read by scanning with a terminal device, NFC tags can be read by bringing a terminal device close to the recognition area.
[0116] Furthermore, the machine-readable tag carries a unique identifier.
[0117] The unique identifier can be a QR code. Specifically, the unique identifier is a sequence that a terminal can recognize when reading the QR code, such as a combination of numbers and / or letters. This sequence corresponds one-to-one with a site and / or smart locker, and the server pre-stores the correspondence. Alternatively, the unique identifier can be set to be the same as the site identifier and / or smart locker identifier to represent a unique site and / or smart locker.
[0118] It should be noted that, as mentioned above, smart cabinets may include a variety of different cabinets. In this embodiment of the invention, a smart cabinet refers to a combination of multiple cabinets within the same site.
[0119] In this embodiment, user terminal 3 is a terminal device used by the user.
[0120] Specifically, users scan the QR code on the smart locker using an app pre-installed on their user terminal to read the unique identifier carried by the machine-readable tag.
[0121] In one optional implementation, the pre-installed app is a dedicated app (application) corresponding to the smart locker. When a user scans the QR code using another app, the system checks whether the user has the dedicated app installed. If the dedicated app is installed, the user is redirected to that app; otherwise, they are redirected to the dedicated app download page for download.
[0122] In another alternative implementation, the pre-installed app can be any browser or other app with scanning controls, which automatically activates the smart cabinet management mini-program when the QR code is scanned.
[0123] Furthermore, the user terminal 3 includes at least a human-computer interaction interface and communication components.
[0124] The human-computer interaction interface is used to enable human-computer interaction between the user and the terminal, to display relevant information to the user, and to receive user input.
[0125] The communication component is used to communicate with other communication devices. For example, the communication component can communicate with a server, such as sending user input to the server or receiving data sent by the server.
[0126] Specifically, when a user needs to use the smart locker, they operate user terminal 3 to read the unique identifier in the QR code and generate a first service request, which is sent to the server. This first service request includes the unique identifier. Upon receiving the first service request, the server retrieves the service set corresponding to the unique identifier from the site and sends it to the user terminal. This service set includes one or more service types, which are those supported by the smart locker. The user terminal displays selection controls for each service type within each service set, allowing the user to select the desired service type and generate a second service request, which is then sent to the server. The server generates control instructions for the smart locker based on the desired service type in the second service request and sends them to the smart locker to control it to perform the corresponding operation. Thus, the smart locker can be managed through the server.
[0127] Furthermore, Figure 3 This is a structural schematic diagram of the intelligent cabinet according to an embodiment of the present invention. Figure 3 In the illustrated embodiment, the smart locker includes takeout locker 31, takeout locker 32, takeout locker 33, blind box locker 34, retail locker 35, and medicine locker 36 as an example. The compartments within each locker are numbered from 01 to 28.
[0128] The food delivery locker 31 includes a display screen (the black frame in the image) and multiple compartments. The display screen is used to show information to users, and the compartments are used to store and retrieve items.
[0129] In some embodiments, the display screen is a touch screen for human-computer interaction.
[0130] The food delivery lockers 32 and 33 include multiple compartments for storing and retrieving items.
[0131] Blind box cabinet 34 is used to sell blind boxes and has a retrieval slot at the bottom. Retail cabinet 35 is used to sell items such as beverages, food, daily necessities, and toys, and has a retrieval slot at the bottom. Medicine cabinet 36 is used to sell items and includes multiple compartments containing medicines.
[0132] Furthermore, the smart locker is equipped with a QR code carrying a unique identifier. This unique identifier is a sequence that a terminal can recognize when reading the QR code, such as a combination of numbers and / or letters. This sequence corresponds one-to-one with the site and / or smart locker, and the server pre-stores this correspondence. Alternatively, the unique identifier can be set to be the same as the site identifier and / or smart locker identifier, used to identify a unique site and / or smart locker.
[0133] As mentioned above, combined Figure 1 In the illustrated embodiment, at least one operating device is installed within the site. This operating device can be independent of the smart cabinet but is communicatively connected to it for data interaction. The operating device can be an operating component mounted on the smart cabinet.
[0134] Furthermore, in embodiments of the present invention, the smart cabinet can be divided into main cabinets and auxiliary cabinets, wherein the operating components are located on the main cabinet. Figure 3 Taking this as an example, the takeout storage locker 31 is the main locker, and the operating device is a display screen installed on the takeout storage locker 31. The display screen is a touch screen, allowing for human-computer interaction. Simultaneously, the operating device is communicatively connected to other lockers for data transmission. Takeout storage lockers 32 and 33, blind box lockers 34, retail lockers 35, and medicine lockers 36 are auxiliary lockers.
[0135] In one optional implementation, each secondary cabinet communicates with the server through the primary cabinet. That is, when a secondary cabinet needs to send data to or receive data from the server, it communicates through the primary cabinet.
[0136] In another alternative implementation, each sub-cabinet can communicate directly with the server.
[0137] It should be understood that Figure 3 The smart cabinet shown is only one example of an embodiment of the present invention. The embodiments of the present invention do not limit the number and type of cabinets in the smart cabinet, and the type or number of cabinets can be added or deleted according to actual needs.
[0138] Let's take the addition of a new cabinet as an example. Figure 4 This is a flowchart illustrating the configuration of the intelligent cabinet according to an embodiment of the present invention. Figure 4 In the illustrated embodiment, the configuration of the smart cabinet includes the following steps:
[0139] Step S110: Receive configuration information.
[0140] In this embodiment, the server receives configuration information sent by the operating device, the configuration information including a unique identifier and a service type.
[0141] In one optional implementation, users can scan a QR code on the smart locker using their user terminal to configure it. Figure 3 In the illustrated embodiment, each cabinet in the smart locker is equipped with an identical QR code, which the user can scan. Specifically, the user accesses the configuration interface via an app or mini-program on their terminal device, as shown below. Figure 5 As shown. Clicking the "Click to Scan Site QR Code" control invokes the camera to scan the QR code. Once the QR code is scanned, a unique identifier is obtained, and the user is directed to the business type input interface, as detailed below. Figure 6 As shown, users can select the corresponding service type or manually enter the service type. After the operation is completed, the terminal sends the unique identifier and service type to the server.
[0142] In some embodiments, the configuration information further includes cabinet parameters. Therefore, the user also needs to input the cabinet parameters into the configuration information input interface. These parameters include cabinet identifier, communication address, number of cabinet compartments, and compartment number. Alternatively, when the newly added cabinet and the server belong to the same platform, the server pre-stores the cabinet identifier and corresponding cabinet parameters. In this case, the user only needs to input the cabinet identifier, and the server retrieves the corresponding cabinet parameters based on the identifier. Alternatively, when the newly added cabinet has a QR code or barcode, the user can also click the scan control to scan the QR code or barcode on the cabinet to obtain the cabinet identifier.
[0143] It should be understood that the above-listed configuration methods of smart cabinets are merely examples given in the embodiments of the present invention, and the embodiments of the present invention do not limit them. User terminal devices can obtain unique identifiers, service types, and cabinet parameters based on various existing methods.
[0144] In another alternative implementation, when a site is established, the server binds the main cabinet to the site. This allows users to add new cabinets within the site via operating components set on the main cabinet, thus configuring the smart cabinet.
[0145] Specifically, with Figure 3Taking the smart locker shown as an example, users can add lockers via the touchscreen on the takeaway locker 31. Users select relevant controls for smart locker configuration via the touchscreen, which then redirects to the configuration interface, initiating the smart locker configuration process. The configuration interface allows users to add service types and locker parameters. The service type characterizes the types or functions supported by the locker, such as storage and / or retrieval, sales, and display. For example, if existing takeaway lockers at a site cannot meet the demand, and another locker needs to be added, the locker identifier is entered in the configuration interface, and the service type is selected as "takeaway locker." Simultaneously, the takeaway locker 31 sends the user-input service type and unique identifier to the server via a communication component. The unique identifier can be the communication address of the communication component, or a pre-stored site identifier, or a pre-stored locker identifier, or a pre-stored QR code identifier set on the smart locker, etc.
[0146] Step S120: Add the business type to the business set corresponding to the unique identifier.
[0147] In this embodiment, when a site is established, the server binds a unique identifier to the site and simultaneously establishes a service set corresponding to the site. The service set includes one or more service types, and these service types represent the services supported by the site. Therefore, when configuration information is received, the server can retrieve the corresponding service set based on the unique identifier and add the service types to the service set.
[0148] Step S130: Add the correspondence between the unique identifier and the service set to the database.
[0149] In this embodiment, the server adds the correspondence between the unique identifier and the service set to the database.
[0150] Specifically, Figure 7 This is a schematic diagram of the database according to an embodiment of the present invention. Figure 7 In the illustrated embodiment, the database includes a mapping between multiple unique identifiers and service sets, wherein each service set includes one or more service types. Specifically, Figure 7 Three correspondences are shown: the business set corresponding to unique identifier ID001 includes food delivery storage and pickup, express delivery storage and pickup, and beverage sales. The business set corresponding to unique identifier ID002 includes food delivery storage and pickup, express delivery storage and pickup, beverage sales, and medicine sales. The business set corresponding to unique identifier ID003 includes food delivery storage and pickup, express delivery storage and pickup, beverage sales, medicine sales, and blind box sales.
[0151] Therefore, when the server receives the first business request, it can retrieve the corresponding business set from the database.
[0152] Furthermore, after configuration, when a user needs to use the smart cabinet, they send a unique identifier to the server via the operating device. Upon receiving the unique identifier, the server retrieves the corresponding service set from the database and sends it to the operating device. The operating device displays selection controls for each service type, allowing the user to choose the corresponding operation and send an operation request to the server. The server generates control instructions for the smart cabinet based on the operation request and sends them to the smart cabinet to control it to perform the corresponding operation. Thus, the smart cabinet can be managed through the server.
[0153] Specifically, Figure 8 This is a flowchart of the control method for the intelligent cabinet according to an embodiment of the present invention. Figure 8 In the illustrated embodiment, the control method for the smart cabinet includes the following steps:
[0154] Step S201: Obtain a unique identifier.
[0155] In this embodiment, when a user needs to use the smart locker, the unique identifier of the station is obtained.
[0156] When the operating device is a user terminal, the user terminal scans the QR code set on the smart cabinet, and the scanned QR code information is used as a unique identifier.
[0157] When the operating device is an operating component installed on the smart cabinet, there is no need to scan the QR code. The operating component pre-stores a unique identifier, which can be the communication address of the smart cabinet, or a pre-stored station identifier, or a pre-stored locker identifier, or a pre-stored QR code information installed on the smart cabinet, etc.
[0158] Step S202: Send the first service request.
[0159] In this embodiment, the operating device generates a first service request, which is used to request the acquisition of a service set.
[0160] The first service request includes a unique identifier.
[0161] Step S203: Obtain the business set.
[0162] In this embodiment, after receiving the first service request, the server parses the first service request, obtains the unique identifier in the first service request, and retrieves the corresponding service set in the database based on the unique identifier.
[0163] Furthermore, with Figure 7 Taking the database shown as an example, assuming the received unique identifier is ID002, the obtained business set includes food delivery, express delivery, beverage sales, and medicine sales.
[0164] Step S204: Send the service selection response.
[0165] In this embodiment, after the server obtains the service set corresponding to the unique identifier, it sends a service selection response to the operating device. The service selection response includes the service set, so that the operating device can display a service type selection interface.
[0166] Step S205: Display the selection interface.
[0167] In this embodiment, after receiving the service selection response, the operating device obtains the service set in the service selection response and displays a selection interface for the service types in the service set.
[0168] Specifically, with Figure 7 Taking the database shown below as an example, assuming the unique identifier is ID002, and the corresponding business set includes food delivery, express delivery, beverage sales, and medicine sales, the selection interface can be as follows: Figure 9 As shown. In Figure 9 The selection interface shown includes selection controls for food delivery storage / retrieval, express delivery storage / retrieval, beverage sales, and medicine sales. Additionally, for food delivery and express delivery, there are controls for food delivery storage, food delivery retrieval, express delivery storage, and express delivery retrieval, respectively.
[0169] Therefore, users can select the corresponding service type through the selection interface.
[0170] In some embodiments, when the controls for food delivery pickup and / or courier pickup are clicked, the interface redirects to the pickup code input interface so that the user can enter the pickup code.
[0171] In some embodiments, when the control for selling beverages or medicines is clicked, the interface redirects to a product selection screen, allowing the user to choose a particular beverage or medicine. After the user completes their product selection, the interface redirects to a payment screen, allowing the user to make a payment.
[0172] It should be understood that Figure 9 The selection interface shown is merely an example of an embodiment of the present invention, and the present invention does not limit the controls on the selection interface. For example, takeout pickup and takeout storage can also be the same control, "Takeout". When the "Takeout" control is clicked, a selection interface for storing or picking up takeout is entered, allowing the user to make further choices. Alternatively, when the operating device is a user terminal, if the user is already logged into an account, the account can be used to determine whether the user is a delivery rider or a customer who placed the order.
[0173] Step S206: Send the second service request.
[0174] In this embodiment, after the user selects a service type through the selection interface, the operating device takes the selected service type as the target service type and generates a second service request based on the target service type and sends it to the server.
[0175] Step S207: Generate control commands.
[0176] In this embodiment, after receiving the second service request, the server parses the second service request to obtain the target service type and generates the corresponding control instructions.
[0177] For example, when the target business type is express delivery storage or food delivery storage, the server obtains an empty cabinet in the express delivery storage cabinet or food delivery storage cabinet and generates an unlocking command for that cabinet.
[0178] For example, when the target service type is express delivery pickup or takeout pickup, the second service request also includes a pickup code. The server obtains the corresponding cabinet based on the pickup code and generates a cabinet unlocking command.
[0179] For example, when the target business type is beverages, the server generates a release command for the beverages so that the beverage vending machine releases the corresponding beverages to the pickup warehouse.
[0180] Step S208: Send control command.
[0181] In this embodiment, the server issues control commands.
[0182] In one alternative implementation, the server can directly send control commands to the corresponding lockers. For example, when the target service type is parcel storage or retrieval, the server will send control commands to the parcel storage / retrieval lockers. When the target service type is beverages, the server will send control commands to the beverage vending machines.
[0183] In another alternative implementation, the server can send control commands to the master cabinet, which then forwards them to the corresponding cabinets. Figure 3 Taking the smart locker shown as an example, the takeout storage locker 31 is the main locker. When the target service type is takeout storage or takeout pickup, the server sends control commands to the takeout storage locker 31. When the target service type is blind boxes, the server sends control commands to the takeout storage locker 31, which then forwards them to the blind box locker 34.
[0184] Step S209: Perform the operation.
[0185] In this embodiment, after receiving the control command, the smart cabinet executes the corresponding operation.
[0186] Furthermore, after receiving a control command, the smart cabinet opens its compartments.
[0187] This invention, in its embodiments, obtains a set of services corresponding to unique identifiers within a site and sends it to the operating device for user selection. Based on the user's selected target service type, it generates corresponding control commands to control the smart cabinet to perform the corresponding operations. This enables smart cabinets offering different services within a site to communicate with each other, facilitating service expansion.
[0188] Figure 10 This is a flowchart of a smart cabinet control method for a server according to an embodiment of the present invention. Figure 10 In the illustrated embodiment, the intelligent cabinet control method includes the following steps:
[0189] Step S310: Receive a first service request sent by the operating device. The first service request includes a unique identifier, which is used to identify the target site.
[0190] Step S320: Obtain the service set corresponding to the unique identifier, wherein the service set includes at least one service type.
[0191] Step S330: Send a service selection response to the operating device so that the operating device displays a service type selection interface, wherein the service selection response includes the service set.
[0192] Step S340: Receive a second service request sent by the operating device, wherein the second service request includes a target service type.
[0193] Step S350: Generate control instructions corresponding to the target service type and send them to the smart cabinet to control the smart cabinet to perform the corresponding operation.
[0194] In some embodiments, the method further includes:
[0195] Receive configuration information, which includes a unique identifier and a service type;
[0196] Add the business type to the business set corresponding to the unique identifier; and
[0197] Add the mapping between the unique identifier and the business set to the database.
[0198] In some embodiments, obtaining the service set corresponding to the unique identifier specifically involves:
[0199] The corresponding business set is retrieved from the database based on the unique identifier.
[0200] In some embodiments, the configuration information further includes cabinet parameters;
[0201] The step of generating the control command corresponding to the target service and sending it to the smart cabinet includes:
[0202] Obtain the cabinet parameters corresponding to the target service; and
[0203] The control command is generated based on the cabinet parameters.
[0204] In some embodiments, the unique identifier is the QR code information set on the smart cabinet that is read by the operating device.
[0205] In some embodiments, the unique identifier is a smart cabinet identifier.
[0206] In some embodiments, the operating device is a user terminal.
[0207] In some embodiments, the operating device is the operating component of the smart cabinet.
[0208] In some embodiments, the smart cabinet includes a main cabinet and a secondary cabinet, and the unique identifier is bound to the main cabinet.
[0209] In some embodiments, the business type includes one or more of item storage, item display, and item sales.
[0210] In some embodiments, controlling the smart cabinet to perform the corresponding operation specifically includes:
[0211] Control the smart cabinet corresponding to the target service type to open the cabinet compartment.
[0212] This invention, in its embodiments, obtains a set of services corresponding to unique identifiers within a site and sends it to the operating device for user selection. Based on the user's selected target service type, it generates corresponding control commands to control the smart cabinet to perform the corresponding operations. This enables smart cabinets offering different services within a site to communicate with each other, facilitating service expansion.
[0213] Figure 11 This is a flowchart of the intelligent cabinet control method for the operating device according to an embodiment of the present invention. Figure 11 In the illustrated embodiment, the intelligent cabinet control method includes the following steps:
[0214] Step S410: Send a first service request to the server. 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. The service set includes at least one service type, and the service selection response includes the service set.
[0215] Step S420: In response to receiving the service selection response, display the selection interface, which includes selection controls for each service type in the service set.
[0216] Step S430: In response to the selection control being triggered, a second business request is generated and sent to the server. The second business request includes a target business type, so that the server generates a control instruction corresponding to the target business type to control the smart cabinet to perform the corresponding operation.
[0217] In some embodiments, the operating device is an operating component of a smart cabinet;
[0218] The operating device obtains its unique identifier through the following steps:
[0219] The unique identifier is obtained from the pre-stored data. The unique identifier is the communication address of the smart cabinet, the site identifier, the locker identifier, or the QR code information set on the smart cabinet.
[0220] In some embodiments, the operating device is a user terminal;
[0221] The operating device obtains its unique identifier through the following steps:
[0222] Read the QR code information set on the smart cabinet to obtain the unique identifier.
[0223] In some embodiments, the method further includes:
[0224] Receive configuration information input by the user, the configuration information including a unique identifier and a service type; and
[0225] Send the configuration information to the server.
[0226] In some embodiments, controlling the smart cabinet to perform the corresponding operation specifically includes:
[0227] Control the smart cabinet corresponding to the target service type to open the cabinet compartment.
[0228] This invention, in its embodiments, obtains a set of services corresponding to unique identifiers within a site and sends it to the operating device for user selection. Based on the user's selected target service type, it generates corresponding control commands to control the smart cabinet to perform the corresponding operations. This enables smart cabinets offering different services within a site to communicate with each other, facilitating service expansion.
[0229] Figure 12 This is a schematic diagram of the intelligent cabinet control device for a server according to an embodiment of the present invention. Figure 12In the illustrated embodiment, the smart cabinet control device includes a first service request receiving unit 121, a service set acquisition unit 122, a service selection response sending unit 123, a second service request receiving unit 124, and a smart cabinet control unit 125. The first service request receiving unit 121 receives a first service request sent by an operating device. The first service request includes a unique identifier, which identifies a target site. The service set acquisition unit 122 acquires a service set corresponding to the unique identifier, and the service set includes at least one service type. The service selection response sending unit 123 sends a service selection response to the operating device, causing the operating device to display a service type selection interface. The service selection response includes the service set. The second service request receiving unit 124 receives a second service request sent by the operating device, and the second service request includes a target service type. The smart cabinet control unit 125 generates a control command corresponding to the target service type and sends it to the smart cabinet to control the smart cabinet to perform the corresponding operation.
[0230] In some embodiments, the apparatus further includes:
[0231] A configuration information receiving unit is used to receive configuration information, which includes a unique identifier and a service type.
[0232] A service set update unit is used to add the service type to the service set corresponding to the unique identifier; and
[0233] The database update unit is used to add the correspondence between the unique identifier and the business set to the database.
[0234] In some embodiments, the service set acquisition unit is specifically used for:
[0235] The corresponding business set is retrieved from the database based on the unique identifier.
[0236] In some embodiments, the configuration information further includes cabinet parameters;
[0237] The intelligent cabinet control unit includes:
[0238] A cabinet parameter acquisition subunit is used to acquire cabinet parameters corresponding to the target service; and
[0239] The control command generation subunit generates the control commands based on the cabinet parameters.
[0240] In some embodiments, the unique identifier is the QR code information set on the smart cabinet that is read by the operating device.
[0241] In some embodiments, the unique identifier is a smart cabinet identifier.
[0242] In some embodiments, the operating device is a user terminal.
[0243] In some embodiments, the operating device is the operating component of the smart cabinet.
[0244] In some embodiments, the smart cabinet includes a main cabinet and a secondary cabinet, and the unique identifier is bound to the main cabinet.
[0245] In some embodiments, the business type includes one or more of item storage, item display, and item sales.
[0246] In some embodiments, the intelligent cabinet control unit is specifically used for:
[0247] Control the smart cabinet corresponding to the target service type to open the cabinet compartment.
[0248] This invention, in its embodiments, obtains a set of services corresponding to unique identifiers within a site and sends it to the operating device for user selection. Based on the user's selected target service type, it generates corresponding control commands to control the smart cabinet to perform the corresponding operations. This enables smart cabinets offering different services within a site to communicate with each other, facilitating service expansion.
[0249] Figure 13 This is a schematic diagram of the intelligent cabinet control device for the operating equipment according to an embodiment of the present invention. Figure 13 In the illustrated embodiment, the smart cabinet control device includes a first service request sending unit 131, a selection interface display unit 132, and a second service request sending unit 133. The first service request sending unit 131 sends a first service request to a server. The first service request includes a unique identifier, enabling the server to obtain a service set corresponding to the unique identifier and generate a service selection response. The service set includes at least one service type, and the service selection response includes the service set. The selection interface display unit 132 displays a selection interface in response to receiving the service selection response. The selection interface includes selection controls for each service type in the service set. The second service request sending unit 133 generates a second service request and sends it to the server in response to the selection controls being triggered. The second service request includes a target service type, enabling the server to generate a control command corresponding to the target service type to control the smart cabinet to perform the corresponding operation.
[0250] In some embodiments, the operating device is an operating component of a smart cabinet;
[0251] The device further includes:
[0252] The first unique identifier acquisition unit is used to acquire the unique identifier from pre-stored data. The unique identifier is the communication address of the smart cabinet, the site identifier, the locker identifier, or the QR code information set on the smart cabinet.
[0253] In some embodiments, the operating device is a user terminal;
[0254] The device further includes:
[0255] The second unique identifier acquisition unit is used to read the QR code information set on the smart cabinet to obtain the unique identifier.
[0256] In some embodiments, the apparatus further includes:
[0257] A configuration information input unit is used to receive configuration information input by the user, the configuration information including a unique identifier and a service type; and
[0258] The configuration information sending unit is used to send the configuration information to the server.
[0259] This invention, in its embodiments, obtains a set of services corresponding to unique identifiers within a site and sends it to the operating device for user selection. Based on the user's selected target service type, it generates corresponding control commands to control the smart cabinet to perform the corresponding operations. This enables smart cabinets offering different services within a site to communicate with each other, facilitating service expansion.
[0260] Figure 14 This is a schematic diagram of an electronic device according to an embodiment of the present invention. In this embodiment, the electronic device includes a server, a terminal, etc. Figure 14 As shown, the electronic device includes at least one processor 141; a memory 142 communicatively connected to at least one processor 141; and a communication component 143 communicatively connected to a scanning device, wherein the communication component 143 receives and transmits data under the control of the processor 141; wherein the memory 142 stores instructions executable by at least one processor 141, the instructions being executed by at least one processor 141 to implement the above-described intelligent cabinet control method.
[0261] Specifically, the electronic device includes: one or more processors 141 and a memory 142. Figure 14 Taking a processor 141 as an example, the processor 141 and the memory 142 can be connected via a bus or other means. Figure 14Taking a bus connection as an example, memory 142, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Processor 141 executes various functional applications and data processing of the device by running the non-volatile software programs, instructions, and modules stored in memory 142, thereby realizing the above-mentioned intelligent cabinet control method.
[0262] Memory 142 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and applications required for at least one function; the data storage area may store an option list, etc. Furthermore, memory 142 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 142 may optionally include memory remotely located relative to processor 141, and these remote memories may be connected to external devices via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0263] One or more modules are stored in memory 142, and when executed by one or more processors 141, they execute the intelligent cabinet control method in any of the above method embodiments.
[0264] The above-mentioned products can perform the methods provided in the embodiments of this application, and have the corresponding functional modules and beneficial effects of performing the methods. For technical details not described in detail in this embodiment, please refer to the methods provided in the embodiments of this application.
[0265] This invention, in its embodiments, obtains a set of services corresponding to unique identifiers within a site and sends it to the operating device for user selection. Based on the user's selected target service type, it generates corresponding control commands to control the smart cabinet to perform the corresponding operations. This enables smart cabinets offering different services within a site to communicate with each other, facilitating service expansion.
[0266] This invention relates to a non-volatile storage medium for storing a computer-readable program, which is used by a computer to execute some or all of the above-described method embodiments.
[0267] That is, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0268] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. For those skilled in the art, the present invention can be modified and varied in various ways. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of the present invention should be included within the scope of protection of the present invention.
Claims
1. A control method for an intelligent cabinet, applicable to servers, characterized in that, The method includes: The system receives a first service request sent by the operating device. The first service request includes a unique identifier, which is used to identify a target site. The target site includes one or more smart cabinets. The smart cabinets have the same or different service types. The smart cabinet includes a main cabinet and a secondary cabinet. The unique identifier is bound to the main cabinet. The main cabinet is used to relay communication data between the server and each secondary cabinet. Retrieve the business set corresponding to the unique identifier from the database. The database includes the correspondence between the unique identifier and the business set. The business set includes multiple business types. The business types in the business set are the business types supported by multiple smart lockers in the target site. The business types include one or more of item storage and retrieval, item display and item sales. The business set is updated by the server according to the addition or deletion operation of smart lockers in the target site. Send a service selection response to the operating device so that the operating device displays a service type selection interface, the service selection response including the service set; Receive a second service request sent by the operating device, the second service request including a target service type; and Generate control instructions corresponding to the target service type and send them to the smart cabinet to control the smart cabinet corresponding to the target service type to perform the corresponding operation; The method further includes: Receive configuration information, which includes a unique identifier and a service type; Add the business type to the business set corresponding to the unique identifier; and Add the mapping between the unique identifier and the business set to the database.
2. The method according to claim 1, characterized in that, The specific steps of obtaining the service set corresponding to the unique identifier are as follows: The corresponding business set is retrieved from the database based on the unique identifier.
3. The method according to claim 1, characterized in that, The configuration information also includes cabinet parameters; The step of generating the control command corresponding to the target service type and sending it to the smart cabinet includes: Obtain the cabinet parameters corresponding to the target service type; and The control command is generated based on the cabinet parameters.
4. The method according to claim 1, characterized in that, The unique identifier is the QR code information set on the smart cabinet that is read by the operating device.
5. The method according to claim 1, characterized in that, The unique identifier is the smart cabinet identifier.
6. The method according to claim 4, characterized in that, The operating device is a user terminal.
7. The method according to claim 5, characterized in that, The operating device is the operating component of the smart cabinet.
8. The method according to claim 1, characterized in that, Specifically, controlling the smart cabinet corresponding to the target service type to perform the corresponding operation is as follows: Control the smart cabinet corresponding to the target service type to open the cabinet compartment.
9. A control method for an intelligent cabinet, applicable to operating equipment, characterized in that, The method includes: A first service request is sent to the server. The first service request includes a unique identifier, enabling the server to obtain a service set corresponding to the unique identifier and generate a service selection response. The unique identifier is used to characterize a target site. The target site includes one or more smart cabinets. The smart cabinets may have the same or different service types. Each smart cabinet includes a main cabinet and a secondary cabinet. The unique identifier is bound to the main cabinet. The main cabinet is used to relay communication data between the server and each secondary cabinet. The server obtains a service set corresponding to the unique identifier from a database. The database includes a correspondence between unique identifiers and service sets. The service set includes multiple service types. The service types in the service set are services supported within the site. The service types include one or more of item storage and retrieval, item display, and item sales. The service set is updated by the server based on the addition or deletion of smart cabinets within the target site. The service selection response includes the service set. In response to receiving the service selection response, a selection interface is displayed, the selection interface including selection controls for each service type in the service set; and In response to the selection control being triggered, a second business request is generated and sent to the server. The second business request includes a target business type, so that the server generates a control instruction corresponding to the target business type to control the smart cabinet corresponding to the target business type to perform the corresponding operation. Receive configuration information input by the user, the configuration information including a unique identifier and a service type; and The configuration information is sent to the server so that the server updates the database according to the configuration information.
10. The method according to claim 9, characterized in that, The operating device is the operating component of the intelligent cabinet; The operating device obtains its unique identifier through the following steps: The unique identifier is obtained from the pre-stored data. The unique identifier is the communication address of the smart cabinet, the site identifier, the locker identifier, or the QR code information set on the smart cabinet.
11. The method according to claim 9, characterized in that, The operating device is a user terminal; The operating device obtains its unique identifier through the following steps: Read the QR code information set on the smart cabinet to obtain the unique identifier.
12. The method according to claim 9, characterized in that, Specifically, controlling the smart cabinet corresponding to the target service type to perform the corresponding operation is as follows: Control the smart cabinet corresponding to the target service type to open the cabinet compartment.
13. A control device for an intelligent cabinet, suitable for servers, characterized in that, The device includes: The first service request receiving unit is used to receive a first service request sent by the operating device. The first service request includes a unique identifier, which is used to identify a target site. The target site includes one or more smart cabinets. The smart cabinets have the same or different service types. The smart cabinet includes a main cabinet and a secondary cabinet. The unique identifier is bound to the main cabinet. The main cabinet is used to relay communication data between the server and each secondary cabinet. A business set acquisition unit is used to acquire a business set corresponding to the unique identifier from a database. The database includes a correspondence between unique identifiers and business sets. The business set includes multiple business types. The business types in the business set are business types supported by multiple smart lockers in the target site. The business types include one or more of item storage and retrieval, item display, and item sales. The business set is updated by the server according to the addition or deletion of smart lockers in the target site. A service selection response sending unit is used to send a service selection response to the operating device so that the operating device displays a service type selection interface, wherein the service selection response includes the service set; The second service request receiving unit is configured to receive a second service request sent by the operating device, the second service request including a target service type; and The smart cabinet control unit is used to generate control commands corresponding to the target service type and send them to the smart cabinet to control the smart cabinet corresponding to the target service type to perform the corresponding operation. A configuration information receiving unit is used to receive configuration information, which includes a unique identifier and a service type. A service set update unit is used to add the service type to the service set corresponding to the unique identifier; and The database update unit is used to add the correspondence between the unique identifier and the business set to the database.
14. A control device for an intelligent cabinet, suitable for operating equipment, characterized in that, The device includes: A first service request sending unit is configured to send a first service request to a server. The first service request includes a unique identifier, enabling the server to obtain a service set corresponding to the unique identifier and generate a service selection response. The unique identifier is used to characterize a target site. The target site includes one or more smart cabinets, and the smart cabinets may have the same or different service types. Each smart cabinet includes a main cabinet and a secondary cabinet. The unique identifier is bound to the main cabinet. The main cabinet is used to relay communication data between the server and each secondary cabinet. The server obtains a service set corresponding to the unique identifier from a database. The database includes a correspondence between unique identifiers and service sets. The service set includes multiple service types, and the service types in the service set are services supported within the site. The service types include one or more of item storage and retrieval, item display, and item sales. The service set is updated by the server based on the addition or deletion of smart cabinets within the target site. The service selection response includes the service set. A selection interface display unit is configured to display a selection interface in response to receiving the service selection response, the selection interface including selection controls for each service type in the service set; and The second service request sending unit is used to generate a second service request and send it to the server in response to the selection control being triggered. 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 smart cabinet corresponding to the target service type to perform the corresponding operation. A configuration information input unit is used to receive configuration information input by the user, the configuration information including a unique identifier and a service type; and A configuration information sending unit is used to send the configuration information to the server so that the server updates the database according to the configuration information.
15. A computer-readable storage medium storing computer program instructions thereon, characterized in that, The computer program instructions, when executed by a processor, implement the method as described in any one of claims 1-12.
16. An electronic device comprising a memory and a processor, characterized in that, The memory is used 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 as described in any one of claims 1-12.
Citation Information
Patent Citations
Object storing and sharing method and intelligent service system thereof
CN107545659A
Express delivery cabinet and express delivery cabinet management system
CN109785535A
Implementation method of multifunctional integrated teller machine and teller machine
CN111260843A
Cabinet function changing method and system, server and storage medium
CN111885156A