Storage extension method, electronic equipment, external storage equipment and storage medium
By establishing a wireless communication connection between electronic devices and external storage devices, and using wireless charging units to transfer data, the problem of insufficient built-in storage capacity is solved, storage expansion is achieved, and user experience is improved.
Patent Information
- Application Number
- CN202310402965.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-11
- Publication Date
- 2024-10-18
AI Technical Summary
Since electronic devices use built-in fixed-capacity memory and do not have expansion storage interfaces, users need to frequently clean up or transfer data, which affects the user experience.
By establishing a wireless communication connection between the electronic device and the external storage device, using the wireless charging unit for reverse charging, and automatically transferring data to the external storage device based on the preset transfer strategy, the storage capacity is expanded.
There is no need for users to frequently clean data, and storage capacity is automatically expanded, which improves user experience and provides more data reading and writing capabilities.
Smart Images

Figure CN118796087A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of storage technology, and in particular to a storage expansion method, an electronic device, an external storage device and a storage medium. Background Art
[0002] Nowadays, in order to store data, electronic devices such as smartphones, tablets, and smart wearable devices are equipped with memory. However, in order to reduce the size of the device, the number of interfaces, and avoid the access of non-original storage devices, many electronic devices use built-in and fixed-capacity memory without an interface for extended storage. As the use time of electronic devices increases, the user data increases, and the built-in memory cannot meet the user's storage needs, resulting in users needing to frequently clean up or transfer data, causing inconvenience to users and affecting the user experience. Summary of the invention
[0003] In view of this, it is necessary to provide a storage expansion method, an external storage device, an electronic device and a storage medium to solve the problem that users need to frequently clean up or transfer data because the electronic device uses a built-in and fixed-capacity memory and does not have an interface for expanding storage.
[0004] A first aspect of the present application provides a storage expansion method, which is applied to an electronic device, and the method includes: establishing a communication connection between the electronic device and an external storage device in response to a data transfer instruction; based on the communication connection between the electronic device and the external storage device, wirelessly charging the external storage device through a first wireless charging unit; and during the process of wirelessly charging the external storage device, transferring data of the electronic device to the external storage device based on a preset transfer strategy.
[0005] In a possible implementation, the external storage device is disposed within an effective identification area of the electronic device, and the wireless charging of the external storage device by the first wireless charging unit includes: based on the Wireless Power Consortium WPC protocol, reverse wireless charging of the external storage device by the first wireless charging unit.
[0006] In a possible implementation, the method further includes: when the electronic device adds new data to be stored, detecting the available capacity of the memory of the electronic device; if the available capacity is less than or equal to a preset value, generating the data transfer instruction.
[0007] In a possible implementation, the preset transfer strategy includes: a preset storage time, a preset data type, a preset capacity, and a preset processing method of the data to be transferred.
[0008] In one possible implementation, transferring the data of the electronic device to the external storage device based on a preset transfer strategy includes: obtaining the data to be transferred from the electronic device based on a preset storage time, a preset data type, and a preset capacity in the preset transfer strategy; transferring the data to be transferred to the external storage device, and processing the data to be transferred based on a preset processing method in the preset transfer strategy.
[0009] In a possible implementation, the method further includes: based on the communication connection between the electronic device and the external storage device, reading the data in the external storage device through a preset application.
[0010] The second aspect of the present application provides a storage expansion method, which is applied to an external storage device, and the method includes: establishing a communication connection between the external storage device and the electronic device in response to a communication connection request sent by the electronic device; based on the communication connection between the external storage device and the electronic device, receiving wireless charging of the electronic device through a second wireless charging unit; and receiving and storing data transferred by the electronic device during the process of receiving wireless charging of the electronic device.
[0011] In a possible implementation, the method further includes: encrypting the data transferred by the electronic device to limit the transferred data to be read and written by the electronic device in the external storage device.
[0012] In a possible implementation, the method further includes: when receiving wireless charging of the electronic device, detecting whether there is a foreign object in an effective identification area of the electronic device; if it is detected that there is a foreign object in the effective identification area of the electronic device, stopping charging.
[0013] The third aspect of the present application provides an electronic device, which includes a processor, a memory and a first wireless charging unit, wherein the first wireless charging unit is used to wirelessly charge the external storage device when the electronic device is communicatively connected to the external storage device, the memory is used to store instructions, and the processor is used to call the instructions in the memory so that the electronic device executes the above-mentioned storage expansion method.
[0014] A fourth aspect of the present application provides an external storage device, which includes a processor, a memory, and a second wireless charging unit, wherein the second wireless charging unit is used to receive wireless charging of the electronic device when the external storage device is communicatively connected to the electronic device, the memory is used to store instructions, and the processor is used to call the instructions in the memory so that the external storage device executes the above-mentioned storage expansion method.
[0015] The fifth aspect of the present application provides a computer-readable storage medium, comprising computer instructions, which, when the computer instructions are executed on an electronic device, enable the electronic device to execute the above-mentioned storage expansion method, or when the computer instructions are executed on an external storage device, enable the external storage device to execute the storage expansion method as claimed in the claim above.
[0016] The embodiment of the present application expands the storage capacity by communicating between the electronic device and the external storage device and charging the external storage device, so that data can be automatically transferred to the external storage device. Users can read and write more data through the electronic device without the need to frequently clean up data, thereby effectively improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A flowchart of a storage expansion method provided in one embodiment of the present application.
[0018] Figure 2 A schematic diagram of the framework of a storage expansion system provided in one embodiment of the present application.
[0019] Figure 3 A flowchart of establishing a communication connection between an electronic device and an external storage device provided in one embodiment of the present application.
[0020] Figure 4 A schematic diagram of the positional relationship between an electronic device and an external storage device provided in one embodiment of the present application.
[0021] Figure 5 A flowchart of a storage expansion method provided in another embodiment of the present application.
[0022] Figure 6 A flowchart of a storage expansion method provided in another embodiment of the present application.
[0023] Figure 7 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application.
[0024] Figure 8 A schematic diagram of the structure of an external storage device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0025] It should be noted that in this application, "at least one" means one or more, and "more than one" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.
[0026] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. The following embodiments and features in the embodiments may be combined with each other without conflict.
[0027] At present, in the actual application of many electronic devices with built-in storage (such as mobile phones), due to the limitation of volume, the interface for expanding storage is abandoned, and built-in storage is used. Few support the function of external storage. However, with the increase of usage time, the user data increases, and the user's demand for built-in storage is also getting higher and higher. In order to clean up the storage space of the built-in storage, it is necessary to transfer the data of the built-in storage to other devices or cloud servers, and then delete the data in the built-in storage, so as to achieve the purpose of increasing the available storage space. When it is necessary to browse this part of the transferred data, it is necessary to read it from the corresponding transfer device or cloud. Although there are cloud storage, data cable connection to personal computer end transfer, different forms of U disk transfer, etc., the actual data reading or clearing of transferred data is mostly cumbersome. For example, cloud storage needs to be charged according to time and capacity, and the charge is continuous. The transfer and reading of the personal computer end needs to be connected to the data cable, which is cumbersome and inconvenient. Different forms of U disk transfer, because the data is on the U disk, the storage and reading of the U disk depend on the user's storage of the U disk, and the U disk has the risk of loss, which easily leads to data loss.
[0028] In addition, there is another solution for expanding storage, which uses a wifi SD card. The wifi SD card is powered by an external battery or power supply. Data can be synchronized to the device end via wifi, but data cannot be written back to the wifi SD card from the device end. The present invention provides real-time and non-real-time data transfer to the device end, and supports deletion of data after transfer.
[0029] In order to avoid the need for users to frequently clean up or transfer data when an electronic device uses a built-in and fixed-capacity memory and no interface for expanding the storage is set, the present application provides a storage expansion method.
[0030] See also Figure 1 FIG. 1 is a flowchart of a storage expansion method provided in an embodiment of the present application. The storage expansion method is applied to a storage expansion system, and the method includes:
[0031] S101, in response to a data transfer instruction, establishing a communication connection between the electronic device and an external storage device.
[0032] See also Figure 2 As shown, it is a schematic diagram of the framework of the storage expansion system provided in one embodiment of the present application. The storage expansion system 1 includes an electronic device 100 and an external storage device 200. The electronic device 100 includes but is not limited to a first wireless communication module 101, a first wireless charging unit 102 and a storage management module 103. The external storage device 200 includes but is not limited to a second wireless communication module 201, a second wireless charging unit 202, a power system 203, a controller 204 and a storage unit 205. In one embodiment of the present application, the electronic device 100 can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, a super mobile personal computer, a netbook, as well as a cellular phone, a personal digital assistant, an augmented reality device, a virtual reality device, an artificial intelligence device, a wearable device, a vehicle-mounted device, a smart home device and / or a smart city device. The external storage device 200 may include one or more random access memories and one or more non-volatile memories. The random access memory may include a static random access memory, a dynamic random access memory, a synchronous dynamic random access memory, a double data rate synchronous dynamic random access memory, etc.; the non-volatile memory may include a disk storage device, a flash memory, etc. The embodiment of the present application does not impose any special restrictions on the specific types of the electronic device 100 and the external storage device 200.
[0033] In one embodiment of the present application, in response to the data transfer instruction, the detailed process of establishing the communication connection between the electronic device and the external storage device is as follows: Figure 3 As shown, specifically including:
[0034] S1011, when adding data to be stored, the electronic device detects the available capacity of the memory of the electronic device.
[0035] In one embodiment of the present application, when the electronic device receives a data storage request from an application, the storage management module 103 detects the available capacity of the memory in response to the data storage request. Detecting the available capacity of the memory includes: obtaining the storage capacity currently occupied by the memory, subtracting the currently occupied storage capacity from the maximum storage capacity of the memory, and obtaining the available capacity of the memory.
[0036] S1012, determine whether the available capacity is less than or equal to a preset value. If the available capacity is less than or equal to the preset value, the process proceeds to S1013; if the available capacity is greater than the preset value, the process returns to S1011.
[0037] S1013, generate a data transfer instruction.
[0038] In one embodiment of the present application, if the available capacity is less than or equal to the preset value, generating a data transfer instruction includes: the storage management module 103 compares the available capacity of the memory with the preset value, determines whether the available capacity is less than or equal to the preset value, and generates a data transfer instruction if it is determined that the available capacity is less than or equal to the preset value. If it is determined that the available capacity is greater than the preset value, the process returns to S1011. In one embodiment of the present application, the preset value is a storage capacity value, for example, 10G. In another embodiment of the present application, the preset value is a percentage, for example, 20%.
[0039] S1014, in response to the data transfer instruction, establishing a communication connection between the electronic device and the external storage device.
[0040] In one embodiment of the present application, establishing a communication connection between an electronic device and an external storage device includes: the storage management module 103 controls the first wireless communication module 101 to enable the wireless communication function, sends a first communication connection request to the external storage device 200, the external storage device 200 searches for a wireless communication signal in response to the first communication connection request, and when the wireless communication signal is found, sends a second communication connection request to the electronic device 100, the electronic device 100 authenticates the second communication connection request, and when the authentication is passed, establishes a communication connection with the external storage device 200. In one embodiment of the present application, the wireless communication function can be wifi or bluetooth, the wifi function can be formed based on a wireless communication network (such as a cellular network such as 4G or 5G) used by the electronic device 100, and the bluetooth is formed based on a bluetooth module of the electronic device 100.
[0041] In one embodiment of the present application, the first communication connection request includes a preset network name of the electronic device 100, which is preset by the user or automatically generated by the electronic device 100. After receiving the first communication connection, the second communication module 201 of the external storage device 200 obtains the preset network name and searches for the wireless communication signal. When the wireless communication signal corresponding to the preset network name is searched, the communication address corresponding to the preset network name is obtained. The second communication connection request includes a key of the preset network name. The second communication module 201 generates a second communication connection request based on the key and sends the second communication connection request to the electronic device 100. The electronic device 100 verifies the key in the second communication connection request. If the key in the second communication connection request is the same as the preset key, it is determined that the second communication connection request is authenticated, and a communication connection is established between the electronic device 100 and the external storage device 200.
[0042] In another embodiment of the present application, the storage management module 103 obtains the capacity of the data to be stored, compares the capacity of the data to be stored with the available capacity, determines whether the capacity of the data to be stored is greater than the available capacity, and generates a data transfer instruction if it is determined that the capacity of the data to be stored is less than the available capacity. If it is determined that the available capacity is greater than or equal to the preset value, the step of detecting the available capacity of the memory of the electronic device when adding the data to be stored is returned.
[0043] S102: The external storage device establishes a communication connection between the external storage device and the electronic device in response to a communication connection request sent by the electronic device.
[0044] S103: Based on the communication connection with the external storage device, the electronic device wirelessly charges the external storage device through the first wireless charging unit.
[0045] In one embodiment of the present application, an electronic device performs reverse charging of an external storage device based on the WPC (Wireless Power Consortium) protocol. The first wireless charging unit of the electronic device is a charging module, including a transmitting coil, and the second wireless charging unit of the external storage device is a power receiving module, including a receiving coil. Based on the Wireless Power Consortium WPC protocol, reverse wireless charging of the external storage device by the first wireless charging unit includes: controlling the power supply of the electronic device to transmit current to the transmitting coil, so that the receiving coil and the transmitting coil generate an induced current, the second wireless charging unit transmits the induced current to the power system, and the power system supplies power to the external storage device, thereby charging the external storage device.
[0046] In one embodiment of the present application, the external storage device is disposed within the effective recognition area of the reverse charging function of the electronic device, so that the distance between the external storage device and the electronic device is less than the working distance of the reverse charging. Figure 4 As shown, for example, the electronic device is a mobile phone, and the external storage device can be set on the back of the electronic device in a magnetically attracted manner or integrated into a mobile phone case.
[0047] In one embodiment of the present application, the first wireless charging unit of the electronic device and the second wireless charging unit of the external storage device perform reverse charging based on the Qi specification of WPC. The second wireless charging unit may be integrated with a second wireless communication module, communicate with the first wireless charging unit based on the wireless communication network, realize communication and power transmission with the first wireless charging unit, and perform reverse charging identification and configuration. The second wireless charging unit sends charging identification information to the first wireless charging unit of the electronic device based on the wireless communication network, and the first wireless charging unit performs charging authentication on the charging identification information, and determines whether the charging identification information is the same as the preset charging identification information. If the same, it is determined that the external storage device passes the charging authentication. The charging identification information may be a device identifier of the external storage device.
[0048] In one embodiment of the present application, after the external storage device passes the charging authentication, the second wireless charging unit and the first wireless charging unit configure charging parameters, so that the first wireless charging unit and the second wireless charging unit charge based on the charging parameters. The charging parameters include but are not limited to transmission power, receiving power, and output voltage.
[0049] In one embodiment of the present application, during the charging process of the first wireless charging unit and the second wireless charging unit, the second wireless charging unit also performs foreign object detection to detect whether there is a foreign object in the effective identification area of the electronic device; if it is detected that there is a foreign object in the effective identification area of the electronic device, charging is stopped. The principle of the second wireless charging unit performing foreign object detection is: calculating the difference between the received power and the transmitted power, judging whether the difference between the received power and the transmitted power is greater than or equal to the preset power, if it is determined that the difference between the received power and the transmitted power is greater than or equal to the preset power, it is determined that there is a foreign object in the effective identification area of the electronic device, and if it is determined that the difference between the received power and the transmitted power is less than the preset power, it is determined that there is no foreign object in the effective identification area of the electronic device.
[0050] In another embodiment of the present application, foreign object detection can also be implemented by the first wireless charging unit of the electronic device. The foreign object detection principle of the first wireless charging unit can be: emitting infrared rays to the surroundings of the electronic device, and if infrared rays reflected by objects other than the external storage device are received, it is determined that there are foreign objects in the effective recognition area of the electronic device; if infrared rays reflected by objects other than the external storage device are not received, it is determined that there are no foreign objects in the effective recognition area of the electronic device. The first wireless charging unit can also perform foreign object detection based on the quality factor Q value detection method, specifically including: the first wireless charging unit detects the Q value of the charging circuit in real time during the charging process, and if the Q value is less than or equal to the preset Q value, it is determined that there are foreign objects in the effective recognition area of the electronic device; if the Q value is greater than the preset Q value, it is determined that there are no foreign objects in the effective recognition area of the electronic device.
[0051] In one embodiment of the present application, the second wireless charging unit can also detect the power transmission state during the charging process, perform error feedback and anti-interference processing, etc. Error feedback includes detecting anomalies during the charging process (such as the presence of foreign objects, no power received, abnormal charging parameters, etc.), and when anomalies exist, sending abnormal information to the electronic device, and outputting prompt information through the electronic device to prompt the user of charging abnormalities. Anti-interference processing includes controlling the second wireless charging unit to stop charging or adjust the charging parameters for charging when foreign objects or abnormal charging parameters are detected.
[0052] In one embodiment of the present application, the second wireless charging unit also provides transmission of basic communication data packets, including but not limited to signal strength packets, termination transmission packets, configuration packets, identity identification packets, control error packets, and received power packets.
[0053] S104: Based on the communication connection with the electronic device, the external storage device receives wireless charging from the electronic device through the second wireless charging unit.
[0054] S105, during the process of wirelessly charging the external storage device, the electronic device transfers the data to the external storage device based on a preset transfer strategy.
[0055] In one embodiment of the present application, the preset transfer strategy includes but is not limited to the preset storage time, preset data type, preset capacity and preset processing method of the data to be transferred. The preset storage time of the data to be transferred is the timestamp when the data is stored in the electronic device. According to the timestamp, it can be determined whether to transfer the data with the longest storage time in the electronic device or the newly added data. The preset data types are video and picture. The preset capacity can be 500M. The preset processing methods include retention and deletion.
[0056] In one embodiment of the present application, the electronic device transfers data to an external storage device based on a preset transfer strategy, including: the storage management module 103 obtains the data to be transferred from the electronic device based on the preset storage time, preset data type, and preset capacity in the preset transfer strategy; transfers the data to be transferred to the external storage device, and processes the data to be transferred based on the preset processing method in the preset transfer strategy.
[0057] In one embodiment of the present application, the storage management module 103 is an extended storage management application. When the user opens the extended storage management application for the first time, or in the setting options of the electronic device, the user can assign data permissions to the extended storage management application, such as read and write permissions for photo albums, read and write permissions for other application data, etc.
[0058] For example, the preset storage time in the preset transfer strategy is the storage time of the newly added data, the preset data type is video, the preset capacity is 50M, and the preset storage method is deletion. The storage management module 103 obtains the video with a capacity of more than 50M corresponding to the preset storage time, transfers the obtained video to the external storage device via the wireless communication network, and deletes the corresponding data in the memory.
[0059] In one embodiment of the present application, the extended storage management application can manage the read and write permissions of the transferred data. For example, the extended storage management application can create folders for the data in the external storage device and set corresponding read and write permissions for different folders. It can also set the read and write permissions corresponding to different data types (such as videos and pictures) by providing corresponding options. The extended storage management application also supports functions such as setting passwords, password retrieval, and locking external storage device access for a preset period of time after multiple incorrect password inputs. For example, when a user opens the extended storage management application to transfer data, the extended storage management application displays a verification interface, which includes an input box for the account and password, and options for account registration and password retrieval. The extended storage management application verifies the account and password entered by the user. When the account and password are incorrect three times, the external storage device access is locked for 24 hours. At this time, the user cannot read, write, browse, and process data through the extended storage management application.
[0060] In one embodiment of the present application, the extended storage management application can also provide corresponding encryption options to manage the encryption and decryption of data transferred to the external storage device, and prevent data leakage after the extended storage card is offline to the external storage device in an application scenario that supports memory card (such as TF card) expansion. The extended storage card can only read and write data on the memory card through the extended storage management application when the external storage device communicates with the corresponding electronic device. Other data reading and writing scenarios are illegal and there is no corresponding read and write permission.
[0061] In one embodiment of the present application, the extended storage management application can also perform data management on the external storage device, including: transfer data directory management and renaming management; data reading and writing from the device side to the external storage device; data reading and writing from the external storage device to the electronic device; browsing the data of the external storage device; cropping / effect processing of the data of the external storage device, etc.
[0062] S106, the external storage device receives and stores the data transferred by the electronic device.
[0063] See also Figure 5 FIG. 1 is a flowchart of a storage expansion method provided by another embodiment of the present application. The storage expansion method is applied to an electronic device, and the method includes:
[0064] S201, in response to a data transfer instruction, establishing a communication connection between the electronic device and the external storage device.
[0065] S202: Based on the communication connection between the electronic device and the external storage device, wirelessly charge the external storage device through a first wireless charging unit.
[0066] S203, during the process of wirelessly charging the external storage device, transferring the data of the electronic device to the external storage device based on a preset transfer strategy.
[0067] See also Figure 6 FIG. 1 is a flowchart of a storage expansion method provided by another embodiment of the present application. The storage expansion method is applied to an external storage device, and the method includes:
[0068] S301, in response to a communication connection request sent by an electronic device, establishing a communication connection between an external storage device and the electronic device.
[0069] S302: Based on the communication connection between the external storage device and the electronic device, the second wireless charging unit receives wireless charging of the electronic device.
[0070] S303, receiving and storing data transferred by the electronic device during the process of receiving wireless charging of the electronic device.
[0071] S304, encrypting the data transferred by the electronic device to limit the transferred data to be read and written by the electronic device in the external storage device.
[0072] In one embodiment of the present application, the power supply system of the external storage device provides a stable power supply for the external storage device, provides the minimum power consumption power for starting the second wireless charging unit when there is no data transmission, the power energy during control operation comes from the second wireless charging unit, and provides power for the controller, the second wireless communication module, the storage unit and an optional expansion memory card (such as a TF card).
[0073] In one embodiment of the present application, the controller provides key support for encryption and decryption of data, and the key is associated with the unique ID of the controller, so that when the memory card is separated from the corresponding controller, the data cannot be read completely. The controller parses and responds to the control package corresponding to the extended storage management application transmitted by wifi or bluetooth, such as the management of wifi / bluetooth keys, the operation of the memory card and the health status detection.
[0074] In one embodiment of the present application, the controller has a preset ID, which may be the factory number of the controller or a number pre-set by the user. The preset ID corresponds to the controller and is unique to the controller. A key corresponding to the preset ID of the controller is generated by a preset first encryption algorithm, and based on the generated key, the data in the extended memory card is encrypted by a preset second encryption algorithm. Among them, the preset first encryption algorithm may be an asymmetric encryption algorithm, and the preset second encryption algorithm may be a symmetric encryption algorithm or a hash algorithm. When the extended memory card is set in an external storage device, when the electronic device reads the data in the extended memory card, the controller uses the key corresponding to the preset ID to decrypt the data, so that the electronic device can read the data in the extended memory card. If the extended memory card is connected to other devices, since the other devices do not have the preset ID of the controller, they cannot read the data in the extended memory card based on the key, ensuring that the data in the extended memory card can only be read by the electronic device when the extended memory card is set in an external storage device, thereby ensuring data security.
[0075] In another embodiment of the present application, the external storage device can also transmit a key generated based on the preset ID of the controller to the electronic device. When the electronic device needs to read the data in the extended storage card of the external storage device, the data in the extended storage card to be read is selected through the extended storage management application, and the data in the extended storage card to be read is copied to the electronic device. The electronic device obtains the key, and decrypts the read data with the key, and displays it on the extended storage management application interface. In this way, when the external storage device communicates with the electronic device, the data in the extended storage card can be decrypted and read, so as to limit the transfer data to be read and written by the electronic device in the external storage device.
[0076] In one embodiment of the present application, the second wireless communication module can reuse the results of the second wireless charging unit identification and configuration information to identify that the external storage device is within the communication range and establish a communication connection with the electronic device. The second wireless communication module can also maintain basic online connections and handshakes in the idle low-power mode of the WiFi or Bluetooth protocol to achieve real-time data reading and writing. The second wireless communication module also uses the effective bandwidth of the WiFi and Bluetooth protocols to transmit data, and during the data transmission process, the sending and receiving power are adaptively adjusted according to the communication quality. The second wireless communication module can also perform data reception and data reading and writing control of the storage card based on WiFi or Bluetooth.
[0077] In one embodiment of the present application, the controller provides workflow control for the external storage device, including control coordination of the second wireless charging unit and the power system, and turning on and off functions, such as data storage and reading functions.
[0078] In one embodiment of the present application, the storage unit of the external storage device actually stores data and sets a commonly used consumer operating temperature range. The storage unit can be a NAND (Not AND) flash memory, and the storage unit also supports the read and write interface of the extended storage card to facilitate further storage expansion.
[0079] See also Figure 7 , which is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application.
[0080] The electronic device 100 includes, but is not limited to, a first processor 11, a first memory 12, and a first computer program stored in the first memory 12 and executable on the first processor 11. For example, the first computer program is a storage expansion program. When the first processor 11 executes the first computer program, steps in the storage expansion method are implemented, such as Figure 1 Steps S101, S103, and S105 shown, Figure 2 Steps S201 to S203 are shown.
[0081] See also Figure 8 , which is a schematic diagram of the structure of an external storage device provided in one embodiment of the present application.
[0082] The external storage device 200 includes, but is not limited to, a second processor 21, a second memory 22, and a second computer program stored in the second memory 22 and executable on the second processor 21. The second processor 21 and the controller 204 may be the same device. For example, the second computer program is a storage expansion program. When the second processor 21 executes the second computer program, the steps in the storage expansion method are implemented, such as Figure 1Steps S102, S104, and S106 shown, Figure 3 Steps S301 to S303 are shown.
[0083] Exemplarily, the first computer program or the second computer program may be divided into one or more modules / units, which are stored in the first memory 12 or the second memory 22, respectively, and executed by the first processor 11 or the second processor 21 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the first computer program or the second computer program in the electronic device 100 or the external storage device 200.
[0084] Those skilled in the art will appreciate that the schematic diagram is merely an example of the electronic device 100 and the external storage device 200, and does not constitute a limitation on the electronic device 100 and the external storage device 200, and may include more or fewer components than shown in the diagram, or a combination of certain components, or different components. For example, the electronic device 100 and the external storage device 200 may also include input and output devices, network access devices, buses, etc.
[0085] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The processor is the control center of the electronic device 100 and the external storage device 200, and uses various interfaces and lines to connect various parts of the entire electronic device 100 and the external storage device 200.
[0086] The memory can be used to store the firmware program and / or module / unit, and the processor implements various functions of the electronic device 100 and the external storage device 200 by running or executing the computer program and / or module / unit stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the electronic device 100 and the external storage device 200, etc. In addition, the memory can include volatile and non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other storage devices.
[0087] If the module / unit integrated in the electronic device 100 or the external storage device 200 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory).
[0088] The expanded contents of the specific embodiments of the computer-readable storage medium described in this application are basically the same as the embodiments of the above-mentioned storage expansion method, and will not be repeated here.
[0089] The storage expansion method, electronic device, external storage device and storage medium provided in the present application achieve expansion of storage capacity by communicating between the electronic device and the external storage device and charging the external storage device, so that data can be automatically transferred to the external storage device. Users can read and write more data through the electronic device without the need for frequent data cleaning, which effectively improves the user experience.
[0090] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present application is limited by the attached claims rather than the above description, so it is intended to include all changes that fall within the meaning and scope of the equivalent elements of the claims in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by the same unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.
Claims
1. A storage expansion method, applied to an electronic device, characterized in that: The method comprises: In response to the data transfer instruction, establishing a communication connection between the electronic device and the external storage device; Based on the communication connection between the electronic device and the external storage device, wirelessly charging the external storage device through a first wireless charging unit; During the process of wirelessly charging the external storage device, the data of the electronic device is transferred to the external storage device based on a preset transfer strategy.
2. The storage expansion method according to claim 1, characterized in that: The external storage device is disposed in an effective identification area of the electronic device, and the wireless charging of the external storage device by the first wireless charging unit includes: Based on the Wireless Power Consortium (WPC) protocol, the external storage device is reversely wirelessly charged through the first wireless charging unit.
3. The storage expansion method according to claim 1, characterized in that: The method further comprises: When new data to be stored is added to the electronic device, detecting the available capacity of the memory of the electronic device; If the available capacity is less than or equal to the preset value, the data transfer instruction is generated.
4. The storage expansion method according to claim 1, characterized in that: The preset transfer strategy includes: a preset storage time, a preset data type, a preset capacity and a preset processing method of the data to be transferred.
5. The storage expansion method according to claim 4, characterized in that: The transferring data of the electronic device to the external storage device based on a preset transfer strategy includes: Acquiring the data to be transferred from the electronic device based on the preset storage time, preset data type, and preset capacity in the preset transfer strategy; The data to be transferred is transferred to the external storage device, and the data to be transferred is processed based on a preset processing method in the preset transfer strategy.
6. The storage expansion method according to claim 5, characterized in that: The method further comprises: Based on the communication connection between the electronic device and the external storage device, the data in the external storage device is read through a preset application.
7. A storage expansion method, applied to an external storage device, characterized in that: The method comprises: In response to a communication connection request sent by the electronic device, establishing a communication connection between the external storage device and the electronic device; Based on the communication connection between the external storage device and the electronic device, receiving wireless charging of the electronic device through the second wireless charging unit; During the process of receiving the wireless charging of the electronic device, the data transferred by the electronic device is received and stored.
8. The storage expansion method according to claim 7, characterized in that: The method further comprises: The data transferred by the electronic device is encrypted to limit the transferred data to be read and written by the electronic device in the external storage device.
9. The storage expansion method according to claim 7, characterized in that: The method further comprises: When receiving wireless charging of the electronic device, detecting whether there is a foreign object in an effective identification area of the electronic device; If a foreign object is detected in the effective identification area of the electronic device, charging is stopped.
10. An electronic device, characterized in that: The electronic device includes a processor, a memory and a first wireless charging unit, wherein the first wireless charging unit is used to wirelessly charge the external storage device when the electronic device is communicatively connected to the external storage device, the memory is used to store instructions, and the processor is used to call the instructions in the memory so that the electronic device executes the storage expansion method described in any one of claims 1 to 6.
11. An external storage device, characterized in that: The external storage device includes a processor, a memory, and a second wireless charging unit, wherein the second wireless charging unit is used to receive wireless charging of the electronic device when the external storage device is communicatively connected to the electronic device, the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the external storage device executes the storage expansion method described in any one of claims 7 to 9.
12. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the storage expansion method as claimed in any one of claims 1 to 6, or, when executed on an external storage device, cause the external storage device to execute the storage expansion method as claimed in any one of claims 7 to 9.
