CN113296712A - Parameter configuration method, parameter configuration device, electronic equipment and readable storage medium - Google Patents

Parameter configuration method, parameter configuration device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113296712A
CN113296712A CN202110655531.4A CN202110655531A CN113296712A CN 113296712 A CN113296712 A CN 113296712A CN 202110655531 A CN202110655531 A CN 202110655531A CN 113296712 A CN113296712 A CN 113296712A
Authority
CN
China
Prior art keywords
configuration
parameter
parameters
mode
configuration mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110655531.4A
Other languages
Chinese (zh)
Inventor
唐欢
曹建业
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110655531.4A priority Critical patent/CN113296712A/en
Publication of CN113296712A publication Critical patent/CN113296712A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0619Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0634Configuration or reconfiguration of storage systems by changing the state or mode of one or more devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0658Controller construction arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a parameter configuration method, a parameter configuration device, electronic equipment and a readable storage medium, and belongs to the field of data processing. The parameter configuration method comprises the following steps: receiving a first input of a setting interface of parameter configuration of the electronic equipment by a user; responding to the first input, and determining a plurality of configuration parameters corresponding to working parameters of a storage module of the electronic equipment; reading data from a storage module according to a first configuration parameter in the starting process of the electronic equipment; under the condition that no execution error occurs in the process of reading data, configuring the working parameters into first configuration parameters; under the condition that an execution error occurs in the process of reading the data, continuing to read the data from the storage module according to the second configuration parameter; the first configuration parameter is one of a plurality of configuration parameters, and the second configuration parameter is other configuration parameters except the first configuration parameter in the plurality of configuration parameters.

Description

