Offline storage and retrieval method and device for smart lockers
By establishing a short-distance communication connection between the smart cabinet and the mobile device, offline access parts can be implemented, and the problem that access parts cannot be realized in the offline state of the smart cabinet is solved, improving the efficiency of user access parts and saving labor costs.
Patent Information
- Application Number
- CN202110414287.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-10
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2040-12-10
AI Technical Summary
When the smart cabinet is offline or the mobile device has poor signal signal, the user's access operation will be seriously affected. The existing traditional solutions require maintenance personnel to be present for manual operations, which is time-consuming and labor-intensive and increases labor costs.
Offline access to the device is achieved by establishing a short-distance communication connection between the smart cabinet and the mobile device. The specific method includes generating a pickup code on the client side of the storage user and sending a pickup request to the smart cabinet through a short-distance communication connection. The smart cabinet performs a checksum operation based on the legality of the pickup code.
No maintenance personnel are required to be present for manual operations, saving time and effort, saving labor costs, improving user access efficiency, and ensuring the privacy and security of user information.
Smart Images

Figure CN113128636B_ABST
Abstract
Description
[0001] This application is a divisional application of the Chinese patent application filed with the China Patent Office on December 10, 2020, with application number 202011433056.8 and name “Offline Storage and Retrieval Method and Device for Smart Cabinet”. Technical Field
[0002] The present application relates to the field of information technology, and in particular to an offline storage and retrieval method and device for a smart cabinet. Background Art
[0003] With the rapid development of the Internet and the accelerated pace of people's lives, people have higher and higher requirements for express delivery services. Sometimes it is inconvenient for users to pick up parcels from the deliveryman in person, and the emergence of smart cabinets can effectively solve this problem. The deliveryman places the delivery parcel in the smart cabinet, and the user picks it up from the smart cabinet. When the smart cabinet is offline due to poor network or server failure, or when the user's mobile device has poor signal and cannot connect to the server, it will have a serious impact on the user's storage and retrieval of parcels.
[0004] In order to solve the problem that the smart cabinet cannot be accessed when it is offline, currently, administrator privileges can be set, and after logging in, the cabinet door can be opened by directly entering the cabinet number or by using a mechanical key for emergency. However, this traditional method requires maintenance personnel to be present for manual operation, which is time-consuming and labor-intensive and increases labor costs. It also takes a certain amount of time for maintenance personnel to go to the accident site, which in turn affects the efficiency of users accessing items. Summary of the invention
[0005] In view of this, the present application provides a method and device for offline storage and retrieval of items in a smart cabinet, the main purpose of which is to improve the traditional solution for storing and retrieving items in a smart cabinet in an offline state, which is time-consuming and labor-intensive, increases labor costs, and affects the efficiency of user storage and retrieval.
[0006] According to one aspect of the present application, a method for storing items offline in a smart cabinet is provided, which can be applied to a client side of a storage user, and the method includes:
[0007] In response to a storage instruction of the smart cabinet, sending a storage request to the smart cabinet through the established short-distance communication connection, so that the smart cabinet allocates an available cabinet slot;
[0008] Receiving a compartment identifier of the available compartment;
[0009] A pickup code is generated according to the cabinet identification and the storage timestamp.
[0010] According to another aspect of the present application, a method for picking up items offline in a smart cabinet is provided, which can be applied to a client side of a user who is picking up items. The method includes:
[0011] In response to the pickup instruction of the smart cabinet, a pickup request is sent to the smart cabinet through the established short-distance communication connection, wherein the pickup request carries a pickup code, so that the smart cabinet verifies the legitimacy of the pickup code according to the pickup timestamp;
[0012] The cabinet information of the pickup cabinet is received, where the cabinet information is obtained based on the pickup code when the smart cabinet determines that the pickup code is legal.
[0013] According to another aspect of the present application, an offline storage device of a smart cabinet is provided, which can be applied to a client side of a storage user, and the device includes:
[0014] A sending module, configured to respond to a storage instruction of the smart cabinet and send a storage request to the smart cabinet through an established short-distance communication connection, so that the smart cabinet allocates an available cabinet slot;
[0015] A receiving module, used for receiving a compartment identifier of the available compartment;
[0016] A generation module is used to generate a pickup code according to the cabinet identification and the storage timestamp.
[0017] According to another aspect of the present application, an offline pickup device for a smart cabinet is provided, which can be applied to a client side of a pickup user, and the device includes:
[0018] A sending module, configured to respond to a pickup instruction of a smart cabinet and send a pickup request to the smart cabinet through an established short-distance communication connection, wherein the pickup request carries a pickup code, so that the smart cabinet performs a validity check on the pickup code according to a pickup timestamp;
[0019] The receiving module is used to receive the cabinet information of the pickup cabinet, where the cabinet information is obtained based on the pickup code when the smart cabinet determines that the pickup code is legal.
[0020] According to another aspect of the present application, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned offline storage method of the smart cabinet applicable to the client side of the depositing user is implemented.
[0021] According to another aspect of the present application, a client device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein when the processor executes the computer program, the above-mentioned offline storage method of the smart cabinet that can be applied to the client side of the depositing user is implemented.
[0022] According to another aspect of the present application, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned method for picking up and storing items in a smart cabinet on the client side that can be applied to a user who picks up items is implemented.
[0023] According to another aspect of the present application, a client device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor. When the processor executes the computer program, the above-mentioned offline pickup method of the smart cabinet on the client side that can be applied to the user who picks up the items is implemented.
[0024] By means of the above technical solution, the present application provides a method and device for storing and retrieving items in a smart cabinet offline. Compared with the traditional solution for storing and retrieving items in a smart cabinet in an offline state, the present application can realize the storage and retrieval operation of the smart cabinet by establishing a short-distance communication connection between the mobile device client and the smart cabinet when the smart cabinet is in an offline state or the mobile device signal is poor and cannot communicate with the server. The generation of the pickup code in the offline state can be performed on the client side of the depositor to ensure the privacy and security of user information, and is equipped with a complete pickup usage plan for the pickup code in the offline state, thereby ensuring the smooth storage and retrieval of items in the smart cabinet in the offline state, without the need for maintenance personnel to be on site for manual operation, saving time and effort, saving labor costs, and thus improving the efficiency of user storage and retrieval.
[0025] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0027] Figure 1 A schematic diagram of a process of an offline storage method of a smart cabinet provided in an embodiment of the present application is shown;
[0028] Figure 2 A schematic diagram of a process of another offline storage method of a smart cabinet provided in an embodiment of the present application is shown;
[0029] Figure 3 A schematic diagram of a process of an offline pickup method of a smart cabinet provided in an embodiment of the present application is shown;
[0030] Figure 4 A schematic diagram of a process of another offline pickup method of a smart cabinet provided in an embodiment of the present application is shown;
[0031] Figure 5 An example schematic diagram of a smart cabinet structure provided by an embodiment of the present application is shown;
[0032] Figure 6 A schematic diagram of a process of an offline meal storage example provided in an embodiment of the present application is shown;
[0033] Figure 7 A schematic diagram of a process of an offline meal pickup example provided in an embodiment of the present application is shown;
[0034] Figure 8 A schematic diagram of the structure of an offline storage device of a smart cabinet provided in an embodiment of the present application is shown;
[0035] Fig. 9 A schematic structural diagram of an offline retrieval device for a smart cabinet provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0036] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
[0037] In order to improve the current traditional solution of storing and retrieving items in smart cabinets in an offline state, which is time-consuming and labor-intensive, increases labor costs, and affects the efficiency of user storage and retrieval, this embodiment provides an offline storage method for smart cabinets, such as Figure 1 As shown, it can be applied to the client side of the depositor, and the method includes:
[0038] Step 101: The client responds to the storage instruction of the smart cabinet and sends a storage request to the smart cabinet through the established short-distance communication connection, so that the smart cabinet allocates an available cabinet slot.
[0039] Among them, short-distance communication connection may include wireless Internet access (WIREless-FIdelity, WiFi), Bluetooth, ZigBee technology, Near Field Communication (NFC), Ultra Wideband (UWB), etc. It should be noted that in order to achieve short-distance communication connection, the corresponding communication module, such as Bluetooth module, NFC module, etc., needs to be pre-configured on the smart cabinet side, and then the short-distance communication connection with the smart cabinet is achieved through the communication module. The smart cabinet in this embodiment can be used to store and retrieve food or items, etc., specifically, it can be a take-out cabinet or a courier cabinet, etc.
[0040] The executor of the offline storage method embodiment may be the client device of the storage user, for example, an application (Application, APP) with logistics storage function installed on smart terminals such as smartphones and tablet computers, or a mini-program, or a public account, or a WEB application, etc.
[0041] For ease of understanding, this embodiment can be mainly explained with the user's smartphone client as the execution subject. The user can find the smart cabinet through the mobile client and input the storage instruction to trigger the sending of the corresponding storage request. There are multiple optional forms for inputting the storage instruction. For example, the user who wants to deposit can scan the identification code (such as a one-dimensional barcode, a two-dimensional code or a multi-dimensional barcode, etc.) on the smart cabinet through the mobile phone APP, and then input the storage instruction so as to send the corresponding storage request through the network request; the user who wants to deposit can also find the current smart cabinet according to the location of the smart cabinet through the mobile phone applet, and can input the storage instruction after having certain operation permissions of the smart cabinet, and then send the corresponding storage request.
[0042] Each compartment of the smart cabinet can be used to store items or food, etc. In this embodiment, the short-distance communication connection function of the smart cabinet can be turned on by default, or this function can be turned on when it is detected that the smart cabinet cannot communicate with the server (such as the signal is lower than a certain threshold). After establishing the short-distance communication connection, the client can send a storage request to the main control device of the smart cabinet through the established connection. Due to the clear directionality of access, the storage request may not carry the identification information of the smart cabinet. The storage request may carry the user information of the depositing user, so that the smart cabinet can perform permission authentication based on the user information. After the authentication is passed, an available cabinet is assigned to it by default for storage. The main control device of the smart cabinet can return the cabinet identification of the allocated available cabinet (such as the cabinet number, the number of the cabinet body, the row / column in the cabinet, etc.) to the client through the established short-distance communication connection.
[0043] Step 102: The client receives the compartment identifier of the available compartment allocated by the smart cabinet.
[0044] Step 103: Generate a pickup code according to the compartment identifier of the available compartment allocated by the smart cabinet and the storage timestamp.
[0045] The storage timestamp can be the timestamp corresponding to the current storage operation. This embodiment can generate a pickup code on the client side of the deposit user to avoid the risk of information leakage caused by the generation of the pickup code by the smart cabinet side, and ensure the security of the smart cabinet logistics storage. Considering that there may be a need for offline pickup in the future, this embodiment can generate the pickup code based on the cabinet identification and storage timestamp of the available cabinet assigned by the smart cabinet, where the cabinet identification is used for the smart cabinet to identify the target cabinet for pickup in the offline state, and the storage timestamp can be used to verify the timeliness of the pickup, and in order to ensure the security of this information, the information encryption process can be accompanied when the pickup code is generated.
[0046] After the pickup code is generated, the pickup user can use the pickup code to perform the corresponding pickup operation in the smart cabinet, thereby realizing the complete storage and retrieval process of the smart cabinet in an offline state.
[0047] The offline storage method of the smart cabinet provided by this embodiment can be applied to the client side of the storage user. Compared with the traditional solution of storing items in the smart cabinet in the offline state, this embodiment can realize the storage operation of the smart cabinet by establishing a short-distance communication connection between the mobile device client and the smart cabinet when the smart cabinet is in the offline state or the mobile device signal is poor and cannot communicate with the server. The generation of the pickup code in the offline state can be performed on the client side of the storage user, which ensures the privacy and security of user information, and can ensure the smooth storage of items in the smart cabinet in the offline state. There is no need for maintenance personnel to be present for manual operation, which saves time and effort, saves labor costs, and thus improves the efficiency of user storage.
[0048] Further, as a refinement and extension of the specific implementation of the above embodiment, this embodiment provides another offline storage method of a smart cabinet that can be applied to the storage user client side, taking the short-distance communication connection as a Bluetooth connection as an example, such as Figure 2 As shown, the method includes:
[0049] Step 201: The client responds to the storage instruction of the smart cabinet.
[0050] Step 202a: output a prompt message for establishing a short-distance communication connection with the smart cabinet, and in response to an instruction to confirm the short-distance communication connection, send a storage request to the smart cabinet through the established short-distance communication connection.
[0051] In this embodiment, when the user triggers the storage, a prompt can be actively provided to establish a short-distance communication connection with the smart cabinet, and then a storage request can be sent to the smart cabinet through the established short-distance communication connection, so that the user can clearly understand that the storage operation of the smart cabinet can also be realized by using the short-distance communication connection to meet more needs. In addition, intelligent judgment can also be performed, such as when the client responds to the storage instruction of the smart cabinet, if it cannot communicate with the server or determines that the smart cabinet is offline, a prompt message for establishing a short-distance communication connection with the smart cabinet is output.
[0052] In this embodiment, the server may be an online cloud-side background, and each time a storage request is sent to the server, the identification information of the smart cabinet (such as name, ID number, etc.) may be carried, so as to inform the background server of the target smart cabinet for storage. If the signal of the smart phone is less than a certain threshold, or if no response information is received from the server for a long time after sending a storage request to the server, it can be determined that the server cannot communicate. If after sending a storage request, a message is received from the server informing that the smart cabinet has no response, it can be determined that the smart cabinet is offline. When it is determined that the client and the server cannot communicate or the smart cabinet is offline, a prompt message can be triggered to output, suggesting that the user who stores the item use a short-distance communication connection to operate the storage. The prompt information is specifically text, picture, audio, video, light, vibration and other prompt information.
[0053] In order to accurately determine whether the smart cabinet is in an offline state, optionally, in response to the storage instruction of the smart cabinet, it may specifically include: the client sends a storage request of the smart cabinet to the server; receives the offline status information of the smart cabinet, which is sent when the server cannot communicate with the smart cabinet; and then determines that the smart cabinet is in an offline state according to the offline status information. For example, the server instructs the corresponding smart cabinet to allocate available cabinets according to the storage request sent by the client. If the server cannot communicate with the smart cabinet, the offline status information of the smart cabinet may be sent to the client, so that the client determines that the smart cabinet is in an offline state.
[0054] For the sake of convenience, the following description uses the short-range communication connection as a Bluetooth connection:
[0055] In order to realize the automatic storage operation process, if the user sets up the confirmation-free Bluetooth connection for storage in advance, or the system defaults to the confirmation-free setting, when receiving the storage instruction of the smart cabinet and determining that it cannot communicate with the server or that the smart cabinet is offline, there is no need to output the prompt information for Bluetooth connection with the smart cabinet, and directly establish a Bluetooth connection with the Bluetooth Low Energy (BLE) module of the smart cabinet, and then send a storage request to the smart cabinet. Through this optional method, the user who stores the items can store items with one click in the offline state, so that the user is not aware of it, which improves the efficiency of the user's storage.
[0056] In response to the instruction to confirm the Bluetooth connection, the client establishes a Bluetooth connection with the BLE Bluetooth module of the smart cabinet, and sends a storage request to the smart cabinet through the established Bluetooth connection.
[0057] Furthermore, the smart cabinet can allocate available cabinets. The deposit request can also carry the requirement information for the cabinets to be allocated (such as the requirement information that can be set in advance by the depositing user, or the client side analyzes the requirement information based on the order information to be deposited, etc.), such as the number of cabinets to be allocated and the size of the cabinet openings, etc., and then the smart cabinet can allocate suitable available cabinets according to the requirement information.
[0058] For the number of communication links that the BLE Bluetooth chip supports at the same time, there is sometimes a certain number limit. Therefore, in order to facilitate more users to perform offline storage operations on the same smart cabinet, optionally, after establishing a Bluetooth connection with the BLE Bluetooth module of the smart cabinet, the method of this embodiment may also include: if no operation instructions for the smart cabinet are received within a preset time or it is determined that the storage has been completed, then disconnect the Bluetooth connection with the BLE Bluetooth module. Disconnecting the Bluetooth connection can be initiated by the client side, or actively initiated by the smart cabinet side, etc. For example, after the smart cabinet allocates available cabinets, it can trigger the opening of the corresponding cabinet door. After the cabinet door is closed, and when the sensor detects that there are items in the cabinet, it can be considered that the storage has been completed, and the relevant information is fed back to the client through the Bluetooth connection, and the smart cabinet side actively disconnects the Bluetooth connection, or the client side disconnects the Bluetooth connection after determining that the storage is successful based on the feedback information. In addition, if the user does not operate the smart cabinet for a long time after the Bluetooth connection is successful, the BLE module or the client can actively disconnect the Bluetooth connection to free up the Bluetooth communication link for other users.
[0059] Step 202b parallel to step 202a: if communication with the server is impossible or the smart cabinet is determined to be offline, a storage request is sent to the smart cabinet through the established short-distance communication connection.
[0060] For example, in response to a smart cabinet's storage instruction, if it is unable to communicate with the server or determines that the smart cabinet is offline, a storage request is automatically sent to the smart cabinet through the established short-distance communication connection, so that the user is unaware of the use of the short-distance communication connection to store items. This allows the user to quickly complete the storage operation even when the mobile phone has no network or the smart cabinet is offline, thereby enabling the user to store items through an intelligent switching link without being aware of the user, thereby ensuring the timeliness and success rate of the storage.
[0061] Step 203: Receive the compartment identifier of the available compartment allocated by the smart cabinet through the established short-distance communication connection.
[0062] For example, the client receives the compartment identifier of the available compartment assigned by the smart cabinet through the established Bluetooth connection.
[0063] Step 204: Obtain the encryption key corresponding to the smart cabinet.
[0064] In this embodiment, each smart cabinet may correspond to an encryption key, and the encryption key of each smart cabinet is different, which is used to distinguish each smart cabinet. For the encryption key corresponding to the current smart cabinet, the client can obtain it from the smart cabinet side through Bluetooth connection, or obtain it through query of the server, etc.
[0065] Step 205: Based on the cabinet identification and storage timestamp of the available cabinet allocated by the smart cabinet, encryption processing is performed using the obtained encryption key, and the encrypted data is converted into a pickup code that conforms to a preset format.
[0066] Among them, the preset format can be a standard format of the pickup code set in advance, such as an 8-digit pure digital pickup code, a 10-digit pickup code with numbers and letters, etc. This embodiment is based on the cabinet identification of the available cabinet assigned by the smart cabinet and the storage timestamp, and uses the unique encryption key corresponding to the smart cabinet for encryption processing, so as to facilitate the subsequent smart cabinet to verify the legitimacy of the pickup code in an offline state. For example, using a unique encryption password, encryption processing is performed according to the pickup timestamp. If the pickup code has not timed out and expired, then the pickup timestamp and the storage timestamp can maintain the same accuracy during the encryption process, and the encryption code of the pickup timestamp and the encryption code of the storage timestamp will also be consistent, thereby determining that the pickup code is legal; if the pickup code times out (the same accuracy cannot be guaranteed during the encryption process), or the pickup code is encrypted using the encryption code of another smart cabinet (not the current smart cabinet), then the encryption code of the pickup timestamp and the encryption code of the storage timestamp will be inconsistent, thereby determining that the pickup code is illegal. Through this optional method, a pickup code is generated on the client side of the depositing user in an offline state, avoiding the risk of information leakage caused by the pickup code generated by the smart cabinet side, and ensuring the security of the smart cabinet logistics storage; and accurate security verification can also be performed during offline pickup to ensure the safety of items stored in the smart cabinet.
[0067] Exemplarily, step 205 may specifically include: converting the cabinet identification into a first part of data according to a preset base; encrypting the storage timestamp using an encryption key, and converting the encrypted data into a second part of data according to a preset base; combining the first part of data and the second part of data to obtain a pickup code.
[0068] The preset system can be pre-configured according to actual needs. For example, the preset system can be hexadecimal, and accordingly, the meal pick-up code can be composed of 6 hexadecimal digits (0-9, A~F), a total of 3 bytes, divided into two parts a and b: a. Cabinet number: represented by the first byte, the cabinet number ranges from 1 to 255; b. Encryption number: represented by the last two bytes, the encryption number is obtained by encrypting the timestamp of the depositor and a set of keys through an encryption algorithm (such as sm3, etc.). The encrypted timestamp can be adjusted to minutes, hours, or days according to specific business needs.
[0069] Further optionally, the second part of the data can be used to verify the legitimacy of the pickup code when the smart cabinet is offline for pickup, and the first part of the data can be used to identify the cabinet corresponding to the pickup code when the smart cabinet is offline for pickup.
[0070] For example, if the time is accurate to the hour, 2020-10-09 15:xx:xx, then the extracted time-related information is 20201009150000, and the encrypted number with the key information of the smart cabinet is 3688 (0E68 in hexadecimal), and the cabinet number is 15 (0F in hexadecimal), then the pickup code is 0F0E68. When the pickup code is used to pick up items from the smart cabinet later, the smart cabinet will first verify whether 0E68 is legal after receiving the pickup code 0F0E68. If 0E68 is legal, it will operate cabinet 0F (15) and then open the door of cabinet 15. Through this optional method, accurate smart cabinet storage and retrieval operations can be realized in an offline state, ensuring the safety of items stored in the smart cabinet.
[0071] After step 205, the generated pickup code is sent to the pickup user according to the user information of the pickup user; or, the pickup code is sent to the pickup user client through the server, and the operation record of the smart cabinet is uploaded to the server. For example, the depositing user can copy the pickup code according to the mobile phone number of the pickup user and send the pickup code to the pickup user through short messages, instant messaging tools, etc., so that the pickup user can use the pickup code to pick up the item in front of the same smart cabinet. Or when the mobile phone signal is good, the pickup code and the operation record of the smart cabinet are uploaded to the server, and the server queries the corresponding pickup user according to the operation record and sends the pickup code to the pickup user.
[0072] Compared with the traditional solution of storing items in smart cabinets in offline state, the solution of this embodiment can realize the storage operation of smart cabinets by establishing a short-distance communication connection between the mobile device client and the smart cabinet when the smart cabinet is offline or the mobile device signal is poor and cannot communicate with the server. The generation of the pickup code in offline state can be executed on the client side of the deposit user, which ensures the privacy and security of user information, and can ensure the smooth storage of items in smart cabinets in offline state, without the need for maintenance personnel to be present for manual operation, saving time and effort, saving labor costs, and thus improving the efficiency of user storage.
[0073] The above embodiment describes the offline storage operation process of the smart cabinet on the client side of the depositor. Furthermore, in order to fully illustrate the implementation method of this embodiment, this embodiment also provides an offline retrieval method for the smart cabinet, which can be applied to the client side of the retrieval user. It should be noted that the offline retrieval method can be combined with the above offline storage method to realize the complete storage and retrieval process of the smart cabinet in the offline state, or it can be split according to the actual scene and then realized separately (such as storing in the offline state + retrieving in the online state, or storing in the online state + retrieving in the offline state, etc.). Figure 3 As shown, the offline pickup method specifically includes:
[0074] Step 301: The client responds to the pickup instruction of the smart cabinet and sends a pickup request to the smart cabinet through the established short-distance communication connection.
[0075] The execution subject of the offline pickup method embodiment may be the client device of the pickup user, for example, an APP with a logistics pickup function installed on a smart terminal such as a smart phone or tablet computer, or a mini program, or a public account, or a WEB application, etc. For another example, the client device may also be configured on the smart cabinet side, such as a control screen or control device of the smart cabinet, and the user enters the pickup instruction by entering the pickup on the control screen.
[0076] For ease of understanding, this embodiment can be mainly explained with the user's smartphone client as the execution subject. The user can find the smart cabinet through the mobile client and input the pickup instruction to trigger the sending of the corresponding pickup request. There are multiple optional forms for inputting the pickup instruction. For example, the user who is to pick up the item can scan the identification code (such as a one-dimensional barcode, a two-dimensional code or a multi-dimensional barcode, etc.) on the smart cabinet through the mobile phone APP, and then input the pickup instruction, and send the corresponding pickup request through the network request; the user who is to pick up the item can also find the current smart cabinet according to the location of the smart cabinet through the mobile phone applet, and can enter the pickup instruction (such as entering the pickup code when picking up the item) after having certain operation permissions of the smart cabinet, and then send the corresponding pickup request.
[0077] Among them, the pickup request carries a pickup code, and further, the smart cabinet verifies the legitimacy of the pickup code according to the pickup timestamp. The pickup timestamp can be the timestamp corresponding to the current pickup operation. In this embodiment, the pickup code can be generated on the client side of the deposit user, avoiding the hidden danger of information leakage caused by the generation of the pickup code on the smart cabinet side, and ensuring the security of the logistics storage of the smart cabinet. Considering that there may be a need for offline pickup in the future, this embodiment can generate the pickup code based on the cabinet identification and storage timestamp of the available cabinet assigned by the smart cabinet, wherein the cabinet identification is used for the smart cabinet to identify the target cabinet for pickup in the offline state, and the storage timestamp can be used to verify the timeliness of the pickup, and in order to ensure the security of this information, the information encryption process can be included when the pickup code is generated. After the pickup code is generated, the pickup user can use the pickup code to implement the corresponding pickup operation in the smart cabinet, thereby realizing the complete storage and retrieval process of the smart cabinet in the offline state.
[0078] Step 302: The client receives the cabinet information of the pickup cabinet.
[0079] The received cabinet information is obtained when the smart cabinet determines that the pickup code is legal based on the pickup code. The cabinet information may include cabinet identification, cabinet location, cabinet size and other information.
[0080] The offline pickup method of the smart cabinet provided in this embodiment can be applied to the client side of the pickup user. Compared with the current traditional solution of picking up items from the smart cabinet in an offline state, this embodiment can achieve the pickup operation of the smart cabinet by establishing a short-distance communication connection between the mobile device client and the smart cabinet when the smart cabinet is in an offline state or the mobile device signal is poor and cannot communicate with the server. The generation of the pickup code in the offline state can be performed on the client side of the deposit user to ensure the privacy and security of user information, and it is equipped with a complete pickup usage plan for the pickup code in the offline state, thereby ensuring the smooth pickup of the smart cabinet in the offline state, without the need for maintenance personnel to be on site for manual operation, saving time and effort, saving labor costs, and thus improving the efficiency of user pickup.
[0081] Further, as a refinement and extension of the specific implementation of the above embodiment, this embodiment provides another offline pickup method of a smart cabinet that can be applied to the pickup user client side, taking the short-range communication connection as a Bluetooth connection as an example, such as Figure 4 As shown, the method includes:
[0082] Step 401: The client responds to the pickup instruction of the smart cabinet.
[0083] Step 402a: output a prompt message for establishing a short-distance communication connection with the smart cabinet, and in response to an instruction to confirm the short-distance communication connection, send a pickup request to the smart cabinet through the established short-distance communication connection.
[0084] In this embodiment, when the user triggers the pickup, a prompt can be actively provided to establish a short-distance communication connection with the smart cabinet, and then a pickup request can be sent to the smart cabinet through the established short-distance communication connection, so that the user can clearly understand that the smart cabinet pickup operation can also be implemented using the short-distance communication connection to meet more needs. In addition, intelligent judgment can also be performed, such as when the client responds to the pickup instruction of the smart cabinet, if the client cannot communicate with the server or determines that the smart cabinet is offline, a prompt message for establishing a short-distance communication connection with the smart cabinet is output.
[0085] If the smartphone signal is less than a certain threshold, or if no response information is received from the server after sending a pickup request to the server for a long time, it can be determined that there is no communication with the server. If after sending a pickup request, a message is received from the server informing that the smart cabinet has no response, it can be determined that the smart cabinet is offline. When it is determined that the client and the server cannot communicate or the smart cabinet is offline, a prompt message can be triggered to output, suggesting that the pickup user use a short-distance communication connection to operate the pickup. The prompt information is specifically text, picture, audio, video, light, vibration and other prompt information.
[0086] In order to accurately determine whether the smart cabinet is in an offline state, optionally, in response to the pickup instruction of the smart cabinet, it may specifically include: sending a pickup request of the smart cabinet to the server; receiving the offline status information of the smart cabinet, wherein the offline status information is sent when the server cannot communicate with the smart cabinet; and subsequently determining that the smart cabinet is in an offline state according to the offline status information. For example, the server instructs the corresponding smart cabinet to open the corresponding pickup cabinet according to the pickup request sent by the client. If the server cannot communicate with the smart cabinet, the offline status information of the smart cabinet may be sent to the client, so that the client determines that the smart cabinet is in an offline state.
[0087] For the sake of convenience, the following description uses the short-range communication connection as a Bluetooth connection:
[0088] In order to realize the automatic pickup operation process, if the user sets up the confirmation-free Bluetooth connection for pickup in advance, or the system defaults to confirmation-free, etc., when receiving the pickup instruction from the smart cabinet (the instruction contains the pickup code), and it is determined that it cannot communicate with the server or that the smart cabinet is offline, there is no need to output the prompt information for Bluetooth connection with the smart cabinet, and directly establish a Bluetooth connection with the BLE module of the smart cabinet, and then send a pickup request to the smart cabinet. Through this optional method, the pickup user can pick up the item with one click in the offline state, without the user's perception, which improves the efficiency of the user's pickup.
[0089] In response to the instruction to confirm the Bluetooth connection, the client establishes a Bluetooth connection with the BLE Bluetooth module of the smart cabinet, and sends a pickup request to the smart cabinet through the established Bluetooth connection.
[0090] The pickup request carries a pickup code, and further, the smart cabinet verifies the validity of the pickup code based on the pickup timestamp. Optionally, the pickup code can be obtained by combining the first part of data and the second part of data. The first part of data is converted according to the cabinet identification of the pickup cabinet, and the second part of data is obtained by encrypting and converting the storage timestamp using the encryption key corresponding to the smart cabinet. The specific generation process of the pickup code can be found in Figure 2 The corresponding description in the method will not be repeated here.
[0091] Correspondingly, the smart cabinet performs a validity check on the pickup code according to the pickup timestamp, which may specifically include: encrypting the pickup code using the encryption key corresponding to the smart cabinet according to the pickup timestamp to obtain the first encryption code data; and obtaining the second encryption code data before the second part of the data in the pickup code is converted; then comparing the first encryption code data and the second encryption code data to determine whether the pickup code is legal. For example, after receiving the pickup code, the smart cabinet takes the currently received timestamp (pickup timestamp) as the basis, and maintains the same accuracy as when encrypting the storage timestamp (such as the time is accurate to the day, which is equivalent to the pickup code being valid on the same day and invalid after the day; for example, the time is accurate to the month, which is equivalent to the pickup code being valid in the same month and invalid after the month), extracts the time-related information, and uses the same key (uniquely corresponding to the smart cabinet) for encryption. If the generated encryption code is consistent with the encryption code in the pickup code, the pickup code is considered to be legal, and then the cabinet number field is extracted to perform the door opening operation. Through this optional method, accurate smart cabinet storage and retrieval operations can be achieved in an offline state, ensuring the safety of items stored in the smart cabinet.
[0092] In order to meet the needs of more business scenarios, the pickup code can be time-sensitive. Exemplarily, according to the pickup timestamp, the encryption key corresponding to the smart cabinet is used to perform encryption processing to obtain the first encrypted code data, which may specifically include: based on the pickup timestamp, according to different accuracy range standards, at least one reference timestamp is determined; then at least one reference timestamp is encrypted using the encryption key corresponding to the smart cabinet to obtain at least one first encrypted code data; accordingly, by comparing the first encrypted code data and the second encrypted code data, it is determined whether the pickup code is legal, which may specifically include: if there is a first encrypted code data that is consistent with the second encrypted code data in the at least one first encrypted code data, then the pickup code is determined to be legal; if there is no first encrypted code data that is consistent with the second encrypted code data in the at least one first encrypted code data, then the pickup code is determined to be illegal.
[0093] For example, the validity period of the pickup code can be set to 3 seconds. The pickup timestamp and the storage timestamp maintain the same accuracy during the encryption process, specifically, the time is accurate to seconds. If the time-related information of the pickup timestamp is 20201009150503, then the encrypted code data corresponding to 20201009150501, 20201009150502, and 20201009150503 can be calculated respectively. If there is data among these three encrypted code data that is consistent with the encrypted code data corresponding to the time-related information of the storage timestamp, then the pickup code is legal. If there is no data among the three encrypted code data that is consistent with the encrypted code data corresponding to the time-related information of the storage timestamp, then the pickup code is illegal.
[0094] There is sometimes a certain limit on the number of communication links that a BLE Bluetooth chip supports at the same time. Therefore, in order to facilitate more users to perform offline pickup operations on the same smart cabinet, optionally, after establishing a Bluetooth connection with the BLE Bluetooth module of the smart cabinet, the method of this embodiment may also include: if no operation instructions for the smart cabinet are received within a preset time or it is determined that the pickup has been completed, then disconnect the Bluetooth connection with the BLE Bluetooth module. For example, the smart cabinet triggers the opening of the corresponding cabinet door. After the cabinet door is closed, and the sensor detects that there are no items in the cabinet, it can be considered that the pickup has been completed, and the relevant information is fed back to the client through the Bluetooth connection. The smart cabinet side actively disconnects the Bluetooth connection, or the client side disconnects the Bluetooth connection after determining that the pickup is successful based on the feedback information. In addition, if the user does not operate the smart cabinet for a long time after the Bluetooth connection is successful, the BLE module or the client can actively disconnect the Bluetooth connection to free up the Bluetooth communication link for other users.
[0095] In a specific application scenario, the background server may not have the authority (such as being unable to obtain data in another platform due to different platforms, etc.) to query the user's corresponding pickup order information, and thus cannot obtain the corresponding pickup code. Therefore, in order to realize the automated pickup process, optionally, the above-mentioned response to the instruction to confirm the Bluetooth communication connection sends a pickup request to the smart cabinet through the established Bluetooth communication connection, which may specifically include: if the server can communicate, and the server has the authority to obtain the pickup code corresponding to the pickup order, then obtain the pickup code from the server, and send the pickup request carrying the pickup code to the smart cabinet through the established short-distance communication connection, thereby realizing the process of automatically obtaining the pickup code and sending the deposit request; if the server cannot communicate, or the server has no authority to obtain the pickup code corresponding to the pickup order, then prompt to enter the pickup code, and send the pickup request carrying the input pickup code to the smart cabinet through the established short-distance communication connection.
[0096] Step 402b parallel to step 402a: if communication with the server is impossible or the smart cabinet is determined to be offline, a pickup request is sent to the smart cabinet through the established short-distance communication connection.
[0097] For example, in response to a pickup instruction from a smart locker, if it is unable to communicate with the server or determines that the smart locker is offline, a pickup request is automatically sent to the smart locker through the established short-distance communication connection, so that the user can pick up the item without being aware of the short-distance communication connection being used to pick up the item. This allows the user to quickly pick up the item even when the mobile phone has no network or the smart locker is offline, thereby enabling the user to pick up the item without being aware of the intelligent switching link, thereby ensuring the timeliness and success rate of the pickup.
[0098] Step 403: Receive the cabinet information of the pickup cabinet through the established short-distance communication connection.
[0099] For example, the cabinet information of the pickup cabinet is received through the established Bluetooth connection.
[0100] After receiving the cabinet information of the pickup cabinet, the method of this embodiment may further include: uploading the operation record of the smart cabinet to the server. Specifically, the process shown in steps 404a to 404b may be performed.
[0101] Step 404a: If communication with the server is possible, the operation record of the smart cabinet is uploaded to the server.
[0102] Step 404b parallel to step 404a: if communication with the server is impossible, then after communication with the server is restored, the operation record of the smart cabinet is uploaded to the server.
[0103] In order to facilitate understanding of the specific implementation process of the above-mentioned embodiments and methods, the following application scenarios are given, but not limited thereto:
[0104] At present, when the current smart food cabinet is in an offline state due to poor network or service failure, it will have a serious impact on the delivery personnel (riders) placing meals and users picking up meals; at the same time, since the location of the smart cabinet may not be very good, some users' mobile phone signals are not good, which will also cause difficulties in placing and picking up meals. Therefore, this embodiment aims to solve the problem of placing and picking up meals in the offline food cabinet.
[0105] Specifically, a BLE module can be added to the smart cabinet (food cabinet) as a near-field communication module. The BLE module communicates directly with the smart cabinet master through a serial port or other interface. In order to enhance the communication quality of BLE, the BLE antenna needs to be led out of the cabinet. The specific structure can be as follows: Figure 5As shown. When the rider scans the code to place the meal, it first determines whether the meal cabinet is offline or whether the rider’s mobile phone cannot communicate with the server. If not, the rider’s mobile phone APP applies to the server to place the meal, the server allocates a cabinet, sends instructions to the meal cabinet, and pushes the meal collection code to the rider. The server pushes the meal collection code to the user, or the rider notifies the user of the meal collection code; if so, the rider is prompted that the network signal is not good and it is recommended to use Bluetooth to place the meal. After the rider confirms, a Bluetooth connection is established, the smart cabinet allocates a cabinet, and the cabinet number is returned to the rider’s mobile phone. The mobile APP generates a set of 6-digit meal collection codes based on the cabinet number and the current timestamp (storage timestamp). The rider can subsequently notify the meal collection user of the meal collection code, or when the mobile network is normal, the mobile APP will automatically push the meal collection code to the meal collection user, and upload the operation record to the server. The execution process can be as follows Figure 6 shown.
[0106] During the meal pickup process, users can scan the code to pick up the meal or enter the order through the meal pickup cabinet screen. First, determine whether the meal pickup cabinet is offline or whether the user's mobile phone cannot communicate with the server. If not, the user directly enters the meal pickup code through the smart cabinet to pick up the meal, and the smart cabinet uploads the operation record to the server; if so, the user is prompted that the network signal is not good and it is recommended to use Bluetooth to pick up the meal. After the user confirms, a Bluetooth connection is established, and the user is prompted to enter the meal pickup code. The smart cabinet obtains the meal pickup code through BLE, verifies the legitimacy of the meal pickup code and parses the cabinet number. The smart cabinet decides whether to open the door based on the verification result, and returns the result to the user's mobile APP. When the network is normal, the mobile APP uploads the operation record to the server. The specific execution process can be as follows Figure 7 During the offline pickup and offline storage process, the user can also be guided to quickly complete the operation on the user APP operation.
[0107] By applying the above solution, BLE technology is used to solve the problem of offline access in the smart cabinet field, which helps to save the operating costs of the smart cabinet.
[0108] Further, as Figure 1 and Figure 2 The specific implementation of the method shown in the embodiment provides an offline storage device of a smart cabinet that can be applied to a storage user client side, such as Figure 8 As shown, the device includes: a sending module 51, a receiving module 52, and a generating module 53.
[0109] The sending module 51 is used for sending the module, which is used to respond to the storage instruction of the smart cabinet and send a storage request to the smart cabinet through the established short-distance communication connection, so that the smart cabinet allocates an available cabinet slot;
[0110] A receiving module 52, configured to receive a compartment identifier of the available compartment;
[0111] The generating module 53 is used to generate a pickup code according to the cabinet identification and the storage timestamp.
[0112] In a specific application scenario, the sending module 51 is specifically used to respond to the storage instruction of the smart cabinet, output prompt information for establishing a short-distance communication connection with the smart cabinet, and respond to the instruction to confirm the short-distance communication connection, send a storage request to the smart cabinet through the established short-distance communication connection; or, in response to the storage instruction of the smart cabinet, if communication with the server is impossible or the smart cabinet is determined to be in an offline state, send a storage request to the smart cabinet through the established short-distance communication connection.
[0113] In a specific application scenario, the sending module 51 is further used to output a prompt message for establishing a short-distance communication connection with the smart cabinet if communication with the server is impossible or the smart cabinet is determined to be offline.
[0114] In a specific application scenario, the sending module 51 is further used to send a storage request of the smart cabinet to the server after responding to the storage instruction of the smart cabinet;
[0115] The receiving module 52 is further used to receive offline status information of the smart cabinet, where the offline status information is sent when the server cannot communicate with the smart cabinet; and determine that the smart cabinet is in an offline state based on the offline status information.
[0116] In a specific application scenario, the generation module 53 is specifically used to obtain the encryption key corresponding to the smart cabinet; based on the cabinet identification and storage timestamp, the encryption key is used for encryption processing, and the encrypted data is converted into the pickup code that conforms to the preset format.
[0117] In a specific application scenario, the generation module 53 is specifically used to convert the cabinet identification into a first part of data according to a preset base; encrypt the storage timestamp using the encryption key, and convert the encrypted data into a second part of data according to a preset base; combine the first part of data and the second part of data to obtain the pickup code.
[0118] In a specific application scenario, optionally, the second part of data is used to verify the legitimacy of the pickup code when the smart cabinet picks up items offline, and the first part of data is used to identify the cabinet corresponding to the pickup code when the smart cabinet picks up items offline.
[0119] In a specific application scenario, the short-range communication connection is a Bluetooth connection; the sending module 51 is specifically used to establish a Bluetooth connection with the BLE Bluetooth module of the smart cabinet, and send a storage request to the smart cabinet through the established Bluetooth connection;
[0120] The receiving module 52 is specifically configured to receive the compartment identifier of the available compartment through the established Bluetooth connection.
[0121] In a specific application scenario, the sending module 51 is specifically used to disconnect the Bluetooth connection with the BLE Bluetooth module after establishing a Bluetooth connection with the BLE Bluetooth module of the smart cabinet, if no operation instructions for the smart cabinet are received within a preset time or it is determined that the storage is completed.
[0122] In a specific application scenario, the sending module 51 is also used to send the pickup code to the pickup user based on the user information of the pickup user; or, send the pickup code to the pickup user client through the server, and upload the operation record of the smart cabinet to the server.
[0123] It should be noted that the other corresponding descriptions of the functional units involved in the offline storage device of the smart cabinet applicable to the storage user client side provided in this embodiment can be referred to in Figure 1 and Figure 2 The corresponding description of the method in will not be repeated here.
[0124] Further, as Figure 5 The specific implementation of the method shown in the embodiment of the present application provides an offline pickup device of a smart cabinet that can be applied to the client side of the pickup user, such as Fig. 9 As shown, the device includes: a sending module 61 and a receiving module 62.
[0125] The sending module 61 is used to respond to the pickup instruction of the smart cabinet and send a pickup request to the smart cabinet through the established short-distance communication connection, wherein the pickup request carries a pickup code, so that the smart cabinet verifies the legitimacy of the pickup code according to the pickup timestamp;
[0126] The receiving module 62 is used to receive the cabinet information of the pickup cabinet, and the cabinet information is obtained according to the pickup code when the smart cabinet determines that the pickup code is legal.
[0127] In a specific application scenario, the sending module 61 is specifically used to respond to a pickup instruction from a smart cabinet, output a prompt message for establishing a short-distance communication connection with the smart cabinet, and respond to an instruction to confirm the short-distance communication connection by sending a pickup request to the smart cabinet through the established short-distance communication connection; or, in response to a pickup instruction from a smart cabinet, if communication with the server is impossible or the smart cabinet is determined to be offline, send a pickup request to the smart cabinet through the established short-distance communication connection.
[0128] In a specific application scenario, the sending module 61 is further used to output a prompt message for establishing a short-distance communication connection with the smart cabinet if communication with the server is impossible or the smart cabinet is determined to be offline.
[0129] In a specific application scenario, the sending module 61 is further used to send a pickup request of the smart cabinet to the server after responding to the pickup instruction of the smart cabinet;
[0130] The receiving module 62 is further used to receive offline status information of the smart cabinet, where the offline status information is sent when the server cannot communicate with the smart cabinet; and determine that the smart cabinet is in an offline state based on the offline status information.
[0131] In a specific application scenario, optionally, the pickup code is obtained by combining a first part of data and a second part of data, wherein the first part of data is converted according to the compartment identifier of the pickup compartment, and the second part of data is obtained by encrypting and converting the storage timestamp using the encryption key corresponding to the smart cabinet;
[0132] The sending module 61 is specifically used to send a pickup request to the smart cabinet, so that the encryption key corresponding to the smart cabinet is used to perform encryption processing according to the pickup timestamp to obtain the first encrypted code data; and, obtain the second encrypted code data before the second part of the data in the pickup code is converted; by comparing the first encrypted code data and the second encrypted code data, it is determined whether the pickup code is legal.
[0133] In a specific application scenario, the sending module 61 is also specifically used to send a pickup request to the smart cabinet, so that based on the pickup timestamp, at least one reference timestamp is determined according to different accuracy range standards; the at least one reference timestamp is encrypted using the encryption key corresponding to the smart cabinet to obtain at least one first encrypted code data; if there is first encrypted code data consistent with the second encrypted code data in the at least one first encrypted code data, the pickup code is determined to be legal; if there is no first encrypted code data consistent with the second encrypted code data in the at least one first encrypted code data, the pickup code is determined to be illegal.
[0134] In a specific application scenario, the sending module 61 is specifically used to obtain the pickup code from the server if it can communicate with the server and the server has the authority to obtain the pickup code corresponding to the pickup order, and send a pickup request carrying the pickup code to the smart cabinet through the established short-distance communication connection; if it cannot communicate with the server, or the server has no authority to obtain the pickup code corresponding to the pickup order, it prompts to enter the pickup code, and sends a pickup request carrying the input pickup code to the smart cabinet through the established short-distance communication connection.
[0135] In a specific application scenario, optionally, the short-range communication connection is a Bluetooth connection; the sending module 61 is specifically used to establish a Bluetooth connection with the BLE Bluetooth module of the smart cabinet, and send a pickup request to the smart cabinet through the established Bluetooth connection;
[0136] The receiving module 62 is specifically configured to receive the cabinet information of the pickup cabinet through the established Bluetooth connection.
[0137] In a specific application scenario, the sending module 61 is specifically used to disconnect the Bluetooth connection with the BLE Bluetooth module of the smart cabinet after establishing a Bluetooth connection with the BLE Bluetooth module, if no operation instructions for the smart cabinet are received within a preset time or it is determined that the pickup is completed.
[0138] In a specific application scenario, the sending module 61 is also used to upload the operation record of the smart cabinet to the server.
[0139] It should be noted that the other corresponding descriptions of the functional units involved in the offline pickup device of the smart cabinet applicable to the pickup user client side provided in this embodiment can be referred to Figure 3 and Figure 4 The corresponding description of the method in will not be repeated here.
[0140] Based on the above Figure 1 and Figure 2 The method shown in the embodiment of the present application accordingly provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned Figure 1 and Figure 2 The offline storage method of the smart cabinet shown in FIG. 1 can be applied to the storage user client side. Figure 3 and Figure 4 The present application also provides another storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned Figure 3 and Figure 4 The offline pickup method of the smart cabinet shown can be applied to the pickup user client side.
[0141] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.
[0142] Based on the above Figure 1 and Figure 2 The method shown, and Figure 8 In order to achieve the above-mentioned purpose, the embodiment of the present application further provides a client device, which can be a tablet computer, a smart phone, a smart watch, a smart bracelet, a smart cabinet control device, or other network devices, etc. The client device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 and Figure 2 The offline storage method shown can be applied to the smart cabinet on the client side of the storage user.
[0143] Based on the above Figure 3 and Figure 4 The method shown, and Fig. 9 In order to achieve the above purpose, the embodiment of the present application also provides a client device, which can be a tablet computer, a smart phone, a smart watch, a smart bracelet, a smart cabinet control device, or other network devices. The device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above Figure 3 and Figure 4 The offline pickup method of the smart cabinet shown can be applied to the pickup user client side.
[0144] Optionally, both of the above-mentioned physical devices may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display screen (Display), an input unit such as a keyboard (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.
[0145] Those skilled in the art will appreciate that the physical device structure of the client device provided in this embodiment does not constitute a limitation on the two physical devices, and may include more or fewer components, or a combination of certain components, or different component arrangements.
[0146] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the two physical devices mentioned above, and supports the operation of information processing programs and other software and / or programs. The network communication module is used to realize communication between the components inside the storage medium, and communication with other hardware and software in the information processing physical device.
[0147] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or by hardware. By applying the technical solution of this embodiment, compared with the current traditional solution for storing and retrieving items in smart cabinets in an offline state, this embodiment can achieve storage and retrieval operations on smart cabinets by establishing a short-range communication connection between the mobile device client and the smart cabinet when the smart cabinet is in an offline state or the mobile device signal is poor and cannot communicate with the server. The generation of the pickup code in an offline state can be performed on the client side of the depositor to ensure the privacy and security of user information, and is equipped with a complete pickup usage plan for the pickup code in an offline state, thereby ensuring the smooth storage and retrieval of items in smart cabinets in an offline state, without the need for maintenance personnel to be on site for manual operation, saving time and effort, saving labor costs, and thus improving the efficiency of user storage and retrieval.
[0148] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.
[0149] The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.
Claims
1. An offline storage method for a smart cabinet, characterized in that: include: If communication with the server is possible, a smart cabinet storage instruction is sent to the server; If the server fails to communicate with the smart cabinet, or receives the offline status information of the smart cabinet, a storage request is sent to the smart cabinet through the established short-distance communication connection, so that the smart cabinet allocates an available cabinet slot. The offline status information is sent when the server fails to communicate with the smart cabinet. Receiving a compartment identifier of the available compartment; Generate a pickup code according to the cabinet identification, wherein the pickup code is obtained by combining the first part of data and the second part of data, the first part of data is converted according to the cabinet identification, and the second part of data is obtained by encrypting and converting the storage timestamp using the encryption key corresponding to the smart cabinet; When picking up the item, the smart cabinet performs encryption processing using the encryption key corresponding to the smart cabinet according to the pickup timestamp to obtain first encrypted code data; and obtaining the second encrypted code data of the second part of the data in the pickup code before conversion; and determining whether the pickup code is legal by comparing the first encrypted code data with the second encrypted code data.
2. The method according to claim 1, characterized in that The sending of the storage request to the smart cabinet through the established short-distance communication connection specifically includes: Outputting prompt information for establishing a short-distance communication connection with the smart cabinet, and in response to an instruction to confirm the short-distance communication connection, sending a storage request to the smart cabinet through the established short-distance communication connection; or, A storage request is sent to the smart cabinet via the established short-range communication connection.
3. The method according to claim 1, characterized in that The step of generating a pickup code according to the cabinet identification specifically includes: Obtaining the encryption key corresponding to the smart cabinet; Based on the cabinet identification and the storage timestamp, the encryption key is used to perform encryption processing, and the encrypted data is converted into the pickup code that conforms to a preset format.
4. The method according to claim 3, characterized in that The encryption process is performed using the encryption key based on the cabinet identification and the storage timestamp, and the encrypted data is converted into the pickup code conforming to the preset format, specifically including: Convert the compartment identifier into the first part of data according to a preset base system; Encrypting the storage timestamp using the encryption key, and converting the encrypted data into the second part of data according to a preset base system; Combining the first part of data with the second part of data to obtain the pickup code; The second part of data is used to verify the legitimacy of the pickup code when the smart cabinet is picking up items offline, and the first part of data is used to identify the corresponding cabinet compartment of the pickup code when the smart cabinet is picking up items offline.
5. The method according to claim 1, characterized in that After generating a pickup code according to the cabinet identification, the method further includes: Sending the pickup code to the pickup user according to the user information of the pickup user; or, The pickup code is sent to the pickup user client through the service end, and the operation record of the smart cabinet is uploaded to the service end.
6. An offline pickup method for a smart cabinet, characterized in that: include: If communication with the server is possible, a pick-up instruction of the smart cabinet is sent to the server; If the server fails to communicate with the smart cabinet, or receives the offline status information of the smart cabinet, a pickup request is sent to the smart cabinet through the established short-distance communication connection, and the pickup request carries a pickup code, so that the smart cabinet verifies the legitimacy of the pickup code. The offline status information is sent when the server fails to communicate with the smart cabinet; Receive the cabinet information of the pickup cabinet, where the cabinet information is determined according to the pickup code when the smart cabinet determines that the pickup code is legal, wherein the pickup code is obtained by combining the first part of data and the second part of data, the first part of data is converted according to the cabinet identifier, and the second part of data is obtained by encrypting and converting the storage timestamp using the encryption key corresponding to the smart cabinet; The smart cabinet determines whether the pickup code is legal, including: the smart cabinet performs encryption processing according to the pickup timestamp using the encryption key corresponding to the smart cabinet to obtain first encrypted code data; and obtains second encrypted code data before the second part of the data in the pickup code is converted; by comparing the first encrypted code data and the second encrypted code data, it is determined whether the pickup code is legal.
7. The method according to claim 6, characterized in that The sending of the pickup request to the smart cabinet through the established short-distance communication connection specifically includes: Outputting prompt information for establishing a short-distance communication connection with the smart cabinet, and in response to an instruction to confirm the short-distance communication connection, sending a pickup request to the smart cabinet through the established short-distance communication connection; or, A pickup request is sent to the smart cabinet via the established short-range communication connection.
8. The method according to claim 6, characterized in that The step of performing encryption processing using the encryption key corresponding to the smart cabinet according to the pickup timestamp to obtain the first encrypted code data specifically includes: Based on the pickup timestamp, determining at least one reference timestamp according to different accuracy range standards; Encrypting the at least one reference timestamp using the encryption key corresponding to the smart cabinet to obtain at least one first encrypted code data; The step of comparing the first encrypted code data with the second encrypted code data to determine whether the pickup code is legal specifically includes: If there is first encryption code data that is consistent with the second encryption code data in the at least one first encryption code data, it is determined that the pickup code is legal; If there is no first encryption code data consistent with the second encryption code data in the at least one first encryption code data, it is determined that the pickup code is illegal.
9. The method according to claim 6, characterized in that The sending of the pickup request to the smart cabinet through the established short-distance communication connection specifically includes: If communication with the server is possible and the server has the authority to obtain the pickup code corresponding to the pickup order, the pickup code is obtained from the server, and a pickup request carrying the pickup code is sent to the smart cabinet through the established short-distance communication connection; If communication with the server is impossible, or the server does not have the authority to obtain the pickup code corresponding to the pickup order, the user is prompted to enter the pickup code, and a pickup request carrying the entered pickup code is sent to the smart cabinet through the established short-range communication connection.
10. An offline storage device for a smart cabinet, characterized in that: include: A sending module, configured to send a smart cabinet storage instruction to the server if communication with the server is possible; if offline status information of the smart cabinet is received or communication with the server is impossible, send a storage request to the smart cabinet through an established short-distance communication connection, so that the smart cabinet allocates an available cabinet slot, wherein the offline status information is sent when the server is unable to communicate with the smart cabinet; A receiving module, used for receiving a compartment identifier of the available compartment; A generating module, used for generating a pickup code according to the cabinet identification, wherein the pickup code is obtained by combining a first part of data and a second part of data, wherein the first part of data is obtained by converting according to the cabinet identification, and the second part of data is obtained by encrypting and converting the storage timestamp using the encryption key corresponding to the smart cabinet; When picking up the item, the smart cabinet performs encryption processing using the encryption key corresponding to the smart cabinet according to the pickup timestamp to obtain first encrypted code data; and obtaining the second encrypted code data of the second part of the data in the pickup code before conversion; and determining whether the pickup code is legal by comparing the first encrypted code data with the second encrypted code data.
11. An offline pickup device for a smart cabinet, characterized in that: include: A sending module, used for sending a pickup instruction of the smart cabinet to the server if it can communicate with the server; if it receives offline status information of the smart cabinet or cannot communicate with the server, sending a pickup request to the smart cabinet through an established short-distance communication connection, wherein the pickup request carries a pickup code so that the smart cabinet can verify the legitimacy of the pickup code. The offline status information is sent when the server cannot communicate with the smart cabinet; A receiving module, used for receiving the cabinet information of the pickup cabinet, wherein the cabinet information is determined according to the pickup code when the smart cabinet determines that the pickup code is legal, wherein the pickup code is obtained by combining the first part of data and the second part of data, wherein the first part of data is obtained by converting according to the cabinet identifier, and the second part of data is obtained by encrypting and converting the storage timestamp using the encryption key corresponding to the smart cabinet; The smart cabinet determines whether the pickup code is legal, including: the smart cabinet performs encryption processing according to the pickup timestamp using the encryption key corresponding to the smart cabinet to obtain first encrypted code data; and obtains second encrypted code data before the second part of the data in the pickup code is converted; by comparing the first encrypted code data and the second encrypted code data, it is determined whether the pickup code is legal.
12. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
13. A client device, comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Method of achieving parcel delivery and pickup in network-free coverage environment
CN107393200A
Method for transporting and delivering articles
CN108960730A
Dynamic two-dimensional code generation method and device and storage medium
CN110766831A
Offline storage and retrieval method and device for smart lockers
CN112215318B