Parameter configuration method, parameter configuration device, electronic device and readable storage medium
By receiving user input parameter configuration and gradually optimizing UIC layer parameters, the problem of UIC error in UFS module is solved, and the stability of the storage module and data transmission quality are improved.
Patent Information
- Application Number
- CN202110655531.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-11
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2041-06-11
AI Technical Summary
Improper setting of UIC layer parameters causes a large number of UIC errors in the UFS module, consume more CPU resources, and affect the stability of the storage module.
By receiving user input parameter configuration, multiple configuration parameters are determined, and the UIC layer parameters are gradually optimized during startup, ensuring that errors are avoided during data reading and reducing the probability of UIC error occurrence.
Improve the stability of the storage module, avoid the CPU resources consumed due to error processing, and enhance the quality and stability of data signal transmission.
Smart Images

Figure CN113296712B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing, and specifically relates to a parameter configuration method, a parameter configuration device, an electronic device and a readable storage medium. Background Art
[0002] At present, in order to better meet the storage speed requirements of 5G, Universal Flash Storage (UFS) modules are usually used in Android phones. Figure 1 As shown in the figure, the bottom layer of the UFS protocol stack is the UFS Inter Connect (UIC) layer, which includes the UIC layer of the host controller and the UIC layer of the device. The quality of the storage data signal transmission is related to the parameter setting of the UIC layer. Only when the parameters of the UIC layer of the host controller and the device end are correctly matched can the quality and stability of the signal transmission be guaranteed. When the parameters of the UIC layers on both sides are improperly set, a large number of UIC errors will occur, resulting in the need to consume more central processing unit (CPU) resources for error handling, which will seriously affect the stability of the storage module. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a parameter configuration method, a parameter configuration device, an electronic device and a readable storage medium, which can solve the problem of a large number of UIC errors caused by improper UIC layer parameter settings in the related art.
[0004] In a first aspect, an embodiment of the present application provides a parameter configuration method, the method comprising:
[0005] Receiving a first input from a user on a setting interface for parameter configuration of an electronic device;
[0006] In response to the first input, determining a plurality of configuration parameters corresponding to operating parameters of a storage module of the electronic device;
[0007] During the startup process of the electronic device, reading data from the storage module according to the first configuration parameter;
[0008] When no execution error occurs during the data reading process, the working parameter is configured as a first configuration parameter;
[0009] When an execution error occurs during the data reading process, continue to read data from the storage module according to the second configuration parameter;
[0010] The first configuration parameter is one of the multiple configuration parameters, and the second configuration parameter is other configuration parameters among the multiple configuration parameters except the first configuration parameter.
[0011] In a second aspect, an embodiment of the present application provides a parameter configuration device, the device comprising:
[0012] A receiving module, used to receive a first input of a user on a setting interface for parameter configuration of an electronic device;
[0013] A determination module, configured to determine, in response to a first input, a plurality of configuration parameters corresponding to an operating parameter of a storage module of the electronic device;
[0014] A reading module, used to read data from the storage module according to the first configuration parameter during the startup process of the electronic device;
[0015] A configuration module, configured to configure the working parameter to a first configuration parameter when no execution error occurs during the data reading process;
[0016] The reading module is further used to continue reading data from the storage module according to the second configuration parameter when an execution error occurs during the data reading process;
[0017] The first configuration parameter is one of the multiple configuration parameters, and the second configuration parameter is other configuration parameters among the multiple configuration parameters except the first configuration parameter.
[0018] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method of the first aspect.
[0019] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.
[0020] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method of the first aspect.
[0021] In an embodiment of the present application, a first input of a user on a setting interface for parameter configuration of an electronic device is received, and in response to the first input, the electronic device is controlled to restart, and it is determined that the user chooses to configure and optimize the working parameters of the UIC layer of the storage module of the electronic device, and then multiple configuration parameters corresponding to the working parameters are determined. During the startup process, the configuration optimization of the working parameters is performed, and the working parameters are configured as configuration parameters in which UIC errors will not occur. In an embodiment of the present application, the UIC parameters of the storage module are configured at the software level, which reduces the probability of UIC errors in the storage module, avoids the problem of consuming more CPU resources for error handling, and improves the stability of the storage module. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 is a schematic diagram of the structure of a UFS module in the related art;
[0023] Figure 2 This is one of the flow charts of the parameter configuration method of the embodiment of the present application;
[0024] Figure 3 This is the second flow chart of the parameter configuration method of the embodiment of the present application;
[0025] Figure 4 is a schematic diagram of a system management interface of an electronic device according to an embodiment of the present application;
[0026] Figure 5 is a schematic diagram of a storage module optimization interface of an electronic device according to an embodiment of the present application;
[0027] Figure 6 It is one of the schematic diagrams for determining the configuration parameters of the embodiment of the present application;
[0028] Figure 7 This is the second schematic diagram of determining the configuration parameters of the embodiment of the present application;
[0029] Figure 8 This is the third schematic diagram of determining the configuration parameters of the embodiment of the present application;
[0030] Fig. 9 This is the fourth schematic diagram of determining the configuration parameters of the embodiment of the present application;
[0031] Fig.10 is a schematic block diagram of a parameter configuration device according to an embodiment of the present application;
[0032] Fig.11 It is one of the schematic block diagrams of the electronic device according to the embodiment of the present application;
[0033] Fig.12 This is the second schematic block diagram of the electronic device according to the embodiment of the present application. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0035] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0036] The parameter configuration method, parameter configuration device, electronic device and readable storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0037] The present application embodiment provides a parameter configuration method, such as Figure 2 As shown, the method includes:
[0038] Step 202, receiving a first input from a user on a setting interface for parameter configuration of an electronic device;
[0039] Step 204, in response to the first input, determining a plurality of configuration parameters corresponding to the operating parameters of the storage module of the electronic device;
[0040] Step 206, during the startup process of the electronic device, reading data from the storage module according to the first configuration parameter;
[0041] Step 208, when no execution error occurs during the data reading process, the working parameters are configured as first configuration parameters; when an execution error occurs during the data reading process, data is continued to be read from the storage module according to second configuration parameters.
[0042] The first configuration parameter is one of the multiple configuration parameters, and the second configuration parameter is other configuration parameters among the multiple configuration parameters except the first configuration parameter. The first input includes but is not limited to single-click input, double-click input, sliding input, etc. Specifically, the embodiment of the present application does not specifically limit the method of the first input, and it can be any feasible method.
[0043] In this embodiment, a first input of a user on a setting interface for parameter configuration of an electronic device is received, and in response to the first input, it is determined that the user chooses to configure and optimize the operating parameters of the UIC layer of the storage module (i.e., UFS) of the electronic device, and then multiple configuration parameters corresponding to the operating parameters are determined. Among them, the operating parameters of the storage module are some core parameters of the UIC layer that affect the quality of the data signal, including but not limited to Tx Amplitude, De-Emphasis, Host RxEqualizer Gain, Sync Length Gear4, Tactivate, etc.
[0044] It should be noted that the storage module includes multiple working parameters, and any working parameter corresponds to multiple configuration parameters. The configuration parameter corresponding to a certain working parameter refers to the numerical value around it, that is, the numerical difference between the working parameter and its corresponding configuration parameter is less than or equal to the preset threshold. For example, if the working parameter is m, then its configuration parameters can be m-1 and m+1.
[0045] In response to the first input, the electronic device is controlled to restart, and the configuration of the working parameters is optimized during the startup process. Specifically, the working parameter is first set to the first configuration parameter, and after the setting, an operation of reading data from the storage module is initiated, and then after the data reading is completed, it is determined whether a UIC error (i.e., execution error) has occurred by reading the register of the storage module. If no UIC error occurs, it is considered that the first configuration parameter passes (Pass), and the first configuration parameter is saved, that is, the working parameter is configured as the first configuration parameter. If a UIC error occurs, it is considered that the first configuration parameter fails (Fail), and the next configuration parameter (i.e., the second configuration parameter) is continued to be detected. And, after the working parameter is set to the next configuration parameter, the operation of reading data is continued to be initiated to verify whether the configuration parameter is Pass or Fail, until all Pass configuration parameters are obtained.
[0046] In the embodiment of the present application, the UIC parameters of the storage module are configured at the software level, thereby reducing the probability of UIC errors in the storage module, avoiding the problem of consuming more CPU resources for error handling, and improving the stability of the storage module.
[0047] In some embodiments, all correction parameters corresponding to a certain working parameter are tested, all correction parameters of Pass and all correction parameters of Fail are recorded, and then any one of the correction parameters of Pass is selected to configure the working parameter.
[0048] For example, Figure 3As shown, the working parameters of the storage module include working parameters A, working parameters B, working parameters C ... working parameters N. After determining that parameter correction and optimization are required, correction and optimization are performed on working parameters A, working parameters B, working parameters C ... working parameters N. Specifically, when correcting and optimizing working parameter A, all configuration parameters corresponding to working parameter A (including configuration value 1, configuration value 2 ... configuration value M) are first determined, and then configuration value 1, configuration value 2 ... configuration value M are tested respectively in the above manner to determine whether they are configuration values of Pass. After all configuration values of Pass are determined, one of the configuration values of Pass is selected to configure working parameter A.
[0049] Further, in one embodiment of the present application, in response to a first input, multiple configuration parameters corresponding to the working parameters of a storage module of an electronic device are determined, including: in response to the first input, determining a parameter configuration method selected by a user; and determining multiple configuration parameters corresponding to the working parameters based on the parameter configuration method.
[0050] In this embodiment, parameter configuration methods are defined, and different parameter configuration methods correspond to different numbers of configuration parameters. The more configuration parameters there are, the more configuration steps there are, and the more accurate the configuration is, but it takes longer; the fewer configuration parameters there are, the fewer configuration steps there are, and the time is shorter, but the accuracy is also reduced. Through the above method, the user's needs for optimized configuration are met.
[0051] Further, in an embodiment of the present application, the parameter configuration mode includes a first configuration mode and a second configuration mode; the number of multiple configuration parameters in the first configuration mode is less than the number of multiple configuration parameters in the second configuration mode.
[0052] In this embodiment, the parameter configuration mode includes a first configuration mode and a second configuration mode, wherein the number of configuration parameters in the first configuration mode is less than the number of configuration parameters in the second configuration mode. That is, the configuration steps using the first configuration mode are fewer and the time is shorter, but its accuracy will decrease; the configuration steps using the second configuration mode are more and more accurate, but it takes longer.
[0053] In a specific embodiment, in order to determine whether the user needs to perform optimization calibration, a Flag is defined in the register of the UFS module (i.e., the above-mentioned storage module). If the Flag is written as 0, it means that no calibration optimization is required. If the Flag is written as 1, it means that the recommended optimization configuration (i.e., the first configuration mode) is required. If the Flag is written as 2, it means that a complete optimization calibration (i.e., the second configuration mode) is required. It should be noted that this Flag value is stored in the UFS and will not be lost when the mobile phone is powered off or restarted.
[0054] Different options are displayed on the parameter configuration setting interface of the electronic device, allowing the user to choose whether to calibrate and optimize the working parameters of the storage module of the electronic device. Figure 4 As shown in FIG. 1 , a “storage module optimization” option is added to the submenu bar of the system management of the electronic device. When the user clicks on the option, the setting interface of the parameter configuration is entered. Figure 5 As shown, when the user selects "Cancel", the page returns to the previous page; if the user selects "Close" and clicks OK, the above Flag is written to 0; if the user selects "Recommend" and clicks OK, the above Flag is written to 1, and the electronic device is immediately restarted, and the recommended optimization configuration is executed; when the user selects "Complete" and clicks OK, the above Flag is written to 2, and the electronic device is immediately restarted, and the complete optimization configuration is executed. In addition, before restarting the electronic device, a prompt message can be displayed on the page, for example, "Perform storage module parameter optimization, which will take effect after restart."
[0055] During the restart process of the electronic device, the UIC working parameters are modified and data reading is triggered, and then the Pass or Fail of each group of parameters is judged according to the register of the main controller of the storage module and recorded.
[0056] As long as the user does not actively write the Flag to 0, the electronic device will optimize the configuration of the storage module every time it is turned on.
[0057] Through the above method, a variety of configuration methods are displayed on the display page of the electronic device for the user to choose from, so as to meet the user's needs for optimized configuration.
[0058] Further, in one embodiment of the present application, when the parameter configuration mode is the first configuration mode and the working parameters include N, the number of multiple configuration parameters is 2N; when the parameter configuration mode is the first configuration mode and the working parameters include M, the number of multiple configuration parameters is 2M; when the parameter configuration mode is the second configuration mode and the working parameters include N, the number of multiple configuration parameters is 4N; when the parameter configuration mode is the second configuration mode and the working parameters include M, the number of multiple configuration parameters is 4M, where N and M are both positive integers.
[0059] In this embodiment, if the parameter adjustment is too aggressive, it will cause the electronic device to crash. Therefore, in the embodiment of the present application, only one or two working parameters are modified at a time, and the other working parameters use the default values, and follow the Figures 6 to 9 Select configuration parameters in the way.
[0060] Specifically, Figure 6As shown, if the user selects the recommended optimization configuration (i.e., the first configuration method), for the case of modifying two working parameters, four groups of configuration parameters around the default values of the working parameters are selected. For example, if the default value of the working parameter is (m, n), then the four groups of configuration parameters are (m-1, n), (m+1, n), (m, n-1), and (m, n+1).
[0061] like Figure 7 As shown, if the user selects the recommended optimization configuration, in the case of modifying one working parameter, two groups of configuration parameters around the default value of the working parameter are selected.
[0062] like Figure 8 As shown, if the user selects a complete optimization configuration (i.e., the second configuration method), for the case of modifying two working parameters, 8 groups of configuration parameters around the default values of the working parameters are selected. For example, if the default value of the working parameter is (m, n), then the 8 groups of configuration parameters are (m-1, n-1), (m-1, n), (m-1, n+1), (m, n-1), (m, n+1), (m+1, n-1), (m+1, n), and (m+1, n+1).
[0063] like Fig. 9 As shown, if the user selects a complete optimization configuration, in the case of modifying one working parameter, four groups of configuration parameters around the default value of the working parameter are selected.
[0064] Through the above method, it is possible to avoid too many configured working parameters and too many configuration parameters causing the electronic equipment to crash.
[0065] Furthermore, if a default value is Pass, the working parameter is not modified; if a default value is Fail, it is reconfigured to other Pass configuration parameters. For example, Figure 6 The default value is Fail, configuration parameter 1 and configuration parameter 4 are Fail, configuration parameter 2 and configuration parameter 3 are Pass, then select any one configuration working parameter from configuration parameter 2 and configuration parameter 3.
[0066] It should be noted that the parameter configuration method provided in the embodiment of the present application can be executed by a parameter configuration device, or a control module in the parameter configuration device for executing the parameter configuration method. In the embodiment of the present application, the parameter configuration device provided in the embodiment of the present application is described by taking the parameter configuration method executed by the parameter configuration device as an example.
[0067] The present application embodiment provides a parameter configuration device, such as Fig.10 As shown, the parameter configuration device 1000 includes:
[0068] The receiving module 1002 is used to receive a first input of a user on a setting interface of a parameter configuration of an electronic device;
[0069] A determination module 1004, configured to determine, in response to the first input, a plurality of configuration parameters corresponding to the working parameters of the storage module of the electronic device;
[0070] The reading module 1006 is used to read data from the storage module according to the first configuration parameter during the startup process of the electronic device;
[0071] A configuration module 1008, configured to configure the working parameter to a first configuration parameter when no execution error occurs during the data reading process;
[0072] The reading module 1006 is further configured to continue reading data from the storage module according to the second configuration parameter when an execution error occurs during the data reading process;
[0073] The first configuration parameter is one of the multiple configuration parameters, and the second configuration parameter is other configuration parameters among the multiple configuration parameters except the first configuration parameter.
[0074] In this embodiment, a first input of a user on a setting interface for parameter configuration of an electronic device is received, and in response to the first input, the electronic device is controlled to restart, and it is determined that the user chooses to configure and optimize the working parameters of the UIC layer of the storage module of the electronic device, and then multiple configuration parameters corresponding to the working parameters are determined. During the startup process, the configuration optimization of the working parameters is performed, and the working parameters are configured as configuration parameters in which UIC errors will not occur. In the embodiment of the present application, the UIC parameters of the storage module are configured at the software level, which reduces the probability of UIC errors in the storage module, avoids the problem of consuming more CPU resources for error handling, and improves the stability of the storage module.
[0075] Further, in one embodiment of the present application, the determination module 1004 is specifically configured to determine the parameter configuration mode selected by the user in response to the first input, and determine a plurality of configuration parameters corresponding to the working parameters according to the parameter configuration mode.
[0076] Further, in an embodiment of the present application, the parameter configuration mode includes a first configuration mode and a second configuration mode; the number of multiple configuration parameters in the first configuration mode is less than the number of multiple configuration parameters in the second configuration mode.
[0077] Further, in one embodiment of the present application, when the parameter configuration mode is the first configuration mode and the working parameters include N, the number of multiple configuration parameters is 2N; when the parameter configuration mode is the first configuration mode and the working parameters include M, the number of multiple configuration parameters is 2M; when the parameter configuration mode is the second configuration mode and the working parameters include N, the number of multiple configuration parameters is 4N; when the parameter configuration mode is the second configuration mode and the working parameters include M, the number of multiple configuration parameters is 4M, where N and M are both positive integers.
[0078] The parameter configuration device 1000 in the embodiment of the present application can be a device, or a component, integrated circuit or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (Ultra-Mobile Personal Computer, UMPC), a netbook or a personal digital assistant (Personal Digital Assistant, PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (Personal Computer, PC), a television (Television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0079] The parameter configuration device 1000 in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0080] The parameter configuration device 1000 provided in the embodiment of the present application can achieve Figures 2 to 9 To avoid repetition, the various processes implemented in the method embodiment are not described here.
[0081] Optional, such as Fig.11 As shown, an embodiment of the present application also provides an electronic device 1100, including a processor 1102, a memory 1104, and a program or instruction stored in the memory 1104 and executable on the processor 1102. When the program or instruction is executed by the processor 1102, each process of the above-mentioned parameter configuration method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0082] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0083] Fig.12 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0084] The electronic device 1200 includes but is not limited to components such as a radio frequency unit 1202, a network module 1204, an audio output unit 1206, an input unit 1208, a sensor 1210, a display unit 1212, a user input unit 1214, an interface unit 1216, a memory 1218, and a processor 1220.
[0085] Those skilled in the art will appreciate that the electronic device 1200 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1220 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.12 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0086] Among them, the user input unit 1214 is used to receive a first input from a user on a setting interface for parameter configuration of the electronic device; the processor 1220 is used to determine, in response to the first input, a plurality of configuration parameters corresponding to the working parameters of a storage module of the electronic device, and during the startup process of the electronic device, read data from the memory 1218 according to the first configuration parameter, and configure the working parameter to the first configuration parameter when no execution error occurs during the data reading process; and continue to read data from the storage module according to the second configuration parameter when an execution error occurs during the data reading process.
[0087] The first configuration parameter is one of the multiple configuration parameters, and the second configuration parameter is other configuration parameters among the multiple configuration parameters except the first configuration parameter.
[0088] In this embodiment, a first input of a user on a setting interface for parameter configuration of an electronic device is received, and in response to the first input, the electronic device is controlled to restart, and it is determined that the user chooses to configure and optimize the working parameters of the UIC layer of the storage module of the electronic device, and then multiple configuration parameters corresponding to the working parameters are determined. During the startup process, the configuration optimization of the working parameters is performed, and the working parameters are configured as configuration parameters in which UIC errors will not occur. In the embodiment of the present application, the UIC parameters of the storage module are configured at the software level, which reduces the probability of UIC errors in the storage module, avoids the problem of consuming more CPU resources for error handling, and improves the stability of the storage module.
[0089] Further, in one embodiment of the present application, the processor 1220 is specifically configured to determine, in response to the first input, a parameter configuration method selected by the user, and determine, according to the parameter configuration method, a plurality of configuration parameters corresponding to the working parameters.
[0090] Further, in an embodiment of the present application, the parameter configuration mode includes a first configuration mode and a second configuration mode; the number of multiple configuration parameters in the first configuration mode is less than the number of multiple configuration parameters in the second configuration mode.
[0091] Further, in one embodiment of the present application, when the parameter configuration mode is the first configuration mode and the working parameters include N, the number of multiple configuration parameters is 2N; when the parameter configuration mode is the first configuration mode and the working parameters include M, the number of multiple configuration parameters is 2M; when the parameter configuration mode is the second configuration mode and the working parameters include N, the number of multiple configuration parameters is 4N; when the parameter configuration mode is the second configuration mode and the working parameters include M, the number of multiple configuration parameters is 4M, where N and M are both positive integers.
[0092] It should be understood that in the embodiment of the present application, the radio frequency unit 1202 can be used to send and receive information or send and receive signals during a call, specifically, receive downlink data from a base station or send uplink data to a base station. The radio frequency unit 1202 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc.
[0093] The network module 1204 provides users with wireless broadband Internet access, such as helping users to send and receive emails, browse web pages, and access streaming media.
[0094] The audio output unit 1206 can convert the audio data received by the RF unit 1202 or the network module 1204 or stored in the memory 1218 into an audio signal and output it as sound. In addition, the audio output unit 1206 can also provide audio output related to a specific function performed by the electronic device 1200 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1206 includes a speaker, a buzzer, a receiver, etc.
[0095] The input unit 1208 is used to receive audio or video signals. The input unit 1208 may include a graphics processing unit (GPU) 12082 and a microphone 12084. The graphics processor 12082 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 1212, or stored in the memory 1218 (or other storage medium), or sent via the radio frequency unit 1202 or the network module 1204. The microphone 12084 can receive sound and can process the sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 1202 in the case of a telephone call mode.
[0096] The electronic device 1200 also includes at least one sensor 1210, such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, a light sensor, a motion sensor, and other sensors.
[0097] The display unit 1212 is used to display information input by the user or information provided to the user. The display unit 1212 may include a display panel 12122, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
[0098] The user input unit 1214 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 1214 includes a touch panel 12142 and other input devices 12144. The touch panel 12142 is also called a touch screen, which can collect the user's touch operations on or near it. The touch panel 12142 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into contact coordinates, and then sends it to the processor 1220, receives the command sent by the processor 1220 and executes it. Other input devices 12144 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
[0099] Furthermore, the touch panel 12142 may be covered on the display panel 12122. When the touch panel 12142 detects a touch operation on or near it, it is transmitted to the processor 1220 to determine the type of the touch event. Then, the processor 1220 provides corresponding visual output on the display panel 12122 according to the type of the touch event. The touch panel 12142 and the display panel 12122 may be two independent components or integrated into one component.
[0100] The interface unit 1216 is an interface for connecting an external device to the electronic device 1200. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 1216 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 1200 or may be used to transmit data between the electronic device 1200 and an external device.
[0101] The memory 1218 can be used to store software programs and various data. The memory 1218 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile terminal (such as audio data, a phone book, etc.), etc. In addition, the memory 1218 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0102] The processor 1220 performs various functions of the electronic device 1200 and processes data by running or executing software programs and / or modules stored in the memory 1218 and calling data stored in the memory 1218, thereby monitoring the electronic device 1200 as a whole. The processor 1220 may include one or more processing units; preferably, the processor 1220 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications.
[0103] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned parameter configuration method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0104] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0105] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned parameter configuration method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0106] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0107] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0109] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A parameter configuration method, characterized in that: include: Receiving a first input from a user on a setting interface for parameter configuration of an electronic device; In response to the first input, determining a plurality of configuration parameters corresponding to an operating parameter of a storage module of the electronic device, wherein the operating parameter is a core parameter of a UIC layer of the storage module, and a numerical difference between the operating parameter and the corresponding configuration parameter is less than or equal to a preset threshold; During the startup process of the electronic device, reading data from the storage module according to the first configuration parameter; When no execution error occurs during the data reading process, configuring the working parameter to the first configuration parameter; In the event that an execution error occurs during the data reading process, continue to read data from the storage module according to the second configuration parameter; The first configuration parameter is one of the multiple configuration parameters, and the second configuration parameter is other configuration parameters among the multiple configuration parameters except the first configuration parameter.
2. The parameter configuration method according to claim 1, characterized in that: The step of determining, in response to the first input, a plurality of configuration parameters corresponding to the operating parameters of the storage module of the electronic device comprises: In response to the first input, determining the parameter configuration mode selected by the user; According to the parameter configuration mode, a plurality of configuration parameters corresponding to the working parameters are determined.
3. The parameter configuration method according to claim 2, characterized in that: The parameter configuration mode includes a first configuration mode and a second configuration mode; The number of the multiple configuration parameters in the first configuration mode is less than the number of the multiple configuration parameters in the second configuration mode.
4. The parameter configuration method according to claim 3, characterized in that: When the parameter configuration mode is the first configuration mode and the working parameters include N parameters, the number of the multiple configuration parameters is 2N; When the parameter configuration mode is the first configuration mode and the working parameters include M parameters, the number of the multiple configuration parameters is 2M; When the parameter configuration mode is the second configuration mode and the working parameters include N parameters, the number of the multiple configuration parameters is 4N; When the parameter configuration mode is the second configuration mode and the working parameters include M parameters, the number of the multiple configuration parameters is 4M, where N and M are both positive integers.
5. A parameter configuration device, characterized in that: include: A receiving module, used to receive a first input of a user on a setting interface for parameter configuration of an electronic device; a determination module, configured to determine, in response to the first input, a plurality of configuration parameters corresponding to an operating parameter of a storage module of the electronic device, wherein the operating parameter is a core parameter of a UIC layer of the storage module, and a numerical difference between the operating parameter and the corresponding configuration parameter is less than or equal to a preset threshold; A reading module, used for reading data from the storage module according to the first configuration parameter during the startup process of the electronic device; A configuration module, configured to configure the working parameter to the first configuration parameter when no execution error occurs during the data reading process; The reading module is further configured to continue reading data from the storage module according to the second configuration parameter when an execution error occurs during the data reading process; The first configuration parameter is one of the multiple configuration parameters, and the second configuration parameter is other configuration parameters among the multiple configuration parameters except the first configuration parameter.
6. The parameter configuration device according to claim 5, characterized in that: The determination module is specifically configured to determine the parameter configuration mode selected by the user in response to the first input, and determine a plurality of configuration parameters corresponding to the working parameters according to the parameter configuration mode.
7. The parameter configuration device according to claim 6, characterized in that: The parameter configuration mode includes a first configuration mode and a second configuration mode; The number of the multiple configuration parameters in the first configuration mode is less than the number of the multiple configuration parameters in the second configuration mode.
8. The parameter configuration device according to claim 7, characterized in that: When the parameter configuration mode is the first configuration mode and the working parameters include N parameters, the number of the multiple configuration parameters is 2N; When the parameter configuration mode is the first configuration mode and the working parameters include M parameters, the number of the multiple configuration parameters is 2M; When the parameter configuration mode is the second configuration mode and the working parameters include N parameters, the number of the multiple configuration parameters is 4N; When the parameter configuration mode is the second configuration mode and the working parameters include M parameters, the number of the multiple configuration parameters is 4M, where N and M are both positive integers.
9. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the parameter configuration method according to any one of claims 1 to 4.
10. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by a processor, the steps of the parameter configuration method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Configuration method for display adapter and computer system applying same
CN101582033A
Phase change memory control device, phase change memory control method, electronic device and storage medium
CN109903800A
Data processing method and device
CN111782290A
Configuring partitions of a memory sub-system for different data
CN112925669A
Operation method of storage device, operation metho of host device, and operation method of user system including storage device and host device
US20160378582A1
