Control methods for storage systems, storage systems and storage media
By connecting storage devices and terminal devices through a distributed soft bus, a virtual key is generated to enable multiple terminal devices to jointly manage the storage devices, solving the problem of single terminal devices being prone to crashing and improving management efficiency and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- 深圳开鸿数字产业发展有限公司
- Filing Date
- 2022-11-30
- Publication Date
- 2026-05-26
AI Technical Summary
Existing storage equipment management systems are typically managed by a single terminal device, which makes the system prone to crashes and unable to meet the needs of scenarios where multiple managers can manage simultaneously.
Multiple storage devices and terminal devices are connected by a distributed soft bus to form an access control table. The target storage device determines whether to assign control permissions based on the access control table, generates a virtual key and sends it to the terminal device, so as to realize the joint management of storage devices by multiple terminal devices.
It avoids the drawbacks of single-terminal device control systems being prone to crashes, achieves efficient near-field information interaction management, and improves the management efficiency of storage equipment and the user experience.
Smart Images

Figure CN116527435B_ABST
Abstract
Description
[0001] Divisional application statement: This application is a divisional application of Chinese patent application filed on November 30, 2022, with application number 202211515705.8 and invention title "Control method for storage system, storage system and storage medium". Technical Field
[0002] This application relates to the field of smart lockers, and more particularly to a control method for a storage system, a storage system, and a storage medium. Background Technology
[0003] Currently, the storage equipment management system connects the data management terminal of the storage equipment to the router, thereby connecting the data management terminal of the storage equipment to many other terminal devices through the local area network. Then, the router, switch and remote server are interconnected. Finally, the remote server connects to the database and facial recognition cloud service, enabling remotely connected terminal devices to manage the storage equipment.
[0004] Existing storage equipment management systems are typically managed by a single terminal device. This type of management system has only one terminal device, which manages all the storage equipment. However, the single terminal device management method has two shortcomings: First, if the terminal device fails, the entire system will not function properly; second, if multiple managers need to manage the same batch of storage equipment, the single terminal device cannot meet the actual needs of the scenario. Summary of the Invention
[0005] This application provides a control method for a storage system, a storage system, and a storage medium, which are used to improve the management efficiency of the storage system and to ensure the stability of the storage system.
[0006] In a first aspect, this application provides a control method for a storage system, the storage system including multiple storage devices and multiple terminal devices. Each storage device includes one or more storage spaces. Each storage device is equipped with a preset operating system, and each terminal device is also equipped with the operating system. Based on the operating system, the multiple storage devices and the multiple terminal devices are connected via a distributed soft bus. Each storage device stores a virtual key lookup table, which records generated and allocated virtual keys and the corresponding terminal devices. The multiple storage devices share a permission control table, which records the control permissions obtained by the terminal devices for the storage devices and the usage information of those control permissions. The control method includes:
[0007] When the target storage device receives a control permission request from the terminal device, it determines whether it can assign its control permission to the terminal device according to the permission control table. The target storage device can be any one of the multiple storage devices.
[0008] If control permissions can be assigned to the terminal device, the target storage device generates a target virtual key according to the control permission request and stores the target virtual key in the target storage device's virtual key lookup table;
[0009] The target storage device sends the target virtual key to the corresponding terminal device, and the terminal device obtains control rights over the target storage device through the target virtual key. The terminal device includes at least a first terminal device and a second terminal device.
[0010] The second terminal device sends a control permission acquisition request to the super terminal, and the first terminal device obtains control permission for the target storage device;
[0011] The super terminal receives the control permission acquisition request and determines, based on the permission control table and the control permission acquisition request, whether to allow the second terminal device to acquire the control permission of the first terminal device over the target storage device.
[0012] If permitted, the second terminal device sends the control permission acquisition request to the first terminal device;
[0013] If the first terminal device receives the control permission acquisition request, the target storage device generates a second target virtual key, stores the second target virtual key in the virtual key lookup table of the target storage device, and sends the second target virtual key to the corresponding second terminal device. The second terminal device obtains control permission of the target storage device through the second target virtual key.
[0014] Secondly, this application provides a control method for a storage system, the storage system including multiple storage devices and multiple terminal devices. Each storage device includes one or more storage spaces, and each storage device is equipped with a preset operating system. Each terminal device is also equipped with the operating system. Based on the operating system, the multiple storage devices and the multiple terminal devices are connected via a distributed soft bus. Each storage device stores a virtual key lookup table, which records generated and allocated virtual keys and the terminal devices corresponding to those virtual keys. The control method includes:
[0015] When the target storage device receives a control permission request sent by the terminal device, it generates a target virtual key according to the control permission request and stores the target virtual key in the virtual key lookup table of the target storage device. The target storage device can be any one of the multiple storage devices.
[0016] The target storage device sends the target virtual key to the corresponding terminal device, and the terminal device obtains control rights over the target storage device through the target virtual key. The terminal device includes at least a first terminal device and a second terminal device.
[0017] The first terminal device sends a permission transfer request for the target storage device to the second terminal device. The permission transfer request includes the first target virtual key of the target storage device. The first terminal device obtains control permission for the target storage device. The first terminal device is one of multiple terminal devices in the storage system, and the second terminal device is another of multiple terminal devices in the storage system.
[0018] If the second terminal device receives the permission transfer request, the second terminal device obtains the first target virtual key; the target storage device updates the virtual key lookup table and changes the terminal device corresponding to the first target virtual key to the second terminal device.
[0019] Thirdly, this application provides a storage system, which includes multiple storage devices and terminal devices. Each storage device includes one or more storage spaces and is equipped with a preset operating system. Each terminal device is also equipped with the operating system. Based on the operating system, multiple storage devices and multiple terminal devices are connected via a distributed soft bus. Both the storage devices and the terminal devices include a memory and a processor.
[0020] The memory is used to store computer programs;
[0021] The processor is configured to execute the computer program and, in executing the computer program, implement a control method for a storage system as provided in any of the embodiments of this application.
[0022] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to implement a control method for a storage system as provided in any of the embodiments of this application.
[0023] This application establishes a storage system by connecting multiple storage devices and terminal devices via a distributed soft bus. The multiple storage devices share control permissions and usage information via the distributed soft bus, forming a permission control table. Using the storage system's control method, a target storage device determines whether its control permissions can be assigned to a terminal device based on the permission control table. If so, a target virtual key is generated, the virtual key lookup table is updated based on the target virtual key, and the target virtual key is sent to the corresponding terminal device. The terminal device then obtains control permissions for the target storage device through the target virtual key. In this way, the distributed soft bus enables multiple terminal devices to jointly manage multiple storage devices, allowing multiple users to manage the storage devices simultaneously. This avoids the vulnerability of systems controlled by a single terminal device, which is prone to crashing. It also achieves efficient near-field information interaction management, improving the management efficiency of the storage devices and enhancing the user experience. Attached Figure Description
[0024] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 This is the first storage system provided in the embodiments of this application;
[0026] Figure 2 This is a schematic flowchart of the control method for the first storage system provided in the embodiments of this application;
[0027] Figure 3 This is the second type of storage system provided in the embodiments of this application;
[0028] Figure 4 This is a schematic flowchart of a control method for a second storage system provided in an embodiment of this application;
[0029] Figure 5 This is the third type of storage system provided in the embodiments of this application;
[0030] Figure 6 This is a schematic flowchart of the control method for the third storage system provided in the embodiments of this application;
[0031] Figure 7 This is a schematic diagram of the structure of a storage device provided in an embodiment of this application;
[0032] Figure 8 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Detailed Implementation
[0033] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0034] It should be noted that the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features.
[0035] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in some embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0036] Furthermore, the technical solutions of the various embodiments can be combined with each other, but only if they are based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed in this application.
[0037] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the order described. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.
[0038] Generally, to ensure security, storing or retrieving items from storage devices requires on-site user intervention, such as scanning barcodes or verifying the location of items using the terminal device managing the storage device. These steps increase the time required for storing and retrieving items, reducing the user experience. Distributed soft bus technology, with its features of autonomous near-field device discovery and connection, enables rapid near-field device access and authentication. Therefore, distributed soft bus technology is more suitable for managing storage devices than traditional technologies, ensuring reliable security authentication while simplifying the storage and retrieval process, reducing user operation time, and improving the user experience.
[0039] This application addresses the scenario requiring collaborative management of storage devices by multiple terminal devices. It establishes multi-terminal communication links using distributed soft bus technology within a distributed system, unifying and integrating control permissions for the storage devices. This refines control permissions, enabling multi-terminal collaboration and interconnection for unified control. The operating systems installed on the storage devices and terminal devices in this application include open-source HarmonyOS, such as KaihongOS.
[0040] Distributed soft bus technology enables unified distributed communication management capabilities among near-field devices, providing device discovery, networking, and transmission capabilities regardless of link.
[0041] This application provides a control method, storage system, and storage medium for a storage system. The storage system implementing this control method is formed by connecting multiple storage devices and multiple terminal devices via a distributed soft bus. The multiple storage devices share control permissions and usage information through the distributed soft bus, forming a permission control table. Using the storage system's control method, a target storage device determines whether its control permissions can be assigned to a terminal device based on the permission control table. If so, a target virtual key is generated, a virtual key lookup table is updated based on the target virtual key, and the target virtual key is sent to the corresponding terminal device. The terminal device obtains control permissions for the target storage device through the target virtual key. In this way, multiple terminal devices jointly manage multiple storage devices through the distributed soft bus, allowing multiple users to manage the storage devices simultaneously. This avoids the vulnerability of systems controlled by a single terminal device, which is prone to crashing. It also achieves efficient near-field information interaction management, improving the management efficiency of the storage devices and enhancing the user experience.
[0042] Specifically, this application provides a storage system, which includes multiple storage devices and multiple terminal devices. Each storage device includes one or more storage spaces and a control board equipped with a preset operating system. The terminal devices are also equipped with an operating system. Based on the operating system, the multiple storage devices and the multiple terminal devices are connected through a distributed soft bus. The storage devices can receive control information from the multiple terminal devices and execute operations corresponding to the control information, such as retrieving and placing items.
[0043] The storage system provided in this application enables multiple terminal devices to jointly manage multiple storage devices through a distributed soft bus. This allows multiple users to manage the storage devices simultaneously, avoiding the vulnerability of systems controlled by a single terminal device to crashes. It also achieves efficient near-field information interaction management, improving the management efficiency of storage devices and enhancing the user experience.
[0044] The storage system also includes a super terminal, which connects to the storage devices via a distributed soft bus. The super terminal can be installed inside the storage devices or installed as a standalone device within the signal range of the distributed soft bus. The super terminal is used to manage the storage devices, for example, by modifying the access control table.
[0045] like Figure 1 As shown, the first storage system provided in this application includes multiple terminal devices (terminal device 1, terminal device 2, and terminal device 3), multiple storage devices (storage device 1, storage device 2, and storage device 3), and a super terminal. Storage device 1, storage device 2, and storage device 3 can each include one or more storage spaces. Within the signal range of the distributed soft bus, the multiple terminal devices, the multiple storage devices, and the super terminal communicate with each other.
[0046] The control method provided in this application can be applied to storage devices and terminal devices in a storage system. The terminal device can be any of the following: mobile phone, camera, tablet computer, wearable device, vehicle device, augmented reality (AR) / virtual reality (VR) device, laptop computer, personal computer (PC), netbook, personal digital assistant (PDA). No restrictions are imposed on the embodiments of this application.
[0047] Based on the operating system, multiple storage devices and multiple terminal devices are connected through a distributed soft bus. The storage devices store a virtual key lookup table, which records the virtual keys that have been generated and assigned and the corresponding terminal devices. Multiple storage devices share a single access control table, which records the access permissions that the terminal devices have obtained from the storage devices and the usage information of those permissions.
[0048] Please see Figure 2 The first storage system control method provided in this application includes steps S101 to S103.
[0049] S101. When the target storage device receives a control permission request from the terminal device, it determines whether it can assign its control permission to the terminal device according to the permission control table. The target storage device can be any one of multiple storage devices.
[0050] For example, within the scope of a distributed soft bus, multiple storage devices are interconnected via the distributed soft bus. Each storage device maintains its own virtual key lookup table, which records the generated and assigned virtual keys and the corresponding terminal devices. Multiple storage devices share the virtual key lookup table data through the distributed soft bus to form an access control table. The access control table records the control permissions obtained by terminal devices for the storage devices and the usage information of those permissions. The usage information includes, but is not limited to, the terminal devices that can obtain control permissions and the time limit corresponding to those permissions.
[0051] When a user's terminal device enters the signal range of the aforementioned distributed soft bus, the terminal device and the storage device connect to each other. The terminal device also has an application installed for managing the storage devices. The user can select the target storage device to connect to through the application's interface. The terminal device responds to the user's selection, generates a control permission request, and sends the request to the target storage device, which can be any one of multiple storage devices. Upon receiving the control permission request from the terminal device, the target storage device queries its permission control table to determine whether the terminal device sending the request is authorized to grant control.
[0052] In some embodiments, multiple storage devices can also share their stored virtual key lookup tables with a super terminal based on a distributed soft bus. The super terminal generates an access control table based on the multiple virtual key lookup tables and sends the access control table to the corresponding storage devices.
[0053] It should be noted that the virtual key lookup table and access control table in this application are essentially computer data, and are not limited to the data format of tables. They can also be other data formats, which are not limited here.
[0054] By setting up a super terminal and access control table, it is possible to prevent the direct acquisition of control permissions for storage devices. When applied to storage systems in public places, such as storage devices for storing express packages in residential communities, this improves the security of the storage system and prevents users' items from being taken out at will.
[0055] S102. If control permissions can be assigned to the terminal device, the target storage device generates a target virtual key according to the control permission request and saves the target virtual key in the target storage device's virtual key lookup table.
[0056] Upon receiving a control permission request, the target storage device queries the access control table. First, it determines whether the terminal device sending the request is authorized to obtain control permissions. Specifically, the control permission request includes the terminal device information, which serves as the device's identifier. The access control table records usage information for control permissions, including the storage device information for each storage device, the terminal device information, and the control permission pairing relationships between them. In the access control table, one entry for a storage device can be paired with multiple entries for a terminal device, meaning that control permissions for one storage device can be obtained by multiple terminal devices; conversely, one entry for a terminal device can be paired with multiple entries for a storage device, meaning that one terminal device can obtain control permissions for multiple storage devices.
[0057] The target storage device queries the access control table. If the terminal device information in the received access request matches its own storage device information, a target virtual key is generated and sent to the terminal device that made the access control request. If the terminal device information in the received access request does not match its own storage device information, a request failure notification is generated and sent to the terminal device that made the access control request.
[0058] In some embodiments, if the target storage device cannot allocate its control rights to the terminal device, the terminal device also sends a control rights request to the super terminal. The control rights request includes the terminal device information of the terminal device, which the super terminal uses to modify the virtual key lookup table. If the super terminal receives the control rights request, it determines whether it can allocate the control rights of the target storage device to the terminal device. If it can allocate the control rights of the target storage device to the terminal device, the super terminal sends the terminal device information to the target storage device so that the target device updates the virtual key lookup table according to the terminal device information.
[0059] For example, if the terminal device receives a request failure notification, or if the terminal device does not receive the target virtual key within a preset time, the terminal device generates a control permission application window. The user can operate within this window, and the terminal device responds by sending a control permission request to the super terminal. The super terminal determines whether the terminal device is authorized to obtain permission from the target storage device. If authorized, the super terminal sends the terminal device information to the target storage device. The target storage device modifies the virtual key lookup table based on the terminal device information, or the terminal device directly modifies the permission control table. In this case, the terminal device only needs to resend the application to the target storage device to obtain control permission. If not authorized, a request failure notification is returned. This embodiment can be used to authenticate terminal devices not integrated into the distributed soft bus. Since the initial permission control table is written to the storage device by administrators using the super terminal, the initial permission control table cannot include all terminal device information, especially for terminal devices not integrated into the distributed soft bus. Therefore, the above mechanism is needed to authenticate new devices. This improves the compatibility of the storage system.
[0060] S103. The target storage device sends the target virtual key to the corresponding terminal device, and the terminal device obtains control of the target storage device through the target virtual key.
[0061] For example, each target virtual key generated by the target storage device is unique. The target storage device sends the target virtual key to the corresponding terminal device and records the relationship between the target virtual key and the terminal device in a virtual key lookup table. The terminal device can only connect to the target virtual key through its corresponding target virtual key. When the terminal device connects to the target storage device through the target virtual key of another terminal device, the connection will fail because it cannot pass the authentication of the target storage device based on the virtual key control table.
[0062] In some embodiments, multiple terminal devices can obtain control rights over the target storage device.
[0063] Specifically, the target storage device generates multiple unique target virtual keys, which are then sent to corresponding multiple terminals. When multiple terminal devices possess the target virtual keys of the target storage device, they can simultaneously gain control of the target storage device using their respective virtual keys, meaning multiple terminal devices can manage the target storage device concurrently. This embodiment can be applied to scenarios where multiple people manage storage devices simultaneously, thereby improving the efficiency of storing and retrieving items and enhancing the user experience.
[0064] In some embodiments, after the terminal device obtains the target virtual key, the terminal device sends the target virtual key to the target storage device. When the target storage device receives the control key, it authenticates the terminal device according to the control key and the updated virtual key lookup table. After successful authentication, it establishes a communication connection with the terminal device so that the terminal device can control the target storage device.
[0065] For example, when authenticating a terminal device, the storage device first needs to obtain the virtual key and terminal device information sent by the terminal device, and then query the virtual key lookup table. When the control permissions of the storage device are found to be consistent with the virtual key and terminal device information, a communication connection is established with the terminal device. This communication connection can be implemented through a distributed soft bus. The terminal device controls the storage device through this communication connection, for example, by controlling the opening or closing of the storage space of the storage device.
[0066] For example, multiple users store their items in different storage spaces of the same target storage device. During peak traffic periods such as after get off work, multiple users may need to retrieve their items simultaneously. Existing retrieval methods require user authentication, such as scanning a QR code or confirming on an app, before allowing users to retrieve their items one by one. This results in queuing, and the more people in the queue, the longer it takes for each user to retrieve their item. By granting management permissions to multiple users' terminal devices using a target virtual key, simultaneous retrieval by multiple users can be achieved, significantly reducing queuing time, improving the efficiency of the storage device, and enhancing the user experience. Depending on the control permissions corresponding to the target virtual key, this application can also be applied to other scenarios, such as allowing couriers to store items and users to retrieve items simultaneously, or allowing multiple couriers to store items simultaneously, all of which contribute to improving the efficiency of the storage device.
[0067] The distributed soft bus enables multiple terminal devices to jointly manage multiple storage devices, allowing multiple users to manage the storage devices simultaneously. This avoids the vulnerability of systems controlled by a single terminal device to crashes and also achieves efficient near-field information interaction management, improving the management efficiency of storage devices and enhancing the user experience.
[0068] In this application, multiple terminal devices can communicate with each other via near-field communication (NFC), including any one of NFC, Bluetooth, and WiFi. Accordingly, this application also enables the expansion of functionality by allowing multiple terminal devices to control multiple storage devices.
[0069] In some embodiments, a terminal device can transfer control of a target storage device to another terminal device.
[0070] In some embodiments, a first terminal device sends a permission transfer request to a super terminal to transfer control of a target storage device to a second terminal device. The super terminal receives the permission transfer request and determines, based on the permission control table and the request, whether to allow the first terminal device to transfer control of the target storage device to the second terminal device. If allowed, the first terminal device sends a permission transfer request for the target storage device to the second terminal device. The permission transfer request includes a first target virtual key for the target storage device. The first terminal device obtains control of the target storage device. The first terminal device is one of multiple terminal devices in the storage system, and the second terminal device is another of multiple terminal devices in the storage system. If the second terminal device receives the permission transfer request, it obtains the first target virtual key. The target storage device updates its virtual key lookup table, changing the terminal device corresponding to the first target virtual key to the second terminal device. This facilitates permission transfer for users, improves the management efficiency of the storage system, and enhances the user experience.
[0071] In some embodiments, if the second terminal device receives a permission transfer request, the second terminal device obtains the first target virtual key; the target storage device updates its virtual key lookup table and adds the second terminal device as the terminal device corresponding to the first target virtual key. Thus, both the first terminal device and the second terminal device have control permissions over the target storage device.
[0072] For example, user A on a first terminal device wants user B to retrieve items from a target storage device. After user A uses a terminal emulator to find that the retrieval permission for the items in the target storage device can be transferred to user B, user A can send a permission transfer request to user B's second terminal device through the first terminal device. The permission transfer request includes a first target virtual key. The second terminal device generates a first request window based on the permission transfer request. User B can choose to accept or reject the permission transfer request sent by user A through this first request window. If user B chooses to accept user A's permission transfer request, the second terminal device obtains the first target virtual key, and then the second terminal device can obtain control permission for the target storage device through the first target virtual key. After user B accepts user A's permission transfer request, user A will also send a permission transfer request to the target storage device. The target storage device updates its virtual key lookup table based on the permission transfer request, adding the second terminal device as the terminal device corresponding to the first target virtual key, or changing the terminal device corresponding to the first target virtual key to the second terminal device. Thus, user B can retrieve user A's items from the target storage device. This expands the application scenarios of this application, provides users with multiple ways to retrieve items, and improves the user experience.
[0073] In some embodiments, the second terminal device sends a control permission acquisition request to the super terminal, and the first terminal device obtains control permission for the target storage device. The super terminal receives the control permission acquisition request and determines whether to allow the second terminal device to acquire the first terminal device's control permission over the target storage device based on the permission control table and the control permission acquisition request. If allowed, the second terminal device sends a control permission acquisition request to the first terminal device. If the first terminal device receives the control permission acquisition request, the target storage device generates a second target virtual key, stores the second target virtual key in the target storage device's virtual key lookup table, and sends the second target virtual key to the corresponding second terminal device. The second terminal device obtains control permission for the target storage device through the second target virtual key.
[0074] For example, user B on a second terminal device wants to retrieve items stored by user A from a target storage device. After user B uses a terminal emulator to find that they can obtain retrieval permissions for user A's items in the target storage device, user B sends a control permission acquisition request to user A's first terminal device through the second terminal device. The first terminal device generates a second request window based on the control permission acquisition request. User A can choose to accept or reject user B's permission acquisition request through this second request window. If user A chooses to accept user B's permission transfer request, the first terminal device sends a first target virtual key to the second terminal device. The second terminal device obtains the target virtual key. After user B accepts user A's permission transfer request, user A will also send a permission transfer request to the target storage device. The target storage device updates its virtual key lookup table based on the permission transfer request, adding the second terminal device as the terminal device corresponding to the first target virtual key. The second terminal device can then obtain control permissions for the target storage device through the first target virtual key, meaning user B can retrieve user A's items from the target storage device. This provides users with multiple ways to retrieve items, improving the user experience.
[0075] In some embodiments, when the target storage device receives either a first target virtual key sent by a first terminal device or a second target virtual key sent by a second terminal device, it deletes the other from the virtual key lookup table.
[0076] In one example, user A can gain control of storage space C on a target storage device using a first target virtual key, and user B can gain control of storage space C using a second target virtual key. However, to ensure the security of storage space C, only one of the two users is allowed to open it. Therefore, after gaining control of the target storage device using either the first or second target virtual key, the target storage device should revoke control of the other virtual key, i.e., remove the other virtual key from the virtual key lookup table. This improves the security of the storage space on the storage device and prevents items from being lost.
[0077] In another example, user A can retrieve item D from the target storage device using a first target virtual key, and user B can also retrieve item D using a second target virtual key. However, once either user A or user B retrieves item D from the target storage device, both the first and second target virtual keys should become invalid; that is, the target storage device will remove both the first and second target virtual keys from its virtual key lookup table. This ensures that the storage space cannot be opened repeatedly, improving the security of the storage device.
[0078] In some embodiments, if the target storage device receives a permission release command from the target terminal device, it deletes the target virtual key from the virtual key lookup table according to the permission release command. Users can also actively send a permission release command to lose control of the target storage device. For example, user A transfers control of the target storage device to user B by actively sending a permission release command to the target storage device, ensuring that user B's control over the target storage device is unique.
[0079] This application also provides another control method for a storage system. The storage system implementing this control method includes multiple storage devices and multiple terminal devices. Each storage device includes one or more storage spaces. Each storage device is equipped with a preset operating system. Each terminal device is also equipped with an operating system. Based on the operating system, the multiple storage devices and multiple terminal devices are connected through a distributed soft bus. Each storage device stores a virtual key lookup table. The virtual key lookup table is used to record the virtual keys that have been generated and allocated and the terminal devices corresponding to the virtual keys.
[0080] Please see Figure 3 The second storage system provided in this application includes multiple terminal devices (terminal device 1, terminal device 2, and terminal device 3) and multiple storage devices (storage device 1, storage device 2, and storage device 3). Within the signal range of the distributed soft bus, the multiple terminal devices, the multiple storage devices, and the super terminal communicate with each other.
[0081] Please see Figure 4 The second storage system control method provided in this application includes steps S201 to S202.
[0082] S201. When the target storage device receives a control permission request sent by the terminal device, it generates a target virtual key according to the control permission request and stores the target virtual key in the virtual key lookup table of the target storage device. The target storage device can be any one of multiple storage devices.
[0083] For example, within the scope of the distributed soft bus, multiple storage devices are interconnected via the distributed soft bus. Each storage device maintains its own virtual key lookup table, which records the generated and assigned virtual keys and the corresponding terminal devices. Terminal devices that can access the storage system are those authenticated by the system administrator. When a terminal device enters the signal range of the distributed soft bus, it connects to the storage devices via the distributed soft bus. The terminal devices also have an application installed to manage the storage devices. Users can select the target storage device to connect to through the application's interface. The terminal device responds to the user's selection, generates a control permission request, and sends the request to the target storage device, which can be any one of the multiple storage devices.
[0084] S202, The target storage device sends the target virtual key to the corresponding terminal device, and the terminal device obtains control of the target storage device through the target virtual key.
[0085] In some embodiments, multiple terminal devices can obtain control rights over the target storage device.
[0086] Specifically, when multiple terminal devices possess the target virtual key for the target storage device, these devices can simultaneously obtain control permissions for the target storage device through the target virtual key, meaning multiple terminal devices can manage the target storage device at the same time. This embodiment can be applied to scenarios where multiple people manage storage devices simultaneously, thereby improving the efficiency of storing and retrieving items in the storage device and enhancing the user experience.
[0087] In some embodiments, after the terminal device obtains the target virtual key, the terminal device sends the target virtual key to the target storage device. When the target storage device receives the control key, it authenticates the terminal device according to the control key and the updated virtual key lookup table. After successful authentication, it establishes a communication connection with the terminal device so that the terminal device can control the target storage device.
[0088] For example, when authenticating a terminal device, the storage device first needs to obtain the virtual key and terminal device information sent by the terminal device, and then query the virtual key lookup table. When the control permissions of the storage device are found to be consistent with the virtual key and terminal device information, a communication connection is established with the terminal device. This communication connection can be implemented through a distributed soft bus. The terminal device controls the storage device through this communication connection, for example, by controlling the opening or closing of the storage space of the storage device.
[0089] The storage system used to execute steps S201 and S202 allows terminal devices to quickly obtain control permissions for storage equipment. It is more suitable for storage systems in non-open locations, such as large storage transfer warehouses, to improve the user's management efficiency of the storage system, thereby improving the transfer efficiency of logistics.
[0090] The distributed soft bus enables multiple terminal devices to jointly manage multiple storage devices, allowing multiple users to manage the storage devices simultaneously. This avoids the vulnerability of systems controlled by a single terminal device to crashes and also achieves efficient near-field information interaction management, improving the management efficiency of storage devices and enhancing the user experience.
[0091] In this application, multiple terminal devices can communicate with each other via near-field communication (NFC), including any one of NFC, Bluetooth, and WiFi. Accordingly, this application also enables the expansion of functionality by allowing multiple terminal devices to control multiple storage devices.
[0092] In some embodiments, a terminal device can transfer control of a target storage device to another terminal device.
[0093] In some embodiments, a first terminal device sends a permission transfer request for a target storage device to a second terminal device. The permission transfer request includes a first target virtual key for the target storage device. The first terminal device obtains control permissions for the target storage device. The first terminal device is one of multiple terminal devices in the storage system, and the second terminal device is another of multiple terminal devices in the storage system. If the second terminal device receives the permission transfer request, the second terminal device obtains the first target virtual key. The target storage device updates its virtual key lookup table, changing the terminal device corresponding to the first target virtual key to the second terminal device.
[0094] In some embodiments, if the second terminal device receives a permission transfer request, the second terminal device obtains the first target virtual key; the target storage device updates the virtual key lookup table and adds the second terminal device as the terminal device corresponding to the first target virtual key.
[0095] For example, if user A on a first terminal device wants user B to retrieve an item from a target storage device, user A can send a permission transfer request to user B's second terminal device via the first terminal device. The permission transfer request includes a first target virtual key. The second terminal device generates a first request window based on the permission transfer request. User B can choose to accept or reject the permission transfer request sent by user A through this first request window. If user B chooses to accept user A's permission transfer request, the second terminal device obtains the first target virtual key, and can then gain control of the target storage device through the first target virtual key. After user B accepts user A's permission transfer request, user A will also send a permission transfer request to the target storage device. The target storage device updates its virtual key lookup table based on the permission transfer request, adding the second terminal device as the terminal device corresponding to the first target virtual key, or changing the terminal device corresponding to the first target virtual key to the second terminal device. Thus, user B can retrieve user A's item from the target storage device. This expands the application scenarios of this application, provides users with multiple ways to retrieve items, and improves the user experience.
[0096] In other embodiments, the second terminal device sends a control permission acquisition request for the target storage device to the first terminal device, and the first terminal device obtains control permission for the target storage device; if the first terminal device receives the control permission acquisition request, the target storage device generates a second target virtual key, saves the second target virtual key in the virtual key lookup table of the target storage device, and sends the second target virtual key to the corresponding second terminal device, and the second terminal device obtains control permission for the target storage device through the second target virtual key.
[0097] For example, user B on the second terminal device wants to retrieve items stored by user A from a target storage device. User B sends a control permission request to user A's first terminal device via the second terminal device. The first terminal device generates a second request window based on the control permission request. User A can choose to accept or reject the permission request sent by user B through this second request window. If user A chooses to accept user B's permission transfer request, the first terminal device sends a first target virtual key to the second terminal device. The second terminal device obtains the target virtual key. After user B accepts user A's permission transfer request, user A will also send a permission transfer request to the target storage device. The target storage device updates its virtual key lookup table based on the permission transfer request, adding the second terminal device as the terminal device corresponding to the first target virtual key. The second terminal device can then obtain control permissions for the target storage device through the first target virtual key, meaning user B can retrieve user A's items from the target storage device. This provides users with multiple ways to retrieve items, improving the user experience.
[0098] In some embodiments, the second terminal device sends a control permission acquisition request for the target storage device to the first terminal device, and the first terminal device obtains control permission for the target storage device; if the first terminal device receives the control permission acquisition request, the target storage device generates a second target virtual key, stores the second target virtual key in the virtual key lookup table of the target storage device, and sends the second target virtual key to the corresponding second terminal device, and the second terminal device obtains control permission for the target storage device through the second target virtual key.
[0099] For example, user B on the second terminal device wants to retrieve items stored by user A from a target storage device. User B sends a control permission request to user A's first terminal device via the second terminal device. This control permission request includes information about the second terminal device. The first terminal device generates a third request window based on the control permission request. User A can use this third request window to choose whether to accept or reject the control permission request sent by user B. If user A chooses to accept user B's permission transfer request, the first terminal device sends the control permission request to the target storage device. Upon receiving the control permission request, the target storage device generates a second target virtual key based on the second terminal device information, updates the second terminal device information and the second target virtual key in the virtual key lookup table, and sends the second target virtual key to the second terminal device. The second terminal device can then obtain control of the target storage device using the second target virtual key, meaning user B can retrieve user A's items from the target storage device.
[0100] When user A can choose to accept the permission acquisition request sent by user B through the third request window, the first terminal device can also send a permission acquisition key to the second terminal device. The second terminal device sends the permission acquisition key and permission acquisition request to the target terminal device so that the target terminal device generates a second virtual key and updates the virtual key lookup table, thereby enabling the second terminal device to obtain control of the target storage device.
[0101] In some embodiments, when the target storage device receives either a first target virtual key sent by a first terminal device or a second target virtual key sent by a second terminal device, it deletes the other from the virtual key lookup table.
[0102] In some embodiments, when the target storage device receives either a first target virtual key sent by a first terminal device or a second target virtual key sent by a second terminal device, it deletes the other from the virtual key lookup table.
[0103] In some embodiments, if the target storage device receives a permission release command from the target terminal device, it deletes the target virtual key from the virtual key lookup table according to the permission release command. Users can also actively send a permission release command to lose control of the target storage device. For example, user A transfers control of the target storage device to user B by actively sending a permission release command to the target storage device, ensuring that user B's control over the target storage device is unique.
[0104] This application also provides a third method for controlling a storage system. This third storage system includes multiple storage devices and a terminal device. Each storage device includes one or more storage spaces and is equipped with a pre-set operating system. The terminal device also has an operating system. Based on the operating system, the multiple storage devices and the terminal device are connected via a distributed soft bus. Each storage device stores a virtual key lookup table, which records generated and assigned virtual keys. The pre-set operating system includes HarmonyOS and other distributed systems.
[0105] like Figure 5 As shown, the third storage system of this application includes a terminal device, a first storage device, and two second storage devices. Each of the first and second storage devices may include one or more storage spaces. Within the signal range of the distributed soft bus, the terminal device, the first storage device, and the multiple second storage devices communicate with each other.
[0106] Please see Figure 6 The control method for the third storage system provided in this application includes steps S301 to S304.
[0107] S301, The terminal device sends a first control permission request to the first storage device, where the first storage device is any one of multiple storage devices; the terminal device receives a first virtual key generated by the first storage device according to the first control permission request to obtain control permission for the first storage device.
[0108] S302, the first storage device sends a control permission request to one or more second storage devices, wherein the second storage device is any one of the multiple storage devices other than the first storage device.
[0109] S303. When the second storage device receives a second control permission request sent by the target storage device, it generates and saves a second virtual key according to the second control permission request.
[0110] S304. The terminal device receives the second virtual key and obtains control of the second storage device through the second virtual key.
[0111] The distributed soft bus enables a single terminal device to manage multiple storage devices, and also enables efficient near-field information interaction management, improving the management efficiency of storage devices and enhancing the user experience.
[0112] The fourth storage system provided in this application includes multiple storage devices and terminal devices, each of which includes a memory and a processor. The memory is used to store a computer program. The processor is used to execute the computer program and, when executing the computer program, implement the control method of any of the storage systems provided in the embodiments of this application.
[0113] like Figure 7 As shown, the storage device 200 may include a processor 211 and a memory 212, which are connected by a bus, such as an I2C (Inter-integrated Circuit) bus.
[0114] Specifically, the processor 211 can be a microcontroller unit (MCU), a central processing unit (CPU), or a digital signal processor (DSP), etc.
[0115] Specifically, the memory 212 can be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a portable hard drive, etc. The memory 212 stores various computer programs for the processor 211 to execute.
[0116] like Figure 8 As shown, the terminal device 300 may include a processor 311 and a memory 312, which are connected by a bus, such as an I2C (Inter-integrated Circuit) bus.
[0117] Specifically, the processor 311 can be a microcontroller unit (MCU), a central processing unit (CPU), or a digital signal processor (DSP), etc.
[0118] Specifically, the memory 312 can be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a portable hard drive, etc. The memory 312 stores various computer programs for the processor 311 to execute.
[0119] Processor 211 is used to run computer programs stored in memory 212, and processor 311 is used to run computer programs stored in memory 312. Processors 211 and 311 are collectively referred to as system processors. When executing a corresponding computer program, the system processor determines whether to call processor 211 or processor 311 based on the execution subject of the computer program (storage device 200 or terminal device 300). When executing the corresponding computer program, processors 211 and 311 respectively implement the following steps:
[0120] When a target storage device receives a control permission request from a terminal device, it determines whether it can assign control permission to the terminal device based on the permission control table. The target storage device can be any one of multiple storage devices. If it can assign control permission to the terminal device, the target storage device generates a target virtual key based on the control permission request and stores the target virtual key in the target storage device's virtual key lookup table. The target storage device then sends the target virtual key to the corresponding terminal device, and the terminal device obtains control permission for the target storage device through the target virtual key.
[0121] In one embodiment, after the system processor determines whether the target storage device can be granted control permissions to the terminal device according to the access control table, it performs the following:
[0122] If control permissions cannot be assigned to the terminal device, the terminal device also sends a control permission request to the super terminal. The control permission request includes the terminal device information of the terminal device, which the super terminal uses to modify the virtual key lookup table. If the super terminal receives the control permission request, it determines whether it can assign control permissions of the target storage device to the terminal device. If it can assign control permissions of the target storage device to the terminal device, the super terminal sends the terminal device information to the target storage device so that the target device can update the virtual key lookup table according to the terminal device information.
[0123] In some embodiments, the system processor is further configured to implement:
[0124] Based on a distributed soft bus, multiple target storage devices share their stored virtual key lookup tables with the super terminal, which then generates an access control table based on these virtual key lookup tables.
[0125] In some embodiments, multiple terminal devices can obtain control rights over the target storage device.
[0126] In some embodiments, the system processor is further configured to implement:
[0127] The first terminal device sends a permission transfer request to the super terminal to transfer control of the target storage device to the second terminal device. The super terminal receives the permission transfer request and, based on the permission control table and the request, determines whether to allow the first terminal device to transfer control of the target storage device to the second terminal device. If allowed, the first terminal device sends a permission transfer request for the target storage device to the second terminal device. The permission transfer request includes the first target virtual key of the target storage device. The first terminal device obtains control of the target storage device. The first terminal device is one of multiple terminal devices in the storage system, and the second terminal device is another of multiple terminal devices in the storage system. If the second terminal device receives the permission transfer request, it obtains the first target virtual key. The target storage device updates its virtual key lookup table, changing the terminal device corresponding to the first target virtual key to the second terminal device.
[0128] In some embodiments, the system processor is further configured to implement:
[0129] If the second terminal device receives a permission transfer request, the second terminal device obtains the first target virtual key; the target storage device updates the virtual key lookup table and adds the second terminal device as the terminal device corresponding to the first target virtual key.
[0130] In some embodiments, the system processor is further configured to implement:
[0131] The second terminal device sends a control permission acquisition request to the super terminal, and the first terminal device obtains control permission for the target storage device. The super terminal receives the control permission acquisition request and determines whether to allow the second terminal device to acquire the first terminal device's control permission over the target storage device based on the permission control table and the control permission acquisition request. If allowed, the second terminal device sends a control permission acquisition request to the first terminal device. If the first terminal device receives the control permission acquisition request, the target storage device generates a second target virtual key, saves the second target virtual key in the target storage device's virtual key lookup table, and sends the second target virtual key to the corresponding second terminal device. The second terminal device obtains control permission for the target storage device through the second target virtual key.
[0132] In some embodiments, the first terminal device stores a first target virtual key for the target storage device; the system processor is further configured to implement:
[0133] When the target storage device receives either the first target virtual key sent by the first terminal device or the second target virtual key sent by the second terminal device, it deletes the other one from the virtual key lookup table.
[0134] In some embodiments, the system processor is further configured to implement:
[0135] If the target storage device receives a permission release command from the target terminal device, it deletes the target virtual key from the virtual key lookup table according to the permission release command.
[0136] In some embodiments, when a terminal device obtains control access to a target storage device via a target virtual key, the system processor is configured to:
[0137] The terminal device sends a target virtual key to the target storage device. When the target storage device receives the control key, it authenticates the terminal device according to the control key and the updated virtual key lookup table. After successful authentication, a communication connection is established with the terminal device so that the terminal device can control the target storage device.
[0138] In another embodiment, when the system processor executes the corresponding computer program, it determines whether to invoke processor 211 or processor 311 based on the execution entity of the computer program (storage device 200 or terminal device 300). When executing the corresponding computer program, processor 211 and processor 311 respectively implement the following steps:
[0139] When the target storage device receives a control permission request from the terminal device, it generates a target virtual key based on the control permission request and stores the target virtual key in the target storage device's virtual key lookup table. The target storage device can be any one of multiple storage devices. The target storage device sends the target virtual key to the corresponding terminal device, and the terminal device obtains control permission for the target storage device through the target virtual key.
[0140] In some embodiments, multiple terminal devices can obtain control rights over the target storage device.
[0141] In some embodiments, the system processor is further configured to implement:
[0142] The first terminal device sends a permission transfer request for the target storage device to the second terminal device. The permission transfer request includes the first target virtual key of the target storage device. The first terminal device obtains control rights over the target storage device. The first terminal device is one of multiple terminal devices in the storage system, and the second terminal device is another of multiple terminal devices in the storage system. If the second terminal device receives the permission transfer request, the second terminal device obtains the first target virtual key. The target storage device updates its virtual key lookup table, changing the terminal device corresponding to the first target virtual key to the second terminal device.
[0143] In some embodiments, the system processor is further configured to implement:
[0144] If the second terminal device receives a permission transfer request, the second terminal device obtains the first target virtual key; the target storage device updates the virtual key lookup table and adds the second terminal device as the terminal device corresponding to the first target virtual key.
[0145] In some embodiments, the system processor is further configured to implement:
[0146] The second terminal device sends a request to the first terminal device to obtain control rights to the target storage device, and the first terminal device obtains control rights to the target storage device. If the first terminal device receives the request to obtain control rights, the target storage device generates a second target virtual key, saves the second target virtual key in the target storage device's virtual key lookup table, and sends the second target virtual key to the corresponding second terminal device. The second terminal device obtains control rights to the target storage device through the second target virtual key.
[0147] In some embodiments, the first terminal device stores a first target virtual key for the target storage device; the system processor is further configured to implement:
[0148] When the target storage device receives either the first target virtual key sent by the first terminal device or the second target virtual key sent by the second terminal device, it deletes the other one from the virtual key lookup table.
[0149] In some embodiments, the system processor is further configured to implement:
[0150] If the target storage device receives a permission release command from the target terminal device, it deletes the target virtual key from the virtual key lookup table according to the permission release command.
[0151] In some embodiments, when a terminal device obtains control access to a target storage device via a target virtual key, the system processor is configured to:
[0152] The terminal device sends a target virtual key to the target storage device. When the target storage device receives the control key, it authenticates the terminal device according to the control key and the updated virtual key lookup table. After successful authentication, a communication connection is established with the terminal device so that the terminal device can control the target storage device.
[0153] In some embodiments, multiple terminal devices can communicate with each other via near-field communication, which includes any one of NFC, Bluetooth, and WiFi.
[0154] In another embodiment, when the system processor executes the corresponding computer program, it determines whether to invoke processor 211 or processor 311 based on the execution entity of the computer program (storage device 200 or terminal device 300). When executing the corresponding computer program, processor 211 and processor 311 respectively implement the following steps:
[0155] The terminal device sends a first control permission request to the first storage device, which can be any one of multiple storage devices; the terminal device receives a first virtual key generated by the first storage device according to the first control permission request to obtain control permission for the first storage device;
[0156] The first storage device sends a control permission request to one or more second storage devices, wherein the second storage device is any one of the multiple storage devices other than the first storage device; when the second storage device receives the second control permission request sent by the target storage device, it generates and saves a second virtual key according to the second control permission request; the terminal device receives the second virtual key and obtains control permission of the second storage device through the second virtual key.
[0157] This application provides a computer-readable storage medium that stores one or more programs that can be executed by one or more processors to implement any of the storage system control methods provided in this application.
[0158] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiments, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, SmartMedia Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the computer device.
[0159] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A control method for a storage system, characterized in that, The storage system includes multiple storage devices and multiple terminal devices. Each storage device includes one or more storage spaces and is equipped with a preset operating system. Each terminal device is also equipped with the operating system. Based on the operating system, the multiple storage devices and the multiple terminal devices are connected via a distributed soft bus. Each storage device stores a virtual key lookup table, which records the generated and assigned virtual keys and the corresponding terminal devices. The multiple storage devices share a permission control table, which records the control permissions obtained by the terminal devices for the storage devices and the usage information of the control permissions. The control method includes: When the target storage device receives a control permission request from the terminal device, it determines whether it can assign its control permission to the terminal device according to the permission control table. The target storage device can be any one of the multiple storage devices. If control permissions can be assigned to the terminal device, the target storage device generates a target virtual key according to the control permission request and stores the target virtual key in the target storage device's virtual key lookup table; The target storage device sends the target virtual key to the corresponding terminal device, and the terminal device obtains control access to the target storage device through the target virtual key. The terminal device includes at least a first terminal device and a second terminal device; wherein, multiple terminal devices can obtain control access to the target storage device. The second terminal device sends a control permission acquisition request to the super terminal, and the first terminal device obtains control permission for the target storage device; The super terminal receives the control permission acquisition request and determines, based on the permission control table and the control permission acquisition request, whether to allow the second terminal device to acquire the control permission of the first terminal device over the target storage device. If permitted, the second terminal device sends the control permission acquisition request to the first terminal device; If the first terminal device receives the control permission acquisition request, the target storage device generates a second target virtual key, stores the second target virtual key in the virtual key lookup table of the target storage device, and sends the second target virtual key to the corresponding second terminal device. The second terminal device obtains control permission of the target storage device through the second target virtual key. The first terminal device sends a permission transfer request to the super terminal to transfer control of the target storage device to the second terminal device. If allowed, the first terminal device sends a permission transfer request for the target storage device to the second terminal device. If the second terminal device receives the permission transfer request, the second terminal device obtains the first target virtual key. The target storage device updates its virtual key lookup table and changes the terminal device corresponding to the first target virtual key to the second terminal device.
2. The control method for the storage system as described in claim 1, characterized in that, After the target storage device determines whether it can assign its control permissions to the terminal device according to the access control table, the control method further includes: If control permissions cannot be assigned to the terminal device, the terminal device also sends a control permission request to the super terminal. The control permission request includes the terminal device information of the terminal device. The super terminal is used to change the virtual key lookup table. If the super terminal receives the control permission request, it determines whether it can allocate control permission for the target storage device to the terminal device. If control permissions for the target storage device can be assigned to the terminal device, the super terminal will send the terminal device information to the target storage device so that the target storage device updates the virtual key lookup table based on the terminal device information.
3. The control method for the storage system as described in claim 1, characterized in that, The control method further includes: Based on a distributed soft bus, multiple target storage devices share their stored virtual key lookup tables with the super terminal, and the super terminal generates the access control table based on the multiple virtual key lookup tables.
4. The control method for the storage system as described in claim 1, characterized in that, The first terminal device stores the first target virtual key of the target storage device; The control method further includes: When the target storage device receives either the first target virtual key sent by the first terminal device or the second target virtual key sent by the second terminal device, it deletes the other one from the virtual key lookup table.
5. The control method for the storage system as described in claim 1, characterized in that, The control method further includes: If the target storage device receives a permission release instruction from the target terminal device, it deletes the target virtual key from the virtual key lookup table according to the permission release instruction.
6. The control method for the storage system as described in claim 1, characterized in that, The terminal device obtains control access to the target storage device through the target virtual key, including: The terminal device sends the target virtual key to the target storage device; When the target storage device receives the target virtual key, it authenticates the terminal device based on the target virtual key and the updated virtual key lookup table. After successful authentication, it establishes a communication connection with the terminal device so that the terminal device can control the target storage device.
7. A control method for a storage system, characterized in that, The storage system includes multiple storage devices and multiple terminal devices. Each storage device includes one or more storage spaces and is equipped with a preset operating system. Each terminal device also carries the operating system. Based on the operating system, the multiple storage devices and terminal devices are connected via a distributed soft bus. Each storage device stores a virtual key lookup table, which records generated and assigned virtual keys and the corresponding terminal devices. The control method includes: When the target storage device receives a control permission request sent by the terminal device, it generates a target virtual key according to the control permission request and stores the target virtual key in the virtual key lookup table of the target storage device. The target storage device can be any one of the multiple storage devices. The target storage device sends the target virtual key to the corresponding terminal device, and the terminal device obtains control rights over the target storage device through the target virtual key. The terminal device includes at least a first terminal device and a second terminal device. The second terminal device sends a request to the first terminal device to obtain control permission for the target storage device, and the first terminal device obtains control permission for the target storage device; If the first terminal device receives the control permission acquisition request, the target storage device generates a second target virtual key, stores the second target virtual key in the virtual key lookup table of the target storage device, and sends the second target virtual key to the corresponding second terminal device. The second terminal device obtains control permission of the target storage device through the second target virtual key. The first terminal device sends a permission transfer request for the target storage device to the second terminal device. If the second terminal device receives the permission transfer request, the second terminal device obtains the first target virtual key. The target storage device updates its virtual key lookup table and changes the terminal device corresponding to the first target virtual key to the second terminal device.
8. The control method for the storage system as described in claim 7, characterized in that, Multiple terminal devices can obtain control permissions for the target storage device.
9. The control method for the storage system as described in claim 7, characterized in that, The first terminal device stores the first target virtual key of the target storage device; The control method further includes: When the target storage device receives either the first target virtual key sent by the first terminal device or the second target virtual key sent by the second terminal device, it deletes the other one from the virtual key lookup table.
10. The control method for the storage system as described in claim 7, characterized in that, The control method further includes: If the target storage device receives a permission release instruction from the target terminal device, it deletes the target virtual key from the virtual key lookup table according to the permission release instruction.
11. The control method for the storage system as described in claim 7, characterized in that, The terminal device obtains control access to the target storage device through the target virtual key, including: The terminal device sends the target virtual key to the target storage device; When the target storage device receives the target virtual key, it authenticates the terminal device based on the target virtual key and the updated virtual key lookup table. After successful authentication, it establishes a communication connection with the terminal device so that the terminal device can control the target storage device.
12. The control method for the storage system as described in any one of claims 7-11, characterized in that, Multiple terminal devices can communicate with each other via a short-range communication method, which includes any one of NFC, Bluetooth, and WiFi.
13. A storage system, characterized in that, The storage system includes multiple storage devices and multiple terminal devices. Each storage device includes one or more storage spaces and is equipped with a preset operating system. Each terminal device is also equipped with the operating system. Based on the operating system, the multiple storage devices and the multiple terminal devices are connected via a distributed soft bus. Both the storage devices and the terminal devices include a memory and a processor. The memory is used to store computer programs; The processor is configured to execute the computer program and, in executing the computer program, implement the control method of the storage system as described in any one of claims 1 to 12.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to implement the control method of the storage system as described in any one of claims 1 to 12.