WO2020019802A1 - Device control method and apparatus, storage medium and electronic device - Google Patents

Device control method and apparatus, storage medium and electronic device Download PDF

Info

Publication number
WO2020019802A1
WO2020019802A1 PCT/CN2019/084823 CN2019084823W WO2020019802A1 WO 2020019802 A1 WO2020019802 A1 WO 2020019802A1 CN 2019084823 W CN2019084823 W CN 2019084823W WO 2020019802 A1 WO2020019802 A1 WO 2020019802A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
voltage
electrochromic
detected
parameter
Prior art date
Application number
PCT/CN2019/084823
Other languages
French (fr)
Chinese (zh)
Inventor
张海平
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020019802A1 publication Critical patent/WO2020019802A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Definitions

  • the present application relates to the technical field of electronic devices, and in particular, to a device control method, device, storage medium, and electronic device.
  • electronic devices provide various types of status parameters (such as remaining power, memory usage, etc.) for users to view. Users can learn the operating status of electronic devices according to the parameter values of these status parameters.
  • status parameters such as remaining power, memory usage, etc.
  • an embodiment of the present application provides a device control method applied to an electronic device.
  • the electronic device includes an electrochromic component.
  • the electrochromic component includes a plurality of electrochromic units.
  • the device control method includes:
  • an embodiment of the present application provides a device control device for an electronic device.
  • the electronic device includes an electrochromic component, the electrochromic component includes a plurality of electrochromic units, and the device control device includes:
  • a first determining module configured to determine a state parameter of the electronic device to be detected
  • a parameter detection module configured to detect the state parameter to be detected, and obtain a parameter value of the state parameter to be detected
  • a second determining module configured to determine a target area to be colored and a target color to be colored in the electrochromic component according to a parameter value of the state parameter to be detected;
  • a unit coloring module configured to determine a target electrochromic unit constituting the target region from a plurality of the electrochromic units, and color the target electrochromic unit to the target color to indicate the target electrochromic unit; Describe the parameter values of the state parameters to be detected.
  • an embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program runs on an electronic device, the electronic device is caused to execute:
  • an embodiment of the present application provides an electronic device including a processor and a memory, where the memory has a computer program, and the processor calls the computer program to execute:
  • FIG. 1 is a schematic flowchart of a device control method according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a setting position of an electrochromic component in an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of an electrochromic unit in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of applying a voltage to the electrochromic unit in the embodiment of the present application.
  • FIG. 5 is a schematic diagram of the division of the electrochromic component in the embodiment of the present application.
  • FIG. 6 is a schematic diagram of an electronic device display state parameter selection interface according to an embodiment of the present application.
  • FIG. 7 is another schematic flowchart of a device control method according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a device control apparatus according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 10 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the embodiment of the present application provides a device control method.
  • the execution subject of the device control method may be the device control device provided in the embodiment of the application, or an electronic device integrated with the device control device.
  • the device control device may use hardware or Software way.
  • the electronic device may be a computer device such as a smart phone, a tablet computer, a palmtop computer, a notebook computer, or a desktop computer.
  • An embodiment of the present application provides a device control method applied to an electronic device, wherein the electronic device includes an electrochromic component, the electrochromic component includes a plurality of electrochromic units, and the device control method includes:
  • the electrochromic unit is an electrochromic unit that can store energy
  • the step of coloring the target electrochromic unit to the target color includes:
  • the method before the step of providing the target voltage to the target electrochromic unit, the method further includes:
  • the target voltage is greater than the current real-time voltage
  • the target voltage is provided to the target electrochromic unit.
  • the method further includes:
  • the target voltage is provided to the target electrochromic unit.
  • the step of determining a state parameter to be detected by the electronic device includes:
  • the status parameter selection interface including a plurality of status parameters
  • a status parameter selection instruction is received through the status parameter selection interface, and the status parameter selection instruction is used to select a status parameter from the multiple status parameters as the status parameter to be detected.
  • the state parameter to be detected includes one of a memory usage rate, a CPU usage rate, power consumption, or remaining power.
  • determining the target area to be colored and the target color to be colored in the electrochromic component according to the parameter value of the state parameter to be detected includes:
  • the color corresponding to the parameter value of the state parameter to be detected is determined as the target color according to the corresponding relationship between the parameter value and the color associated with the state parameter to be detected.
  • FIG. 1 is a schematic flowchart of a device control method according to an embodiment of the present application.
  • the process of the device control method provided in the embodiment of the present application may be as follows:
  • the electronic device includes an electrochromic component, and the electrochromic component is composed of a plurality of electrochromic units.
  • the position of the electrochromic component in the electronic device is not specifically limited in the embodiments of the present application, and a person skilled in the art may set the electrochromic component in any visible position of the electronic device according to actual needs.
  • an electrochromic component may be disposed on a casing on the side of the screen of the electronic device.
  • the electrochromic component is composed of 24 electrochromic units in a specific shape as shown in FIG. 2.
  • electrochromic refers to the phenomenon that the optical properties of materials (such as reflectance, light transmittance, absorption, etc.) undergo stable and reversible color / transparency changes under the action of an applied electric field.
  • a material having electrochromic properties may be referred to as an electrochromic material.
  • the electrochromic unit in the embodiment of the present application is made of an electrochromic material.
  • the electrochromic unit may include two conductive layers laminated and a color changing layer, an electrolyte layer, and an ion storage layer located between the two conductive layers.
  • the conductive layer may be a transparent conductive layer, which has excellent electrical conductivity and good optical transmittance.
  • the color-changing layer is the core layer of the electrochromic unit, and is also the layer in which the color-change reaction occurs.
  • the materials of the color changing layer can be divided into inorganic electrochromic materials and organic electrochromic materials according to types.
  • the electromechanical non-chromic material can be tungsten trioxide (WO3) or nickel oxide (NiO).
  • Organic electrochromic materials mainly include polythiophenes and their derivatives, viologens, tetrathiafulvalene, and metal phthalocyanine compounds.
  • the electrolyte layer is composed of a special conductive material, such as a liquid electrolyte material containing a solution of lithium perchlorate, sodium perchlorate, or the like, or it may be a solid electrolyte material.
  • the ion storage layer plays a role of storing charge in the electrochromic unit, that is, corresponding counter ions are stored when the material of the color-changing layer undergoes a redox reaction, thereby ensuring the charge balance of the entire electrochromic unit.
  • the electrochromic unit when no voltage is applied to the two transparent conductive layers of the electrochromic unit (or the voltage is 0V), the electrochromic unit will be in a transparent state, and when applied between its two transparent conductive layers, When the voltage changes from 0V to 1.2V, the electrochromic unit will appear black. When the voltage applied between its two transparent conductive layers changes from 1.2V to -1.2V, the electrochromic unit will change from black to Transparent, etc.
  • state parameters include, but are not limited to, the memory usage rate, CPU usage rate, power consumption, and remaining power of the electronic device. and many more.
  • the electronic device first determines a status parameter to be detected.
  • the electronic device may, according to the received user input data, use the status parameter indicated by the user input data as the status parameter to be detected.
  • the set status parameter is used as the status parameter to be detected. For example, the remaining power is set as the status parameter to be detected by default.
  • the electronic device after determining the status parameter to be detected, the electronic device detects the determined status parameter to obtain a parameter value of the status parameter.
  • the electronic device when determining that the state parameter to be detected is the remaining power, the electronic device detects the remaining power and obtains the value of the remaining power of the remaining power as "80%";
  • the electronic device when determining that the state parameter to be detected is the memory usage rate, the electronic device detects its memory usage rate, and the value of the obtained memory usage rate is “60%”.
  • a corresponding relationship between parameter values and colors associated with each state parameter and a corresponding relationship between parameter values and regions associated with each state parameter are respectively set.
  • the electronic device determines the region corresponding to the parameter value of the state parameter according to the correspondence between the parameter value and the region associated with the state parameter, and uses the determined region as the The target area in the electrochromic component that needs to be colored; the electronic device also determines the color corresponding to the parameter value of the state parameter according to the corresponding relationship between the parameter value and the color associated with the aforementioned state parameter, and uses the determined color as a reference to the aforementioned The target color of the target area.
  • the electrochromic component is divided into three regions, namely a first region, a second region, and a third region.
  • the parameter to be detected is the remaining power
  • the remaining power value and The corresponding relationship of the regions is configured: the remaining power value interval (0, 30%) corresponds to the first area, the remaining power value interval (30%, 60%) corresponds to the second area, and the remaining power value interval (60%, 100%)
  • the corresponding relationship between the remaining power value and the color is configured as: the remaining power value interval (0, 30%) corresponds to the red, the remaining power value interval (30%, 60%) corresponds to the blue, the remaining power value interval ( 60%, 100%] corresponds to green.
  • the target area can be determined to be the first area to be divided, and the target color is red. If the value of the remaining power is 45%, it can be determined. It is determined that the target area is the divided second area, the target color is blue, and if the detected remaining power value is 95%, the target area may be determined as the third area, the target color is green, and so on.
  • 104 Determine a target electrochromic unit constituting the target area from a plurality of electrochromic units of the electrochromic component, and color the target electrochromic unit to the target color to indicate a parameter value of the state parameter. .
  • the target electrochromic units constituting the aforementioned target region are determined, and the determined target electrochromic units may be one or multiple.
  • the target electrochromic units constituting the target area are four electrochromic units at the center of the electrochromic component.
  • the electronic device can color the target electrochromic unit to the foregoing target color, so that the determined target area is in the target color and is used to indicate the parameter value of the aforementioned state parameter .
  • the electronic device colors the target electrochromic unit to the foregoing target color
  • the electronic device determines a voltage corresponding to the target color according to a preset correspondence between the color and the voltage, so as to provide the target electrochromic unit with the determined voltage, and
  • the aforementioned target electrochromic unit is colored to a target color.
  • a state parameter to be detected by the electronic device can be determined.
  • the determined state parameter is detected to obtain a parameter value of the state parameter.
  • a target area to be colored and a target color to be colored in the electrochromic component are determined.
  • a target electrochromic unit constituting the target area is determined from a plurality of electrochromic units of the electrochromic component, and the target electrochromic unit is colored to the target color to indicate a parameter value of the state parameter. Therefore, the user can display the parameter value of the specific state parameter to the user in a manner of combining colors with the area without the user having to perform tedious operations, which reduces the difficulty for the user to view the state parameter of the electronic device.
  • the electrochromic unit is an electrochromic unit that can store energy, and "coloring the target electrochromic unit to the aforementioned target color" includes:
  • each electrochromic unit is made of the same electrochromic material, and according to the discoloration characteristics of the electrochromic material, a correspondence relationship between color and voltage is preset in the electronic device.
  • the conductive layer of the electrochromic unit is a carbon conductive layer (made of carbon nanotubes coated with a transparent substrate). In this way, for any electrochromic unit, the two carbon conductive layers included in it will form a capacitor, making the electrochromic unit In addition to being able to change color, the color changing unit can also store electrical energy.
  • an electronic device colors a target electrochromic unit to a target color
  • first, according to a preset correspondence between a color and a voltage a voltage corresponding to the foregoing target color is determined, and the voltage is recorded as being used to provide Target voltage of the target electrochromic unit.
  • the preset color-to-voltage correspondence is configured as follows: green corresponds to a voltage of 1V, blue corresponds to a voltage of 2V, and red corresponds to a voltage of 3V. If the determined target color is red, it can be determined to be provided to the target The target voltage of the color changing unit is 3V.
  • a target voltage is provided to the target electrochromic unit, and the target electrochromic unit is colored to the target color by the target voltage.
  • the target voltage will charge the target electrochromic unit.
  • the real-time voltage of the electrochromic unit will be consistent with the target voltage, and when the real-time voltage of the target electrochromic unit When the target voltage is consistent with the target voltage, the target electrochromic unit cannot continue to charge the target electrochromic unit. Due to the capacitance performance of the target electrochromic unit, its real-time voltage will be maintained at the target voltage. After the unit has finished coloring, its color will remain at the target color. Obviously, when the real-time voltage of the target electrochromic unit is consistent with the target voltage and the coloring of the target electrochromic unit is completed, it is no longer necessary to continue to provide the target electrochromic unit with the target voltage, and the electrochromism can be stopped to the target The unit provides the target voltage.
  • the method before “providing a target voltage to a target electrochromic unit”, the method further includes:
  • the target voltage is greater than the current real-time voltage of the target electrochromic unit, the target voltage is provided to the target electrochromic unit.
  • the electronic device first obtains the current real-time voltage of the target electrochromic unit before providing the target voltage to the target electrochromic unit. For example, suppose the current time is 18:32, and the electronic device colors the target electrochromic unit from transparent to green at 18:30. Based on the above description of the capacitance performance of the electrochromic unit, the electronic device obtains the target electrochromic unit.
  • the real-time voltage of the color changing unit at the current moment is the voltage provided by the electronic device to color the target electrochromic unit from transparent to green at 18:30.
  • the electronic device After obtaining the current real-time voltage of the target electrochromic unit, determine whether the target voltage is greater than the current real-time voltage of the target electrochromic unit, wherein when the target voltage is greater than the current real-time voltage of the target electrochromic unit, the electronic device The aforementioned target voltage is directly provided to the target electrochromic unit, and the target electrochromic component is colored to the aforementioned target color.
  • the electronic device revokes the current supply of the target voltage to the target electrochromic unit. operating.
  • determining whether the aforementioned target voltage is greater than the current real-time voltage of the target electrochromic unit further includes:
  • the target voltage when the target voltage is smaller than the current real-time voltage of the target electrochromic unit, even if the target voltage is provided to the target electrochromic voltage, the target voltage cannot cause the color of the target electrochromic unit to change. The target electrochromic unit cannot be charged.
  • the electronic device After determining whether the target voltage is greater than the current real-time voltage of the target electrochromic unit and determining that the target voltage is less than the current real-time voltage of the target electrochromic unit, the electronic device provides the target electrochromic unit with its current real-time The reverse-phase voltage of the voltage, by which the target electrochromic unit is bleached into a transparent state.
  • the current real-time voltage of the target electrochromic unit is 3V, which maintains the color of the target electrochromic unit at red. If the determined target voltage is 2V, the electronic device will provide the target electrochromic unit with its current The reverse-phase voltage "-3V" of the real-time voltage to bleach the target electrochromic unit from red to transparent.
  • the electronic device When the target electrochromic unit is bleached to a transparent state and the real-time voltage of the target electrochromic unit is consistent with the aforementioned reverse phase voltage, the electronic device provides the target voltage to the target electrochromic unit until the target electrochromic unit is colored It is the aforementioned target color, and the real-time voltage of the target electrochromic unit is consistent with the target voltage.
  • determining a state parameter to be detected by the electronic device includes:
  • the status parameter selection interface includes multiple status parameters.
  • the status parameter selection instruction is received through the status parameter selection interface.
  • the status parameter selection instruction is used to select a status parameter as a status parameter to be detected from a plurality of status parameters.
  • the electronic device provides a state parameter selection interface for a user to select a state parameter to be viewed.
  • the status parameter selection interface displayed by the electronic device includes a prompt message "Please select a status parameter to be displayed", a plurality of status parameters available for display, and a round button for selecting each status parameter, and A confirmation button for inputting a state parameter selection instruction to an electronic device.
  • a prompt message "Please select a status parameter to be displayed"
  • a plurality of status parameters available for display and a round button for selecting each status parameter
  • a confirmation button for inputting a state parameter selection instruction to an electronic device.
  • the user needs the electronic device to display the remaining power, he can click the circular button corresponding to the remaining power and select the remaining power. After that, he can enter the electronic device by clicking the confirmation button.
  • a state parameter selection instruction includes a user's selection information on remaining power.
  • the electronic device when the electronic device receives the status parameter selection instruction input by the user, the electronic device parses out the selection information in the status parameter selection instruction, and determines the status parameter that the user needs to view as the remaining power according to the selection information. Detected status parameters.
  • FIG. 7 is another schematic flowchart of a device control method according to an embodiment of the present application. As shown in FIG. 7, the device control method may include:
  • the electronic device includes an electrochromic component, and the electrochromic component is composed of a plurality of electrochromic units.
  • the position of the electrochromic component in the electronic device is not specifically limited in the embodiments of the present application, and a person skilled in the art may set the electrochromic component in any visible position of the electronic device according to actual needs.
  • an electrochromic component may be disposed on a casing on the side of the screen of the electronic device.
  • the electrochromic component is composed of 24 electrochromic units in a specific shape as shown in FIG. 2.
  • state parameters include, but are not limited to, the memory usage rate, CPU usage rate, power consumption, and remaining power of the electronic device. and many more.
  • the electronic device first determines a status parameter to be detected.
  • the electronic device may, according to the received user input data, use the status parameter indicated by the user input data as the status parameter to be detected.
  • the set status parameter is used as the status parameter to be detected. For example, the remaining power is set as the status parameter to be detected by default.
  • the electronic device After determining the status parameter to be detected, the electronic device detects the determined status parameter to obtain a parameter value of the status parameter.
  • the electronic device when determining that the state parameter to be detected is the remaining power, the electronic device detects the remaining power and obtains the value of the remaining power of the remaining power as "80%";
  • the electronic device when determining that the state parameter to be detected is the memory usage rate, the electronic device detects its memory usage rate, and the value of the obtained memory usage rate is “60%”.
  • a corresponding relationship between parameter values and colors associated with each state parameter and a corresponding relationship between parameter values and regions associated with each state parameter are respectively set.
  • the electronic device determines the region corresponding to the parameter value of the state parameter according to the correspondence between the parameter value and the region associated with the state parameter, and uses the determined region as the The target area in the electrochromic component that needs to be colored; the electronic device also determines the color corresponding to the parameter value of the state parameter according to the corresponding relationship between the parameter value and the color associated with the aforementioned state parameter, and uses the determined color as a reference to the aforementioned The target color of the target area.
  • the electrochromic component is divided into three regions, namely a first region, a second region, and a third region.
  • the parameter to be detected is the remaining power
  • the remaining power value and The corresponding relationship of the regions is configured: the remaining power value interval (0, 30%) corresponds to the first area, the remaining power value interval (30%, 60%) corresponds to the second area, and the remaining power value interval (60%, 100%)
  • the corresponding relationship between the remaining power value and the color is configured as: the remaining power value interval (0, 30%) corresponds to the red, the remaining power value interval (30%, 60%) corresponds to the blue, the remaining power value interval ( 60%, 100%] corresponds to green.
  • the target area can be determined to be the first area to be divided, and the target color is red. If the value of the remaining power is 45%, it can be determined. It is determined that the target area is the divided second area, the target color is blue, and if the detected remaining power value is 95%, the target area may be determined as the third area, the target color is green, and so on.
  • the target electrochromic units constituting the aforementioned target region are determined, and the determined target electrochromic units may be one or multiple.
  • the target electrochromic units constituting the target area are four electrochromic units at the center of the electrochromic component.
  • each electrochromic unit is made of the same electrochromic material, and according to the discoloration characteristics of the electrochromic material, a correspondence relationship between color and voltage is preset in the electronic device.
  • an electronic device colors a target electrochromic unit to a target color
  • Target voltage When an electronic device colors a target electrochromic unit to a target color, first determines a voltage corresponding to the foregoing target color according to a preset correspondence between a color and a voltage, and records the voltage as a voltage for supplying the target electrochromic unit.
  • the preset color-to-voltage correspondence is configured as follows: green corresponds to a voltage of 1V, blue corresponds to a voltage of 2V, and red corresponds to a voltage of 3V. If the determined target color is red, it can be determined to be provided to the target The target voltage of the color changing unit is 3V.
  • 205 Obtain the current real-time voltage of the target electrochromic unit, and determine whether the foregoing target voltage is greater than the current real-time voltage of the target electrochromic unit.
  • the electronic device first obtains the current real-time voltage of the target electrochromic unit before providing the target voltage to the target electrochromic unit. For example, suppose the current time is 18:32, and the electronic device colors the target electrochromic unit from transparent to green at 18:30. Based on the above description of the capacitance performance of the electrochromic unit, the electronic device obtains the target electrochromic unit.
  • the real-time voltage of the color changing unit at the current moment is the voltage provided by the electronic device to color the target electrochromic unit from transparent to green at 18:30.
  • the target voltage is greater than the current real-time voltage of the target electrochromic unit, provide the target voltage to the target electrochromic unit, color the target electrochromic unit to the target color by the target voltage, and target the target electrochromic unit. Charging.
  • the electronic device After obtaining the current real-time voltage of the target electrochromic unit, determine whether the target voltage is greater than the current real-time voltage of the target electrochromic unit, wherein when the target voltage is greater than the current real-time voltage of the target electrochromic unit, the electronic device The aforementioned target voltage is directly provided to the target electrochromic unit, and the target electrochromic component is colored to the aforementioned target color.
  • the conductive layer of the electrochromic unit is a carbon conductive layer (made of carbon nanotubes coated with a transparent substrate).
  • the conductive layer will form a capacitor, so that in addition to being able to change color, the electrochromic unit can store electrical energy.
  • the target voltage will charge the target electrochromic unit.
  • the real-time voltage of the electrochromic unit will be consistent with the target voltage, and when the real-time voltage of the target electrochromic unit When the target voltage is consistent with the target voltage, the target electrochromic unit cannot continue to charge the target electrochromic unit. Due to the capacitance performance of the target electrochromic unit, its real-time voltage will be maintained at the target voltage. After the unit has finished coloring, its color will remain at the target color. Obviously, when the real-time voltage of the target electrochromic unit is consistent with the target voltage and the coloring of the target electrochromic unit is completed, it is no longer necessary to continue to provide the target electrochromic unit with the target voltage, and the electrochromism can be stopped to the target The unit provides the target voltage.
  • a device control device is also provided.
  • FIG. 8 is a schematic structural diagram of a device control apparatus 400 according to an embodiment of the present application.
  • the device control device 400 is applied to an electronic device.
  • the electronic device includes an electrochromic component.
  • the electrochromic component is composed of a plurality of electrochromic units.
  • the device control device 400 includes a first determination module 401, a parameter detection module 402, a second determination module 403, and a unit coloring module 404, as follows:
  • a first determining module 401 configured to determine a state parameter of an electronic device to be detected
  • a parameter detection module 402 configured to detect the determined state parameter and obtain a parameter value of the state parameter
  • a second determination module 403, configured to determine a target area to be colored and a target color to be colored in the electrochromic component according to the parameter value of the foregoing state parameter;
  • a unit coloring module 404 configured to determine a target electrochromic unit constituting the target area from a plurality of electrochromic units of the electrochromic component, and color the target electrochromic unit to the target color to indicate the foregoing The parameter value of the status parameter.
  • the electrochromic unit is an electrochromic unit that can store energy
  • the unit coloring module 404 may be configured to:
  • the unit coloring module 404 may be configured to:
  • the target voltage is greater than the current real-time voltage of the target electrochromic unit, the target voltage is provided to the target electrochromic unit.
  • the cell coloring module 404 may be configured to:
  • the target electrochromic unit When the target voltage is less than the current real-time voltage of the target electrochromic unit, provide the target electrochromic unit with the reverse phase voltage of its current real-time voltage;
  • a target voltage is provided to the target electrochromic unit.
  • the second determining module 403 may be configured to:
  • the status parameter selection interface includes multiple status parameters.
  • a status parameter selection instruction is received through a status parameter selection interface.
  • the status parameter selection instruction is used to select a status parameter from a plurality of status parameters as a status parameter to be detected.
  • the status parameter to be detected includes one of a memory usage rate, a CPU usage rate, power consumption, or remaining power.
  • the second determining module 403 may be configured to:
  • the color corresponding to the parameter value of the state parameter to be detected is determined as the target color according to the corresponding relationship between the parameter value and the color associated with the state parameter to be detected.
  • the above modules may be implemented as independent entities, or may be arbitrarily combined, and implemented as the same or several entities.
  • the above units refer to the foregoing embodiments, and details are not described herein again.
  • the electronic device 500 includes a processor 501, a memory 502, a screen 503, and an electrochromic component 504.
  • the memory 502, the screen 503, and the electrochromic component 504 are electrically connected to the processor 501, respectively.
  • the processor 500 is the control center of the electronic device 500. It uses various interfaces and lines to connect various parts of the entire electronic device.
  • the processor 500 runs or loads a computer program stored in the memory 502, and calls data stored in the memory 502 to execute the electronic Various functions of the device 500 and process data.
  • the memory 502 may be configured to store software programs and modules, and the processor 501 executes various functional applications and data processing by running computer programs and modules stored in the memory 502.
  • the memory 502 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, a computer program (such as a sound playback function, an image playback function, etc.) required for at least one function; the storage data area may store data according to Data created by the use of electronic devices, etc.
  • the memory 502 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may further include a memory controller to provide the processor 501 with access to the memory 502.
  • the screen 503 may be used to display information input by the user or information provided to the user and various graphical user interfaces. These graphical user interfaces may be composed of graphics, text, icons, videos, and any combination thereof.
  • the screen 503 may include a display panel.
  • the display panel may be configured by using a liquid crystal display (Liquid Crystal Display, LCD), or an organic light emitting diode (Organic Light-Emitting Diode, OLED).
  • the electrochromic component 504 is composed of a plurality of electrochromic units (not shown in FIG. 9).
  • the position of the electrochromic component 504 in the electronic device is not specifically limited in the embodiments of the present application, and the person skilled in the art can set the electrochromic component 504 at any visible position of the electronic device according to actual needs.
  • an electrochromic component may be disposed on a casing on the side of the screen of the electronic device.
  • the electrochromic component is composed of 24 electrochromic units in a specific shape as shown in FIG. 2.
  • the processor 501 in the electronic device 500 loads the instructions corresponding to the process of one or more computer programs into the memory 502 according to the following steps, and the processor 501 runs the stored data in the memory 502
  • a computer program in the computer to achieve various functions, as follows:
  • a target electrochromic unit constituting the target area is determined from a plurality of electrochromic units of the electrochromic component, and the target electrochromic unit is colored to the target color to indicate a parameter value of the state parameter.
  • the electronic device 500 may further include a radio frequency circuit 505, an audio circuit 506, and a power supply 507.
  • the radio frequency circuit 505, the audio circuit 506, and the power supply 507 are electrically connected to the processor 501, respectively.
  • the radio frequency circuit 505 may be used to transmit and receive radio frequency signals to establish wireless communication with a network device or other electronic devices through wireless communication, and transmit and receive signals to and from the network device or other electronic devices.
  • the audio circuit 506 may be used to provide an audio interface between the user and the electronic device through a speaker or a microphone.
  • the power supply 507 can be used to power various components of the electronic device 500.
  • the power supply 507 may be logically connected to the processor 501 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system.
  • the electronic device 500 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the processor 501 may execute:
  • the processor 501 may further perform:
  • the target voltage is greater than the current real-time voltage of the target electrochromic unit, the target voltage is provided to the target electrochromic unit.
  • the processor 501 may further execute:
  • the target electrochromic unit When the target voltage is less than the current real-time voltage of the target electrochromic unit, provide the target electrochromic unit with the reverse phase voltage of its current real-time voltage;
  • a target voltage is provided to the target electrochromic unit.
  • the processor 501 when determining a state parameter to be detected by the electronic device, the processor 501 may further execute:
  • the status parameter selection interface includes multiple status parameters.
  • a status parameter selection instruction is received through a status parameter selection interface, and the status parameter selection instruction is used to select a status parameter as a status parameter to be detected from a plurality of status parameters.
  • the status parameter to be detected includes one of a memory usage rate, a CPU usage rate, power consumption, or remaining power.
  • the processor 501 may execute:
  • the color corresponding to the parameter value of the state parameter to be detected is determined as the target color according to the corresponding relationship between the parameter value and the color associated with the state parameter to be detected.
  • An embodiment of the present application further provides a storage medium.
  • the storage medium stores a computer program, and when the computer program runs on an electronic device, the electronic device executes the device control method in any of the foregoing embodiments, such as : Determining a state parameter to be detected by the electronic device; detecting the determined state parameter to obtain a parameter value of the state parameter; determining a target area to be colored and a target color to be colored in the electrochromic component according to the parameter value of the state parameter; A target electrochromic unit constituting the target area is determined from a plurality of electrochromic units of the electrochromic component, and the target electrochromic unit is colored to the target color to indicate a parameter value of the state parameter.
  • the storage medium may be a magnetic disk, an optical disc, a read-only memory (ROM, ROM), or a random access memory (Random Access Memory, RAM).
  • the computer program may be stored in a computer-readable storage medium, such as stored in a memory of an electronic device, and executed by at least one processor in the electronic device, and may include, for example, a device control method during execution.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, or the like.
  • each functional module thereof may be integrated into one processing chip, or each module may exist separately physically, or two or more modules may be integrated into one module.
  • the above integrated modules may be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk, or an optical disk. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Environmental & Geological Engineering (AREA)
  • Electrochromic Elements, Electrophoresis, Or Variable Reflection Or Absorption Elements (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

Disclosed are a device control method and apparatus, a storage medium, and an electronic device. The method comprises: first, determining a state parameter to be detected and detecting its parameter value; next, determining, according to the parameter value, a target area to be colored in an electrochromic component and the target color; and determining, from the electrochromic component, target electrochromic units constituting the target area, and coloring the target electrochromic units into the target color so as to indicate the parameter value of the state parameter.

Description

设备控制方法、装置、存储介质及电子设备Equipment control method, device, storage medium and electronic equipment
本申请要求于2018年07月27日提交中国专利局、申请号为201810844819.4、发明名称为“设备控制方法、装置、存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed on July 27, 2018 with the Chinese Patent Office, application number 201810844819.4, and the invention name is "equipment control method, device, storage medium and electronic device", the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本申请涉及电子设备技术领域,具体涉及一种设备控制方法、装置、存储介质及电子设备。The present application relates to the technical field of electronic devices, and in particular, to a device control method, device, storage medium, and electronic device.
背景技术Background technique
随着电子设备技术的快速发展,电子设备所提供的功能越来越丰富,使得人们对电子设备的依赖不断增加。目前,电子设备提供有各种类型的状态参数(如剩余电量、内存使用率,等等)供用户查看,用户可以根据这些状态参数的参数值来了解电子设备的运行状态。With the rapid development of electronic device technology, the functions provided by electronic devices are becoming more and more abundant, which makes people increasingly rely on electronic devices. At present, electronic devices provide various types of status parameters (such as remaining power, memory usage, etc.) for users to view. Users can learn the operating status of electronic devices according to the parameter values of these status parameters.
发明内容Summary of the Invention
第一方面,本申请实施例提供了一种设备控制方法,应用于电子设备,该电子设备包括电致变色组件,该电致变色组件包括多个电致变色单元,该设备控制方法,包括:In a first aspect, an embodiment of the present application provides a device control method applied to an electronic device. The electronic device includes an electrochromic component. The electrochromic component includes a plurality of electrochromic units. The device control method includes:
确定所述电子设备待检测的状态参数;Determining a state parameter of the electronic device to be detected;
检测所述待检测的状态参数,得到所述待检测的状态参数的参数值;Detecting the state parameter to be detected, and obtaining a parameter value of the state parameter to be detected;
根据所述待检测的状态参数的参数值,确定所述电致变色组件中需要着色的目标区域以及着色的目标颜色;Determining, according to a parameter value of the state parameter to be detected, a target area to be colored and a target color to be colored in the electrochromic component;
从多个所述电致变色单元中,确定出构成所述目标区域的目标电致变色单元,并将所述目标电致变色单元着色为所述目标颜色,以指示所述待检测的状态参数的参数值。Determining a target electrochromic unit constituting the target region from a plurality of the electrochromic units, and coloring the target electrochromic unit to the target color to indicate the state parameter to be detected Parameter value.
第二方面,本申请实施例提供了一种设备控制装置,应用于电子设备,该电子设备包括电致变色组件,该电致变色组件包括多个电致变色单元,该设备控制装置包括:In a second aspect, an embodiment of the present application provides a device control device for an electronic device. The electronic device includes an electrochromic component, the electrochromic component includes a plurality of electrochromic units, and the device control device includes:
第一确定模块,用于确定所述电子设备待检测的状态参数;A first determining module, configured to determine a state parameter of the electronic device to be detected;
参数检测模块,用于检测所述待检测的状态参数,得到所述待检测的状态参数的参数值;A parameter detection module, configured to detect the state parameter to be detected, and obtain a parameter value of the state parameter to be detected;
第二确定模块,用于根据所述待检测的状态参数的参数值,确定所述电致变色组件中需要着色的目标区域以及着色的目标颜色;A second determining module, configured to determine a target area to be colored and a target color to be colored in the electrochromic component according to a parameter value of the state parameter to be detected;
单元着色模块,用于从多个所述电致变色单元中,确定出构成所述目标区域的目标电致变色单元,并将所述目标电致变色单元着色为所述目标颜色,以指示所述待检测的状态参数的参数值。A unit coloring module, configured to determine a target electrochromic unit constituting the target region from a plurality of the electrochromic units, and color the target electrochromic unit to the target color to indicate the target electrochromic unit; Describe the parameter values of the state parameters to be detected.
第三方面,本申请实施例提供了一种存储介质,其上存储有计算机程序,当所述计算 机程序在电子设备上运行时,使得所述电子设备执行:In a third aspect, an embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program runs on an electronic device, the electronic device is caused to execute:
确定所述电子设备待检测的状态参数;Determining a state parameter of the electronic device to be detected;
检测所述待检测的状态参数,得到所述待检测的状态参数的参数值;Detecting the state parameter to be detected, and obtaining a parameter value of the state parameter to be detected;
根据所述待检测的状态参数的参数值,确定所述电致变色组件中需要着色的目标区域以及着色的目标颜色;Determining, according to a parameter value of the state parameter to be detected, a target area to be colored and a target color to be colored in the electrochromic component;
从多个所述电致变色单元中,确定出构成所述目标区域的目标电致变色单元,并将所述目标电致变色单元着色为所述目标颜色,以指示所述待检测的状态参数的参数值。Determining a target electrochromic unit constituting the target region from a plurality of the electrochromic units, and coloring the target electrochromic unit to the target color to indicate the state parameter to be detected Parameter value.
第四方面,本申请实施例提供了一种电子设备,包括处理器和存储器,所述存储器有计算机程序,所述处理器通过调用所述计算机程序,用于执行:In a fourth aspect, an embodiment of the present application provides an electronic device including a processor and a memory, where the memory has a computer program, and the processor calls the computer program to execute:
确定所述电子设备待检测的状态参数;Determining a state parameter of the electronic device to be detected;
检测所述待检测的状态参数,得到所述待检测的状态参数的参数值;Detecting the state parameter to be detected, and obtaining a parameter value of the state parameter to be detected;
根据所述待检测的状态参数的参数值,确定所述电致变色组件中需要着色的目标区域以及着色的目标颜色;Determining, according to a parameter value of the state parameter to be detected, a target area to be colored and a target color to be colored in the electrochromic component;
从多个所述电致变色单元中,确定出构成所述目标区域的目标电致变色单元,并将所述目标电致变色单元着色为所述目标颜色,以指示所述待检测的状态参数的参数值。Determining a target electrochromic unit constituting the target region from a plurality of the electrochromic units, and coloring the target electrochromic unit to the target color to indicate the state parameter to be detected Parameter value.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present application more clearly, the drawings used in the description of the embodiments are briefly introduced below. Obviously, the drawings in the following description are just some embodiments of the application. For those skilled in the art, other drawings can be obtained based on these drawings without paying creative labor.
图1是本申请实施例提供的设备控制方法的一个流程示意图。FIG. 1 is a schematic flowchart of a device control method according to an embodiment of the present application.
图2是本申请实施例中电致变色组件设置位置的示意图。FIG. 2 is a schematic diagram of a setting position of an electrochromic component in an embodiment of the present application.
图3是本申请实施例中电致变色单元的结构示意图。FIG. 3 is a schematic structural diagram of an electrochromic unit in an embodiment of the present application.
图4是本申请实施例中对电致变色单元施加电压的示意图。FIG. 4 is a schematic diagram of applying a voltage to the electrochromic unit in the embodiment of the present application.
图5是本申请实施例中电致变色组件的区划划分示意图。FIG. 5 is a schematic diagram of the division of the electrochromic component in the embodiment of the present application.
图6是本申请实施例中电子设备显示状态参数选择界面的示意图。FIG. 6 is a schematic diagram of an electronic device display state parameter selection interface according to an embodiment of the present application.
图7是本申请实施例提供的设备控制方法另一流程示意图。FIG. 7 is another schematic flowchart of a device control method according to an embodiment of the present application.
图8是本申请实施例提供的设备控制装置的一结构示意图。FIG. 8 is a schematic structural diagram of a device control apparatus according to an embodiment of the present application.
图9是本申请实施例提供的电子设备的一结构示意图。FIG. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
图10是本申请实施例提供的电子设备的另一结构示意图。FIG. 10 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式detailed description
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the drawings, in which the same component symbols represent the same components. The principle of the present application is illustrated by implementing in an appropriate computing environment. The following description is based on the exemplified specific embodiments of the present application, which should not be construed as limiting other specific embodiments not detailed herein.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含 在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they independent or alternative embodiments that are mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
本申请实施例提供一种设备控制方法,该设备控制方法的执行主体可以是本申请实施例提供的设备控制装置,或者集成了该设备控制装置的电子设备,其中该设备控制装置可以采用硬件或者软件的方式实现。其中,电子设备可以是智能手机、平板电脑、掌上电脑、笔记本电脑、或者台式电脑等计算机设备。The embodiment of the present application provides a device control method. The execution subject of the device control method may be the device control device provided in the embodiment of the application, or an electronic device integrated with the device control device. The device control device may use hardware or Software way. The electronic device may be a computer device such as a smart phone, a tablet computer, a palmtop computer, a notebook computer, or a desktop computer.
本申请实施例提供一种设备控制方法,应用于电子设备,其中,所述电子设备包括电致变色组件,所述电致变色组件包括多个电致变色单元,所述设备控制方法包括:An embodiment of the present application provides a device control method applied to an electronic device, wherein the electronic device includes an electrochromic component, the electrochromic component includes a plurality of electrochromic units, and the device control method includes:
确定所述电子设备待检测的状态参数;Determining a state parameter of the electronic device to be detected;
检测所述待检测的状态参数,得到所述待检测的状态参数的参数值;Detecting the state parameter to be detected, and obtaining a parameter value of the state parameter to be detected;
根据所述待检测的状态参数的参数值,确定所述电致变色组件中需要着色的目标区域以及着色的目标颜色;Determining, according to a parameter value of the state parameter to be detected, a target area to be colored and a target color to be colored in the electrochromic component;
从多个所述电致变色单元中,确定出构成所述目标区域的目标电致变色单元,并将所述目标电致变色单元着色为所述目标颜色,以指示所述待检测的状态参数的参数值。Determining a target electrochromic unit constituting the target region from a plurality of the electrochromic units, and coloring the target electrochromic unit to the target color to indicate the state parameter to be detected Parameter value.
在一实施例中,所述电致变色单元为可以储能的电致变色单元,将所述目标电致变色单元着色为所述目标颜色的步骤包括:In an embodiment, the electrochromic unit is an electrochromic unit that can store energy, and the step of coloring the target electrochromic unit to the target color includes:
根据预设的颜色和电压的对应关系,确定对应所述目标颜色的目标电压;Determining a target voltage corresponding to the target color according to a preset correspondence between a color and a voltage;
向所述目标电致变色单元提供所述目标电压,通过所述目标电压将所述目标电致变色单元着色为所述目标颜色,并对所述目标电致变色单元充电;Providing the target electrochromic unit with the target voltage, coloring the target electrochromic unit to the target color by the target voltage, and charging the target electrochromic unit;
在所述目标电致变色单元的实时电压与所述目标电压一致时,停止向所述目标电致变色单元提供所述目标电压。When the real-time voltage of the target electrochromic unit is consistent with the target voltage, the supply of the target voltage to the target electrochromic unit is stopped.
在一实施例中,所述向所述目标电致变色单元提供所述目标电压的步骤之前,还包括:In an embodiment, before the step of providing the target voltage to the target electrochromic unit, the method further includes:
获取所述目标电致变色单元当前的实时电压;Obtaining the current real-time voltage of the target electrochromic unit;
判断所述目标电压是否大于所述当前的实时电压;Determining whether the target voltage is greater than the current real-time voltage;
在所述目标电压大于所述当前的实时电压时,向所述目标电致变色单元提供所述目标电压。When the target voltage is greater than the current real-time voltage, the target voltage is provided to the target electrochromic unit.
在一实施例中,所述判断所述目标电压是否大于所述当前的实时电压的步骤之后,还包括:In an embodiment, after the step of determining whether the target voltage is greater than the current real-time voltage, the method further includes:
在所述目标电压小于所述当前的实时电压时,向所述目标电致变色单元提供所述当前的实时电压的反相位电压;When the target voltage is less than the current real-time voltage, providing a reverse phase voltage of the current real-time voltage to the target electrochromic unit;
在所述目标电致变色单元的实时电压与所述反相位电压一致时,向所述目标电致变色单元提供所述目标电压。When the real-time voltage of the target electrochromic unit is consistent with the reverse phase voltage, the target voltage is provided to the target electrochromic unit.
在一实施例中,所述确定所述电子设备待检测的状态参数的步骤,包括:In an embodiment, the step of determining a state parameter to be detected by the electronic device includes:
显示状态参数选择界面,所述状态参数选择界面包括多个状态参数;Displaying a status parameter selection interface, the status parameter selection interface including a plurality of status parameters;
通过所述状态参数选择界面接收状态参数选择指令,所述状态参数选择指令用于从所述多个状态参数中选取一个状态参数作为所述待检测的状态参数。A status parameter selection instruction is received through the status parameter selection interface, and the status parameter selection instruction is used to select a status parameter from the multiple status parameters as the status parameter to be detected.
在一实施例中,所述待检测的状态参数包括内存使用率、CPU使用率、功耗或剩余电量中的一种。In an embodiment, the state parameter to be detected includes one of a memory usage rate, a CPU usage rate, power consumption, or remaining power.
在一实施例中,所述根据所述待检测的状态参数的参数值,确定所述电致变色组件中需要着色的目标区域以及着色的目标颜色,包括:In an embodiment, determining the target area to be colored and the target color to be colored in the electrochromic component according to the parameter value of the state parameter to be detected includes:
根据与所述待检测的状态参数关联的、参数值与区域的对应关系,确定所述待检测的状态参数的参数值所对应的区域作为所述目标区域;Determining a region corresponding to a parameter value of the state parameter to be detected as the target region according to a corresponding relationship between the parameter value and the region associated with the state parameter to be detected;
根据与所述待检测的状态参数关联的、参数值与颜色的对应关系,确定所述待检测的状态参数的参数值所对应的颜色作为所述目标颜色。The color corresponding to the parameter value of the state parameter to be detected is determined as the target color according to the corresponding relationship between the parameter value and the color associated with the state parameter to be detected.
请参照图1,图1为本申请实施例提供的设备控制方法的流程示意图。本申请实施例提供的设备控制方法的流程可以如下:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a device control method according to an embodiment of the present application. The process of the device control method provided in the embodiment of the present application may be as follows:
101、确定电子设备待检测的状态参数。101. Determine a state parameter of the electronic device to be detected.
本申请实施例中,电子设备包括电致变色组件,该电致变色组件由多个电致变色单元组成。其中,对于电致变色组件在电子设备的设置位置,本申请实施例不做具体限制,可由本领域技术人员根据实际需要,将电致变色组件设置在电子设备的任一可视位置。In the embodiment of the present application, the electronic device includes an electrochromic component, and the electrochromic component is composed of a plurality of electrochromic units. Wherein, the position of the electrochromic component in the electronic device is not specifically limited in the embodiments of the present application, and a person skilled in the art may set the electrochromic component in any visible position of the electronic device according to actual needs.
比如,请参照图2,可以将电致变色组件设置在电子设备屏幕所在一面的外壳上,该电致变色组件由24个电致变色单元按照图2所示的特定形状组成。For example, referring to FIG. 2, an electrochromic component may be disposed on a casing on the side of the screen of the electronic device. The electrochromic component is composed of 24 electrochromic units in a specific shape as shown in FIG. 2.
需要说明的是,电致变色是指材料的光学属性(如反射率、透光率、吸收率等)在外加电场的作用下发生稳定、可逆的颜色/透明度变化的现象。具有电致变色性能的材料可以称为电致变色材料。而本申请实施例中的电致变色单元,就是利用电致变色材料制成。It should be noted that electrochromic refers to the phenomenon that the optical properties of materials (such as reflectance, light transmittance, absorption, etc.) undergo stable and reversible color / transparency changes under the action of an applied electric field. A material having electrochromic properties may be referred to as an electrochromic material. The electrochromic unit in the embodiment of the present application is made of an electrochromic material.
请参照图3,电致变色单元可以包括层叠设置的两层导电层,以及位于两个导电层之间的变色层、电解质层、离子存储层。Referring to FIG. 3, the electrochromic unit may include two conductive layers laminated and a color changing layer, an electrolyte layer, and an ion storage layer located between the two conductive layers.
其中,导电层可以是透明导电层,其具备优异的导电性和较好的光学透过性。The conductive layer may be a transparent conductive layer, which has excellent electrical conductivity and good optical transmittance.
变色层是电致变色单元的核心层,也是变色反应的发生层。变色层的材料按照类型可分为无机电致变色材料和有机电致变色材料。无机电致变色材料可以是三氧化钨(WO3)或者氧化镍(NiO)等。有机电致变色材料主要有聚噻吩类及其衍生物、紫罗精类、四硫富瓦烯、金属酞菁类化合物等。The color-changing layer is the core layer of the electrochromic unit, and is also the layer in which the color-change reaction occurs. The materials of the color changing layer can be divided into inorganic electrochromic materials and organic electrochromic materials according to types. The electromechanical non-chromic material can be tungsten trioxide (WO3) or nickel oxide (NiO). Organic electrochromic materials mainly include polythiophenes and their derivatives, viologens, tetrathiafulvalene, and metal phthalocyanine compounds.
电解质层由特殊的导电材料组成,如包含有高氯酸锂、高氯酸纳等的溶液的液态电解质材料,或者也可以是固态电解质材料。The electrolyte layer is composed of a special conductive material, such as a liquid electrolyte material containing a solution of lithium perchlorate, sodium perchlorate, or the like, or it may be a solid electrolyte material.
离子存储层在电致变色单元中起到存储电荷的作用,即在变色层材料发生氧化还原反应时存储相应的反离子,从而保证整个电致变色单元的电荷平衡。The ion storage layer plays a role of storing charge in the electrochromic unit, that is, corresponding counter ions are stored when the material of the color-changing layer undergoes a redox reaction, thereby ensuring the charge balance of the entire electrochromic unit.
请参照图4,当在电致变色单元的两个透明导电层上施加一定的电压时,电致变色单 元的变色层的材料将在该电压作用下发生氧化还原反应,从而发生颜色/透明度变化。Please refer to FIG. 4, when a certain voltage is applied to the two transparent conductive layers of the electrochromic unit, the material of the color-changing layer of the electrochromic unit will undergo a redox reaction under the action of the voltage, thereby causing a color / transparency change. .
比如,电致变色单元的两个透明导电层之上未施加电压(或者说,电压为0V)时,该电致变色单元将呈透明状态,而当施加在其两个透明导电层之间的电压由0V变为1.2V时,该电致变色单元将呈黑色,当施加在其两个透明导电层之间的电压由1.2V变为-1.2V时,该电致变色单元将由黑色变为透明,等等。For example, when no voltage is applied to the two transparent conductive layers of the electrochromic unit (or the voltage is 0V), the electrochromic unit will be in a transparent state, and when applied between its two transparent conductive layers, When the voltage changes from 0V to 1.2V, the electrochromic unit will appear black. When the voltage applied between its two transparent conductive layers changes from 1.2V to -1.2V, the electrochromic unit will change from black to Transparent, etc.
需要说明的是,在本申请实施例中,不同类型的状态参数用于描述电子设备不同类型的状态,状态参数包括但不限于电子设备的内存使用率、CPU使用率、功耗、剩余电量,等等。It should be noted that, in the embodiments of the present application, different types of state parameters are used to describe different types of states of the electronic device. The state parameters include, but are not limited to, the memory usage rate, CPU usage rate, power consumption, and remaining power of the electronic device. and many more.
本申请实施例中,电子设备首先确定待检测的状态参数,其中,电子设备可以根据接收到的用户输入数据,将该用户输入数据指示的状态参数作为待检测的状态参数;还可以将缺省设置的状态参数作为待检测的状态参数,比如,缺省设置剩余电量为待检测的状态参数。In the embodiment of the present application, the electronic device first determines a status parameter to be detected. The electronic device may, according to the received user input data, use the status parameter indicated by the user input data as the status parameter to be detected. The set status parameter is used as the status parameter to be detected. For example, the remaining power is set as the status parameter to be detected by default.
102、检测确定的前述状态参数,得到前述状态参数的参数值。102. Detect the determined state parameter to obtain a parameter value of the state parameter.
本申请实施例中,电子设备在确定待检测的状态参数之后,对确定的前述状态参数进行检测,以得到前述状态参数的参数值。In the embodiment of the present application, after determining the status parameter to be detected, the electronic device detects the determined status parameter to obtain a parameter value of the status parameter.
比如,在确定待检测的状态参数为剩余电量时,电子设备对其剩余电量进行检测,得到剩余电量的剩余电量的值为“80%”;For example, when determining that the state parameter to be detected is the remaining power, the electronic device detects the remaining power and obtains the value of the remaining power of the remaining power as "80%";
又比如,在确定待检测的状态参数为内存使用率时,电子设备对其内存使用率进行检测,得到的内存使用率的值为“60%”。For another example, when determining that the state parameter to be detected is the memory usage rate, the electronic device detects its memory usage rate, and the value of the obtained memory usage rate is “60%”.
103、根据前述状态参数的参数值,确定电致变色组件中需要着色的目标区域以及着色的目标颜色。103. Determine a target area to be colored and a target color to be colored in the electrochromic component according to a parameter value of the foregoing state parameter.
本申请实施例中,对于不同类型的状态参数,分别设置有与各状态参数关联的参数值与颜色的对应关系,以及与各状态参数关联的参数值与区域的对应关系。相应的,电子设备在检测得到前述状态参数的参数值之后,根据与前述状态参数关联的、参数值与区域的对应关系,确定前述状态参数的参数值所对应的区域,将确定的该区域作为电致变色组件中需要着色的目标区域;电子设备还根据与前述状态参数关联的、参数值与颜色的对应关系,确定前述状态参数的参数值所对应的颜色,将确定的该颜色作为对前述目标区域着色的目标颜色。In the embodiment of the present application, for different types of state parameters, a corresponding relationship between parameter values and colors associated with each state parameter and a corresponding relationship between parameter values and regions associated with each state parameter are respectively set. Correspondingly, after detecting the parameter value of the state parameter, the electronic device determines the region corresponding to the parameter value of the state parameter according to the correspondence between the parameter value and the region associated with the state parameter, and uses the determined region as the The target area in the electrochromic component that needs to be colored; the electronic device also determines the color corresponding to the parameter value of the state parameter according to the corresponding relationship between the parameter value and the color associated with the aforementioned state parameter, and uses the determined color as a reference to the aforementioned The target color of the target area.
比如,请结合参照图2和图5,假设将电致变色组件划分为三个区域,分别第一区域、第二区域和第三区域,假设待检测的参数为剩余电量,且剩余电量值和区域的对应关系被配置为:剩余电量值区间(0,30%]对应第一区域、剩余电量值区间(30%,60%]对应第二区域、剩余电量值区间(60%,100%]对应第三区域,剩余电量值和颜色的对应关系被配置为:剩余电量值区间(0,30%]对应红色、剩余电量值区间(30%,60%]对应蓝色、剩余电量值区间(60%,100%]对应绿色,若检测到剩余电量的值为25%,则可以确定目标区域为划分的 第一区域、目标颜色为红色,若检测到剩余电量的值为45%,则可以确定目标区域为划分的第二区域、目标颜色为蓝色,若检测到的剩余电量的值为95%,则可以确定目标区域为第三区域、目标颜色为绿色,等等。For example, please refer to FIG. 2 and FIG. 5 together. Assume that the electrochromic component is divided into three regions, namely a first region, a second region, and a third region. It is assumed that the parameter to be detected is the remaining power, and the remaining power value and The corresponding relationship of the regions is configured: the remaining power value interval (0, 30%) corresponds to the first area, the remaining power value interval (30%, 60%) corresponds to the second area, and the remaining power value interval (60%, 100%) Corresponding to the third region, the corresponding relationship between the remaining power value and the color is configured as: the remaining power value interval (0, 30%) corresponds to the red, the remaining power value interval (30%, 60%) corresponds to the blue, the remaining power value interval ( 60%, 100%] corresponds to green. If the value of the remaining power is 25%, the target area can be determined to be the first area to be divided, and the target color is red. If the value of the remaining power is 45%, it can be determined. It is determined that the target area is the divided second area, the target color is blue, and if the detected remaining power value is 95%, the target area may be determined as the third area, the target color is green, and so on.
104、从电致变色组件的多个电致变色单元中,确定出构成前述目标区域的目标电致变色单元,并将目标电致变色单元着色为前述目标颜色,以指示前述状态参数的参数值。104. Determine a target electrochromic unit constituting the target area from a plurality of electrochromic units of the electrochromic component, and color the target electrochromic unit to the target color to indicate a parameter value of the state parameter. .
本申请实施例中,在确定电致变色组件中需要着色的目标区域之后,根据构成电致变色组件的各电致变色单元的位置,从组成电致变色组件的多个电致变色单元中,确定出构成前述目标区域的目标电致变色单元,其中,确定出的目标电致变色单元可以为一个,也可以为多个。In the embodiment of the present application, after determining a target area to be colored in the electrochromic component, according to the positions of each electrochromic unit constituting the electrochromic component, from among the plurality of electrochromic components constituting the electrochromic component, The target electrochromic units constituting the aforementioned target region are determined, and the determined target electrochromic units may be one or multiple.
比如,请参照图5,当确定的目标区域为第一区域时,可以确定出构成该目标区域的目标电致变色单元为电致变色组件中心位置的四个电致变色单元。For example, referring to FIG. 5, when the determined target area is the first area, it can be determined that the target electrochromic units constituting the target area are four electrochromic units at the center of the electrochromic component.
在确定出构成目标区域的目标电致变色单元之后,电子设备即可将目标电致变色单元着色为前述目标颜色,从而使得确定出的目标区域呈目标颜色,用于指示前述状态参数的参数值。其中,电子设备在将目标电致变色单元着色为前述目标颜色时,根据预设的颜色和电压的对应关系,确定对应前述目标颜色的电压,从而向目标电致变色单元提供确定的电压,将前述目标电致变色单元着色为目标颜色。After the target electrochromic unit constituting the target area is determined, the electronic device can color the target electrochromic unit to the foregoing target color, so that the determined target area is in the target color and is used to indicate the parameter value of the aforementioned state parameter . When the electronic device colors the target electrochromic unit to the foregoing target color, the electronic device determines a voltage corresponding to the target color according to a preset correspondence between the color and the voltage, so as to provide the target electrochromic unit with the determined voltage, and The aforementioned target electrochromic unit is colored to a target color.
由上可知,本实施例中,可以确定电子设备待检测的状态参数。检测确定的前述状态参数,得到前述状态参数的参数值。根据前述状态参数的参数值,确定电致变色组件中需要着色的目标区域以及着色的目标颜色。从电致变色组件的多个电致变色单元中,确定出构成前述目标区域的目标电致变色单元,并将目标电致变色单元着色为前述目标颜色,以指示前述状态参数的参数值。由此,无需用户进行繁琐操作,即可通过区域结合颜色的方式向用户展示特定状态参数的参数值,降低了用户查看电子设备状态参数的难度。It can be known from the above that, in this embodiment, a state parameter to be detected by the electronic device can be determined. The determined state parameter is detected to obtain a parameter value of the state parameter. According to the parameter values of the foregoing state parameters, a target area to be colored and a target color to be colored in the electrochromic component are determined. A target electrochromic unit constituting the target area is determined from a plurality of electrochromic units of the electrochromic component, and the target electrochromic unit is colored to the target color to indicate a parameter value of the state parameter. Therefore, the user can display the parameter value of the specific state parameter to the user in a manner of combining colors with the area without the user having to perform tedious operations, which reduces the difficulty for the user to view the state parameter of the electronic device.
在一实施方式中,电致变色单元为可以储能的电致变色单元,“将目标电致变色单元着色为前述目标颜色”包括:In one embodiment, the electrochromic unit is an electrochromic unit that can store energy, and "coloring the target electrochromic unit to the aforementioned target color" includes:
(1)根据预设的颜色和电压的对应关系,确定对应目标颜色的目标电压;(1) Determine a target voltage corresponding to a target color according to a preset correspondence between color and voltage;
(2)向目标电致变色单元提供目标电压,通过目标电压将目标电致变色单元着色为目标颜色,并对目标电致变色单元充电;(2) providing a target voltage to the target electrochromic unit, coloring the target electrochromic unit to a target color by the target voltage, and charging the target electrochromic unit;
(3)在目标电致变色单元的实时电压与目标电压一致时,停止向目标电致变色单元提供目标电压。(3) When the real-time voltage of the target electrochromic unit is consistent with the target voltage, stop providing the target voltage to the target electrochromic unit.
需要说明的是,在本申请实施例中,各电致变色单元由相同电致变色材料制成,根据该电致变色材料的变色特性,在电子设备预设有颜色和电压的对应关系。It should be noted that, in the embodiments of the present application, each electrochromic unit is made of the same electrochromic material, and according to the discoloration characteristics of the electrochromic material, a correspondence relationship between color and voltage is preset in the electronic device.
其中,电致变色单元的导电层为碳导电层(可由透明基底涂抹碳纳米管制成),这样,对于任一电致变色单元,其包括的两个碳导电层将形成一个电容,使得电致变色单元除了能够变色之外,还可以存储电能。The conductive layer of the electrochromic unit is a carbon conductive layer (made of carbon nanotubes coated with a transparent substrate). In this way, for any electrochromic unit, the two carbon conductive layers included in it will form a capacitor, making the electrochromic unit In addition to being able to change color, the color changing unit can also store electrical energy.
本申请实施例中,电子设备在将目标电致变色单元着色为目标颜色时,首先根据预设的颜色和电压的对应关系,确定对应前述目标颜色的电压,将该电压记为用于提供给目标电致变色单元的目标电压。In the embodiment of the present application, when an electronic device colors a target electrochromic unit to a target color, first, according to a preset correspondence between a color and a voltage, a voltage corresponding to the foregoing target color is determined, and the voltage is recorded as being used to provide Target voltage of the target electrochromic unit.
比如,假设预设的颜色和电压的对应关系被配置为:绿色对应电压1V,蓝色对应电压2V,红色对应电压3V,若确定的目标颜色为红色,则可以确定用于提供给目标电致变色单元的目标电压为3V。For example, suppose that the preset color-to-voltage correspondence is configured as follows: green corresponds to a voltage of 1V, blue corresponds to a voltage of 2V, and red corresponds to a voltage of 3V. If the determined target color is red, it can be determined to be provided to the target The target voltage of the color changing unit is 3V.
在确定对应目标颜色的目标电压之后,向目标电致变色单元提供目标电压,通过该目标电压将目标电致变色单元着色为目标颜色,此外,由于目标电致变色单元的电容性能,在向目标电致变色单元提供目标电压时,该目标电压将对目标电致变色单元充电。After determining the target voltage corresponding to the target color, a target voltage is provided to the target electrochromic unit, and the target electrochromic unit is colored to the target color by the target voltage. In addition, due to the capacitance performance of the target electrochromic unit, the target When the electrochromic unit provides a target voltage, the target voltage will charge the target electrochromic unit.
随着“充电”进程的进行,电致变色单元的实时电压将与目标电压趋向一致,而当目标电致变色单元的实时电压(即目标电致变色单元两个碳导电层之间的实时电压)与目标电压一致时,电子设备所提供的目标电压也就无法继续为目标电致变色单元充电,由于目标电致变色单元的电容性能,其实时电压将维持在目标电压,在目标电致变色单元完成着色后,其颜色将维持在目标颜色。显然的,当目标电致变色单元的实时电压与目标电压一致、且完成对目标电致变色单元的着色时,已经没必要继续向目标电致变色单元提供目标电压,可以停止向目标电致变色单元提供目标电压。With the "charging" process, the real-time voltage of the electrochromic unit will be consistent with the target voltage, and when the real-time voltage of the target electrochromic unit When the target voltage is consistent with the target voltage, the target electrochromic unit cannot continue to charge the target electrochromic unit. Due to the capacitance performance of the target electrochromic unit, its real-time voltage will be maintained at the target voltage. After the unit has finished coloring, its color will remain at the target color. Obviously, when the real-time voltage of the target electrochromic unit is consistent with the target voltage and the coloring of the target electrochromic unit is completed, it is no longer necessary to continue to provide the target electrochromic unit with the target voltage, and the electrochromism can be stopped to the target The unit provides the target voltage.
在一实施方式中,“向目标电致变色单元提供目标电压”之前,还包括:In an embodiment, before “providing a target voltage to a target electrochromic unit”, the method further includes:
(1)获取目标电致变色单元当前的实时电压;(1) Obtain the current real-time voltage of the target electrochromic unit;
(2)判断前述目标电压是否大于目标电致变色单元当前的实时电压;(2) determine whether the aforementioned target voltage is greater than the current real-time voltage of the target electrochromic unit;
(3)在前述目标电压大于目标电致变色单元当前的实时电压时,向目标电致变色单元提供前述目标电压。(3) When the target voltage is greater than the current real-time voltage of the target electrochromic unit, the target voltage is provided to the target electrochromic unit.
本申请实施例中,电子设备在向目标电致变色单元提供目标电压之前,首先获取到目标电致变色单元当前的实时电压。比如,假设当前时刻为18:32,电子设备在18:30将目标电致变色单元由透明态着色为绿色,则基于以上关于电致变色单元电容性能的相关描述,电子设备获取到目标电致变色单元在当前时刻的实时电压即为:电子设备在18:30将目标电致变色单元由透明态着色为绿色所提供的电压。In the embodiment of the present application, the electronic device first obtains the current real-time voltage of the target electrochromic unit before providing the target voltage to the target electrochromic unit. For example, suppose the current time is 18:32, and the electronic device colors the target electrochromic unit from transparent to green at 18:30. Based on the above description of the capacitance performance of the electrochromic unit, the electronic device obtains the target electrochromic unit. The real-time voltage of the color changing unit at the current moment is the voltage provided by the electronic device to color the target electrochromic unit from transparent to green at 18:30.
在获取到目标电致变色单元当前的实时电压之后,判断前述目标电压是否大于目标电致变色单元当前的实时电压,其中,在前述目标电压大于目标电致变色单元当前的实时电压时,电子设备直接向目标电致变色单元提供前述目标电压,将目标电致变色组件着色为前述目标颜色。After obtaining the current real-time voltage of the target electrochromic unit, determine whether the target voltage is greater than the current real-time voltage of the target electrochromic unit, wherein when the target voltage is greater than the current real-time voltage of the target electrochromic unit, the electronic device The aforementioned target voltage is directly provided to the target electrochromic unit, and the target electrochromic component is colored to the aforementioned target color.
此外,当判断前述目标电压是否大于目标电致变色单元当前的实时电压之后,若前述目标电压等于目标电致变色单元当前的实时电压,基于以上关于电致变色单元电容性能的相关描述,本领域技术人员可以理解的是,目标电致变色单元当前的颜色即为目标颜色,此时没有必要继续为目标电致变色单元着色,相应的,电子设备撤销当前向目标电致变色 单元提供目标电压的操作。In addition, after determining whether the target voltage is greater than the current real-time voltage of the target electrochromic unit, if the target voltage is equal to the current real-time voltage of the target electrochromic unit, based on the above description of the capacitance performance of the electrochromic unit, the art The skilled person can understand that the current color of the target electrochromic unit is the target color, and it is not necessary to continue coloring the target electrochromic unit at this time. Accordingly, the electronic device revokes the current supply of the target voltage to the target electrochromic unit. operating.
在一实施方式中,“判断前述目标电压是否大于目标电致变色单元当前的实时电压”,还包括:In one embodiment, "determining whether the aforementioned target voltage is greater than the current real-time voltage of the target electrochromic unit" further includes:
(1)在目标电压小于目标电致变色单元当前的实时电压时,向目标电致变色单元提供其当前的实时电压的反相位电压;(1) when the target voltage is less than the current real-time voltage of the target electrochromic unit, provide the target electrochromic unit with the reverse phase voltage of its current real-time voltage;
(2)在目标电致变色单元的实时电压与前述反相位电压一致时,向目标电致变色单元提供目标电压。(2) When the real-time voltage of the target electrochromic unit is consistent with the aforementioned reverse phase voltage, the target voltage is provided to the target electrochromic unit.
需要说明的是,当前述目标电压小于目标电致变色单元当前的实时电压时,即使向目标电致变色电压提供前述目标电压,该目标电压也无法使得目标电致变色单元的颜色发生变化,更无法对目标电致变色单元进行充电。It should be noted that when the target voltage is smaller than the current real-time voltage of the target electrochromic unit, even if the target voltage is provided to the target electrochromic voltage, the target voltage cannot cause the color of the target electrochromic unit to change. The target electrochromic unit cannot be charged.
因此,电子设备在判断前述目标电压是否大于目标电致变色单元当前的实时电压之后,且判定前述目标电压小于目标电致变色单元当前的实时电压时,向目标电致变色单元提供其当前的实时电压的反相位电压,通过该反相位电压将目标电致变色单元漂白为透明态。Therefore, after determining whether the target voltage is greater than the current real-time voltage of the target electrochromic unit and determining that the target voltage is less than the current real-time voltage of the target electrochromic unit, the electronic device provides the target electrochromic unit with its current real-time The reverse-phase voltage of the voltage, by which the target electrochromic unit is bleached into a transparent state.
比如,目标电致变色单元当前的实时电压为3V,该电压使得目标电致变色单元的颜色维持在红色,若确定的目标电压为2V,则电子设备将向目标电致变色单元提供其当前的实时电压的反相位电压“-3V”,以将目标电致变色单元由红色漂白为透明态。For example, the current real-time voltage of the target electrochromic unit is 3V, which maintains the color of the target electrochromic unit at red. If the determined target voltage is 2V, the electronic device will provide the target electrochromic unit with its current The reverse-phase voltage "-3V" of the real-time voltage to bleach the target electrochromic unit from red to transparent.
在将目标电致变色单元漂白为透明态、且目标电致变色单元的实时电压与前述反相位电压一致时,电子设备向目标电致变色单元提供目标电压,直至将目标电致变色单元着色为前述目标颜色、且目标电致变色单元的实时电压与目标电压一致。When the target electrochromic unit is bleached to a transparent state and the real-time voltage of the target electrochromic unit is consistent with the aforementioned reverse phase voltage, the electronic device provides the target voltage to the target electrochromic unit until the target electrochromic unit is colored It is the aforementioned target color, and the real-time voltage of the target electrochromic unit is consistent with the target voltage.
在一实施方式中,“确定电子设备待检测的状态参数”包括:In an embodiment, "determining a state parameter to be detected by the electronic device" includes:
(1)显示状态参数选择界面,状态参数选择界面包括多个状态参数;(1) Display the status parameter selection interface. The status parameter selection interface includes multiple status parameters.
(2)通过状态参数选择界面接收状态参数选择指令,状态参数选择指令用于从多个状态参数中,选取一个状态参数作为待检测的状态参数。(2) The status parameter selection instruction is received through the status parameter selection interface. The status parameter selection instruction is used to select a status parameter as a status parameter to be detected from a plurality of status parameters.
本申请实施例中,电子设备提供有状态参数选择界面,用于供用户选择需要查看的状态参数。In the embodiment of the present application, the electronic device provides a state parameter selection interface for a user to select a state parameter to be viewed.
比如,请参照图6,电子设备显示的状态参数选择界面包括提示信息“请选择需要展示的状态参数”、以及可供展示的多个状态参数以及用于选中各状态参数的圆形按钮、以及用于向电子设备输入状态参数选择指令的确认按钮,假设用户需要电子设备展示剩余电量,则可以点击对应剩余电量的圆形按钮,选中剩余电量,之后,可以通过点击确认按钮,向电子设备输入状态参数选择指令,该状态参数选择指令包括用户对剩余电量的选择信息。相应的,电子设备在接收到用户输入的状态参数选择指令时,解析出该状态参数选择指令中的选择信息,根据该选择信息确定用户需要查看的状态参数为剩余电量,从而将剩余电量作为待检测的状态参数。For example, referring to FIG. 6, the status parameter selection interface displayed by the electronic device includes a prompt message "Please select a status parameter to be displayed", a plurality of status parameters available for display, and a round button for selecting each status parameter, and A confirmation button for inputting a state parameter selection instruction to an electronic device. Assuming that the user needs the electronic device to display the remaining power, he can click the circular button corresponding to the remaining power and select the remaining power. After that, he can enter the electronic device by clicking the confirmation button. A state parameter selection instruction. The state parameter selection instruction includes a user's selection information on remaining power. Correspondingly, when the electronic device receives the status parameter selection instruction input by the user, the electronic device parses out the selection information in the status parameter selection instruction, and determines the status parameter that the user needs to view as the remaining power according to the selection information. Detected status parameters.
请参照图7,图7为本申请实施例提供的设备控制方法的另一流程示意图,如图7所示,该设备控制方法可以包括:Please refer to FIG. 7. FIG. 7 is another schematic flowchart of a device control method according to an embodiment of the present application. As shown in FIG. 7, the device control method may include:
201、确定电子设备待检测的状态参数,并检测确定的前述状态参数,得到前述状态参数的参数值。201. Determine a state parameter to be detected by the electronic device, and detect the determined state parameter to obtain a parameter value of the state parameter.
本申请实施例中,电子设备包括电致变色组件,该电致变色组件由多个电致变色单元组成。其中,对于电致变色组件在电子设备的设置位置,本申请实施例不做具体限制,可由本领域技术人员根据实际需要,将电致变色组件设置在电子设备的任一可视位置。In the embodiment of the present application, the electronic device includes an electrochromic component, and the electrochromic component is composed of a plurality of electrochromic units. Wherein, the position of the electrochromic component in the electronic device is not specifically limited in the embodiments of the present application, and a person skilled in the art may set the electrochromic component in any visible position of the electronic device according to actual needs.
比如,请参照图2,可以将电致变色组件设置在电子设备屏幕所在一面的外壳上,该电致变色组件由24个电致变色单元按照图2所示的特定形状组成。For example, referring to FIG. 2, an electrochromic component may be disposed on a casing on the side of the screen of the electronic device. The electrochromic component is composed of 24 electrochromic units in a specific shape as shown in FIG. 2.
需要说明的是,在本申请实施例中,不同类型的状态参数用于描述电子设备不同类型的状态,状态参数包括但不限于电子设备的内存使用率、CPU使用率、功耗、剩余电量,等等。It should be noted that, in the embodiments of the present application, different types of state parameters are used to describe different types of states of the electronic device. The state parameters include, but are not limited to, the memory usage rate, CPU usage rate, power consumption, and remaining power of the electronic device. and many more.
本申请实施例中,电子设备首先确定待检测的状态参数,其中,电子设备可以根据接收到的用户输入数据,将该用户输入数据指示的状态参数作为待检测的状态参数;还可以将缺省设置的状态参数作为待检测的状态参数,比如,缺省设置剩余电量为待检测的状态参数。In the embodiment of the present application, the electronic device first determines a status parameter to be detected. The electronic device may, according to the received user input data, use the status parameter indicated by the user input data as the status parameter to be detected. The set status parameter is used as the status parameter to be detected. For example, the remaining power is set as the status parameter to be detected by default.
电子设备在确定待检测的状态参数之后,对确定的前述状态参数进行检测,以得到前述状态参数的参数值。After determining the status parameter to be detected, the electronic device detects the determined status parameter to obtain a parameter value of the status parameter.
比如,在确定待检测的状态参数为剩余电量时,电子设备对其剩余电量进行检测,得到剩余电量的剩余电量的值为“80%”;For example, when determining that the state parameter to be detected is the remaining power, the electronic device detects the remaining power and obtains the value of the remaining power of the remaining power as "80%";
又比如,在确定待检测的状态参数为内存使用率时,电子设备对其内存使用率进行检测,得到的内存使用率的值为“60%”。For another example, when determining that the state parameter to be detected is the memory usage rate, the electronic device detects its memory usage rate, and the value of the obtained memory usage rate is “60%”.
202、根据前述状态参数的参数值,确定电致变色组件中需要着色的目标区域以及着色的目标颜色。202. Determine a target area to be colored and a target color to be colored in the electrochromic component according to a parameter value of the foregoing state parameter.
本申请实施例中,对于不同类型的状态参数,分别设置有与各状态参数关联的参数值与颜色的对应关系,以及与各状态参数关联的参数值与区域的对应关系。相应的,电子设备在检测得到前述状态参数的参数值之后,根据与前述状态参数关联的、参数值与区域的对应关系,确定前述状态参数的参数值所对应的区域,将确定的该区域作为电致变色组件中需要着色的目标区域;电子设备还根据与前述状态参数关联的、参数值与颜色的对应关系,确定前述状态参数的参数值所对应的颜色,将确定的该颜色作为对前述目标区域着色的目标颜色。In the embodiment of the present application, for different types of state parameters, a corresponding relationship between parameter values and colors associated with each state parameter and a corresponding relationship between parameter values and regions associated with each state parameter are respectively set. Correspondingly, after detecting the parameter value of the state parameter, the electronic device determines the region corresponding to the parameter value of the state parameter according to the correspondence between the parameter value and the region associated with the state parameter, and uses the determined region as the The target area in the electrochromic component that needs to be colored; the electronic device also determines the color corresponding to the parameter value of the state parameter according to the corresponding relationship between the parameter value and the color associated with the aforementioned state parameter, and uses the determined color as a reference to the aforementioned The target color of the target area.
比如,请结合参照图2和图5,假设将电致变色组件划分为三个区域,分别第一区域、第二区域和第三区域,假设待检测的参数为剩余电量,且剩余电量值和区域的对应关系被配置为:剩余电量值区间(0,30%]对应第一区域、剩余电量值区间(30%,60%]对应第二区 域、剩余电量值区间(60%,100%]对应第三区域,剩余电量值和颜色的对应关系被配置为:剩余电量值区间(0,30%]对应红色、剩余电量值区间(30%,60%]对应蓝色、剩余电量值区间(60%,100%]对应绿色,若检测到剩余电量的值为25%,则可以确定目标区域为划分的第一区域、目标颜色为红色,若检测到剩余电量的值为45%,则可以确定目标区域为划分的第二区域、目标颜色为蓝色,若检测到的剩余电量的值为95%,则可以确定目标区域为第三区域、目标颜色为绿色,等等。For example, please refer to FIG. 2 and FIG. 5 together. Assume that the electrochromic component is divided into three regions, namely a first region, a second region, and a third region. It is assumed that the parameter to be detected is the remaining power, and the remaining power value and The corresponding relationship of the regions is configured: the remaining power value interval (0, 30%) corresponds to the first area, the remaining power value interval (30%, 60%) corresponds to the second area, and the remaining power value interval (60%, 100%) Corresponding to the third region, the corresponding relationship between the remaining power value and the color is configured as: the remaining power value interval (0, 30%) corresponds to the red, the remaining power value interval (30%, 60%) corresponds to the blue, the remaining power value interval ( 60%, 100%] corresponds to green. If the value of the remaining power is 25%, the target area can be determined to be the first area to be divided, and the target color is red. If the value of the remaining power is 45%, it can be determined. It is determined that the target area is the divided second area, the target color is blue, and if the detected remaining power value is 95%, the target area may be determined as the third area, the target color is green, and so on.
203、从电致变色组件的多个电致变色单元中,确定出构成前述目标区域的目标电致变色单元。203: Determine a target electrochromic unit constituting the target area from a plurality of electrochromic units of the electrochromic component.
本申请实施例中,在确定电致变色组件中需要着色的目标区域之后,根据构成电致变色组件的各电致变色单元的位置,从组成电致变色组件的多个电致变色单元中,确定出构成前述目标区域的目标电致变色单元,其中,确定出的目标电致变色单元可以为一个,也可以为多个。In the embodiment of the present application, after determining a target area to be colored in the electrochromic component, according to the positions of each electrochromic unit constituting the electrochromic component, from among the plurality of electrochromic components constituting the electrochromic component, The target electrochromic units constituting the aforementioned target region are determined, and the determined target electrochromic units may be one or multiple.
比如,请参照图5,当确定的目标区域为第一区域时,可以确定出构成该目标区域的目标电致变色单元为电致变色组件中心位置的四个电致变色单元。For example, referring to FIG. 5, when the determined target area is the first area, it can be determined that the target electrochromic units constituting the target area are four electrochromic units at the center of the electrochromic component.
204、根据预设的颜色和电压的对应关系,确定对应目标颜色的目标电压。204. Determine a target voltage corresponding to the target color according to a preset correspondence between the color and the voltage.
需要说明的是,在本申请实施例中,各电致变色单元由相同电致变色材料制成,根据该电致变色材料的变色特性,在电子设备预设有颜色和电压的对应关系。It should be noted that, in the embodiments of the present application, each electrochromic unit is made of the same electrochromic material, and according to the discoloration characteristics of the electrochromic material, a correspondence relationship between color and voltage is preset in the electronic device.
电子设备在将目标电致变色单元着色为目标颜色时,首先根据预设的颜色和电压的对应关系,确定对应前述目标颜色的电压,将该电压记为用于提供给目标电致变色单元的目标电压。When an electronic device colors a target electrochromic unit to a target color, first determines a voltage corresponding to the foregoing target color according to a preset correspondence between a color and a voltage, and records the voltage as a voltage for supplying the target electrochromic unit. Target voltage.
比如,假设预设的颜色和电压的对应关系被配置为:绿色对应电压1V,蓝色对应电压2V,红色对应电压3V,若确定的目标颜色为红色,则可以确定用于提供给目标电致变色单元的目标电压为3V。For example, suppose that the preset color-to-voltage correspondence is configured as follows: green corresponds to a voltage of 1V, blue corresponds to a voltage of 2V, and red corresponds to a voltage of 3V. If the determined target color is red, it can be determined to be provided to the target The target voltage of the color changing unit is 3V.
205、获取目标电致变色单元当前的实时电压,并判断前述目标电压是否大于目标电致变色单元当前的实时电压。205: Obtain the current real-time voltage of the target electrochromic unit, and determine whether the foregoing target voltage is greater than the current real-time voltage of the target electrochromic unit.
本申请实施例中,电子设备在向目标电致变色单元提供目标电压之前,首先获取到目标电致变色单元当前的实时电压。比如,假设当前时刻为18:32,电子设备在18:30将目标电致变色单元由透明态着色为绿色,则基于以上关于电致变色单元电容性能的相关描述,电子设备获取到目标电致变色单元在当前时刻的实时电压即为:电子设备在18:30将目标电致变色单元由透明态着色为绿色所提供的电压。In the embodiment of the present application, the electronic device first obtains the current real-time voltage of the target electrochromic unit before providing the target voltage to the target electrochromic unit. For example, suppose the current time is 18:32, and the electronic device colors the target electrochromic unit from transparent to green at 18:30. Based on the above description of the capacitance performance of the electrochromic unit, the electronic device obtains the target electrochromic unit. The real-time voltage of the color changing unit at the current moment is the voltage provided by the electronic device to color the target electrochromic unit from transparent to green at 18:30.
206、在前述目标电压大于目标电致变色单元当前的实时电压时,向目标电致变色单元提供前述目标电压,通过目标电压将目标电致变色单元着色为目标颜色,并对目标电致变色单元充电。206. When the target voltage is greater than the current real-time voltage of the target electrochromic unit, provide the target voltage to the target electrochromic unit, color the target electrochromic unit to the target color by the target voltage, and target the target electrochromic unit. Charging.
在获取到目标电致变色单元当前的实时电压之后,判断前述目标电压是否大于目标电 致变色单元当前的实时电压,其中,在前述目标电压大于目标电致变色单元当前的实时电压时,电子设备直接向目标电致变色单元提供前述目标电压,将目标电致变色组件着色为前述目标颜色。After obtaining the current real-time voltage of the target electrochromic unit, determine whether the target voltage is greater than the current real-time voltage of the target electrochromic unit, wherein when the target voltage is greater than the current real-time voltage of the target electrochromic unit, the electronic device The aforementioned target voltage is directly provided to the target electrochromic unit, and the target electrochromic component is colored to the aforementioned target color.
此外,需要说明的是,本申请实施例中,电致变色单元的导电层为碳导电层(可由透明基底涂抹碳纳米管制成),这样,对于任一电致变色单元,其包括的两个碳导电层将形成一个电容,使得电致变色单元除了能够变色之外,还可以存储电能。这样,由于目标电致变色单元的电容性能,在向目标电致变色单元提供目标电压时,该目标电压将对目标电致变色单元充电。In addition, it should be noted that, in the embodiment of the present application, the conductive layer of the electrochromic unit is a carbon conductive layer (made of carbon nanotubes coated with a transparent substrate). In this way, for any electrochromic unit, it includes two The carbon conductive layer will form a capacitor, so that in addition to being able to change color, the electrochromic unit can store electrical energy. In this way, due to the capacitance performance of the target electrochromic unit, when a target voltage is provided to the target electrochromic unit, the target voltage will charge the target electrochromic unit.
207、在目标电致变色单元的实时电压与目标电压一致时,停止向目标电致变色单元提供目标电压。207. When the real-time voltage of the target electrochromic unit is consistent with the target voltage, stop providing the target electrochromic unit with the target voltage.
随着“充电”进程的进行,电致变色单元的实时电压将与目标电压趋向一致,而当目标电致变色单元的实时电压(即目标电致变色单元两个碳导电层之间的实时电压)与目标电压一致时,电子设备所提供的目标电压也就无法继续为目标电致变色单元充电,由于目标电致变色单元的电容性能,其实时电压将维持在目标电压,在目标电致变色单元完成着色后,其颜色将维持在目标颜色。显然的,当目标电致变色单元的实时电压与目标电压一致、且完成对目标电致变色单元的着色时,已经没必要继续向目标电致变色单元提供目标电压,可以停止向目标电致变色单元提供目标电压。With the "charging" process, the real-time voltage of the electrochromic unit will be consistent with the target voltage, and when the real-time voltage of the target electrochromic unit When the target voltage is consistent with the target voltage, the target electrochromic unit cannot continue to charge the target electrochromic unit. Due to the capacitance performance of the target electrochromic unit, its real-time voltage will be maintained at the target voltage. After the unit has finished coloring, its color will remain at the target color. Obviously, when the real-time voltage of the target electrochromic unit is consistent with the target voltage and the coloring of the target electrochromic unit is completed, it is no longer necessary to continue to provide the target electrochromic unit with the target voltage, and the electrochromism can be stopped to the target The unit provides the target voltage.
在一实施例中还提供了一种设备控制装置。请参阅图8,图8为本申请实施例提供的设备控制装置400的结构示意图。其中该设备控制装置400应用于电子设备,该电子设备包括电致变色组件,该电致变色组件由多个电致变色单元组成。该设备控制装置400包括第一确定模块401、参数检测模块402、第二确定模块403以及单元着色模块404,如下:In one embodiment, a device control device is also provided. Please refer to FIG. 8, which is a schematic structural diagram of a device control apparatus 400 according to an embodiment of the present application. The device control device 400 is applied to an electronic device. The electronic device includes an electrochromic component. The electrochromic component is composed of a plurality of electrochromic units. The device control device 400 includes a first determination module 401, a parameter detection module 402, a second determination module 403, and a unit coloring module 404, as follows:
第一确定模块401,用于确定电子设备待检测的状态参数;A first determining module 401, configured to determine a state parameter of an electronic device to be detected;
参数检测模块402,用于检测确定的前述状态参数,得到前述状态参数的参数值;A parameter detection module 402, configured to detect the determined state parameter and obtain a parameter value of the state parameter;
第二确定模块403,用于根据前述状态参数的参数值,确定电致变色组件中需要着色的目标区域以及着色的目标颜色;A second determination module 403, configured to determine a target area to be colored and a target color to be colored in the electrochromic component according to the parameter value of the foregoing state parameter;
单元着色模块404,用于从电致变色组件的多个电致变色单元中,确定出构成前述目标区域的目标电致变色单元,并将目标电致变色单元着色为前述目标颜色,以指示前述状态参数的参数值。A unit coloring module 404, configured to determine a target electrochromic unit constituting the target area from a plurality of electrochromic units of the electrochromic component, and color the target electrochromic unit to the target color to indicate the foregoing The parameter value of the status parameter.
在一实施方式中,电致变色单元为可以储能的电致变色单元,单元着色模块404可以用于:In an embodiment, the electrochromic unit is an electrochromic unit that can store energy, and the unit coloring module 404 may be configured to:
根据预设的颜色和电压的对应关系,确定对应目标颜色的目标电压;Determine the target voltage corresponding to the target color according to the preset correspondence between the color and the voltage;
向目标电致变色单元提供目标电压,通过目标电压将目标电致变色单元着色为目标颜色,并对目标电致变色单元充电;Providing a target voltage to the target electrochromic unit, coloring the target electrochromic unit to a target color by the target voltage, and charging the target electrochromic unit;
在目标电致变色单元的实时电压与目标电压一致时,停止向目标电致变色单元提供目标电压。When the real-time voltage of the target electrochromic unit is consistent with the target voltage, stop providing the target voltage to the target electrochromic unit.
在一实施方式中,单元着色模块404可以用于:In an embodiment, the unit coloring module 404 may be configured to:
获取目标电致变色单元当前的实时电压;Obtaining the current real-time voltage of the target electrochromic unit;
判断前述目标电压是否大于目标电致变色单元当前的实时电压;Judging whether the aforementioned target voltage is greater than the current real-time voltage of the target electrochromic unit;
在前述目标电压大于目标电致变色单元当前的实时电压时,向目标电致变色单元提供前述目标电压。When the target voltage is greater than the current real-time voltage of the target electrochromic unit, the target voltage is provided to the target electrochromic unit.
在一实施方式中,在判断前述目标电压是否大于目标电致变色单元当前的实时电压之后,单元着色模块404可以用于:In one embodiment, after determining whether the foregoing target voltage is greater than the current real-time voltage of the target electrochromic cell, the cell coloring module 404 may be configured to:
在目标电压小于目标电致变色单元当前的实时电压时,向目标电致变色单元提供其当前的实时电压的反相位电压;When the target voltage is less than the current real-time voltage of the target electrochromic unit, provide the target electrochromic unit with the reverse phase voltage of its current real-time voltage;
在目标电致变色单元的实时电压与前述反相位电压一致时,向目标电致变色单元提供目标电压。When the real-time voltage of the target electrochromic unit is consistent with the aforementioned reverse-phase voltage, a target voltage is provided to the target electrochromic unit.
在一实施方式中,第二确定模块403可以用于:In an embodiment, the second determining module 403 may be configured to:
显示状态参数选择界面,状态参数选择界面包括多个状态参数;Display the status parameter selection interface. The status parameter selection interface includes multiple status parameters.
通过状态参数选择界面接收状态参数选择指令,状态参数选择指令用于从多个状态参数中,选取一个状态参数作为待检测的状态参数。A status parameter selection instruction is received through a status parameter selection interface. The status parameter selection instruction is used to select a status parameter from a plurality of status parameters as a status parameter to be detected.
在一实施方式中,待检测的状态参数包括内存使用率、CPU使用率、功耗或剩余电量中的一种。In an embodiment, the status parameter to be detected includes one of a memory usage rate, a CPU usage rate, power consumption, or remaining power.
在一实施方式中,第二确定模块403可以用于:In an embodiment, the second determining module 403 may be configured to:
根据与待检测的状态参数关联的、参数值与区域的对应关系,确定待检测的状态参数的参数值所对应的区域作为目标区域;Determining a region corresponding to a parameter value of the state parameter to be detected as a target region according to a corresponding relationship between the parameter value and the region associated with the state parameter to be detected;
根据与待检测的状态参数关联的、参数值与颜色的对应关系,确定待检测的状态参数的参数值所对应的颜色作为目标颜色。The color corresponding to the parameter value of the state parameter to be detected is determined as the target color according to the corresponding relationship between the parameter value and the color associated with the state parameter to be detected.
具体实施时,以上各个模块可以作为独立的实体实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单位的具体实施可参见前面的实施例,在此不再赘述。In specific implementation, the above modules may be implemented as independent entities, or may be arbitrarily combined, and implemented as the same or several entities. For specific implementation of the above units, refer to the foregoing embodiments, and details are not described herein again.
本申请实施例还提供一种电子设备。请参阅图9,电子设备500包括处理器501、存储器502、屏幕503以及电致变色组件504。其中,存储器502、屏幕503以及电致变色组件504分别与处理器501电性连接。An embodiment of the present application further provides an electronic device. Referring to FIG. 9, the electronic device 500 includes a processor 501, a memory 502, a screen 503, and an electrochromic component 504. The memory 502, the screen 503, and the electrochromic component 504 are electrically connected to the processor 501, respectively.
处理器500是电子设备500的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器502内的计算机程序,以及调用存储在存储器502内的数据,执行电子设备500的各种功能并处理数据。The processor 500 is the control center of the electronic device 500. It uses various interfaces and lines to connect various parts of the entire electronic device. The processor 500 runs or loads a computer program stored in the memory 502, and calls data stored in the memory 502 to execute the electronic Various functions of the device 500 and process data.
存储器502可用于存储软件程序以及模块,处理器501通过运行存储在存储器502的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器502可主要包括存储 程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器502还可以包括存储器控制器,以提供处理器501对存储器502的访问。The memory 502 may be configured to store software programs and modules, and the processor 501 executes various functional applications and data processing by running computer programs and modules stored in the memory 502. The memory 502 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, a computer program (such as a sound playback function, an image playback function, etc.) required for at least one function; the storage data area may store data according to Data created by the use of electronic devices, etc. In addition, the memory 502 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may further include a memory controller to provide the processor 501 with access to the memory 502.
屏幕503可以用于显示由用户输入的信息或提供给用户的信息以及各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。屏幕503可以包括显示面板,在某些实施方式中,可以采用液晶显示器(Liquid Crystal Display,LCD)、或者有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板。The screen 503 may be used to display information input by the user or information provided to the user and various graphical user interfaces. These graphical user interfaces may be composed of graphics, text, icons, videos, and any combination thereof. The screen 503 may include a display panel. In some embodiments, the display panel may be configured by using a liquid crystal display (Liquid Crystal Display, LCD), or an organic light emitting diode (Organic Light-Emitting Diode, OLED).
电致变色组件504由多个电致变色单元(图9未示出)组成。对于电致变色组件504在电子设备的设置位置,本申请实施例不做具体限制,可由本领域技术人员根据实际需要,将电致变色组件504设置在电子设备的任一可视位置。The electrochromic component 504 is composed of a plurality of electrochromic units (not shown in FIG. 9). The position of the electrochromic component 504 in the electronic device is not specifically limited in the embodiments of the present application, and the person skilled in the art can set the electrochromic component 504 at any visible position of the electronic device according to actual needs.
比如,请参照图2,可以将电致变色组件设置在电子设备屏幕所在一面的外壳上,该电致变色组件由24个电致变色单元按照图2所示的特定形状组成。For example, referring to FIG. 2, an electrochromic component may be disposed on a casing on the side of the screen of the electronic device. The electrochromic component is composed of 24 electrochromic units in a specific shape as shown in FIG. 2.
在本申请实施例中,电子设备500中的处理器501会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器502中,并由处理器501运行存储在存储器502中的计算机程序,从而实现各种功能,如下:In the embodiment of the present application, the processor 501 in the electronic device 500 loads the instructions corresponding to the process of one or more computer programs into the memory 502 according to the following steps, and the processor 501 runs the stored data in the memory 502 A computer program in the computer to achieve various functions, as follows:
确定电子设备待检测的状态参数;Determine the state parameters of the electronic equipment to be detected;
检测确定的前述状态参数,得到前述状态参数的参数值;Detecting the determined state parameter to obtain a parameter value of the state parameter;
根据前述状态参数的参数值,确定电致变色组件中需要着色的目标区域以及着色的目标颜色;Determining the target area to be colored and the target color to be colored in the electrochromic component according to the parameter value of the aforementioned state parameter;
从电致变色组件的多个电致变色单元中,确定出构成前述目标区域的目标电致变色单元,并将目标电致变色单元着色为前述目标颜色,以指示前述状态参数的参数值。A target electrochromic unit constituting the target area is determined from a plurality of electrochromic units of the electrochromic component, and the target electrochromic unit is colored to the target color to indicate a parameter value of the state parameter.
请一并参阅图10,在某些实施方式中,电子设备500还可以包括:射频电路505、音频电路506以及电源507。其中,射频电路505、音频电路506以及电源507分别与处理器501电性连接。Please refer to FIG. 10 together. In some embodiments, the electronic device 500 may further include a radio frequency circuit 505, an audio circuit 506, and a power supply 507. The radio frequency circuit 505, the audio circuit 506, and the power supply 507 are electrically connected to the processor 501, respectively.
所述射频电路505可以用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。The radio frequency circuit 505 may be used to transmit and receive radio frequency signals to establish wireless communication with a network device or other electronic devices through wireless communication, and transmit and receive signals to and from the network device or other electronic devices.
所述音频电路506可以用于通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 506 may be used to provide an audio interface between the user and the electronic device through a speaker or a microphone.
所述电源507可以用于给电子设备500的各个部件供电。在一些实施例中,电源507可以通过电源管理系统与处理器501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power supply 507 can be used to power various components of the electronic device 500. In some embodiments, the power supply 507 may be logically connected to the processor 501 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system.
尽管图10中未示出,电子设备500还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 10, the electronic device 500 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
在某些实施方式中,在将目标电致变色单元着色为前述目标颜色时,处理器501可以 执行:In some embodiments, when the target electrochromic unit is colored to the foregoing target color, the processor 501 may execute:
根据预设的颜色和电压的对应关系,确定对应目标颜色的目标电压;Determine the target voltage corresponding to the target color according to the preset correspondence between the color and the voltage;
向目标电致变色单元提供目标电压,通过目标电压将目标电致变色单元着色为目标颜色,并对目标电致变色单元充电;Providing a target voltage to the target electrochromic unit, coloring the target electrochromic unit to a target color by the target voltage, and charging the target electrochromic unit;
在目标电致变色单元的实时电压与目标电压一致时,停止向目标电致变色单元提供目标电压。When the real-time voltage of the target electrochromic unit is consistent with the target voltage, stop providing the target voltage to the target electrochromic unit.
在某些实施方式中,在向目标电致变色单元提供目标电压之前,处理器501还可以执行:In some embodiments, before providing a target voltage to the target electrochromic unit, the processor 501 may further perform:
获取目标电致变色单元当前的实时电压;Obtaining the current real-time voltage of the target electrochromic unit;
判断前述目标电压是否大于目标电致变色单元当前的实时电压;Judging whether the aforementioned target voltage is greater than the current real-time voltage of the target electrochromic unit;
在前述目标电压大于目标电致变色单元当前的实时电压时,向目标电致变色单元提供前述目标电压。When the target voltage is greater than the current real-time voltage of the target electrochromic unit, the target voltage is provided to the target electrochromic unit.
在某些实施方式中,在判断前述目标电压是否大于目标电致变色单元当前的实时电压之后,处理器501还可以执行:In some embodiments, after determining whether the foregoing target voltage is greater than the current real-time voltage of the target electrochromic unit, the processor 501 may further execute:
在目标电压小于目标电致变色单元当前的实时电压时,向目标电致变色单元提供其当前的实时电压的反相位电压;When the target voltage is less than the current real-time voltage of the target electrochromic unit, provide the target electrochromic unit with the reverse phase voltage of its current real-time voltage;
在目标电致变色单元的实时电压与前述反相位电压一致时,向目标电致变色单元提供目标电压。When the real-time voltage of the target electrochromic unit is consistent with the aforementioned reverse-phase voltage, a target voltage is provided to the target electrochromic unit.
在某些实施方式中,在确定电子设备待检测的状态参数时,处理器501还可以执行:In some embodiments, when determining a state parameter to be detected by the electronic device, the processor 501 may further execute:
显示状态参数选择界面,状态参数选择界面包括多个状态参数;Display the status parameter selection interface. The status parameter selection interface includes multiple status parameters.
通过状态参数选择界面接收状态参数选择指令,该状态参数选择指令用于从多个状态参数中,选取一个状态参数作为待检测的状态参数。A status parameter selection instruction is received through a status parameter selection interface, and the status parameter selection instruction is used to select a status parameter as a status parameter to be detected from a plurality of status parameters.
在某些实施方式中,待检测的状态参数包括内存使用率、CPU使用率、功耗或剩余电量中的一种。In some embodiments, the status parameter to be detected includes one of a memory usage rate, a CPU usage rate, power consumption, or remaining power.
在某些实施方式中,在根据前述状态参数的参数值,确定电致变色组件中需要着色的目标区域以及着色的目标颜色时,处理器501可以执行:In some implementations, when determining the target area to be colored and the target color to be colored in the electrochromic component according to the parameter value of the aforementioned state parameter, the processor 501 may execute:
根据与待检测的状态参数关联的、参数值与区域的对应关系,确定待检测的状态参数的参数值所对应的区域作为目标区域;Determining a region corresponding to a parameter value of the state parameter to be detected as a target region according to a corresponding relationship between the parameter value and the region associated with the state parameter to be detected;
根据与待检测的状态参数关联的、参数值与颜色的对应关系,确定待检测的状态参数的参数值所对应的颜色作为目标颜色。The color corresponding to the parameter value of the state parameter to be detected is determined as the target color according to the corresponding relationship between the parameter value and the color associated with the state parameter to be detected.
本申请实施例还提供一种存储介质,所述存储介质存储有计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行上述任一实施例中的设备控制方法,比如:确定电子设备待检测的状态参数;检测确定的前述状态参数,得到前述状态参数的参数值;根据前述状态参数的参数值,确定电致变色组件中需要着色的目标区域以及着色的 目标颜色;从电致变色组件的多个电致变色单元中,确定出构成前述目标区域的目标电致变色单元,并将目标电致变色单元着色为前述目标颜色,以指示前述状态参数的参数值。本申请实施例中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM,)、或者随机存取记忆体(Random Access Memory,RAM)等。An embodiment of the present application further provides a storage medium. The storage medium stores a computer program, and when the computer program runs on an electronic device, the electronic device executes the device control method in any of the foregoing embodiments, such as : Determining a state parameter to be detected by the electronic device; detecting the determined state parameter to obtain a parameter value of the state parameter; determining a target area to be colored and a target color to be colored in the electrochromic component according to the parameter value of the state parameter; A target electrochromic unit constituting the target area is determined from a plurality of electrochromic units of the electrochromic component, and the target electrochromic unit is colored to the target color to indicate a parameter value of the state parameter. In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disc, a read-only memory (ROM, ROM), or a random access memory (Random Access Memory, RAM).
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For a part that is not described in detail in one embodiment, reference may be made to related descriptions in other embodiments.
需要说明的是,对本申请实施例的设备控制方法而言,本领域普通技术人员可以理解实现本申请实施例的设备控制方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如设备控制方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。It should be noted that, for the device control method in the embodiment of the present application, a person of ordinary skill in the art can understand that all or part of the process for implementing the device control method in the embodiment of the present application can be completed by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium, such as stored in a memory of an electronic device, and executed by at least one processor in the electronic device, and may include, for example, a device control method during execution. Process of the embodiment. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, or the like.
对本申请实施例的设备控制装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the device control device in the embodiment of the present application, each functional module thereof may be integrated into one processing chip, or each module may exist separately physically, or two or more modules may be integrated into one module. The above integrated modules may be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk, or an optical disk. .
以上对本申请实施例所提供的一种设备控制方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The device control method, device, storage medium, and electronic device provided by the embodiments of the present application have been described in detail above. The specific examples are used in this document to explain the principle and implementation of the present application. The description of the above embodiments is only It is used to help understand the method of the application and its core ideas; at the same time, for those skilled in the art, according to the ideas of the application, there will be changes in the specific implementation and application scope. In summary, this description The content should not be construed as a limitation on this application.

Claims (20)

  1. 一种设备控制方法,应用于电子设备,其中,所述电子设备包括电致变色组件,所述电致变色组件包括多个电致变色单元,所述设备控制方法包括:A device control method applied to an electronic device, wherein the electronic device includes an electrochromic component, the electrochromic component includes a plurality of electrochromic units, and the device control method includes:
    确定所述电子设备待检测的状态参数;Determining a state parameter of the electronic device to be detected;
    检测所述待检测的状态参数,得到所述待检测的状态参数的参数值;Detecting the state parameter to be detected, and obtaining a parameter value of the state parameter to be detected;
    根据所述待检测的状态参数的参数值,确定所述电致变色组件中需要着色的目标区域以及着色的目标颜色;Determining, according to a parameter value of the state parameter to be detected, a target area to be colored and a target color to be colored in the electrochromic component;
    从多个所述电致变色单元中,确定出构成所述目标区域的目标电致变色单元,并将所述目标电致变色单元着色为所述目标颜色,以指示所述待检测的状态参数的参数值。Determining a target electrochromic unit constituting the target region from a plurality of the electrochromic units, and coloring the target electrochromic unit to the target color to indicate the state parameter to be detected Parameter value.
  2. 如权利要求1所述的设备控制方法,其中,所述电致变色单元为可以储能的电致变色单元,将所述目标电致变色单元着色为所述目标颜色的步骤包括:The device control method according to claim 1, wherein the electrochromic unit is an electrochromic unit that can store energy, and the step of coloring the target electrochromic unit to the target color comprises:
    根据预设的颜色和电压的对应关系,确定对应所述目标颜色的目标电压;Determining a target voltage corresponding to the target color according to a preset correspondence between a color and a voltage;
    向所述目标电致变色单元提供所述目标电压,通过所述目标电压将所述目标电致变色单元着色为所述目标颜色,并对所述目标电致变色单元充电;Providing the target electrochromic unit with the target voltage, coloring the target electrochromic unit to the target color by the target voltage, and charging the target electrochromic unit;
    在所述目标电致变色单元的实时电压与所述目标电压一致时,停止向所述目标电致变色单元提供所述目标电压。When the real-time voltage of the target electrochromic unit is consistent with the target voltage, the supply of the target voltage to the target electrochromic unit is stopped.
  3. 如权利要求2所述的设备控制方法,其中,所述向所述目标电致变色单元提供所述目标电压的步骤之前,还包括:The device control method according to claim 2, wherein before the step of providing the target voltage to the target electrochromic unit, further comprising:
    获取所述目标电致变色单元当前的实时电压;Obtaining the current real-time voltage of the target electrochromic unit;
    判断所述目标电压是否大于所述当前的实时电压;Determining whether the target voltage is greater than the current real-time voltage;
    在所述目标电压大于所述当前的实时电压时,向所述目标电致变色单元提供所述目标电压。When the target voltage is greater than the current real-time voltage, the target voltage is provided to the target electrochromic unit.
  4. 如权利要求3所述的设备控制方法,其中,所述判断所述目标电压是否大于所述当前的实时电压的步骤之后,还包括:The device control method according to claim 3, wherein after the step of determining whether the target voltage is greater than the current real-time voltage, further comprising:
    在所述目标电压小于所述当前的实时电压时,向所述目标电致变色单元提供所述当前的实时电压的反相位电压;When the target voltage is less than the current real-time voltage, providing a reverse phase voltage of the current real-time voltage to the target electrochromic unit;
    在所述目标电致变色单元的实时电压与所述反相位电压一致时,向所述目标电致变色单元提供所述目标电压。When the real-time voltage of the target electrochromic unit is consistent with the reverse phase voltage, the target voltage is provided to the target electrochromic unit.
  5. 如权利要求1所述的设备控制方法,其中,所述确定所述电子设备待检测的状态参数的步骤,包括:The device control method according to claim 1, wherein the step of determining a state parameter to be detected by the electronic device comprises:
    显示状态参数选择界面,所述状态参数选择界面包括多个状态参数;Displaying a status parameter selection interface, the status parameter selection interface including a plurality of status parameters;
    通过所述状态参数选择界面接收状态参数选择指令,所述状态参数选择指令用于从所述多个状态参数中选取一个状态参数作为所述待检测的状态参数。A status parameter selection instruction is received through the status parameter selection interface, and the status parameter selection instruction is used to select a status parameter from the multiple status parameters as the status parameter to be detected.
  6. 如权利要求1所述的设备控制方法,其中,所述待检测的状态参数包括内存使用率、CPU使用率、功耗或剩余电量中的一种。The device control method according to claim 1, wherein the state parameter to be detected comprises one of a memory usage rate, a CPU usage rate, power consumption, or remaining power.
  7. 如权利要求1所述的设备控制方法,其中,所述根据所述待检测的状态参数的参数值,确定所述电致变色组件中需要着色的目标区域以及着色的目标颜色,包括:The device control method according to claim 1, wherein the determining a target area to be colored and a target color to be colored in the electrochromic component according to a parameter value of the state parameter to be detected comprises:
    根据与所述待检测的状态参数关联的、参数值与区域的对应关系,确定所述待检测的状态参数的参数值所对应的区域作为所述目标区域;Determining a region corresponding to a parameter value of the state parameter to be detected as the target region according to a corresponding relationship between the parameter value and the region associated with the state parameter to be detected;
    根据与所述待检测的状态参数关联的、参数值与颜色的对应关系,确定所述待检测的状态参数的参数值所对应的颜色作为所述目标颜色。The color corresponding to the parameter value of the state parameter to be detected is determined as the target color according to the corresponding relationship between the parameter value and the color associated with the state parameter to be detected.
  8. 一种设备控制装置,应用于电子设备,其中,所述电子设备包括电致变色组件,所述电致变色组件包括多个电致变色单元,所述设备控制装置包括;A device control device applied to an electronic device, wherein the electronic device includes an electrochromic component, the electrochromic component includes a plurality of electrochromic units, and the device control device includes;
    第一确定模块,用于确定所述电子设备待检测的状态参数;A first determining module, configured to determine a state parameter of the electronic device to be detected;
    参数检测模块,用于检测所述待检测的状态参数,得到所述待检测的状态参数的参数值;A parameter detection module, configured to detect the state parameter to be detected, and obtain a parameter value of the state parameter to be detected;
    第二确定模块,用于根据所述待检测的状态参数的参数值,确定所述电致变色组件中需要着色的目标区域以及着色的目标颜色;A second determining module, configured to determine a target area to be colored and a target color to be colored in the electrochromic component according to a parameter value of the state parameter to be detected;
    单元着色模块,用于从多个所述电致变色单元中,确定出构成所述目标区域的目标电致变色单元,并将所述目标电致变色单元着色为所述目标颜色,以指示所述待检测的状态参数的参数值。A unit coloring module, configured to determine a target electrochromic unit constituting the target region from a plurality of the electrochromic units, and color the target electrochromic unit to the target color to indicate the target electrochromic unit; Describe the parameter values of the state parameters to be detected.
  9. 如权利要求8所述的设备控制装置,其中,所述电致变色单元为可以储能的电致变色单元,所述单元着色模块还用于:The device control device according to claim 8, wherein the electrochromic unit is an electrochromic unit capable of storing energy, and the unit coloring module is further configured to:
    根据预设的颜色和电压的对应关系,确定对应所述目标颜色的目标电压;Determining a target voltage corresponding to the target color according to a preset correspondence between a color and a voltage;
    向所述目标电致变色单元提供所述目标电压,通过所述目标电压将所述目标电致变色单元着色为所述目标颜色,并对所述目标电致变色单元充电;Providing the target electrochromic unit with the target voltage, coloring the target electrochromic unit to the target color by the target voltage, and charging the target electrochromic unit;
    在所述目标电致变色单元的实时电压与所述目标电压一致时,停止向所述目标电致变色单元提供所述目标电压。When the real-time voltage of the target electrochromic unit is consistent with the target voltage, the supply of the target voltage to the target electrochromic unit is stopped.
  10. 如权利要求9所述的设备控制装置,其中,所述单元着色模块还用于:The device control device according to claim 9, wherein the unit coloring module is further configured to:
    获取所述目标电致变色单元当前的实时电压;Obtaining the current real-time voltage of the target electrochromic unit;
    判断所述目标电压是否大于所述当前的实时电压;Determining whether the target voltage is greater than the current real-time voltage;
    在所述目标电压大于所述当前的实时电压时,向所述目标电致变色单元提供所述目标电压。When the target voltage is greater than the current real-time voltage, the target voltage is provided to the target electrochromic unit.
  11. 如权利要求10所述的设备控制装置,其中,在判断前述目标电压是否大于目标电致变色单元当前的实时电压之后,所述单元着色模块还可以用于:The device control device according to claim 10, wherein after determining whether the target voltage is greater than a current real-time voltage of the target electrochromic unit, the unit coloring module is further configured to:
    在所述目标电压小于所述当前的实时电压时,向所述目标电致变色单元提供所述当前的实时电压的反相位电压;When the target voltage is less than the current real-time voltage, providing a reverse phase voltage of the current real-time voltage to the target electrochromic unit;
    在所述目标电致变色单元的实时电压与所述反相位电压一致时,向所述目标电致变色单元提供所述目标电压。When the real-time voltage of the target electrochromic unit is consistent with the reverse phase voltage, the target voltage is provided to the target electrochromic unit.
  12. 如权利要求8所述的设备控制装置,其中,所述第二确定模块可以用于:The device control apparatus according to claim 8, wherein the second determining module is configured to:
    显示状态参数选择界面,所述状态参数选择界面包括多个状态参数;Displaying a status parameter selection interface, the status parameter selection interface including a plurality of status parameters;
    通过所述状态参数选择界面接收状态参数选择指令,所述状态参数选择指令用于从所述多个状态参数中选取一个状态参数作为所述待检测的状态参数。A status parameter selection instruction is received through the status parameter selection interface, and the status parameter selection instruction is used to select a status parameter from the multiple status parameters as the status parameter to be detected.
  13. 一种存储介质,其上存储有计算机程序,其中,当所述计算机程序在电子设备上运行时,使得所述电子设备执行:A storage medium stores a computer program thereon, and when the computer program runs on an electronic device, causes the electronic device to execute:
    确定所述电子设备待检测的状态参数;Determining a state parameter of the electronic device to be detected;
    检测所述待检测的状态参数,得到所述待检测的状态参数的参数值;Detecting the state parameter to be detected, and obtaining a parameter value of the state parameter to be detected;
    根据所述待检测的状态参数的参数值,确定所述电致变色组件中需要着色的目标区域以及着色的目标颜色;Determining, according to a parameter value of the state parameter to be detected, a target area to be colored and a target color to be colored in the electrochromic component;
    从多个所述电致变色单元中,确定出构成所述目标区域的目标电致变色单元,并将所述目标电致变色单元着色为所述目标颜色,以指示所述待检测的状态参数的参数值。Determining a target electrochromic unit constituting the target region from a plurality of the electrochromic units, and coloring the target electrochromic unit to the target color to indicate the state parameter to be detected Parameter value.
  14. 一种电子设备,包括处理器和存储器,所述存储器储存有计算机程序,其中,所述处理器通过调用所述计算机程序,用于执行:An electronic device includes a processor and a memory. The memory stores a computer program, and the processor calls the computer program to execute:
    确定所述电子设备待检测的状态参数;Determining a state parameter of the electronic device to be detected;
    检测所述待检测的状态参数,得到所述待检测的状态参数的参数值;Detecting the state parameter to be detected, and obtaining a parameter value of the state parameter to be detected;
    根据所述待检测的状态参数的参数值,确定所述电致变色组件中需要着色的目标区域以及着色的目标颜色;Determining, according to a parameter value of the state parameter to be detected, a target area to be colored and a target color to be colored in the electrochromic component;
    从多个所述电致变色单元中,确定出构成所述目标区域的目标电致变色单元,并将所述目标电致变色单元着色为所述目标颜色,以指示所述待检测的状态参数的参数值。Determining a target electrochromic unit constituting the target region from a plurality of the electrochromic units, and coloring the target electrochromic unit to the target color to indicate the state parameter to be detected Parameter value.
  15. 如权利要求14所述的电子设备,其中,所述电致变色单元为可以储能的电致变色 单元,在将所述目标电致变色单元着色为所述目标颜色时,所述处理器用于执行:The electronic device according to claim 14, wherein the electrochromic unit is an electrochromic unit that can store energy, and when the target electrochromic unit is colored to the target color, the processor is configured to: carried out:
    根据预设的颜色和电压的对应关系,确定对应所述目标颜色的目标电压;Determining a target voltage corresponding to the target color according to a preset correspondence between a color and a voltage;
    向所述目标电致变色单元提供所述目标电压,通过所述目标电压将所述目标电致变色单元着色为所述目标颜色,并对所述目标电致变色单元充电;Providing the target electrochromic unit with the target voltage, coloring the target electrochromic unit to the target color by the target voltage, and charging the target electrochromic unit;
    在所述目标电致变色单元的实时电压与所述目标电压一致时,停止向所述目标电致变色单元提供所述目标电压。When the real-time voltage of the target electrochromic unit is consistent with the target voltage, the supply of the target voltage to the target electrochromic unit is stopped.
  16. 如权利要求15所述的电子设备,其中,在向所述目标电致变色单元提供所述目标电压之前,所述处理器还用于执行:The electronic device of claim 15, wherein before the target voltage is provided to the target electrochromic unit, the processor is further configured to perform:
    获取所述目标电致变色单元当前的实时电压;Obtaining the current real-time voltage of the target electrochromic unit;
    判断所述目标电压是否大于所述当前的实时电压;Determining whether the target voltage is greater than the current real-time voltage;
    在所述目标电压大于所述当前的实时电压时,向所述目标电致变色单元提供所述目标电压。When the target voltage is greater than the current real-time voltage, the target voltage is provided to the target electrochromic unit.
  17. 如权利要求16所述的电子设备,其中,在判断所述目标电压是否大于所述当前的实时电压之后,所述处理器还用于执行:The electronic device according to claim 16, wherein after determining whether the target voltage is greater than the current real-time voltage, the processor is further configured to execute:
    在所述目标电压小于所述当前的实时电压时,向所述目标电致变色单元提供所述当前的实时电压的反相位电压;When the target voltage is less than the current real-time voltage, providing a reverse phase voltage of the current real-time voltage to the target electrochromic unit;
    在所述目标电致变色单元的实时电压与所述反相位电压一致时,向所述目标电致变色单元提供所述目标电压。When the real-time voltage of the target electrochromic unit is consistent with the reverse phase voltage, the target voltage is provided to the target electrochromic unit.
  18. 如权利要求14所述的电子设备,其中,在确定所述电子设备待检测的状态参数时,所述处理器用于执行:The electronic device according to claim 14, wherein when determining a state parameter to be detected by the electronic device, the processor is configured to perform:
    显示状态参数选择界面,所述状态参数选择界面包括多个状态参数;Displaying a status parameter selection interface, the status parameter selection interface including a plurality of status parameters;
    通过所述状态参数选择界面接收状态参数选择指令,所述状态参数选择指令用于从多个所述待检测的状态参数中,选取一个状态参数作为所述待检测的状态参数。A status parameter selection instruction is received through the status parameter selection interface, and the status parameter selection instruction is used to select a status parameter from the multiple status parameters to be detected as the status parameters to be detected.
  19. 如权利要求14所述的电子设备,其中,所述待检测的状态参数包括内存使用率、CPU使用率、功耗或剩余电量中的一种。The electronic device according to claim 14, wherein the state parameter to be detected includes one of a memory usage rate, a CPU usage rate, power consumption, or remaining power.
  20. 如权利要求14所述的电子设备,其中,在根据所述待检测的状态参数的参数值,确定所述电致变色组件中需要着色的目标区域以及着色的目标颜色时,所述处理器用于执行:The electronic device according to claim 14, wherein when determining a target area to be colored and a target color to be colored in the electrochromic component according to a parameter value of the state parameter to be detected, the processor is configured to: carried out:
    根据与所述待检测的状态参数关联的、参数值与区域的对应关系,确定所述待检测的状态参数的参数值所对应的区域作为所述目标区域;Determining a region corresponding to a parameter value of the state parameter to be detected as the target region according to a corresponding relationship between the parameter value and the region associated with the state parameter to be detected;
    根据与所述待检测的状态参数关联的、参数值与颜色的对应关系,确定所述待检测的状态参数的参数值所对应的颜色作为所述目标颜色。The color corresponding to the parameter value of the state parameter to be detected is determined as the target color according to the corresponding relationship between the parameter value and the color associated with the state parameter to be detected.
PCT/CN2019/084823 2018-07-27 2019-04-28 Device control method and apparatus, storage medium and electronic device WO2020019802A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810844819.4A CN109088988A (en) 2018-07-27 2018-07-27 Apparatus control method, device, storage medium and electronic equipment
CN201810844819.4 2018-07-27

Publications (1)

Publication Number Publication Date
WO2020019802A1 true WO2020019802A1 (en) 2020-01-30

Family

ID=64831277

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/084823 WO2020019802A1 (en) 2018-07-27 2019-04-28 Device control method and apparatus, storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN109088988A (en)
WO (1) WO2020019802A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109088988A (en) * 2018-07-27 2018-12-25 Oppo广东移动通信有限公司 Apparatus control method, device, storage medium and electronic equipment
CN109831861A (en) * 2019-03-25 2019-05-31 上海礼朱实业有限公司 The display methods of electronic equipment and electronic equipment with gradual change display effect
CN110611857A (en) * 2019-09-30 2019-12-24 Oppo广东移动通信有限公司 Wireless earphone
CN113138733B (en) * 2020-01-20 2023-02-28 Oppo广东移动通信有限公司 Electronic equipment and method for controlling shell color thereof
CN112684984A (en) * 2020-12-31 2021-04-20 联想(北京)有限公司 Control method and device
CN116909068A (en) * 2021-01-06 2023-10-20 深圳市光羿科技有限公司 Method for regulating electrochromic device and electronic equipment
CN114822445A (en) * 2021-01-21 2022-07-29 北京小米移动软件有限公司 Information prompting method and device and electronic equipment
CN113686544A (en) * 2021-08-13 2021-11-23 Oppo广东移动通信有限公司 Electrochromic response time detection method and device for electrochromic device and storage medium
CN116366745A (en) * 2021-12-27 2023-06-30 中兴通讯股份有限公司 Control method, terminal and computer readable medium of color changing assembly

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107707761A (en) * 2017-10-19 2018-02-16 维沃移动通信有限公司 A kind of information cuing method and mobile terminal
CN107796984A (en) * 2017-10-19 2018-03-13 维沃移动通信有限公司 A kind of information cuing method and mobile terminal
CN107818038A (en) * 2017-10-19 2018-03-20 维沃移动通信有限公司 A kind of information cuing method and mobile terminal
CN109088988A (en) * 2018-07-27 2018-12-25 Oppo广东移动通信有限公司 Apparatus control method, device, storage medium and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030161A (en) * 2006-02-28 2007-09-05 华为技术有限公司 Electronic device and method for controlling electronic device casing coloring
CN201286122Y (en) * 2008-09-04 2009-08-05 深圳华为通信技术有限公司 Mobile terminal
CN105578811B (en) * 2014-10-17 2018-09-04 小米科技有限责任公司 Electronic equipment and electronic equipment application method
CN104809050A (en) * 2015-04-24 2015-07-29 三星电子(中国)研发中心 Electronic equipment and method for displaying battery capacity of electronic equipment
CN106325863A (en) * 2016-08-19 2017-01-11 维沃移动通信有限公司 Weather information reminding method and mobile terminal
CN107770376B (en) * 2017-10-19 2020-05-05 维沃移动通信有限公司 Control method of mobile terminal and mobile terminal
CN107613139B (en) * 2017-10-19 2020-09-29 维沃移动通信有限公司 Schedule reminding method and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107707761A (en) * 2017-10-19 2018-02-16 维沃移动通信有限公司 A kind of information cuing method and mobile terminal
CN107796984A (en) * 2017-10-19 2018-03-13 维沃移动通信有限公司 A kind of information cuing method and mobile terminal
CN107818038A (en) * 2017-10-19 2018-03-20 维沃移动通信有限公司 A kind of information cuing method and mobile terminal
CN109088988A (en) * 2018-07-27 2018-12-25 Oppo广东移动通信有限公司 Apparatus control method, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN109088988A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
WO2020019802A1 (en) Device control method and apparatus, storage medium and electronic device
US20210232249A1 (en) Optical sensors disposed beneath the display of an electronic device
US20190340964A1 (en) Flexible display apparatus and controlling method thereof
CN109029768B (en) Temperature reminding method and device of electronic equipment, storage medium and electronic equipment
WO2020048428A1 (en) Electronic apparatus, method for controlling electronic apparatus, and storage medium
US20180188774A1 (en) Multiple display device
US9904324B2 (en) Secondary screen structure of display device, double-sided display device and method for manufacturing e-paper screen
CN109064996B (en) Display adjustment method and device, storage medium and electronic equipment
CN109101833B (en) Content display method, content display device, storage medium and electronic equipment
CN110928096B (en) Electrochromic device, housing, and electronic apparatus
CN109143717B (en) Control method and device of electronic equipment, storage medium and electronic equipment
CN109246288B (en) Control method and device of electronic equipment, storage medium and electronic equipment
CN109143090A (en) Apparatus control method, device, storage medium and electronic equipment
US20180188773A1 (en) Multiple display device
CN108718367A (en) Control method of electronic device, device, storage medium and electronic equipment
CN109104529A (en) Information cuing method, device, storage medium and electronic equipment
CN110221500A (en) Control method, device, storage medium, electronic equipment and control system
CN109040361A (en) Image pickup method, device, storage medium and electronic equipment
CN108873548B (en) Electrochromic method and device, electrochromic assembly and electronic equipment
CN109188820B (en) Device control method, device, storage medium and electronic device
CN109144814A (en) Information prompting method, device, storage medium and electronic equipment
CN110768317A (en) Charging state prompting method and device, storage medium and electronic equipment
CN109066856A (en) Electric quantity reminding method, storage medium, charging equipment and data line
CN108616697A (en) Based reminding method, device, storage medium and the electronic equipment of shooting state
CN109165492B (en) Device control method, device, storage medium and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19840320

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19840320

Country of ref document: EP

Kind code of ref document: A1