Parameter configuration method, parameter configuration device, electronic equipment and readable storage medium
Technical Field
The application belongs to the field of data processing, and particularly relates to a parameter configuration method, a parameter configuration device, an electronic device and a readable storage medium.
Background
Currently, in order to better meet the requirement of 5G on the Storage speed, a Universal Flash Storage (UFS) module is commonly used in an android phone. As shown in fig. 1, the bottom layer of the protocol stack of the UFS is a UFS Interconnect (UIC) layer, and the UIC layer includes a UIC layer of the main Controller (Host Controller) and a UIC layer of the Device (Device) side. The quality of stored data signal transmission is related to the parameter setting of the UIC layer, the quality and stability of signal transmission can be guaranteed only if the parameters of the main controller and the UIC layer of the Device are correctly matched, a large number of UIC errors occur when the parameter setting of the UIC layers on two sides is improper, more Central Processing Unit (CPU) resources are consumed to perform error Processing, and the stability of the storage module is seriously influenced.
Disclosure of Invention
An object of the embodiments of the present application is to provide a parameter configuration method, a parameter configuration apparatus, an electronic device, and a readable storage medium, which can solve the problem of a large number of UIC errors caused by improper setting of UIC layer parameters in the related art.
In a first aspect, an embodiment of the present application provides a parameter configuration method, including:
receiving a first input of a setting interface of parameter configuration of the electronic equipment by a user;
responding to the first input, and determining a plurality of configuration parameters corresponding to working parameters of a storage module of the electronic equipment;
reading data from a storage module according to a first configuration parameter in the starting process of the electronic equipment;
under the condition that no execution error occurs in the process of reading data, configuring the working parameters into first configuration parameters;
under the condition that an execution error occurs in the process of reading the data, continuing to read the data from the storage module according to the second configuration parameter;
the first configuration parameter is one of a plurality of configuration parameters, and the second configuration parameter is other configuration parameters except the first configuration parameter in the plurality of configuration parameters.
In a second aspect, an embodiment of the present application provides a parameter configuration apparatus, including:
the receiving module is used for receiving first input of a setting interface of parameter configuration of the electronic equipment by a user;
the determining module is used for responding to the first input and determining a plurality of configuration parameters corresponding to working parameters of a storage module of the electronic equipment;
the reading module is used for reading data from the storage module according to the first configuration parameter in the starting process of the electronic equipment;
the configuration module is used for configuring the working parameters into first configuration parameters under the condition that no execution error occurs in the data reading process;
the reading module is further used for continuing to read data from the storage module according to the second configuration parameter under the condition that an execution error occurs in the data reading process;
the first configuration parameter is one of a plurality of configuration parameters, and the second configuration parameter is other configuration parameters except the first configuration parameter in the plurality of configuration parameters.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, a first input of a user to a setting interface of parameter configuration of the electronic device is received, the electronic device is controlled to restart in response to the first input, and a plurality of configuration parameters corresponding to the working parameters are determined if the user selects configuration optimization of the working parameters of the UIC layer of the storage module of the electronic device. And optimizing the configuration of the working parameters in the starting process, and configuring the working parameters into the configuration parameters without UIC errors. In the embodiment of the application, the UIC parameters of the storage module are configured on the software layer, so that the incidence probability of UIC errors of the storage module is reduced, the problem that more CPU resources are required to be consumed for error processing is avoided, and the stability of the storage module is improved.
Drawings
Fig. 1 is a schematic structural diagram of a UFS module in the related art;
FIG. 2 is a flowchart illustrating a parameter configuration method according to an embodiment of the present application;
FIG. 3 is a second flowchart of a parameter configuration method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a system management interface of an electronic device according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a memory module optimization interface of an electronic device according to an embodiment of the present application;
FIG. 6 is a schematic diagram of configuration parameter determination according to an embodiment of the present application;
FIG. 7 is a second illustration of configuration parameter determination according to an embodiment of the present application;
FIG. 8 is a third illustration of configuration parameter determination according to an embodiment of the present application;
FIG. 9 is a fourth illustration of configuration parameter determination according to an embodiment of the present application;
FIG. 10 is a schematic block diagram of a parameter configuration apparatus according to an embodiment of the present application;
FIG. 11 is one of the schematic block diagrams of an electronic device of an embodiment of the present application;
fig. 12 is a second schematic block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The parameter configuration method, the parameter configuration apparatus, the electronic device, and the 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 application scenarios thereof.
An embodiment of the present application provides a parameter configuration method, as shown in fig. 2, the method includes:
step 202, receiving a first input of a setting interface of parameter configuration of the electronic equipment by a user;
step 204, responding to the first input, and determining a plurality of configuration parameters corresponding to working parameters of a storage module of the electronic equipment;
step 206, in the starting process of the electronic equipment, reading data from the storage module according to the first configuration parameter;
step 208, configuring the working parameter as a first configuration parameter when no execution error occurs in the process of reading data; and in the case of an execution error in the data reading process, continuing to read data from the storage module according to the second configuration parameter.
The first configuration parameter is one of a plurality of configuration parameters, and the second configuration parameter is other configuration parameters except the first configuration parameter in the plurality of configuration parameters. The first input includes, but is not limited to, a single click input, a double click input, a slide input, and the like. Specifically, the embodiment of the present application does not specifically limit the manner of the first input, and may be any realizable manner.
In the embodiment, a first input of a user to a setting interface of parameter configuration of an electronic device is received, and in response to the first input, a determination is made that the user selects configuration optimization of a working parameter of a UIC layer of a storage module (i.e., UFS) of the electronic device, and then a plurality of configuration parameters corresponding to the working parameter are determined. The operating parameters of the memory module are some core parameters of the UIC layer having an influence on the quality of the data signal, including but not limited to Tx Amplitude, De-Emphasis, Host Rx Equalizer Gain, Sync Length Gear4, Tactivate, etc.
It should be noted that the operating parameters of the storage module include a plurality of operating parameters, and any operating parameter corresponds to a plurality of configuration parameters. The configuration parameter corresponding to a certain working parameter refers to the surrounding values, that is, the difference between the working parameter and the corresponding configuration parameter is less than or equal to the preset threshold, for example, if the working parameter is m, then the configuration parameters may be m-1 and m + 1.
And responding to the first input, controlling the electronic equipment to restart, and performing configuration optimization on working parameters in the starting process. Specifically, the working parameters are set as first configuration parameters, an operation of reading data from the memory module is initiated after the setting, and then whether the UIC error (i.e., an execution error) occurs or not is judged by reading a register of the memory module after the data reading is completed. If the UIC error does not occur, the first configuration parameter is considered to Pass (Pass), and the first configuration parameter is saved, that is, the operating parameter is configured as the first configuration parameter. If a UIC error occurs, the first configuration parameter is considered to Fail (Fail), and the next configuration parameter (i.e., the second configuration parameter) continues to be detected. And after the working parameter is set as the next configuration parameter, continuing to initiate the operation of reading data, thereby verifying whether the configuration parameter is Pass or Fail until the configuration parameters of all passes are obtained.
In the embodiment of the application, the UIC parameters of the storage module are configured on the software layer, so that the incidence probability of UIC errors of the storage module is reduced, the problem that more CPU resources are required to be consumed for error processing is avoided, and the stability of the storage module is improved.
In some embodiments, all correction parameters corresponding to a certain working parameter are tested, all correction parameters of all the Pass and all correction parameters of the Fail are recorded, and then any one of the correction parameters of the Pass is selected to configure the working parameter.
Exemplarily, as shown in fig. 3, the working parameters of the storage module include a working parameter a, a working parameter B, and a working parameter c. Specifically, when the working parameter a is corrected and optimized, all configuration parameters (including a configuration value 1 and a configuration value 2.... times.a configuration value M) corresponding to the working parameter a are determined, then the configuration value 1 and the configuration value 2.... times.a configuration value M are tested according to the above method, whether the configuration values are the configuration values of the Pass or not is determined, and after the configuration values of all the passes are determined, one of the configuration values of the Pass is selected to configure the working parameter a.
Further, in an embodiment of the present application, determining, in response to the first input, a plurality of configuration parameters corresponding to operating parameters of a storage module of the electronic device includes: responding to the first input, and determining a parameter configuration mode selected by a user; and determining a plurality of configuration parameters corresponding to the working parameters according to the parameter configuration mode.
In this embodiment, parameter configuration modes are defined, and different parameter configuration modes correspond to different numbers of configuration parameters. The more the number of the configuration parameters is, the more the configuration steps are, the more accurate the configuration steps are, but the longer the time is; the fewer the number of configuration parameters, the fewer the steps of configuration, the shorter the time, but the less accurate it is. Through the method, the requirement of a user for optimal configuration is met.
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 the plurality of configuration parameters in the first configuration mode is smaller than the number of the plurality of configuration parameters in the second configuration mode.
In this embodiment, the parameter configuration modes include a first configuration mode and a second configuration mode, where the number of configuration parameters in the first configuration mode is smaller than the number of configuration parameters in the second configuration mode. That is, the configuration using the first configuration method has fewer steps and shorter time, but the accuracy is reduced; the configuration step using the second configuration is more and more accurate, but it takes longer.
In a specific embodiment, in order to determine whether a user needs to perform an optimal calibration, a Flag is defined in a register of the UFS module (i.e., the storage module), where the Flag writes 0 to indicate that no calibration optimization is needed, the Flag writes 1 to indicate that a recommended optimal configuration (i.e., a first configuration mode) is needed, and the Flag writes 2 to indicate that a complete optimal calibration (i.e., a second configuration mode) is needed. It should be noted that, the Flag value is stored in the UFS, and the mobile phone cannot be lost when the power is down or restarted.
Different options are displayed on a setting interface of the parameter configuration of the electronic equipment, so that a user can select whether to calibrate and optimize the working parameters of the storage module of the electronic equipment. Illustratively, as shown in fig. 4, an option of "storage module optimization" is added to a sub-menu bar managed by the system of the electronic device, and when the user clicks the option, a setting interface of parameter configuration is entered. As shown in fig. 5, when the user selects "cancel", the previous page is returned; if the user clicks and determines after checking 'close', writing the Flag into 0; if the user clicks and determines after checking the recommendation, writing 1 into the Flag, immediately restarting the electronic equipment, and executing the recommended optimal configuration; and when the user clicks and determines after checking 'complete', writing the Flag into 2, immediately restarting the electronic equipment, and executing complete optimization configuration. In addition, before the electronic device is restarted, prompt information can be displayed in the page, for example, "optimization of the storage module parameters is performed, and the display is effective after the electronic device is restarted".
And in the restarting process of the electronic equipment, modifying UIC working parameters and triggering data reading, judging Pass or Fail of each group of parameters according to a register of a main controller of a storage module, and recording.
As long as the user does not actively write 0 into Flag, the configuration of the storage module is optimized in each starting process of the electronic equipment.
Through the method, various configuration modes are displayed on the display page of the electronic equipment for the user to select so as to meet the requirement of the user on optimal configuration.
Further, in an embodiment of the present application, when the parameter configuration mode is the first configuration mode and the working parameters include N, the number of the plurality of configuration parameters is 2N; under the condition that the parameter configuration mode is the first configuration mode and the working parameters comprise M, the number of the plurality of configuration parameters is 2M; under the condition that the parameter configuration mode is the second configuration mode and the working parameters comprise N, the number of the plurality of configuration parameters is 4N; and under the condition that the parameter configuration mode is the second configuration mode and the working parameters comprise M, the number of the plurality of configuration parameters is 4M, wherein N and M are positive integers.
In this embodiment, if the parameter adjustment is too aggressive, the electronic device may be halted, so in this embodiment of the application, only the values of one or two operating parameters are modified at a time, the other operating parameters use default values, and the configuration parameters are selected in the manner shown in fig. 6 to 9.
Specifically, as shown in fig. 6, if the user selects the recommended optimized configuration (i.e. the first configuration mode), for the case of modifying two operating parameters, 4 sets of configuration parameters around the default value of the operating parameters are selected, for example, the default value of the operating parameters is (m, n), and then the 4 sets of configuration parameters are (m-1, n), (m +1, n), (m, n-1), (m, n + 1).
If the user selects the recommended optimal configuration, 2 sets of configuration parameters around the default value of the operating parameter are chosen for the case of modifying one operating parameter, as shown in fig. 7.
As shown in fig. 8, if the user selects the complete optimized configuration (i.e. the second configuration mode), for the case of modifying two working parameters, 8 sets of configuration parameters around the default value of the working parameters are selected, for example, the default value of the working parameters is (m, n), and then the 8 sets of configuration parameters are (m-1, n-1), (m-1, n +1), (m, n-1), (m, n +1), (m +1, n-1), (m +1, n + 1).
If the user selects the complete optimized configuration, as shown in fig. 9, 4 sets of configuration parameters around the default value of the operating parameter are chosen for the case of modifying one operating parameter.
By the mode, the electronic equipment is prevented from being halted due to excessive configured working parameters and excessive configured parameters.
Further, if a default value is Pass, this operating parameter is not modified; if some default value is Fail, then the configuration parameters of other Pass are reconfigured. For example, in fig. 6, if the default values are Fail, the configuration parameters 1 and 4 are Fail, and the configuration parameters 2 and 3 are Pass, any one of the configuration parameters 2 and 3 is selected to configure the operating parameter.
It should be noted that, in the parameter configuration method provided in the embodiment of the present application, the execution subject may be a parameter configuration device, or a control module in the parameter configuration device, which is used for executing the parameter configuration method. In the embodiment of the present application, a parameter configuration device is taken as an example to execute a parameter configuration method, and the parameter configuration device provided in the embodiment of the present application is described.
An embodiment of the present application provides a parameter configuration apparatus, as shown in fig. 10, the parameter configuration apparatus 1000 includes:
the receiving module 1002 is configured to receive a first input of a setting interface of parameter configuration of an electronic device by a user;
a determining module 1004, configured to determine, in response to the first input, a plurality of configuration parameters corresponding to operating parameters of a storage module of the electronic device;
a reading module 1006, configured to read data from the storage module according to the first configuration parameter in a starting process of the electronic device;
a configuration module 1008, configured to configure the operating parameter as a first configuration parameter when no execution error occurs in the data reading process;
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 in the data reading process;
the first configuration parameter is one of a plurality of configuration parameters, and the second configuration parameter is other configuration parameters except the first configuration parameter in the plurality of configuration parameters.
In the embodiment, a first input of a user to a setting interface of parameter configuration of the electronic device is received, the electronic device is controlled to restart in response to the first input, and a plurality of configuration parameters corresponding to the working parameters are determined if the user selects to optimize the configuration of the working parameters of the UIC layer of the storage module of the electronic device. And optimizing the configuration of the working parameters in the starting process, and configuring the working parameters into the configuration parameters without UIC errors. In the embodiment of the application, the UIC parameters of the storage module are configured on the software layer, so that the incidence probability of UIC errors of the storage module is reduced, the problem that more CPU resources are required to be consumed for error processing is avoided, and the stability of the storage module is improved.
Further, in an embodiment of the present application, the determining module 1004 is specifically configured to determine, in response to the first input, a parameter configuration mode selected by a user, and determine, according to the parameter configuration mode, a plurality of configuration parameters corresponding to the working parameters.
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 the plurality of configuration parameters in the first configuration mode is smaller than the number of the plurality of configuration parameters in the second configuration mode.
Further, in an embodiment of the present application, when the parameter configuration mode is the first configuration mode and the working parameters include N, the number of the plurality of configuration parameters is 2N; under the condition that the parameter configuration mode is the first configuration mode and the working parameters comprise M, the number of the plurality of configuration parameters is 2M; under the condition that the parameter configuration mode is the second configuration mode and the working parameters comprise N, the number of the plurality of configuration parameters is 4N; and under the condition that the parameter configuration mode is the second configuration mode and the working parameters comprise M, the number of the plurality of configuration parameters is 4M, wherein N and M are positive integers.
The parameter configuration apparatus 1000 in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the Mobile electronic device may be a Mobile phone, a tablet Computer, a notebook Computer, a palm top Computer, an in-vehicle electronic device, a wearable device, an Ultra-Mobile Personal Computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-Mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (Personal Computer, PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The parameter configuration apparatus 1000 in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The parameter configuration apparatus 1000 provided in this embodiment of the application can implement each process implemented in the method embodiments of fig. 2 to fig. 9, and is not described here again to avoid repetition.
Optionally, as shown in fig. 11, an electronic device 1100 is further provided in this embodiment of the present application, and includes a processor 1102, a memory 1104, and a program or an instruction that is stored in the memory 1104 and is executable on the processor 1102, and when the program or the instruction is executed by the processor 1102, the process of the parameter configuration method embodiment is implemented, and the same technical effect can be achieved, and details are not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 12 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 1200 includes, but is not limited to: radio frequency unit 1202, network module 1204, audio output unit 1206, input unit 1208, sensors 1210, display unit 1212, user input unit 1214, interface unit 1216, memory 1218, and processor 1220.
Those skilled in the art will appreciate that the electronic device 1200 may further comprise a power supply (e.g., a battery) for supplying power to the various components, and the power supply may be logically connected to the processor 1220 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 12 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The user input unit 1214 is used for receiving a first input of a setting interface of the parameter configuration of the electronic device by a user; the processor 1220 is configured to, in response to the first input, determine a plurality of configuration parameters corresponding to operating parameters of a storage module of the electronic device, read data from the memory 1218 according to the first configuration parameters during a startup process of the electronic device, configure the operating parameters as the first configuration parameters when an execution error does not occur during reading of the data, and continue to read data from the storage module according to the second configuration parameters when an execution error occurs during reading of the data.
The first configuration parameter is one of a plurality of configuration parameters, and the second configuration parameter is other configuration parameters except the first configuration parameter in the plurality of configuration parameters.
In the embodiment, a first input of a user to a setting interface of parameter configuration of the electronic device is received, the electronic device is controlled to restart in response to the first input, and a plurality of configuration parameters corresponding to the working parameters are determined if the user selects to optimize the configuration of the working parameters of the UIC layer of the storage module of the electronic device. And optimizing the configuration of the working parameters in the starting process, and configuring the working parameters into the configuration parameters without UIC errors. In the embodiment of the application, the UIC parameters of the storage module are configured on the software layer, so that the incidence probability of UIC errors of the storage module is reduced, the problem that more CPU resources are required to be consumed for error processing is avoided, and the stability of the storage module is improved.
Further, in an embodiment of the present application, the processor 1220 is specifically configured to determine, in response to the first input, a parameter configuration mode selected by a user, and determine, according to the parameter configuration mode, a plurality of configuration parameters corresponding to the working parameters.
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 the plurality of configuration parameters in the first configuration mode is smaller than the number of the plurality of configuration parameters in the second configuration mode.
Further, in an embodiment of the present application, when the parameter configuration mode is the first configuration mode and the working parameters include N, the number of the plurality of configuration parameters is 2N; under the condition that the parameter configuration mode is the first configuration mode and the working parameters comprise M, the number of the plurality of configuration parameters is 2M; under the condition that the parameter configuration mode is the second configuration mode and the working parameters comprise N, the number of the plurality of configuration parameters is 4N; and under the condition that the parameter configuration mode is the second configuration mode and the working parameters comprise M, the number of the plurality of configuration parameters is 4M, wherein N and M are positive integers.
It should be understood that, in the embodiment of the present application, the radio frequency unit 1202 may be used for transceiving information or transceiving signals during a call, and in particular, receiving downlink data of a base station or sending uplink data to the base station. 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, and the like.
The network module 1204 provides wireless broadband internet access to the user, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 1206 may convert audio data received by the radio frequency unit 1202 or the network module 1204 or stored in the memory 1218 into an audio signal and output as sound. Also, the audio output unit 1206 may provide audio output related to a specific function performed by the electronic apparatus 1200 (e.g., a call signal reception sound, a message reception sound, and the like). The audio output unit 1206 includes a speaker, a buzzer, a receiver, and the like.
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, and the Graphics processor 12082 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1212 or stored in the memory 1218 (or other storage medium) or transmitted 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, and the processed audio data can be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1202 in the case of a phone call mode.
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 others.
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, and the display panel 12122 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
The user input unit 1214 may be used to receive input numeric or character information and generate key signal inputs 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. Touch panel 12142, also referred to as a touch screen, may collect touch operations by a user on or near it. The touch panel 12142 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 1220 to receive and execute commands sent by the processor 1220. Other input devices 12144 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 12142 may be overlaid on the display panel 12122, such that when the touch panel 12142 detects a touch operation on or near the touch panel 12142, the touch operation is transmitted to the processor 1220 to determine the type of touch event, and the processor 1220 then provides a corresponding visual output on the display panel 12122 according to the type of touch event. The touch panel 12142 and the display panel 12122 may be provided as two separate components or may be integrated into one component.
The interface unit 1216 is an interface for connecting an external device to the electronic apparatus 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 having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. 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 apparatus 1200 or may be used to transmit data between the electronic apparatus 1200 and the external device.
Memory 1218 may be used to store software programs as well as various data. The memory 1218 may mainly include a program storage area and a data storage area, where the program storage area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile terminal, and the like. In addition, the memory 1218 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 1220 performs various functions of the electronic device 1200 and processes data by running or executing software programs and/or modules stored within the memory 1218, as well as by invoking data stored within the memory 1218 to thereby perform overall monitoring of the electronic device 1200. Processor 1220 may include one or more processing units; preferably, the processor 1220 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the parameter configuration method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media, such as Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, etc.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the parameter configuration method embodiment, and the same technical effect can be achieved.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for configuring parameters, comprising:
receiving a first input of a setting interface of parameter configuration of the electronic equipment by a user;
responding to the first input, and determining a plurality of configuration parameters corresponding to working parameters of a storage module of the electronic equipment;
reading data from the storage module according to a first configuration parameter in the starting process of the electronic equipment;
under the condition that no execution error occurs in the process of reading data, configuring the working parameter as the first configuration parameter;
under the condition that an execution error occurs in the data reading process, continuing to read data from the storage module according to a second configuration parameter;
the first configuration parameter is one of the configuration parameters, and the second configuration parameter is another configuration parameter of the configuration parameters except for the first configuration parameter.
2. The method of claim 1, wherein determining a plurality of configuration parameters corresponding to operating parameters of a memory module of the electronic device in response to the first input comprises:
in response to the first input, determining the user-selected parameter configuration mode;
and determining a plurality of configuration parameters corresponding to the working parameters according to the parameter configuration mode.
3. The parameter configuration method according to claim 2,
the parameter configuration mode comprises a first configuration mode and a second configuration mode;
the number of the plurality of configuration parameters in the first configuration mode is smaller than the number of the plurality of configuration parameters in the second configuration mode.
4. The parameter configuration method according to claim 3,
under the condition that the parameter configuration mode is the first configuration mode and the working parameters comprise N, the number of the plurality of configuration parameters is 2N;
under the condition that the parameter configuration mode is the first configuration mode and the working parameters comprise M, the number of the configuration parameters is 2M;
under the condition that the parameter configuration mode is the second configuration mode and the working parameters comprise N, the number of the plurality of configuration parameters is 4N;
and under the condition that the parameter configuration mode is the second configuration mode and the working parameters comprise M, the number of the configuration parameters is 4M, wherein N and M are positive integers.
5. An apparatus for parameter configuration, comprising:
the receiving module is used for receiving first input of a setting interface of parameter configuration of the electronic equipment by a user;
the determining module is used for responding to the first input and determining a plurality of configuration parameters corresponding to working parameters of a storage module of the electronic equipment;
the reading module is used for reading data from the storage module according to a first configuration parameter in the starting process of the electronic equipment;
the configuration module is used for configuring the working parameters into the first configuration parameters under the condition that no execution error occurs in the data reading process;
the reading module is further used for continuing to read data from the storage module according to a second configuration parameter under the condition that an execution error occurs in the data reading process;
the first configuration parameter is one of the configuration parameters, and the second configuration parameter is another configuration parameter of the configuration parameters except for the first configuration parameter.
6. The parameter configuration apparatus of claim 5,
the determining module is specifically configured to determine, in response to the first input, a parameter configuration mode selected by the user, and determine, according to the parameter configuration mode, a plurality of configuration parameters corresponding to the working parameters.
7. The parameter configuration apparatus of claim 6,
the parameter configuration mode comprises a first configuration mode and a second configuration mode;
the number of the plurality of configuration parameters in the first configuration mode is smaller than the number of the plurality of configuration parameters in the second configuration mode.
8. The parameter configuration apparatus of claim 7,
under the condition that the parameter configuration mode is the first configuration mode and the working parameters comprise N, the number of the plurality of configuration parameters is 2N;
under the condition that the parameter configuration mode is the first configuration mode and the working parameters comprise M, the number of the configuration parameters is 2M;
under the condition that the parameter configuration mode is the second configuration mode and the working parameters comprise N, the number of the plurality of configuration parameters is 4N;
and under the condition that the parameter configuration mode is the second configuration mode and the working parameters comprise M, the number of the configuration parameters is 4M, wherein N and M are positive integers.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the parameter configuration method of any of claims 1 to 4.
10. A readable storage medium on which a program or instructions are stored, characterized in that the program or instructions, when executed by a processor, implement the steps of the parameter configuration method according to any one of claims 1 to 4.
CN202110655531.4A 2021-06-11 2021-06-11 Parameter configuration method, parameter configuration device, electronic equipment and readable storage medium Pending CN113296712A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110655531.4A CN113296712A (en) 2021-06-11 2021-06-11 Parameter configuration method, parameter configuration device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110655531.4A CN113296712A (en) 2021-06-11 2021-06-11 Parameter configuration method, parameter configuration device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113296712A true CN113296712A (en) 2021-08-24

Family

ID=77328379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110655531.4A Pending CN113296712A (en) 2021-06-11 2021-06-11 Parameter configuration method, parameter configuration device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113296712A (en)

Similar Documents

Publication Publication Date Title
US11861161B2 (en) Display method and apparatus
AU2022218613B2 (en) Display method and apparatus
CN109257336B (en) Block chain-based password information processing method and terminal equipment
WO2018049893A1 (en) Data transmission method and terminal device
US20210091845A1 (en) Beam state detection method and terminal
US11057329B2 (en) Message record combination and display method and terminal device
CN114389648A (en) Signal transmission method and device, terminal equipment, intelligent equipment and electronic equipment
US20220110036A1 (en) Random access method and terminal
CN110730013B (en) Method for improving transmission stray and mobile terminal
JP7114747B2 (en) Random access resource selection method and terminal device
CN113296712A (en) Parameter configuration method, parameter configuration device, electronic equipment and readable storage medium
CN111159738A (en) Permission configuration method, application login method and device
CN108646928B (en) Character input method and terminal equipment
CN113938759A (en) File sharing method and file sharing device
CN109344124B (en) File sending method and terminal
CN109783379B (en) Script execution exception determining method and device
CN109412986B (en) Communication channel setting method and mobile terminal
CN112600583B (en) Antenna control method, control device, user equipment and readable storage medium
CN115756941B (en) Automatic device repairing method and device, electronic device and storage medium
CN109165173B (en) Handshake processing method and mobile terminal
CN111585666B (en) Power compensation method and electronic equipment
CN109782987B (en) Message display method and mobile terminal
CN113190295A (en) Information processing method, processing device and electronic equipment
CN112905837A (en) Video file processing method and device and electronic equipment
CN113076158A (en) Display control method and display control device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination