Information interaction method, host and terminal equipment
By setting the response setting interface and the interactive instruction method that carries the level indication information in the host, the problem of a long response time for new instructions when the flash memory device processes multiple instructions is solved, and the response performance and user experience of important data are improved.
Patent Information
- Application Number
- CN202410410700.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-20
- Publication Date
- 2025-05-30
AI Technical Summary
When a flash memory device processes multiple instructions, the response time of the new instructions is long, resulting in a degradation in the response performance of important instructions and affecting the user experience.
By implementing the information interaction method in the host, when the setting initiation operation of the target application is detected, a response setting interface is presented, allowing the user to set the priority response level of the target application through the level selection control, and carry level indication information in the interactive instructions to instruct the flash memory device to respond to the interactive instructions according to the priority response level.
It improves the host's response performance to important data, improves the user experience, and ensures that the interactive instructions of important applications are quickly responded.
Smart Images

Figure CN120066341A_ABST
Abstract
Description
[0001] This application is a divisional application of a Chinese patent application submitted to the National Intellectual Property Administration on November 20, 2023, with the application number 202311544692.1 and the application title "Information Interaction Method, Host, and Terminal Device". Technical Field
[0002] This application relates to the field of computer technology, and in particular, to an information interaction method, a host, and a terminal device. Background Art
[0003] Flash memory devices, such as Universal Flash Storage (UFS), are widely used in terminal devices, such as smartphones, tablets, laptops, etc., due to their many characteristics such as fast processing speed and reliable performance. In practice, flash memory devices can be used to store files, data, media files, application programs, etc. of the host of the terminal device. The interaction between the host and the flash memory device is usually carried out by instructions, such as delete instructions, read instructions, write instructions, etc.
[0004] In practical applications, it is found that flash memory devices usually respond to the host's instructions in sequence according to the reception time of each instruction. When there are already many instructions waiting to be responded to in the flash memory device, if a new instruction arrives, the response time of the flash memory device to the new instruction will be relatively long. If the new instruction is an important instruction that requires quick response, a long waiting time is likely to reduce the response performance of the host to important data and the user experience. Summary of the Invention
[0005] In view of this, the embodiments of this application provide an information interaction method, a host, and a terminal device, which can improve the response performance of the host to important data and the user experience.
[0006] The first aspect of the embodiments of this application provides an information interaction method, which is applied to a host. The information interaction method may include:
[0007] When the host detects an operation on the settings of the target application (or the first operation), it presents a response settings interface (or the first settings interface). Among them, there is a level selection control (or level setting control) on the response settings interface for setting the priority response level of the target application. After that, when the host detects an interaction operation (or the second operation) on the level selection control, it can adjust the priority response level (or response level) of the target application to the target response level selected by the interaction operation. For example, the priority response level can be set to the second-level response. At this time, the target response level is the second-level response. After that, when the target application is running, when the host sends an interaction instruction for the target data of the target application to the flash device coupled to the host, it can carry level indication information in the interaction instruction. The level indication information is used to instruct the flash device to respond to the interaction instruction according to the response order corresponding to the target response level. The target data is the application data of the target application.
[0008] Among them, the above-mentioned target application can be any application on the host. The above-mentioned settings initiation operation is usually an operation used to trigger the entry into the response settings interface. As an example, the above-mentioned settings initiation operation can be an operation of sliding on the application icon of the target application according to a preset trajectory, such as an "S" - shaped trajectory.
[0009] The above-mentioned interaction instruction is an instruction for the host to interact with the flash device. For example, it can be a read instruction, a write instruction, a delete instruction, etc.
[0010] The above-mentioned target response level can be various response levels. For example, it can be the default initial level, the first - level response, the second - level response, the third - level response, etc. When the target response level is the default initial level, the target application is not set as a priority response. When the target response level is a response level other than the default initial level, the target application is set as a priority response. In the application scenario where the target response level is the default initial level, the host does not instruct the flash device to give priority to responding to the interaction instructions related to the target application. In the application scenario where the target response level is a response level other than the default initial level, the host can instruct the flash device to give priority to responding to the interaction instructions related to the target application.
[0011] In the embodiments of the present application, when a user hopes to prioritize a certain application, the user can interact with the host to set the application as a priority response. The applications set with priority responses are usually those considered important by the user. When the host runs this application, it instructs the flash device to prioritize the response to the interaction instructions involved in this application, which can improve the host's response performance to important data and enhance the user experience. In addition, when the user wants to change the priority response level of a certain application, an operation to initiate a setting can be performed on this application. In this way, the host can respond to this setting initiation operation and display a response setting interface to the user, so that the user can intuitively set the priority response level of the target application on the response setting interface, which helps to accurately set the priority response level of the application flexibly and effectively. In addition, since the priority response level of an application can be changed through the user's human-computer interaction operation with the host, when the application considered important by the user has a slow or insufficiently fast response, the user can further operate to increase the priority response level of this application, thereby accelerating the host's response speed to this application. The user can also further accelerate the host's response speed to this application by reducing the priority response level of other applications with priority responses. That is to say, the host can specifically increase the response speed according to the user's intention, thereby further enhancing the user experience.
[0012] For the sake of convenience of description, in the embodiments of the present application, a high-level response level can be determined as a high priority, and a low-level response level can be determined as a low priority. For example, a three-level response level can be determined as a high priority, and a two-level response level can be determined as a relatively lower low priority, and so on. It can be understood that a low-level response level can also be determined as a high priority, and a high-level response level can be determined as a low priority. For example, a three-level response level can be determined as a low priority, and a two-level response level can be determined as a relatively higher high priority. That is to say, the present application does not mandatorily limit which level corresponds to a higher response priority.
[0013] As an optional embodiment of the present application, the level selection control can be implemented in any of the following situations: a progress bar, multiple icons to be lit, a multi-level switch, multiple level switch controls, a level radio control including multiple options. It can be understood that the specific implementation form of the level selection control in the embodiments of the present application is not limited.
[0014] Among them, when the level selection control is multiple icons to be lit, the shape of the icons to be lit can be any of the following: star, triangle, circle, square, water droplet shape, etc. The number of lit icons to be lit can be used to indicate the response level. For example, lighting three icons to be lit can indicate a third-level response. When the level selection control is a multi-level switch, each level of the multi-level switch can correspond to a response level. When the level selection control is multiple level switch controls, each level switch control can respectively correspond to a response level. When the level selection control is a level radio control including multiple options, each option in the level radio control is used to indicate a response level.
[0015] In the embodiments of the present application, since the flash memory device may support a partial write-back function, that is, the flash memory device can maintain certain data in the SLC area without immediately writing it back to the TLC area. For the sake of description, if the flash memory device can maintain the target data of an application in the SLC area, it is considered that the response mode of the flash memory device to this application is the super response mode (or the first response mode). Conversely, if the flash memory device does not need to maintain the target data of an application in the SLC area, that is, when the flash memory device is idle, it normally writes the application data from the SLC area to the TLC area, it is considered that the response mode of the flash memory device to this application is the default response mode (or the second response mode).
[0016] In the embodiments of the present application, the flash memory device can be built into the host, or can be an independent device from the host, or can be located in the same terminal device as the host. The embodiments of the present application do not specifically limit the positional relationship between the flash memory device and the host.
[0017] In the first possible implementation manner of the first aspect, when the flash memory device supports the partial write-back function, if the target response level is a preset level, for example, the third-level response, at this time, the level indication information carried by the interaction instruction is also used to indicate that the flash memory device maintains the target data in the SLC area. That is to say, the level indication information at this time can, on the one hand, indicate that the flash memory device preferentially responds to this interaction instruction, and on the other hand, can also indicate that the flash memory device maintains the target data corresponding to this interaction instruction in the SLC area to improve the read / write response speed of the target data.
[0018] Among them, the preset level is a pre-set response level. The preset level can be one or more. The preset level does not include the default initial level.
[0019] In the embodiments of the present application, since the partial write-down function of the flash memory device helps to improve the read / write performance of data, when the flash memory device supports the partial write-down function, after the priority response level of the target application reaches a certain level, for example, reaches the secondary response, an information carried by the interaction instruction, that is, the level indication information, can indicate two meanings at the same time, which helps to optimize the interaction instruction and reduce the amount of information of the interaction instruction while improving the response speed to the target application.
[0020] In the second possible implementation manner of the first aspect, when the flash memory device supports the partial write-down function and the target response level is a preset level, the host can write the maintenance indication information in the interaction instruction, so that the interaction instruction can include the maintenance indication information, where the maintenance indication information is used to instruct the flash memory device to maintain the target data corresponding to the interaction instruction in the SLC area.
[0021] In the embodiments of the present application, when the flash memory device supports the partial write-down function and the priority response level of the target application reaches a certain level, for example, reaches the secondary response, the maintenance indication information can also be directly carried in the interaction instruction sent by the host for the application data of the target application to the flash memory device. That is to say, using the maintenance indication information independent of the level indication information to indicate whether the flash memory device maintains the target data corresponding to the interaction instruction in the SLC can achieve decoupling between information, that is, relatively independently control whether the flash memory device maintains the target data in the SLC.
[0022] In the third possible implementation manner of the first aspect, the response setting interface may further include a mode setting control for setting whether to maintain the target data of the target application in the SLC area. The host can write the maintenance indication information in the interaction instruction when the value of the mode setting control is the first value, so that when the flash memory device receives the interaction instruction including the maintenance indication information, it maintains the target data corresponding to the interaction instruction in the SLC area.
[0023] Wherein, the first value indicates to maintain the target data of the target application in the SLC area.
[0024] In the embodiments of the present application, the user can operate the mode setting control to set whether to maintain the target data of the target application in the SLC area. The host writes the maintenance indication information in the interaction instruction only when the user operation confirms to allow maintaining the target data of the target application in the SLC area, which can enable the flash memory device to maintain only the target data that meets the user's expectations in the SLC area, helping to further improve the user experience.
[0025] As an alternative embodiment of the present application, the mode setting control can be a switch control or a mode radio control including two options. One of the options in the mode radio control is used to determine to maintain the target data of the target application in the SLC area. Here, for the convenience of description, this option can be denoted as the first mode option. The other option is used to determine not to maintain the target data of the target application in the SLC area, and this option can be denoted as the second mode option.
[0026] As an alternative embodiment of the present application, if the mode setting control is implemented as a switch control, the value of the mode setting control can be determined as the first value when an opening operation on the mode setting control is detected, and the value of the mode setting control can be determined as the second value when a closing operation on the mode setting control is detected.
[0027] The mode setting control can have two values, the first value and the second value. The first value indicates that the target data of the target application can be maintained in the SLC area, and the second value indicates that there is no need to maintain the target data of the target application in the SLC area.
[0028] In the embodiment of the present application, the host can, based on the user's operation, instruct the flash memory device to maintain the target data that meets the user's expectations in the SLC area, that is, instruct the flash memory device to quickly respond to the interaction instructions related to the target data, which can further improve the response performance of the host to important data and thus further enhance the user experience.
[0029] As an alternative embodiment of the present application, if the mode setting control is implemented as a mode radio control including two options, the value of the mode setting control can be determined as the first value when a selection operation on the first mode option is detected, and the value of the mode setting control can be determined as the second value when a selection operation on the second mode option is detected.
[0030] It can be understood that the mode setting control can also be implemented in other forms. For example, there can be only the first mode option, and after the first mode option is selected, the mode setting control only has the second mode option, that is, the mode setting control only presents another option for selecting a mode different from the current mode. It can be understood that the specific implementation form of the mode setting control in the embodiment of the present application is not limited.
[0031] As another alternative embodiment of the embodiment of the present application, the mode setting control can also be directly located on the application icon of the target application. In this way, the user can directly operate on the mode setting control on the application icon to quickly adjust the response mode of the target application. The response mode can include a super response mode and a default response mode.
[0032] As an alternative embodiment of the present application, when the value of the mode setting control is the second value, the field for writing the maintenance indication information in the interaction instruction may be empty or may be the normal indication information. The normal indication information is used to instruct the flash memory device to store the application data of the target application in a normal manner.
[0033] In a fourth possible implementation manner of the first aspect, the setting initiation operation is set as an operation on the application icon of the target application or an operation on the target control on the target interface, where the target control is used to trigger entry into the response setting interface, and the target interface is located in the target application or in the setting application.
[0034] Wherein, when the setting initiation operation is an operation on the application icon of the target application, the user can operate on the application icon to cause the host to enter the response setting interface. For example, the user can long-press on the application icon to cause the host to enter the response setting interface.
[0035] When the setting initiation operation is an operation on the target control on the target interface, the user can operate on the target control to cause the host to enter the response setting interface. For example, the "General" control can be clicked on the setting interface of the target application to cause the host to enter the response setting interface. Another example is that the control where the target application icon is located can be clicked in the application management interface of the setting application to cause the host to enter the response setting interface.
[0036] That is to say, the host can enter the response setting interface for setting the priority response level of the target application in multiple ways.
[0037] In the embodiment of the present application, the implementation form of the setting initiation operation can be various. The host can respond to any setting initiation operation executed by the user and display the response setting interface, thereby effectively setting the priority response level of the target application. In addition, the setting initiation operation has various optional operation forms, which enables the user to select the most convenient operation method in combination with the actual usage situation, helping to further improve the user experience.
[0038] In a fifth possible implementation manner of the first aspect, when the setting initiation operation is an operation on the application icon of the target application, the response setting interface includes the application icon and a level selection control adjacent to the application icon.
[0039] In an embodiment of the present application, when the host detects a setting initiation operation on the application icon of the target application, it can display a response setting interface around the application icon. The response setting interface includes the application icon of the target application and a level selection control. The interface content is simple, facilitating the user to quickly and effectively operate on the response setting interface, thereby achieving a quick and effective setting of the priority response level of the target application, which helps to further improve the user experience.
[0040] In a sixth possible implementation manner of the first aspect, there may be a one-key level control (or referred to as the first control) on the control center interface for one-key adjusting the priority response levels of multiple applications. At this time, when the host detects a closing operation on the one-key level control on the control center interface, it can adjust the priority response levels of each preset application to the default initial level; and when detecting an opening operation on the one-key level control, it can adjust the priority response levels of each preset application to the response level used most recently.
[0041] Among them, the closing operation on the one-key level control (or referred to as the first control) can also be called the fifth operation on the first control. The opening operation on the first control can also be called the sixth operation on the first control.
[0042] Among them, the preset application is usually an application set in advance. For example, it can be an application with a usage frequency greater than a certain frequency threshold, or an application with a total usage duration greater than a certain duration threshold, etc. It can be understood that the embodiments of the present application do not make specific limitations on the preset application.
[0043] In an embodiment of the present application, the user can operate on the one-key level control of the control center interface. The host analyzes the opening and closing conditions of the one-key level control after the operation to simultaneously adjust the priority response levels of multiple applications, thereby achieving a quick and effective setting of the priority response levels of the applications, which helps to further improve the user experience.
[0044] In a seventh possible implementation manner of the first aspect, after the user has successively set the priority response levels of multiple applications, there may be two applications with the same priority response level. At this time, the host can also perform a differential adjustment on the priority response levels of each application so that the response levels among the applications that need to be preferentially responded to are different. Specifically, when the priority response level of the target application is not the default initial level, when detecting that there is a peer application with the same priority response level as the target application, the host can adjust the priority response level of the target application to be different from that of the peer application according to the usage information corresponding to the target application and the peer application.
[0045] Among them, the peer application is an application with the same priority response level as the target application.
[0046] In the embodiments of the present application, the host differentially adjusts the priority response levels of each application, so that the response levels among the applications that need to be preferentially responded to are different. After the interaction instructions of each application reach the flash device, the flash device can process the interaction instructions in sequence according to the priority response levels of each application, so as to implement that the interaction instructions of the applications considered important by the user are preferentially processed, thereby improving the response performance of the host to important data and enhancing the user experience.
[0047] It can be understood that in some application scenarios, if there are two applications with the same priority response level, the priority response levels of these two applications may not be differentially adjusted. In this application scenario, when the flash device receives the interaction instructions of each application with the same priority response level, it can determine the response order of each interaction instruction by combining the priority response level of the application to which the interaction instruction belongs and the reception time of the interaction instruction.
[0048] In the eighth possible implementation manner of the first aspect, when the priority response level of the target application is not the default initial level, the host can display a prompt message for prompting that the target application is in the priority response state.
[0049] In the embodiments of the present application, the priority response level of the target application is not the default initial level, that is, the priority response level of the target application indicates that the target application needs to be preferentially responded to. At this time, the host can display a prompt message, based on which the user can intuitively learn which applications are currently set to be preferentially responded to, and can avoid the situation of missing settings or redundant settings.
[0050] It can be understood that since the user may pay more attention to whether some running applications have been set to be preferentially responded to, in some application scenarios, when the priority response level of the target application is not the default initial level and the target application is in the running process, the host can also display a prompt message for prompting that the target application is in the priority response state.
[0051] In the ninth possible implementation manner of the first aspect, the host can display a prompt message for prompting that the target application is in the priority response state in the following ways: display a level identifier on the application icon of the target application, or display the application icon of the target application and the corresponding level identifier along the edge.
[0052] Among them, when the application icon of the target application and the corresponding level identifier are displayed along the edge, the level identifier can be located beside the application icon, for example, on the right side.
[0053] Among them, the level identifier can be an identifier indicating the level. The level identifier can be composed of one or more preset symbols. The shape of the preset symbol can be dot-shaped, lightning-shaped, triangular, "I"-shaped, etc. The color of the preset symbol can be yellow, green, etc. The level identifier can also be a number. It can be understood that the specific implementation form of the level identifier in the embodiments of the present application is not limited.
[0054] When the application icon of the target application is displayed along the edge, the application icon can be close to any edge of the host. For example, it can be close to the left edge or the right edge, etc.
[0055] In the embodiments of the present application, including the level identifier of the application in the prompt message can enable the user to timely set a higher priority response level for the application that is expected to be preferentially responded to, and restore the default initial level for the application that is not expected to be preferentially responded to. That is, it helps the user quickly and accurately set the priority response levels of each application, thereby improving the user experience. In addition, whether the level identifier is displayed on the application icon of the target application or the application icon of the target application and the corresponding level identifier are displayed along the edge, it can very intuitively display the applications in the priority response to the user, helping the user quickly and accurately know the priority response situation of each application.
[0056] It can be understood that in the case of multiple applications in the priority response, a prompt message can be displayed for each application in the priority response. For example, a level identifier can be displayed on the application icon of each application in the priority response. For another example, the application icons of the applications in the priority response can be displayed along the edge in a superimposed or non-superimposed manner.
[0057] As an optional embodiment of the present application, in the case of multiple applications in the priority response, the host can display the application icons of each application on the screen from top to bottom along the edge in the order of the priority response levels of each application from high to low.
[0058] In the embodiments of the present application, if the applications in the priority response are distinguished by colors for the high and low priority response levels, for example, the darker the color, the higher the priority response level. When the host displays the application icons of each application on the screen from top to bottom along the edge in the order of the priority response levels of each application from high to low, the application icons of each application are shown from dark to light, which is intuitive and clear, and can improve the user experience. In addition, if the applications in the priority response are distinguished by the number of preset symbols for the high and low priority response levels, for example, the more the number, the higher the priority response level. When the host displays the application icons of each application on the screen from top to bottom along the edge in the order of the priority response levels of each application from high to low, the number of preset symbols beside the application icons of each application is shown from more to less, which is intuitive and clear.
[0059] In the tenth possible implementation of the first aspect, the host can respond to the user's floating window display operation (or the seventh operation) on the target application and display the application interface of the target application in the floating window interface, where the floating window interface includes a level quick control component (or the second control). The floating window display operation is generally an operation for determining to display the application interface in the floating window interface. Among them, displaying the application interface of the target application in the floating window interface means that the target application is in the floating window display state. As an example, the floating window display operation can be an operation of continuously swiping upward at the bottom of the application interface or an operation of continuously swiping upward at the bottom of the host. The above-mentioned level quick control component is used to turn on or off the priority response permission of the target application. Specifically, when the host detects a closing operation on the level quick control component, it adjusts the priority response level of the target application to the default initial level; and when it detects an opening operation on the level quick control component, it adjusts the priority response level of the target application to the response level of the most recent use.
[0060] Among them, the closing operation on the level quick control component (or the second control) can also be called the ninth operation on the second control, and the opening operation on the second control can also be called the eighth operation on the second control.
[0061] In the embodiment of the present application, when the application interface of the target application is displayed in the floating window interface, the host displays the level quick control component in the floating window interface, so that the user can operate on the level quick control component. In this way, the host can adjust the priority response level of the target application by analyzing the opening and closing conditions of the level quick control component after the operation, so as to quickly and effectively set the priority response level of the application, which helps to further improve the user experience.
[0062] It should be noted that the scenario where the application interface of the target application is displayed in the floating window interface can include the scenario where the application interface of the target application is displayed in a small window form, and can also be the scenario of exiting the running target application.
[0063] As an optional embodiment of the present application, the priority response level of the target application generally does not change with the application exiting the operation. That is, for application A, if the priority response level of application A is a third-level response, when application A exits the operation, the priority response level of application A does not change with the exit of application A and remains a third-level response. When application A is started next time, the host still responds to application A with a third-level response.
[0064] In the embodiment of the present application, the host can retain the setting of the priority response level of each application, which can avoid repeated settings and helps to further improve the user experience.
[0065] As an alternative embodiment of the present application, the host can adjust the priority response levels of various applications according to the usage of each application. That is to say, the host can also automatically adjust the priority response levels of various applications in combination with user preferences, so as to improve the response speed of the applications that the user is interested in without the user's awareness.
[0066] In the eleventh possible implementation manner of the first aspect, the target data may include application startup data and / or application loading data.
[0067] In the embodiments of the present application, since the speed of application startup and loading response has a great impact on the user experience, while the response speed of other application data has little impact on the user experience. In order to increase the priority response level of an application while reducing the response waiting time of lower-level applications, the host only writes level indication information in the interaction instructions for the target data, so as to achieve preferential response only to the interaction instructions related to the target data, which can further improve the overall response speed of the host and enhance the user experience.
[0068] A second aspect of the embodiments of the present application provides an information interaction device applied to a host. The device includes:
[0069] A setting initiation unit, configured to display a response setting interface when detecting a setting initiation operation for a target application. The response setting interface includes a level selection control for setting the priority response level of the target application;
[0070] A level adjustment unit, configured to adjust the priority response level of the target application to the target response level selected by the interaction operation when detecting an interaction operation acting on the level selection control;
[0071] An instruction interaction unit, configured to send an interaction instruction including level indication information to a flash device coupled to the host for the target data of the target application when the target application is running. The level indication information is used to instruct the flash device to respond to the interaction instruction according to the response order corresponding to the target response level.
[0072] As an embodiment of the present application, the information interaction device can implement the method of any one of the above first aspects.
[0073] A third aspect of the embodiments of the present application provides a host, including a memory and a processor. A computer program that can run on the processor is stored on the memory. When the processor executes the computer program, the method of any one of the above first aspects is implemented.
[0074] A fourth aspect of the embodiments of the present application provides a terminal device, including the host as described in the third aspect above and a flash device coupled to the host.
[0075] The fifth aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program, which when executed by a processor, implements the method according to any one of the above first aspect.
[0076] The sixth aspect of the embodiments of the present application provides a chip system, which includes a processor coupled to a memory, and the processor executes a computer program stored in the memory to implement the method according to any one of the above first aspect. The chip system can be a single chip or a chip module composed of multiple chips.
[0077] The seventh aspect of the embodiments of the present application provides a computer program product, which when running on a host, causes the host to execute the method according to any one of the above first aspect.
[0078] It can be understood that the beneficial effects of the above second aspect to the seventh aspect can be referred to the relevant descriptions in the above first aspect, and will not be elaborated here. Description of the Drawings
[0079] Figure 1 It is a schematic diagram of the process of interaction between a host and a UFS provided by the embodiments of the present application;
[0080] Figure 2 It is a flowchart of the implementation of an information interaction method provided by the embodiments of the present application;
[0081] Figure 3A It is a schematic diagram of a process of a host responding to a setting initiation operation provided by the embodiments of the present application;
[0082] Figure 3B It is another schematic diagram of a process of a host responding to a setting initiation operation provided by the embodiments of the present application;
[0083] Figure 3C It is yet another schematic diagram of a process of a host responding to a setting initiation operation provided by the embodiments of the present application;
[0084] Figure 4A It is a layout of a response setting interface provided by the embodiments of the present application;
[0085] Figure 4B It is another layout of a response setting interface provided by the embodiments of the present application;
[0086] Figure 5A It is a schematic diagram of the operation process of a one-key level control on the control center interface provided by the embodiments of the present application;
[0087] Figure 5B It is a schematic diagram of an operation process of a level quick adjustment control on a floating window interface provided by the embodiments of the present application;
[0088] Figure 5C It is a schematic diagram of another operation process of the level quick control component on the floating window interface provided by the embodiment of the present application;
[0089] Figure 6A It is a schematic diagram of an effect of displaying prompt information provided by the embodiment of the present application;
[0090] Figure 6B It is another schematic diagram of an effect of displaying prompt information provided by the embodiment of the present application;
[0091] Figure 6C It is yet another schematic diagram of an effect of displaying prompt information provided by the embodiment of the present application;
[0092] Figure 6D It is still another schematic diagram of an effect of displaying prompt information provided by the embodiment of the present application;
[0093] Figure 7 It is a schematic diagram of the process for the host to send interaction instructions to the flash memory device for the application data of the target application provided by the embodiment of the present application;
[0094] Figure 8A It is a schematic diagram of a response setting interface provided by the embodiment of the present application;
[0095] Figure 8B It is another schematic diagram of a response setting interface provided by the embodiment of the present application;
[0096] Figure 9 It is a schematic diagram of the structure of the information interaction device provided by the embodiment of the present application;
[0097] Figure 10 It is a schematic diagram of the structure of the host provided by the embodiment of the present application;
[0098] Figure 11 It is a schematic diagram of the structure of the terminal device provided by the embodiment of the present application. Detailed implementation manners
[0099] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present application.
[0100] Some concepts that may be involved in the embodiments of the present application are described as follows:
[0101] Multiple: Unless otherwise specified, in the embodiments of the present application, "multiple" generally refers to two or more.
[0102] Coupling: In the embodiments of the present application, when a host is coupled to a flash device, it generally means that the host and the flash device are connected by electrical signals.
[0103] Priority response level: In the embodiments of the present application, the priority response level of an application is generally used to indicate the response priority of the flash device to the interaction instructions involved in the application.
[0104] The values of the priority response level can include the default initial level, first-level response, second-level response, third-level response, etc. It can be understood that the embodiments of the present application do not specifically limit the number of values of the priority response level. For example, there can also be a fourth-level response, and so on.
[0105] When the priority response level of an application is the default initial level, the application is not set as a priority response. When the priority response level of an application is a response level other than the default initial level, the application is set as a priority response. In the application scenario where the priority response level of an application is the default initial level, the host does not instruct the flash device to preferentially respond to the interaction instructions involved in the application. In the application scenario where the priority response level of an application is a response level other than the default initial level, the host can instruct the flash device to preferentially respond to the interaction instructions involved in the application.
[0106] It should be noted that in the embodiments of the present application, generally, a higher response level is determined as a high priority, and a lower response level is determined as a low priority. For example, the third-level response level can be determined as a high priority, and the second-level response level can be determined as a relatively lower low priority, and so on.
[0107] It can be understood that a lower response level can also be determined as a high priority, and a higher response level can be determined as a low priority. For example, the third-level response level can be determined as a low priority, and the second-level response level can be determined as a relatively higher high priority. That is to say, the embodiments of the present application do not forcibly limit which level corresponds to a higher response priority.
[0108] Flash device: In the embodiments of the present application, the storage medium of the flash device is generally NAND flash. The types of NAND can include triple-level cell type (TLC), single-level cell type (SLC), etc.
[0109] In practical applications, compared with SLC, TLC has a relatively slower read / write speed but a larger capacity, while SLC has a relatively faster read / write speed but a smaller capacity. Generally, flash memory devices usually use TLC-type NAND as the storage medium.
[0110] Write enhancement function: In the embodiments of the present application, the write enhancement function is the write booster function. A flash memory device with a write enhancement function, for example, a 3.1 version of UFS, can configure a part of the TLC area as SLC NAND, specifically, use the SLC NAND as a write buffer. That is, when the flash memory device receives a write request, the UFS can first write the data to be written into the SLC area (or the SLC buffer area), and when idle, flush the data in the SLC area to the TLC area. In this way, data can be quickly written into the flash memory device, thus achieving write enhancement.
[0111] Partial flush function: In the embodiments of the present application, the partial flush function of the flash memory device means that the flash memory device maintains some data in the SLC area in the SLC area. That is, when the flash memory device is idle (that is, when there is no data interaction between the flash memory device and the host), these data will not be immediately flushed to the TLC. The flash memory device can quickly respond to the read / write requests of the host for this part of the data maintained in the SLC area. That is, the partial flush function of the flash memory device helps to improve the read / write performance of the host for the data maintained in the SLC area of the flash memory device.
[0112] Response mode: In the embodiments of the present application, the response mode applied is used to indicate whether the flash memory device maintains the target data of the application in the SLC area. The response mode can include a super response mode and a default response mode.
[0113] For any application, when the application is in the super response mode, the flash memory device can write the target data of the application into the SLC area and maintain it in the SLC area. When the application is in the default response mode, the flash memory device can first write the application data of the application into the SLC area, and migrate it to the TLC area when idle. That is, when the application is in the default response mode, the flash memory device does not need to maintain the application data of the application in the SLC area.
[0114] Flash memory devices, such as UFS, are widely used in terminal devices due to their many characteristics such as fast processing speed and reliable performance. For example, they are widely used in smartphones, tablets, laptops, etc. In practice, flash memory devices can be used to store files, data, media files, application programs, etc. of the host of the terminal device. The interaction between the host and the flash memory device is usually carried out through instructions, such as delete instructions, read instructions, write instructions, etc.
[0115] The storage medium of flash memory devices is usually NAND. The types of NAND can include TLC, SLC, etc. In practical applications, compared with TLC, SLC has a relatively faster read and write speed but a smaller capacity, while TLC has a relatively slower read and write speed but a larger capacity. Therefore, flash memory devices usually use TLC-type NAND as the storage medium. With the further improvement of people's requirements for the read and write performance of flash memory devices, in order to improve the read and write performance of flash memory devices, some flash memory devices, such as UFS version 3.1, achieve the write enhancement function by configuring a part of the TLC area into an SLC buffer area, so as to realize that data can be quickly written into the flash memory device.
[0116] Figure 1 It is a schematic diagram of the process of interaction between a host and UFS provided by an embodiment of this application. Figure 1 In it, when the host writes data to the UFS, the data is first written into the SLC buffer area of the UFS. That is to say, the UFS realizes a quick response to the host's write request through the SLC buffer area. When the UFS is idle, that is, when there is no data interaction between the host and the UFS, it enters the sleep state (also known as the hibernate state). In the sleep state, the UFS can flush the data in the SLC buffer area to the TLC area for storage.
[0117] In the process of interaction between the host and the flash memory device, the flash memory device usually responds to the host's instructions in sequence according to the reception time of each instruction. When the amount of instruction interaction between the host and the flash memory device is large, there are likely to be many instructions to be responded in the flash memory device. However, it is found in practical applications that when there are already many instructions to be responded in the flash memory device, if a new instruction arrives, the response time of the flash memory device to the new instruction will be relatively long. If the new instruction is an important instruction that needs to be quickly responded, the long waiting time is likely to reduce the host's response performance to important data and the user experience.
[0118] In practical applications, it is also found that when the memory occupancy rate of the flash device is relatively high, the performance of the flash device will be significantly reduced, that is, the response speed of the flash device to instructions will be significantly slowed down. In the case of a large number of instructions to be responded to, if it is desired to quickly implement a certain function, for example, start a certain application or load the application data of a certain application, the response speed of the flash device to the instructions involved in this function will be very slow, which will undoubtedly seriously affect the user experience.
[0119] In view of the above technical problems existing in the related art, in order to improve the overall response speed of the host to enhance the user experience, in the embodiments of the present application, when the host detects an operation initiated for setting a target application, a response setting interface is presented, where the response setting interface has a level selection control for setting the priority response level of the target application. Subsequently, when the host detects an interaction operation acting on the level selection control, the priority response level of the target application can be adjusted to the target response level selected by the interaction operation. For example, the priority response level can be set to a secondary response, and at this time, the target response level is the secondary response. Subsequently, when the target application is running, when the host sends an interaction instruction for the target data of the target application to the flash device coupled to the host, the level indication information can be carried in the interaction instruction. The level indication information is used to instruct the flash device to respond to the interaction instruction according to the response order corresponding to the target response level. The target data is the application data of the target application.
[0120] The embodiments of the present application at least have the following beneficial effects:
[0121] 1. When the user hopes to give priority response to a certain application, the application can be set to have priority response by performing human-computer interaction with the host. The application set to have priority response is usually an application considered important by the user. When the host is running this application, it instructs the flash device to give priority response to the interaction instructions involved in this application, which can improve the response performance of the host to important data and enhance the user experience.
[0122] 2. When the user wants to change the priority response level of a certain application, an operation initiated for setting can be performed on this application. In this way, the host can respond to this operation initiated for setting and display the response setting interface to the user, so that the user can intuitively set the priority response level of the target application on the response setting interface, which helps to accurately set the priority response level of the application flexibly and effectively.
[0123] 3. Since the priority response level of an application can be changed through human-machine interaction operations between the user and the host, when the user believes that an important application is being responded to slowly or not quickly enough, the user can further operate to increase the priority response level of that application, thereby accelerating the host's response speed to that application. The user can also further accelerate the host's response speed to that application by reducing the priority response levels of other applications with priority responses. That is, the host can specifically increase the response speed according to the user's intention, thereby further enhancing the user experience.
[0124] The embodiments of the present application are applicable to the application scenario where the host responds to user operations to increase the response speed of data of important applications that the user expects to be quickly responded to.
[0125] The information interaction method provided by the embodiments of the present application can be applied to a host. That is, the host can be the execution entity of the information interaction method provided by the embodiments of the present application. Among them, the host can be the host of a terminal device. The terminal device can be a mobile phone, a tablet computer, a wearable device, etc. The embodiments of the present application do not specifically limit the specific type of the terminal device.
[0126] Please refer to Figure 2 , Figure 2 which is a flowchart of the implementation of an information interaction method provided by the embodiments of the present application. Figure 2 The method flow shown can be applied to Figure 1 the scenario shown. The host can be the host in Figure 1 and the flash device can be the UFS in Figure 1 .
[0127] Combined with Figure 2 , the information interaction method provided by this embodiment can include the following five parts: S201 to S205. Details are as follows:
[0128] S201. The host responds to the user's operation of initiating a setting for a target application and displays a response setting interface for setting the priority response level of the target application.
[0129] The above setting initiation operation is usually an operation used to trigger entry into the response setting interface.
[0130] When the host detects the user's operation of initiating a setting for a target application, it responds to the setting initiation operation and presents a response setting interface. A level selection control is displayed on the response setting interface, and the user can select the response level of the target application by operating the level selection control.
[0131] After setting the response level of the target application, the interaction instruction sent by the host to the flash device for the target data of the target application carries level indication information. In this way, after receiving the interaction instruction, the flash device can adjust the response order of the interaction instruction in combination with the level indication information. For example, if the level indication information indicates that the interaction instruction is of the highest priority, the flash device stops responding to other queued interaction instructions and preferentially responds to the interaction instruction of the highest priority.
[0132] Considering that preferentially responding to the interaction instructions of high-priority applications will cause the interaction instructions of low-priority applications to wait for a long time, therefore, it is possible to preferentially respond only to the interaction instructions involving the application data that needs to be preferentially responded to. That is, the host only writes level indication information in the interaction instructions for part of the application data. Also, since the speed of response during the startup and loading of an application has a great impact on the user experience, while the response speed of other application data has little impact on the user experience, in practice, the host can write level indication information in the interaction instructions for the application startup data and / or application loading data of the preferentially responded application, so that the flash device can preferentially respond to some important interaction instructions of the preferentially responded application, which can improve the response speed of applications with higher levels while reducing the response waiting time of applications with lower levels, thereby improving the overall response speed of the host and enhancing the user experience.
[0133] The following elaborates on the implementation details of setting the priority response level of the target application that the user expects to be preferentially responded to through human-computer interaction with the host from multiple perspectives.
[0134] (1) Set the position where the initiation operation takes place and the layout of the corresponding response setting interface
[0135] The position where the initiation operation takes place can be the application icon of the target application or the target control on the target interface. Among them, the target control is used to trigger entry into the response setting interface, and the target interface is located in the target application or in the setting application. There can be multiple positions where the initiation operation takes place. That is, the host can enter the response setting interface through multiple channels. In this way, the user can select the most convenient operation method in combination with the actual usage situation, which helps to further enhance the user experience.
[0136] Situation 1, the position where the initiation operation takes place is the application icon of the target application.
[0137] In Scenario 1, the user can directly perform an operation on the application icon to cause the host to enter the response setting interface. For example, the user can long-press on the application icon to cause the host to enter the response setting interface, or the user can slide along a preset trajectory, such as an "S" - shaped trajectory, on the application icon of the target application to cause the host to enter the response setting interface. In Scenario 1, the response setting interface may include the application icon and a level selection control adjacent to the application icon.
[0138] In the embodiment of the present application, when the host detects a setting initiation operation acting on the application icon of the target application, it displays a response setting interface around the application icon, and this response setting interface includes the application icon of the target application and a level selection control. The interface content is simple, which is convenient for the user to quickly and effectively operate on this response setting interface, thereby achieving quickly and effectively setting the priority response level of the target application, and helping to further improve the user experience.
[0139] Please refer to Figure 3A , Figure 3A which is a schematic diagram of the process of the host's response setting initiation operation provided by the embodiment of the present application. As Figure 3A shown, when the user wants to adjust the priority response level of the Alipay application, a setting initiation operation can be performed on the application icon 301 of the Alipay application, for example, long - press for 3 seconds to enter the response setting interface 302. As Figure 3A shown in the middle figure, on the response setting interface 302, the level selection control can be a three - level switch 303. The user can further operate on the level selection control to select the response level. Figure 3A In the right - most figure, the user has moved the three - level switch 303 to the position of "2". At this time, the host can set the priority response level of the Alipay application to the secondary response. It can be understood that Figure 3A there may also be other controls not shown in the response setting interface 302.
[0140] Scenario 2: The position where the setting initiation operation acts is the target control on the target interface, and the target interface is an interface in the target application.
[0141] In Scenario 2, the user can operate on a target control on a certain interface in the target application to cause the host to enter the response setting interface.
[0142] Figure 3B which is another schematic diagram of the process of the host's response setting initiation operation provided by the embodiment of the present application. As Figure 3B shown, when the user wants to adjust the priority response level of the WeChat application, in the settings interface 304 of the WeChat application, click on the "General" control to enter the general interface 305. At this time, the general interface 305 of the WeChat application is the response setting interface.Figure 3B As shown in the middle figure, on the general interface 305, there is a "priority response level" control, which is a level selection control. At this time, the level selection control is a progress bar 306. The user can further operate on the "priority response level" control to select the response level of the WeChat application. Figure 3B In the rightmost figure, the user pulls the progress bar 306 to the full, so that the host can set the priority response level of the WeChat application to the third-level response. It can be understood that Figure 3B On the response setting interface shown, in addition to the level selection control (which is also the "priority response level" control), there can be other controls not shown for setting other functions of the WeChat application.
[0143] Situation 3: Set the action position of the initiation operation to the target control on the target interface, and the target interface is an interface in the settings application (an application dedicated to performing system settings functions).
[0144] In Situation 3, the user can operate on the target control on a certain interface in the settings application to make the host enter the response setting interface.
[0145] Figure 3C This is another schematic diagram of the process of the host's response setting initiation operation provided by the embodiment of the present application. As Figure 3C shown, when the user wants to adjust the priority response level of the WeChat application, they can click on the application icon 307 of the settings application to enter the settings interface 308 of the settings application. The user can further operate on the settings interface 308 of the settings application and click on the "priority response setting" control to enter the response setting interface 309. As Figure 3C shown in the rightmost figure, on the response setting interface 309, there are level selection controls for the WeChat application, level selection controls for the Alipay application, and level selection controls for the QQ application. It can be understood that in actual applications, there can also be level selection controls for other applications. As Figure 3C shown in the rightmost figure, the level selection control is a progress bar, and the user can operate on the level selection control for the WeChat application to select the response level of the WeChat application. Figure 3C In the rightmost figure, the user pulls the progress bar to the two-thirds position. At this time, the host can set the priority response level of the WeChat application to the second-level response. It can be understood that the progress bar can be divided into any number of levels, for example, 3 levels, 5 levels, etc. The embodiment of the present application does not limit the number of values of the priority response level.
[0146] In addition, in combination with Figure 3C it can be seen that the user can set the priority response levels of multiple applications at the same time, which is convenient and fast, and helps to further improve the user experience.
[0147] In the above-mentioned Scenario 1, that is, in the case where the initiated operation is set to an operation acting on the application icon, the response setting interface may include the application icon and a level selection control adjacent to the application icon. The following are several possible layouts of the response setting interface.
[0148] Layout 1: The level selection control is directly displayed on the application icon of the target application. In the case of Layout 1, the user can directly operate on the level selection control on the application icon to set the priority response level of the target application.
[0149] Figure 4A This is a layout of the response setting interface provided by an embodiment of the present application. Figure 4A It shows an application scenario where the target application is the Alipay application, the level selection control 401 is multiple icons to be lit, and the icons to be lit are specifically lightning icons. Figure 4A In [the figure], 2 lightning icons on the Alipay application are lit. At this time, the host can set the priority response level of the Alipay application to the secondary response. That is to say, in this application scenario, the host can determine the priority response level of the target application in combination with the number of icons to be lit that are lit. The more the number of icons to be lit that are lit, the higher the priority response level can be.
[0150] Layout 2: A control list is displayed beside the application icon of the target application. The control list may have one or more controls for the user to operate, including the level selection control.
[0151] Figure 4B This is another layout of the response setting interface provided by an embodiment of the present application. Figure 4B It shows an application scenario where the target application is the Alipay application and the level selection control 402 is a level single-selection control including 3 options. Figure 4B In [the figure], the level selection control 402 is located in the control list 403, and the first option of the level selection control 402 corresponds to the primary response, the second option corresponds to the secondary response, and the third option corresponds to the tertiary response. Figure 4B In [the figure], the third option is selected. That is to say, the host can set the priority response level of the Alipay application to the tertiary response. It can be understood that only one option among the multiple options in the level single-selection control can be selected, that is, single selection. In addition, the control list 403 can be located not only below the application icon but also above, to the left, or to the right of the application icon, etc.
[0152] (2) Styles and operation methods of the level selection control
[0153] The level selection control can be implemented in various forms. For example, it can be implemented as a progress bar, multiple icons to be lit, a multi-level switch, multiple level switch controls, a level radio control including multiple options. Among them, when the level selection control is multiple icons to be lit, the shape of the icons to be lit can be any of the following: star-shaped, triangular, circular, square, water droplet-shaped, etc. The number of icons to be lit that are lit can be used to indicate the response level. For example, if three icons to be lit are lit, it can indicate a third-level response. When the level selection control is a multi-level switch, each level of the multi-level switch can correspond to a response level. When the level selection control is multiple level switch controls, each level switch control can respectively correspond to a response level. When the level selection control is a level radio control including multiple options, each option in the level radio control is used to indicate a response level.
[0154] As an example, when the level selection control is implemented as a progress bar, the operation method for the level selection control is as follows: The user can operate on the progress bar, and the host can determine the response level of the target application in combination with the position of the floating mark on the progress bar. For example, if the progress bar is pulled to the full, the host can set the response level of the target application to the highest priority, for example, a third-level response. And so on, if the progress bar is pulled to two-thirds of the position, it can be a second-level response, and if the progress bar is pulled to one-third of the position, it can be a first-level response. It can be understood that the progress bar can be divided into any number of levels, such as 3 levels, 5 levels, etc. The progress bar can be horizontal or vertical, and the progress bar can be planar or three-dimensional, such as columnar. The embodiments of the present application do not make specific limitations on the style of the progress bar.
[0155] As another example, when the level selection control is multiple icons to be lit that can be lit, the operation method for the level selection control is as follows: The user can choose to light one or more icons to be lit, and the host can determine the priority response level of the target application in combination with the number of icons to be lit that are lit. The icons to be lit can be star-shaped, triangular, circular, square, water droplet-shaped, etc. For example, if 3 icons to be lit are lit, the priority response level can be determined to be a third-level response. It can be understood that the multiple icons to be lit can be distributed horizontally or vertically, and the embodiments of the present application do not limit the distribution method of the icons to be lit.
[0156] As yet another embodiment, when the level selection control is a multi-level switch, the operation method for the level selection control is as follows: The user can switch the multi-level switch to a certain level, and the host can determine the response level of the target application in combination with the specific switch level to which it is switched. For example, the multi-level switch can be a three-level switch, and the user can switch the switch to the second level on the multi-level switch to indicate that the priority response level of the target application is set to a second-level response.
[0157] It can be understood that the embodiments of the present application do not limit the specific implementation form of the level selection control.
[0158] In the embodiments of the present application, the level that does not require priority response to the interaction instruction is the default initial level. For any application, if the priority response level of the application is the default initial level, it means that the flash memory device can respond to the interaction instruction in the chronological order of the interaction instruction according to the normal processing method.
[0159] The default initial level is usually the level with the lowest corresponding response priority. When all the instructions to be responded in the flash memory device are instructions of applications with the default initial level, the flash memory device usually responds in the chronological order of the instructions. If there are both instructions of applications with the default initial level and instructions of other response levels to be processed, for example, there are instructions with the default initial level, instructions with the first-level response level, instructions with the second-level response level, and instructions with the third-level response level at the same time, the flash memory device preferentially processes the instructions of applications with a higher level.
[0160] For the convenience of description, in the embodiments of the present application, the higher response level can be determined as the high priority, and the lower response level can be determined as the low priority. For example, the third-level response level can be determined as the high priority, and the second-level response level can be determined as the relatively lower low priority, and so on. It can be understood that the lower response level can also be determined as the high priority, and the higher response level can be determined as the low priority. For example, the third-level response level can be determined as the low priority, and the second-level response level can be determined as the relatively higher high priority. That is to say, the present application does not specifically limit which level corresponds to a higher response priority.
[0161] S202. The host responds to the interaction operation of the user on the level selection control on the response setting interface, and determines the priority response level of the target application according to the interaction operation.
[0162] The interaction operation is usually an operation for determining the response level. For example, if the level selection control is a progress bar, the interaction operation can be to drag the floating mark on the progress bar to a certain position, for example, to fill the floating mark, that is, to drag it to the maximum position.
[0163] When the user performs an interaction operation on the level selection control, the host can detect the interaction operation. For example, the interaction operation can be detected by a sensor on the host, so as to determine the priority response level of the target application whose settings are being performed by analyzing the interaction operation.
[0164] For example, when the level selection control is a progress bar, if the user fills up the progress bar, the host can set the priority response level of the target application to the third-level response; if the user pulls the progress bar to the two-thirds position, the host can set the priority response level of the target application to the second-level response; if the user pulls the progress bar to the one-third position, the host can set the priority response level of the target application to the first-level response.
[0165] In some application scenarios, after the host initiates an operation in response to the user's setting and presents a response setting interface for the target application, if the user does not perform an operation on the level selection control in the response setting interface, the target application maintains the priority response level used last time. Further, in this application scenario, if the level selection control is a progress bar and the progress bar is at the initial position, the host can maintain the priority response level of the target application as the default initial level.
[0166] In some other application scenarios, if the target application was set with a priority response level last time, when the host initiates an operation in response to the user's setting and presents a response setting interface for the target application, the level selection control in the response setting interface can have an initial value. For example, if the priority response level set for the target application last time was the third-level response, the initial value of the level selection control can correspond to the third-level response. Still taking the level selection control as a progress bar as an example, if the priority response level set for the target application last time was the third-level response, the initial value of the level selection control can be the maximum value, that is, the progress bar is filled up. In this application scenario, the user can make further adjustments based on the existing priority response level of the target application. For example, it can be adjusted from the third-level response to the second-level response, or from the third-level response to the first-level response.
[0167] For ease of description, in the embodiments of the present application, a high-level response level can be determined as a high priority, and a low-level response level can be determined as a low priority. For example, the third-level response level can be determined as a high priority, and the second-level response level can be determined as a relatively lower low priority, and so on. It can be understood that a low-level response level can also be determined as a high priority, and a high-level response level can be determined as a low priority. For example, the third-level response level can be determined as a low priority, and the second-level response level can be determined as a relatively higher high priority. That is to say, the present application does not make a specific limitation on which level corresponds to a higher response priority.
[0168] Since the user can set the priority response levels for multiple applications, after the user has successively set the priority response levels for multiple applications, it is very likely that two or more applications are set with the same priority response level.
[0169] In some alternative implementation manners of the embodiments of the present application, the host can differentially adjust the priority response levels of each application, so that the response levels among the applications that need to be preferentially responded to are different.
[0170] Specifically, when the priority response level of the target application is not the default initial level, and when it is detected that there is a peer application with the same priority response level as the target application, the host can combine the usage information corresponding to the target application and the peer application, and adjust the priority response level of the target application to be different from that of the peer application.
[0171] Among them, the peer application generally refers to an application with the same priority response level as the target application. The usage information of the application can generally reflect the user's usage preference for the application. The usage information can include but is not limited to the total usage duration of the application, the usage frequency of the application, and so on.
[0172] In practice, when the priority response levels of two applications are the same, the host generally adjusts the priority response level of the application that better conforms to the user's preference to be higher. As an example, when the priority response levels of two applications are the same, the host can adjust the priority response level of the application with a higher usage frequency to be higher.
[0173] In the embodiments of the present application, the host differentially adjusts the priority response levels of each application, so that the response levels among the applications that need to be preferentially responded to are different, which can enable the flash memory device to sequentially process each interaction instruction according to the priority response levels of each application after the interaction instructions of each application reach the flash memory device, so as to realize that the interaction instructions of the applications considered important by the user are preferentially processed, thereby improving the response performance of the host to important data and enhancing the user experience.
[0174] It can be understood that in some application scenarios, if there are two applications with the same priority response level, the host can also not differentially adjust the priority response levels of the two applications. In this application scenario, when the flash memory device receives the interaction instructions of each application with the same priority response level, it can determine the response order of each interaction instruction by combining the priority response level of the application to which the interaction instruction belongs and the reception time of the interaction instruction. Further, for example, if the instructions to be responded to by the flash memory device are those of application A, application B, and application C, where the priority response levels of application A and application B are both secondary responses, and application C is a primary response, at this time, the flash memory device can preferentially respond to the interaction instruction of application C, and then respond to the instructions of application A and application B in the order of the reception time of the instructions.
[0175] In the embodiments of the present application, the user can set the priority response level of an application through the human-computer interaction methods described in S201 and S202. To further enrich the user's operation options, in some application scenarios, the user can also set the priority response level of an application through other human-computer interaction methods. Two human-computer interaction methods that can be used to implement the setting of the priority response level of an application are further listed below.
[0176] Human-computer interaction method 1: The host responds to the user's operation on the control center interface to turn on or off the priority response permissions of multiple applications with one key.
[0177] In the application scenario of human-computer interaction method 1, there is usually a one-key level control on the control center interface. The one-key level control is used to turn on or off the priority response permissions of one or more preset applications at the same time.
[0178] In some application scenarios, the one-key level control can be an icon that can change brightness. For example, a lightning icon. When the one-key level control is an icon, if the icon becomes brighter, it is used to indicate that the one-key level control is turned on. If the brightness of the icon becomes darker, it is used to indicate that the one-key level control is turned off. In other application scenarios, the one-key level control can also be in other styles. For example, it can directly be a switch control. It can be understood that the embodiments of the present application do not make specific limitations on the implementation form of the one-key level control.
[0179] The above-mentioned preset applications are usually pre-set applications. Specifically, the preset applications can be the applications default set by the host, or the applications selected by the host in combination with the user's preferences. For example, the host can set the top three social applications with the highest user usage frequency as preset applications. For another example, the host can set the top five applications with the longest usage time as preset applications. It can be understood that the preset applications can include the aforementioned target applications or may not include the aforementioned target applications. The number of preset applications can be one or more, and the embodiments of the present application do not limit the number of preset applications.
[0180] The user can operate the one-key level control on the control center interface to turn on or off the priority response permissions of multiple preset applications with one key. For example, if the user clicks to turn off the one-key level control, the host can respond to this turn-off operation and adjust the priority response levels of the respective preset applications to the default initial level, that is, turn off the priority response permissions of the respective preset applications. If the user clicks to turn on the one-key level control, the host can respond to this turn-on operation and adjust the priority response levels of the preset applications to the response level of the most recent use, that is, turn on the priority response permissions of the respective preset applications. Additionally, during the process of the host adjusting the priority response levels of the preset applications to the response level of the most recent use, for any preset application, if the response level of the application last time was the secondary response, the host can adjust the response level of the application to the secondary response.
[0181] Figure 5A It is a schematic diagram of the operation process of the one-key level control on the control center interface provided by the embodiment of the present application. Figure 5A In [the figure], the "priority response" control 501 on the control center interface is the one-key level control. Figure 5A In the left figure [of the figure], the color of the "priority response" control 501 is darker, indicating that the priority response permissions of the respective preset applications are in the on state. The user can further operate on the "priority response" control 501 in the left figure to jump to the situation shown in the right figure of 5A. Figure 5A In the right figure [of the figure], the color of the "priority response" control 501 is lighter, indicating that the priority response permissions of the respective preset applications are in the off state. It can be understood that the user can further operate on the Figure 5A "priority response" control 501 in the right figure to jump to Figure 5A the situation shown in the left figure.
[0182] In the embodiment of the present application, the host analyzes the opening and closing conditions of the one-key level control on the control center interface to simultaneously adjust the priority response levels of multiple applications, thereby achieving a fast and effective setting of the priority response levels of the applications, which helps to further improve the user experience.
[0183] It should be noted that when the user does not need to have priority response to an application, turning off the priority response permission of the application can prevent the priority response application from occupying resources for a long time and affecting the running speed of other applications.
[0184] In some optional implementation manners, for any application, when the priority response permission of the application is turned on for the first time without being set with priority response, the priority response level of the application can be set to a preset opening level, for example, it can be set to the primary response.
[0185] Human-computer interaction method 2: The host responds to the user's operation on the floating window interface of the target application and enables or disables the priority response permission of the target application.
[0186] In the application scenario of the human-computer interaction method 2, the floating window interface of the target application is a floating window interface that displays the current application interface of the target application, and the floating window interface usually has a level quick control component. The level quick control component is used to enable or disable the priority response permission of the target application.
[0187] In some application scenarios, the level quick control component can be an icon that can change brightness. For example, a lightning icon. When the level quick control component is an icon, if the icon becomes brighter, it is used to indicate that the level quick control component is enabled. If the brightness of the icon becomes darker, it is used to indicate that the level quick control component is disabled.
[0188] In some other application scenarios, the level quick control component can be a switch control.
[0189] In still some other application scenarios, the level quick control component on the floating window interface can also be implemented in other forms. For example, it can also be implemented as a progress bar. When the level quick control component is a progress bar, if the progress bar is full, it indicates that the user hopes to enable the three-level response for the target application. If the progress bar is at the initial position, it indicates that the user hopes to disable the priority response for the target application. If the floating point of the progress bar is at the one-third position, it indicates that the user hopes to enable the first-level response for the target application. That is to say, the host can respond to the user's adjustment operation on the progress bar and adjust the response level of the target application to match the progress of the progress bar.
[0190] In some embodiments, the host can display the current application interface of the target application on the floating window interface when detecting an operation on the floating window display of the target application. The floating window display operation is usually an operation used to confirm the display of the application interface of the target application in the form of a floating window. As an example, the floating window display operation can be an operation of continuously swiping upward at the bottom of the application interface, or an operation of continuously swiping upward at the bottom of the host, or other operations. It can be understood that the specific implementation form of the floating window display operation in the embodiments of the present application is not limited.
[0191] It should be noted that the scenario where the application interface of the target application is displayed on the floating window interface can include the scenario where the application interface of the target application is displayed in a small window form, and can also be the scenario of exiting the running target application.
[0192] In some embodiments, when the host displays the application interface of the target application in the form of the floating window as described above, that is, when the host displays the application interface on the floating window interface, when the host detects a closing operation on the level quick control on the floating window interface, it can adjust the priority response level of the target application to the default initial level, and when detecting an opening operation on the above-mentioned level quick control, it can adjust the priority response level of the target application to the response level used most recently.
[0193] For further example, when the level quick control on the floating window interface is a switch control, if the target application A has priority response and the response level is level one, the host can respond to the user's closing operation on the level quick control and restore the response level of the target application to the default initial level. Of course, the host can also respond to the user's opening operation on the level quick control on the floating window interface. For example, it can directly set the response level of the target application to the response level used last time, so as to achieve quick setting.
[0194] Figure 5B FIG. is a schematic diagram of an operation process of the level quick control on the floating window interface provided by an embodiment of the present application. Figure 5B In FIG., the floating window interface has the application interface 502 of the WeChat application and the lightning icon 503. At this time, the WeChat application is the target application, and the lightning icon 503 is the level quick control. Figure 5B In the left diagram of FIG., the color of the lightning icon 503 is darker, indicating that the priority response permission of the WeChat application is in the open state. The user can further operate on the lightning icon 503 in the left diagram to jump to the situation shown in the right diagram of 5B. Figure 5B In the right diagram of FIG., the color of the lightning icon 503 is lighter, indicating that the priority response permission of the WeChat application is in the closed state. It can be understood that the user can further operate on the lightning icon 503 in the Figure 5B right diagram to further jump to Figure 5B the situation shown in the left diagram.
[0195] Figure 5C FIG. is another schematic diagram of an operation process of the level quick control on the floating window interface provided by an embodiment of the present application. Figure 5C In FIG., the floating window interface has the application interface 502 of the WeChat application and three lightning icons. At this time, the WeChat application is the target application, and the three lightning icons are the level quick control. Figure 5C In the first diagram of FIG., 1 lightning icon in the lightning icon 504-1 is lit, indicating that the priority response permission of the WeChat application is in level one response. The user can further operate on the lightning icon 504-1 to jump to the situation shown in the second diagram of 5C. Figure 5CIn the second figure, 3 lightning icons in the lightning icon 504-2 are lit, indicating that the priority response permission of the WeChat application is at the third-level response. The user can further operate on the lightning icon 504-2 to jump to the situation shown in the third figure of 5C. Figure 5C In the third figure, 0 lightning icons in the lightning icon 504-3 are lit, indicating that the priority response permission of the WeChat application is in the closed state. It can be understood that the user can light any number of lightning icons to adjust the response level of the WeChat application to match the number of lit lightning icons.
[0196] In the embodiment of the present application, when the application interface of the target application is displayed in the floating window interface, the host realizes that the user can operate on the level quick control component by displaying the level quick control component in the floating window interface. In this way, the host can adjust the priority response level of the target application by analyzing the opening and closing conditions of the level quick control component in the floating window interface, so as to quickly and effectively set the priority response level of the application, which helps to further improve the user experience.
[0197] As an optional embodiment of the present application, the priority response level of the target application generally does not change with the application exiting the operation. That is, for application A, if the priority response level of application A is the third-level response, when application A exits the operation, the priority response level of application A does not change with the exit of application A and remains the third-level response. When application A is started next time, the host still responds to application A with the third-level response.
[0198] In the embodiment of the present application, the host can retain the settings of the priority response levels of each application, which can avoid repeated settings and help improve the user experience.
[0199] As an optional embodiment of the present application, the host can also adjust the priority response levels of each application according to the usage conditions of each application. That is, the host can also automatically adjust the priority response levels of each application in combination with the user's preferences, so as to improve the response speed of the applications that the user is interested in without the user's awareness.
[0200] Optionally, in an application scenario where the user sets the priority response levels for one or several applications, the host can automatically adjust the priority response levels of the applications that have been set with the priority response.
[0201] Optionally, in an application scenario where the user does not set the priority response for any application, the host can automatically adjust the priority response levels of the applications that the user is interested in.
[0202] S203, the host displays a prompt message for prompting that the target application is in the priority response.
[0203] In an embodiment of the present application, when the priority response level of the target application is not the default initial level, the host can display a prompt message for prompting that the target application is in priority response.
[0204] The priority response level of the target application is not the default initial level, that is, the priority response level of the target application indicates that the target application needs to be given priority response. At this time, the host can display a prompt message. Based on this prompt message, the user can intuitively learn which applications are currently set to have priority response, and can avoid situations of missing settings or redundant settings.
[0205] It can be understood that since users may pay more attention to whether some running applications have been set to have priority response, in some application scenarios, the host can also display a prompt message for prompting that the target application is in priority response when the priority response level of the target application is not the default initial level and the target application is in the running process.
[0206] In an embodiment of the present application, the prompt message usually includes a level identifier of the application. In this way, the user can timely set a higher priority response level for the application that is expected to have priority response, and restore the default initial level for the application that is not expected to have priority response. That is, it helps the user to quickly and accurately set the priority response levels of each application, and helps to further improve the user experience.
[0207] Next, the display method of the prompt message for prompting that the target application is in priority response will be described.
[0208] Display method 1: Display the level identifier on the application icon of the target application.
[0209] Among them, the above-mentioned level identifier can be an identifier indicating the level. The level identifier can be composed of one or more preset symbols. The shape of the preset symbol can be dot-shaped, lightning-shaped, triangular, "I"-shaped, etc. The color of the preset symbol can be yellow, green, red, etc. In some application scenarios, the level identifier can also be a number. It can be understood that the specific implementation form of the level identifier in the embodiment of the present application is not limited. When the application icon of the target application and the corresponding level identifier are displayed along the edge, the level identifier can be located beside the application icon, for example, on the right side.
[0210] Figure 6A This is a schematic diagram of an effect of displaying the prompt message provided by the embodiment of the present application. Figure 6A In, the level identifier can be a solid dot. Taking the Alipay application as the target application as an example, the host displays two solid dots 602 on the application icon 601 of the Alipay application to implement prompting that the Alipay application is currently set to have priority response, and the priority response level is the secondary response.
[0211] Display mode 2: The application icon of the target application and the corresponding level identifier are displayed along the edge.
[0212] When the application icon of the target application is displayed along the edge, the application icon can be close to any edge of the host screen. For example, it can be close to the left edge or the right edge, etc. When displayed along the edge, the level identifier can be on the application icon or not.
[0213] Figure 6B This is another schematic diagram of the effect of the display prompt information provided by the embodiment of the present application. Figure 6B In it, the level identifier can be a progress bar. Taking the WeChat application as an example of the target application, the host simultaneously displays the application icon 603 of the WeChat application and the corresponding level identifier 604 along the edge. The floating mark of the progress bar on the right side of the WeChat application icon 603 is at the two-thirds position of the progress bar, which can indicate that the WeChat application is currently set to have priority response, and the priority response level is the secondary response.
[0214] It can be understood that in the case of multiple applications in priority response, prompt information can be displayed for each application in priority response. For example, a level identifier can be displayed on the application icon of each application in priority response. Another example is that the application icons of the applications in priority response can be displayed along the edge in a superimposed or non-superimposed manner.
[0215] Display mode 3: In the case of multiple applications in priority response, the host can display the application icons of each application along the edge of the screen from top to bottom in the order of the priority response levels of each application from high to low.
[0216] In the embodiment of the present application, if the applications in priority response are distinguished by colors for the priority response levels, for example, the darker the color, the higher the priority response level. When the host displays the application icons of each application along the edge of the screen from top to bottom in the order of the priority response levels of each application from high to low, the application icons of each application are presented from dark to light, which is intuitive and clear and can improve the user experience. In addition, if the applications in priority response are distinguished by the number of preset symbols for the priority response levels, for example, the more the number, the higher the priority response level. When the host displays the application icons of each application along the edge of the screen from top to bottom in the order of the priority response levels of each application from high to low, the number of preset symbols beside the application icons of each application is shown from more to less, which is intuitive and clear.
[0217] Figure 6C This is another schematic diagram of the effect of the display prompt information provided by the embodiment of the present application. Taking the level identifier as a rectangular frame as an example, Figure 6CIn it, the host simultaneously performs labeled display on the application icons of three applications, namely the WeChat application, the Alipay application, and the QQ application, indicating that the WeChat application, the Alipay application, and the QQ application are set with priority response. Figure 6C In it, the application icons and level identifiers of the three applications, namely the WeChat application, the Alipay application, and the QQ application, are displayed along the edge from top to bottom. And the color of the level identifier 605 of the WeChat application is the darkest, the color of the level identifier 606 of the Alipay application is the second darkest, and the color of the level identifier 607 of the QQ application is the lightest. Users can intuitively understand which application icons are set with priority response and the level differentiation relationship among the priority response applications through the depth of the color of the level identifier and the up-and-down order of each application icon.
[0218] Figure 6D This is another effect schematic diagram of the display prompt information provided by the embodiment of the present application. Taking the level identifier as a progress bar as an example, Figure 6D In it, the host simultaneously performs labeled display on the application icons of three applications, namely the WeChat application, the Alipay application, and the QQ application, indicating that the WeChat application, the Alipay application, and the QQ application are set with priority response. Figure 6D In it, the application icons and level identifiers of the three applications, namely the WeChat application, the Alipay application, and the QQ application, are displayed along the edge from top to bottom. And the occupancy of the progress bar 608 of the WeChat application is the most, the occupancy of the progress bar 609 of the Alipay application is the second most, and the occupancy of the progress bar 610 of the QQ application is the least. Users can intuitively understand which application icons are set with priority response and the level differentiation relationship among the priority response applications through the occupancy of the progress bar and the up-and-down order of each application icon.
[0219] In the embodiment of the present application, whether by displaying the level identifier on the application icon of the target application or by displaying the application icon of the target application and the corresponding level identifier along the edge, the applications in priority response can be very intuitively displayed to the user, which helps the user quickly and accurately know the priority response situation of each application.
[0220] It can be understood that the embodiment of the present application only lists several possible display methods, and the host can also display the prompt information in other display methods according to the actual situation.
[0221] S204. The host sends an interaction instruction to the flash memory device for the application data of the target application.
[0222] In the embodiment of the present application, during the operation of the target application, the host can generate an interaction instruction for the application data of the target application in combination with the priority response level of the target application and the importance of the application data, and transmit the interaction instruction to the flash memory device.
[0223] Please refer to Figure 7 , Figure 7Schematic diagram of the process for the host provided by the embodiment of the present application to send interaction instructions for the application data of the target application to the flash device.
[0224] S701, the host determines the priority response level of the target application.
[0225] For any application, before the priority response level of the application is set, it is usually the default initial level, that is, the level that is not a priority response. When the priority response level of the application is set, the priority response level is the level set by the user. At this time, the priority response level of the application may be the default initial level that is not a priority response, or may be other levels of priority response, such as, first-level response, second-level response, third-level response, etc.
[0226] S702, when the target application is a priority response, the host carries level indication information in the interaction instruction for the target data of the target application.
[0227] The above level indication information can indicate the response level of the target application. For example, if it is a third-level response, the level indication information can be "3". It can be understood that the embodiment of the present application does not limit the specific implementation form of the level indication information. For example, it can be "3", or "0011", or "11000b", etc.
[0228] Among them, the target data can be any application data of the target application, or some specific application data of the target application. For example, it can be application startup data and / or application loading data.
[0229] When the target data can be any application data of the target application, the host can carry level indication information for all interaction instructions related to the target application.
[0230] When the target data is only part of the application data of the target application, the host can only carry level indication information in the interaction instructions for part of the application data of the target application. For example, it can only carry level indication information in the instructions corresponding to the application startup data or application loading data of the target application to achieve fast startup or fast loading of data for the target application.
[0231] When the target data is only partial application data of the target application, the application data involved in the interaction instruction may not belong to the target data. In the case where the application data involved in the interaction instruction is not the target data, the host can write general indication information in the interaction instruction. The general indication information is used to instruct the flash device to store the application data of the target application in a conventional manner. When the interaction instruction carries the general indication information, the flash device does not need to give priority to responding to the interaction instruction. It can be understood that the specific implementation form of the general indication information in the embodiments of the present application is not limited. For example, it can be "0", or "null", or "10000b", etc.
[0232] In some application scenarios, when the application data involved in the interaction instruction is not the target data, the general indication information may not be written in the interaction instruction either. For example, data may not be written in the field originally used to write the level indication information in the interaction instruction.
[0233] S703. When the target application is not the priority response, the host carries the general indication information in the interaction instructions for the application data of the target application.
[0234] In some application scenarios, when the target application is not the priority response, the general indication information may not be written in the interaction instruction either. For example, data may not be written in the field originally used to write the level indication information in the interaction instruction.
[0235] S704. The host sends the interaction instruction to the flash device.
[0236] In the embodiments of the present application, the host can send interaction instructions to the flash device in combination with the priority response levels of each application, so as to instruct the flash device to respond to each interaction instruction in order according to the priority response levels of each application. Since the priority response level of an application is usually determined by user operations, the higher the priority response level of an application, the more interested the user is in the application, that is, the more important the application is. The flash device responds to each interaction instruction in order according to the priority response levels of each application, which can enable the host to respond to important data in a targeted and orderly manner. That is, it can further improve the response performance of the host to important data and enhance the user experience.
[0237] S205. The flash device responds to the interaction instruction.
[0238] In the embodiments of the present application, the flash memory device can determine the response priority of each instruction according to the level indication information carried by each interaction instruction. For example, for any interaction instruction, if the interaction instruction has level indication information and the level indication information indicates a third-level response, the flash memory device can respond to the interaction instruction with the highest priority. If the interaction instruction does not have level indication information, for example, it has conventional indication information, at this time, it means that the priority response level of the application corresponding to the interaction instruction is the default initial level, and the flash memory device responds to the interaction instruction with the lowest priority.
[0239] After determining the response priority of each instruction, the flash memory device can respond to each instruction in sequence according to the response priority of each instruction. For example, if there are instructions with the default initial level, instructions with the first-level response level, instructions with the second-level response level, and instructions with the third-level response level at the same time, the flash memory device can first respond to the instructions with the third-level response level, then respond to the instructions with the second-level response level, then respond to the instructions with the first-level response level, and finally respond to the instructions with the default initial level. It can be understood that for instructions of the same level, the flash memory device can process each instruction in sequence according to the reception time sequence of each instruction or according to the generation time sequence of each instruction. Among them, the instructions with the default initial level usually do not carry level indication information. The instructions with the first-level response level are the instructions carrying the level indication information for indicating the first-level response. The instructions with the second-level response level are the instructions carrying the level indication information for indicating the second-level response. The instructions with the third-level response level are the instructions carrying the level indication information for indicating the third-level response.
[0240] In the embodiments of the present application, a higher response level can be determined as a high priority, and a lower response level can be determined as a low priority. For example, the third-level response level can be determined as a high priority, and the second-level response level can be determined as a relatively lower low priority, and so on. It can be understood that a lower response level can also be determined as a high priority, and a higher response level can be determined as a low priority. For example, the third-level response level can be determined as a low priority, and the second-level response level can be determined as a relatively higher high priority. That is to say, the present application does not impose a mandatory limit on which level corresponds to a higher response priority.
[0241] In practical applications, it is also found that some flash memory devices already support partial write-down functions, and the partial write-down function of the flash memory device enables the host to quickly read and write data maintained in the SLC area of the flash memory device. Therefore, in order to further improve the response performance of the host, when the flash memory device supports the partial write-down function, the host can further set the response mode of the flash memory device for the target application. Among them, the response mode can include a super response mode and a default response mode. Specifically, if the flash memory device can maintain the target data of an application in the SLC area, it is considered that the response mode of the flash memory device for this application is the super response mode. On the contrary, if the flash memory device does not need to maintain the target data of an application in the SLC area, that is, when the flash memory device is idle, it normally writes down the application data from the SLC area to the TLC area, it is considered that the response mode of the flash memory device for this application is the default response mode.
[0242] In practice, the host can set the response mode of the flash memory device for the target application by any one of the following two ways of setting the response mode.
[0243] (1) The first setting method is that the host automatically sets the response mode of the target application in combination with the priority response level of the target application.
[0244] In the application scenario of the first setting method, when the flash memory device supports the partial write-down function, if the target response level is a preset level, for example, a third-level response, at this time, the host can automatically set the response mode of the target application to the super response mode. Among them, the preset level is a pre-set response level. The preset level can be one or more. The preset level does not include the default initial level.
[0245] It can be understood that when the priority response level of the target application is reduced to a level that does not belong to the preset level, the host can automatically set the response mode of the target application to the default response mode, that is, the host can also automatically turn off the super response mode.
[0246] In the application scenario of the first setting method, the host can inform the flash memory device how to respond to the application data of the target application in two ways.
[0247] One of them is that the host directly indicates the response mode through the level indication information in the interaction instruction for the target application. That is to say, when the target application with the target response level being the preset level runs, the level indication information carried by the interaction instruction of the target application, on the one hand, indicates that the flash memory device should give priority to responding to this interaction instruction, and on the other hand, also indicates that the flash memory device should maintain the target data corresponding to this interaction instruction in the SLC area to improve the read and write response speed of the target data.
[0248] In the embodiments of the present application, since the partial write-back function of the flash memory device helps to improve the read / write performance of the host for data, when the flash memory device supports the partial write-back function, after the priority response level of the target application reaches a certain level, for example, reaches the secondary response, an information carried by the interaction instruction, that is, the level indication information, can indicate two meanings at the same time, which helps to optimize the interaction instruction and reduce the amount of information of the interaction instruction while improving the response speed to the target application.
[0249] The second of them is that the host indicates the response mode by additionally writing maintenance indication information in the interaction instruction for the target application. That is to say, when the target application with the target response level being the preset level is running, the host can write the maintenance indication information in the interaction instruction to inform the flash memory device of the response mode of the target application. Among them, the maintenance indication information is used to indicate the flash memory device to maintain the target data corresponding to the interaction instruction in the SLC area. When the flash memory device maintains the target data in the SLC area, when the flash memory device is idle, that is, when there is no data interaction between the flash memory device and the host, the flash memory device will not write back the target data to the TLC. In this way, the flash memory device can quickly respond to the read / write requests of the host for the target data maintained in the SLC area.
[0250] In the embodiments of the present application, when the flash memory device supports the partial write-back function and the priority response level of the target application reaches a certain level, the maintenance indication information can also be directly carried in the interaction instruction sent by the host to the flash memory device for the application data of the target application. That is to say, using the maintenance indication information independent of the level indication information to indicate whether the flash memory device maintains the target data corresponding to the interaction instruction in the SLC can achieve decoupling between information, that is, can relatively independently control whether the flash memory device maintains the target data in the SLC.
[0251] (2) The third setting method is that the host sets the response mode of the target application based on the user's mode setting selection.
[0252] In the application scenario of the second setting method, the response setting interface may further include a mode setting control, and the mode setting control is used to set the response mode of the target application to the super response mode or the default response mode.
[0253] The value of the mode setting control may include a first value and a second value. When the value of the mode setting control is the first value, it indicates that the response mode of the target application is set to the super response mode, that is, it indicates to maintain the target data of the target application in the SLC area. When the value of the mode setting control is the second value, it indicates that the response mode of the target application is set to the default response mode, that is, it indicates that the flash memory device does not need to maintain the target data of the target application in the SLC area.
[0254] It should be noted that when the response mode of the target application is the super response mode, the host writes maintenance indication information in the interaction instruction for the target data of the target application, so that when the flash memory device receives the interaction instruction including the maintenance indication information, it maintains the target data corresponding to the interaction instruction in the SLC area. When the response mode of the target application is the default response mode, the interaction instruction for the application data of the target application by the host does not carry the maintenance indication information. For example, the field used to write the maintenance indication information in the interaction instruction can be empty or can be conventional indication information. When the flash memory device receives the interaction instruction, it can process the interaction instruction in the ordinary way without maintaining the target data of the target application in the SLC area. Among them, the conventional indication information is used to instruct the flash memory device to store the application data of the target application in the conventional way.
[0255] In the embodiment of the present application, the user can set the response mode of the target application by operating the mode setting control, that is, set whether to maintain the target data of the target application in the SLC area. The host writes the maintenance indication information in the interaction instruction only when the user operation confirms that it is allowed to maintain the target data of the target application in the SLC area, which can enable the flash memory device to only maintain the target data that meets the user's expectations in the SLC area, helping to further improve the user experience.
[0256] It can be understood that the embodiment of the present application only lists several possible ways to set the response mode, and the embodiment of the present application does not specifically limit the ways to set the response mode.
[0257] As an optional embodiment of the present application, the mode setting control can be a switch control or a mode single-selection control including two options.
[0258] Specifically, when the mode setting control is a switch control, turning on the switch control can indicate turning on the super response mode, and turning off the switch control can indicate turning off the super response mode, or turning on the default response mode. One of the options in the mode single-selection control is used to select the super response mode, which can be called the first mode option. The other option is used to select the default response mode, which can be called the second mode option.
[0259] As an alternative embodiment of the present application, when the mode setting control is implemented as a switch control, the user can turn on or off the switch control to turn on or off the super response mode. Specifically, when the host detects an on operation on the mode setting control, it can determine the value of the mode setting control as the first value, that is, set the response mode of the target application to the super response mode. When the host detects an off operation on the mode setting control, it determines the value of the mode setting control as the second value, that is, sets the response mode of the target application to the default response mode.
[0260] Further refer to Figure 8A , Figure 8A which is a schematic diagram of the response setting interface provided by the embodiment of the present application. Figure 8A In [the figure], taking the Alipay application as an example, in the response setting interface for the Alipay application, it includes the application icon 801 of the Alipay application and the "Super Response" control 802 (which is also the mode setting control), and the "Super Response" control 802 is a switch control. Figure 8A In [the figure], the "Super Response" control 802 is toggled to the "ON" state, indicating that the response mode of the Alipay application is set to the super response mode. It can be understood that the user can further operate the switch control and toggle it to the "OFF" state to set the response mode of the Alipay application to the default response mode.
[0261] In the embodiment of the present application, the host can set the response mode of the application based on the user's operation, so as to instruct the flash memory device to maintain only the target data that meets the user's expectations in the SLC area. That is, it can instruct the flash memory device to quickly respond to the interaction instructions related to the target data, which helps to further improve the response performance of the host to important data and enhance the user experience.
[0262] As an alternative embodiment of the present application, when the mode setting control is implemented as a mode radio control including two options, when the host detects a selection operation on the first mode option, it can determine the value of the mode setting control as the first value, that is, set the response mode of the target application to the super response mode. When the host detects a selection operation on the second mode option, it can determine the value of the mode setting control as the second value, that is, set the response mode of the target application to the default response mode.
[0263] Further refer to Figure 8B , Figure 8B which is another schematic diagram of the response setting interface provided by the embodiment of the present application. Figure 8BIn this case, taking the Alipay application as an example, in the response setting interface of the Alipay application, it includes the application icon 801 of the Alipay application, the "Super Response" option 803, and the "Default Response" option 804. (The combination of the "Super Response" option 803 and the "Default Response" option 804 is the mode setting control.) Among the "Super Response" option 803 and the "Default Response" option 804, only one option can be selected, that is, the mode setting control is a radio control. Figure 8B In this case, if the "Super Response" option 803 is selected, it means that the response mode of the currently set application is set to the super response mode. It can be understood that the user can also further operate to select the "Default Response" option 804 to set the response mode of the Alipay application to the default response mode.
[0264] It can be understood that the mode setting control can also be implemented in other forms. For example, there can be only the first mode option, and after the first mode option is selected, the mode setting control only has the second mode option, that is, the mode setting control only presents another option for selecting a mode different from the current mode. It can be understood that the specific implementation form of the mode setting control in the embodiments of the present application is not limited.
[0265] As another optional embodiment of the embodiments of the present application, the mode setting control can also be directly located on the application icon of the target application. In this way, the user can directly operate on the mode setting control on the application icon to quickly adjust the response mode of the target application.
[0266] The mode setting control can be in the response setting interface, or on the application icon of the target application, or in other positions. That is to say, the embodiments of the present application do not specifically limit the position of the mode setting control.
[0267] Corresponding to the information interaction method in the above embodiments, Figure 9 The structural schematic diagram of the information interaction device in the host provided by the embodiments of the present application is shown. For the sake of convenience of description, only the parts related to the embodiments of the present application are shown.
[0268] Referring to Figure 9 , the information interaction device includes:
[0269] A setting initiation unit 901, configured to display a response setting interface when detecting a setting initiation operation for a target application, where the response setting interface includes a level selection control for setting the priority response level of the target application;
[0270] A level adjustment unit 902, configured to adjust the priority response level of the target application to the target response level selected by the interaction operation when detecting an interaction operation acting on the level selection control;
[0271] An instruction interaction unit 903, configured to send an interaction instruction including level indication information to a flash device coupled to a host for target data of a target application when the target application is running, where the level indication information is used to instruct the flash device to respond to the interaction instruction according to a response order corresponding to a target response level.
[0272] As an embodiment of the present application, the information interaction device can implement the embodiments as Figures 1 - 8B shown in the embodiments and other related method embodiments.
[0273] In the information interaction device provided in the embodiments of the present application, the process of each module implementing its respective function can be specifically referred to the foregoing Figures 1 - 8B shown in the embodiments and the descriptions of other related method embodiments, which will not be elaborated herein.
[0274] It should be noted that for the information interaction, execution process, etc. between the above-mentioned devices / units, since they are based on the same concept as the method embodiments of the present application, for their specific functions and the technical effects brought, please refer to the method embodiment part specifically, which will not be elaborated herein.
[0275] It should be understood that the sequence numbers of the steps in the above embodiments do not mean the order of execution. The execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
[0276] It should be understood that when used in the specification and the appended claims of the present application, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their combinations.
[0277] It should also be understood that the term "and / or" used in the specification and the appended claims of the present application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0278] As used in the specification and the appended claims of the present application, the term "if" can be interpreted as "when", "once", "in response to determining", or "in response to detecting" according to the context. Similarly, the phrase "if determined" or "if [the described condition or event] is detected" can be interpreted as meaning "once determined", "in response to determining", "once [the described condition or event] is detected", or "in response to detecting [the described condition or event]" according to the context.
[0279] In addition, in the description of the specification and the appended claims of the present application, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and should not be construed as indicating or implying relative importance. It should also be understood that although the terms "first", "second", etc. are used in the text in some embodiments of the present application to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, the first status code can be named the second status code, and similarly, the second status code can be named the first status code without departing from the scope of the various described embodiments. The first status code and the second status code are both status codes, but they are not the same status code.
[0280] Reference to "one embodiment" or "some embodiments" etc. described in the specification of the present application means that a specific feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, the statements "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different places in this specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "comprising", "including", "having" and their variants all mean "including but not limited to", unless otherwise specifically emphasized in another way.
[0281] Figure 10 is a schematic structural diagram of a host provided by an embodiment of the present application. As Figure 10 shown, the host of this embodiment includes: at least one processor 103 ( Figure 10 only one is shown in the figure), a memory 101, and a computer program 102 that can run on the processor 103 is stored in the memory 101. When the processor 103 executes the computer program 102, the steps in the above-mentioned various information interaction method embodiments are implemented. Or, when the processor 103 executes the computer program 102, the functions of each module / unit in the above-mentioned various device embodiments are implemented, for example Figure 9 the functions of the units 901 to 903 shown in the figure.
[0282] The so-called processor 103 may be a Central Processing Unit (CPU), or may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0283] The memory 101 is usually an internal storage unit of the host, such as the hard disk or memory of the host. The memory 101 is used to store the operating system, application programs, BootLoader, data, and other programs, such as the program code of a computer program. The memory 101 can also be used to temporarily store data that has been sent or will be sent.
[0284] The embodiment of the present application also provides a terminal device, which includes a host and a flash memory device 104 coupled to the host. Figure 11 It is a schematic structural diagram of a terminal device provided by the embodiment of the present application. The terminal device or the host part of the terminal device may also include the following functional modules:
[0285] The external memory interface 105 can be used to connect an external memory card. For example, a TF (TransFLash) card, also known as a TFlash card, flash drive, CompactFlash (CF), Secure Digital card (SD), microSD, miniSD, Extreme Digital card (xD), Multimedia Card (MMC), Memory Stick, etc. The external memory card is operably and / or physically connected to the terminal device through the external memory interface 105 to expand the storage capacity of the terminal device. For example, save files such as music and videos in the external memory card.
[0286] The SIM card interface 106 is used to connect to the SIM card. The SIM card can be inserted into or removed from the SIM card interface 106 to achieve contact and separation from the terminal device. The terminal device can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 106 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 106 simultaneously. The types of multiple cards can be the same or different. The SIM card interface 106 can also be compatible with different types of SIM cards. The SIM card interface 106 can also be compatible with the flash memory device 104. The terminal device interacts with the network through the SIM card to implement functions such as calls and data communication. In some embodiments, the terminal device uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device and cannot be separated from the terminal device.
[0287] The display screen 107 is used to display text, images, videos, etc. The display screen 107 includes a display panel. The display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a quantum dot light-emitting diode (QLED), etc. Further, the display screen 107 can include a touch screen and can receive touches, gestures, proximity, hovering, etc. input from an electronic pen or a part of the user's body. In some embodiments, the terminal device can include one or N display screens 107, where N is a positive integer greater than 1.
[0288] The audio system 108 can include a speaker, a receiver, a microphone, a headphone jack, etc. The terminal device can implement audio functions such as calls, music playback, recording, etc. through the audio system 108 and the AP in the processor 103.
[0289] The camera system 109 can include one camera or multiple cameras (for example, one front camera and one rear camera, or multiple front cameras and multiple rear cameras), and the camera can also be a set of camera modules. The camera is used to capture static images or videos. The terminal device can implement the shooting function through the camera, the ISP in the processor 103, the video codec, the GPU, the AP, and the display screen 107, etc.
[0290] The sensor system 116 may include a four-in-one (accelerometer, angular velocity meter, gyroscope, compass) motion sensor, a pressure sensor, a temperature sensor, a light sensor, a proximity light sensor, a 3D structured light sensor, etc. Different sensors are used to sense different signals, enabling the processor 103 to perform arithmetic processing based on different sensed signals to achieve different functions of the terminal device. For example, the four-in-one motion sensor can be used to determine the motion posture and orientation information of the terminal device, etc.; the light sensor is used to sense the ambient light brightness, and the terminal device can adaptively adjust the brightness of the display screen 107 according to the sensed ambient light brightness, or it can also be used to automatically adjust the white balance when the camera system 109 takes pictures.
[0291] Communication system, the wireless communication function of the terminal device can be implemented by antenna 1, antenna 2, mobile communication module 110, wireless communication module 111, modulation and demodulation processor, and baseband processor, etc. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 110 can provide solutions for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the terminal device. The wireless communication module 111 can provide solutions for wireless communication including Wireless Local Area Networks (WLAN) (such as Wireless Fidelity (Wi-Fi) network), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), etc. applied to the terminal device.
[0292] Power management module (PMU) 112 can manage the power of the terminal device. The power management module 112 receives the input from the battery 113 and / or the charging management module 114 and supplies power to the processor 103, memory 101, flash device 104, display screen 107, audio system 108, camera system 109, sensor system 116, mobile communication module 110, and wireless communication module 111, etc. The charging management module 114 can adopt wired and / or wireless charging methods. The wireless charging method can include, for example, magnetic resonance method, magnetic induction method, electromagnetic method, etc. The battery 113 can include rechargeable batteries and / or solar cells, etc.
[0293] It can be understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than those illustrated, or combine certain components, or split certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0294] In addition, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above division of each functional unit and module is used as an example for illustration. In actual applications, the above functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. In each embodiment of the present application, each functional unit may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit. The above integrated unit may be implemented in the form of hardware or in the form of a software functional unit.
[0295] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0296] The embodiments of the present application provide a computer program product. When the computer program product runs on a host, the host can execute the steps in the above-mentioned method embodiments.
[0297] The embodiments of the present application also provide a chip system. The chip system includes a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement the steps in the above-mentioned method embodiments.
[0298] When the integrated module / unit 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, to implement all or part of the processes in the above-described embodiment methods of the present application, it can also be completed by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-described method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable storage medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc.
[0299] In the above embodiments, the descriptions of the respective embodiments have their own focuses. For parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0300] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0301] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they can be located in one place, or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0302] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. An information interaction method, characterized in that, applied to a host, the method includes: In response to a first operation of a user on a target application, display a first setting interface, the first setting interface includes a level setting control, and the level setting control is used to set a response level of the target application, and the response level includes a default initial level and N response levels, where N is an integer greater than or equal to 1; In response to a second operation of the user on the level setting control, adjust the response level of the target application to a target response level, and the target response level is the response level selected by the second operation; Display the response level information of the target application.
2. The information interaction method according to claim 1, characterized in that, the method further includes: When the target application is running, send an interaction instruction including level indication information to a flash memory device coupled to the host for target data of the target application, and the level indication information instructs the flash memory device to respond to the interaction instruction according to a response order corresponding to the target response level.
3. The information interaction method according to claim 2, characterized in that, If the target response level is a preset level, the level indication information further instructs the flash memory device to maintain the target data in the SLC area.
4. The information interaction method according to claim 2, characterized in that, If the target response level is a preset level, the interaction instruction further includes maintenance indication information, where the maintenance indication information instructs the flash memory device to maintain the target data in the SLC area.
5. The information interaction method according to claim 1, characterized in that, The first setting interface further includes a mode setting control, and the mode setting control is used to set whether to maintain the target data of the target application in the SLC area, and the method further includes: In response to a third operation of the user to maintain the target data of the target application in the SLC area, adjust the response mode of the target application to a first response mode; In response to a fourth operation of the user to stop maintaining the target data of the target application in the SLC area, adjust the response mode of the target application to a second response mode; Wherein, when the target application is in the first response mode, the interaction instruction between the host and the flash memory device instructs the flash memory device to maintain the target data of the target application in the SLC area, and when the target application is in the second response mode, the interaction instruction instructs the flash memory device to stop maintaining the target data of the target application in the SLC area.
6. The information interaction method according to claim 1, characterized in that, The first operation is an operation on the target application in the desktop interface; Or, the first operation is an operation on a target control on a target interface, and the target control is used to enter the first setting interface, where the target interface is an interface in the target application or an interface in a setting application.
7. The information interaction method according to claim 6, characterized in that, When the first operation is an operation on the target application in the desktop interface, the first setting interface further includes an application icon of the target application.
8. The information interaction method according to claim 1, wherein, the method further includes: In response to a fifth operation of the user on the first control on the control center interface, adjusting the response levels of each preset application to the default initial level, where the fifth operation is used to close the first control; In response to a sixth operation of the user on the first control, adjusting the response levels of each preset application to the response level of the most recent use, where the sixth operation is used to turn on the first control.
9. The information interaction method according to claim 1, wherein, the method further includes: When the response level of the target application is the same as that of other applications, adjusting the response level of the target application according to the usage information corresponding to the target application and the other applications respectively, where the other applications are applications other than the target application.
10. The information interaction method according to claim 1, wherein, the method further includes: When the target response level is the default initial level, the response level information of the target application is not displayed.
11. The information interaction method according to claim 1, wherein, the display of the response level information of the target application includes: Displaying a level identifier on the application icon of the target application in the desktop interface, or displaying the application icon of the target application and the corresponding level identifier along the edge.
12. The information interaction method according to claim 1, wherein, the method further includes: In response to a seventh operation of the user on the target application, displaying the application interface of the target application on the floating window interface, where the floating window interface includes a second control; In response to an operation of the user on the second control, adjusting the response level of the target application.
13. The information interaction method according to claim 12, wherein, the adjusting the response level of the target application in response to an operation of the user on the second control includes: In response to an eighth operation of the user on the second control, adjusting the response level of the target application to the default initial level, where the eighth operation is used to close the second control; In response to a ninth operation of the user on the second control, adjusting the response level of the target application to the response level of the most recent use, where the ninth operation is used to turn on the second control.
14. The information interaction method according to any one of claims 1-13, wherein, the target data includes application startup data and / or application loading data.
15. A host, wherein, the host includes a memory and a processor, and a computer program that can run on the processor is stored on the memory, and when the processor executes the computer program, the information interaction method according to any one of claims 1 to 14 is implemented.
16. A terminal device, wherein, The terminal device includes a host as described in claim 15 and a flash memory device coupled to the host.