CN111272200A - Output value adjusting method and device and electronic equipment - Google Patents

Output value adjusting method and device and electronic equipment Download PDF

Info

Publication number
CN111272200A
CN111272200A CN202010083577.9A CN202010083577A CN111272200A CN 111272200 A CN111272200 A CN 111272200A CN 202010083577 A CN202010083577 A CN 202010083577A CN 111272200 A CN111272200 A CN 111272200A
Authority
CN
China
Prior art keywords
target
value
output value
sensor
driving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010083577.9A
Other languages
Chinese (zh)
Inventor
刘晓威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010083577.9A priority Critical patent/CN111272200A/en
Publication of CN111272200A publication Critical patent/CN111272200A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/12Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means

Abstract

The embodiment of the disclosure discloses an output value adjusting method and device and electronic equipment. One embodiment of the method comprises: acquiring an acquisition value acquired by a target sensor of the terminal equipment; determining a target driving value corresponding to the acquisition value; determining a target output value for adjusting the current output value of a target device of the terminal equipment according to the target driving value; the target device is adjusted from the current output value to the target output value. The embodiment realizes automatic adjustment of the output value of the target device of the terminal equipment.

Description

Output value adjusting method and device and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an output value adjusting method and apparatus, and an electronic device.
Background
In order to meet various requirements of users, some terminal devices (e.g., smart phones) can not only perform information interaction with other electronic devices (e.g., servers), but also provide various functions.
In practice, the terminal device may implement the corresponding functions through one or more installed devices.
Disclosure of Invention
This disclosure is provided to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The embodiment of the disclosure provides an output value adjusting method and device and electronic equipment, and realizes automatic adjustment of an output value of a target device of terminal equipment.
In a first aspect, an embodiment of the present disclosure provides an output value adjusting method, where the method includes: acquiring an acquisition value acquired by a target sensor of the terminal equipment; determining a target driving value corresponding to the acquisition value; determining a target output value for adjusting the current output value of a target device of the terminal equipment according to the target driving value; the target device is adjusted from the current output value to the target output value.
In a second aspect, an embodiment of the present disclosure provides an output value adjusting apparatus, including: the acquisition unit is used for acquiring an acquisition value acquired by a target sensor of the terminal equipment; the first determining unit is used for determining a target driving value corresponding to the acquisition value; the second determining unit is used for determining a target output value for adjusting the current output value of the target device of the terminal equipment according to the target driving value; and the adjusting unit is used for adjusting the target device from the current output value to the target output value.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the output value adjustment method according to the first aspect.
In a fourth aspect, the disclosed embodiments provide a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the steps of the output value adjustment method according to the first aspect.
According to the output value adjusting method and device and the electronic device provided by the embodiment of the disclosure, firstly, the acquisition value acquired by the installed target sensor can be acquired. Then, a target driving value corresponding to the acquired acquisition value may be determined. Then, a target output value for adjusting the current output value of the mounted target device may be determined based on the target driving value. Finally, the target device may be adjusted from the current output value to the target output value. Thus, automatic adjustment of the output value of the mounted target device is achieved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a flow chart diagram of one embodiment of an output value adjustment method according to the present disclosure;
FIG. 2 is a schematic diagram of an application scenario of a flash brightness adjustment method according to the present disclosure;
FIG. 3 is a flow chart diagram of yet another embodiment of an output value adjustment method according to the present disclosure;
FIG. 4 is a schematic block diagram of one embodiment of an output value adjustment apparatus according to the present disclosure;
FIG. 5 is an exemplary system architecture to which the output value adjustment method of one embodiment of the present disclosure may be applied;
fig. 6 is a schematic diagram of a basic structure of an electronic device provided according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Referring to fig. 1, a flow of one embodiment of an output value adjustment method according to the present disclosure is shown. The output value adjusting method shown in fig. 1 is applied to a terminal device, and includes the following steps:
step 101, acquiring an acquisition value acquired by a target sensor of a terminal device.
In this embodiment, the terminal device may obtain the acquisition value acquired by the target sensor.
The target sensor may be a sensor mounted on the terminal device. In practice, the target sensor may be a pre-designated sensor or sensors.
The collected value may be a value collected by the target sensor.
In some optional implementations, before performing step 101, the terminal device may further perform the following steps.
Specifically, the terminal device may turn on the target sensor in response to detecting that the target device is in an operating state.
In these optional implementation manners, when the installed target device is in a working state, the installed target sensor is turned on, so that the target sensor can effectively work, and the service life of the target sensor is further prolonged.
And 102, determining a target driving value corresponding to the acquired value.
In this embodiment, after acquiring the acquisition value, the terminal device may determine a target driving value corresponding to the acquisition value.
The target drive value may be a drive value for driving the terminal device to perform output value adjustment for the mounted target device.
In some scenarios, the terminal device, locally or a server communicatively connected to the terminal device, may pre-store the corresponding drive values for different acquisition values. At this time, the terminal device may determine a drive value corresponding to the acquired value as a target drive value from data stored in a local or communication-connected server.
And 103, determining a target output value for adjusting the current output value of the target device of the terminal equipment according to the target driving value.
In this embodiment, after obtaining the target driving value, the terminal device may determine a target output value for adjusting the current output value of the target device according to the target driving value.
The target device may be a device to which the terminal apparatus is mounted. In practice, the target device may be a pre-specified device, and may be a device having an association relationship with the target sensor.
The target output value may be an output value that adjusts a current output value of the target device.
In some scenarios, the terminal device may store corresponding output values for different driving values locally or by the server connected to the terminal device in advance, and therefore, the terminal device may determine an output value corresponding to the target driving value as the target output value from data stored by the server connected to the terminal device locally or by communication.
In some alternative implementations, the terminal device may perform step 103 in the following manner.
In a first step, in response to determining that the target driving value is not less than the preset driving threshold, the terminal device may determine a driving value interval to which the target driving value belongs.
Specifically, the terminal device may determine a drive value interval to which the target drive value belongs from a plurality of drive value intervals determined in advance.
In the second step, the terminal device may use an output value corresponding to the determined driving value interval as a target output value.
Specifically, different drive value intervals may be preset with a corresponding output value, and therefore, the terminal device may use the output value corresponding to the determined drive value interval as the target output value.
In these alternative implementations, when the target driving value is not less than the preset driving threshold, the target output value for adjusting the output value of the installed target device is determined, so that the determination of the target output value is more targeted. Therefore, the output value of the target device is adjusted in a targeted mode. In addition, the corresponding output values are preset for different drive value intervals, and the preset of the corresponding output value for each drive value can be avoided.
And 104, adjusting the current output value of the target device to a target output value.
In this embodiment, after determining the target output value, the terminal device may adjust the target device from the current output value to the target output value.
In some scenarios, the terminal device may gradually adjust the target device from the current output value to the target output value.
In some alternative implementations, the terminal device may perform step 104 as follows.
Specifically, the terminal device may determine whether the target output value is the same as the current output value, and if it is determined that the target output value is not the same as the current output value, the terminal device may adjust the target device from the current output value to the target output value.
In these optional implementations, on the premise that it is determined that the current output value of the target device is different from the target output value, the output value of the target device is adjusted, so that the output value of the target device can be effectively adjusted.
In some alternative implementations, the target sensor may be a distance sensor, a light sensor, a sound sensor, or a power sensor. The target device may be a flashlight, display screen, earpiece, or speaker.
The distance sensor may be a sensor for sensing a distance value between the object and the distance sensor. It is understood that the collected value collected by the distance sensor may be a value of a distance between the sensed object and the distance sensor. The light sensor may be a sensor for sensing a brightness value of an external environment. Accordingly, the collected value collected by the light sensor may be a sensed ambient brightness value. The sound sensor may be a sensor for sensing an external volume value. Accordingly, the collected value collected by the sound sensor may be a sensed external volume value. The electric quantity sensor may be a sensor for sensing a residual electric quantity value of the terminal device. Accordingly, the collected value collected by the electric quantity sensor can be a residual electric quantity value of the terminal equipment.
It will be understood that the output value of the flash may be a brightness value of the flash. The output value of the display screen may be a brightness value of the display screen. The output value of the handset may be a volume value of the handset. The output value of the speaker may be a volume value of the speaker.
For example one, the target sensor may be a range sensor and the target device may be a flash lamp. The terminal equipment can adjust the brightness value of the installed flash lamp through the distance value acquired by the installed distance sensor.
In example two, the target sensor may be a light sensor and the target device may be a flash lamp. The terminal equipment can adjust the brightness value of the installed flash lamp through the environment brightness value collected by the installed light sensor. In example three, the target sensor may be a distance sensor and the target device may be a display screen. The terminal equipment can adjust the brightness value of the installed display screen through the distance value acquired by the installed distance sensor.
Example four, the target sensor may be a sound sensor and the target device may be an earpiece or a speaker. The terminal equipment can adjust the volume value of the installed receiver or loudspeaker through the external volume value collected by the installed sound sensor.
In example five, the target sensor may be a charge sensor and the target device may be a display screen. The terminal equipment can adjust the brightness value of the installed display screen through the residual electric quantity value collected by the installed electric quantity sensor.
It should be noted that the foregoing implementation may also be applied to other examples, and details are not described here.
Referring to fig. 2, an application scenario of the output value adjusting method according to the embodiment of the disclosure is shown. As shown in fig. 2, first, the terminal device 201 can acquire an acquisition value 202 acquired by an installed object sensor. Then, the terminal device 201 can determine the target drive value 203 corresponding to the collected value 202. Then, the terminal apparatus 201 can determine a target output value 204 that adjusts the current output value of the mounted target device, based on the determined target drive value 203. Finally, the terminal apparatus 201 can adjust the mounted target device from the current output value to the target output value 204.
At present, in order to adjust the output value of the target device, in a related manner, the terminal device may correspondingly adjust the output value of the target device according to the operation of the user on the key. In this embodiment, the output value of the target device of the terminal device is adjusted according to the acquisition value acquired by the target sensor of the terminal device, so that the output value of the target device installed on the terminal device is automatically adjusted. In addition, in a scene that the terminal equipment is provided with the target sensor, the output value of the target device can be adjusted without additionally arranging other devices, so that the output value of the target device can be adjusted on the basis of not increasing the cost of the device.
Continuing to refer to FIG. 3, a flow diagram of yet another embodiment of an output value adjustment method according to the present disclosure is shown. As shown in fig. 3, the output value adjusting method includes the following steps:
step 301, acquiring an acquisition value acquired by a target sensor of the terminal device.
Step 301 may be performed in a similar manner as step 101 in the embodiment shown in fig. 1, and the above description for step 101 also applies to step 301, which is not described herein again.
Step 302, inquiring a target acquisition value interval to which the acquisition value belongs from the inquiry information list.
In this embodiment, after acquiring the acquisition value, the terminal device may query a target acquisition value interval to which the acquisition value belongs from the query information list.
The query information list may be a list previously built in the terminal device. In practice, the query information in the query information list may include a collection value interval and a driving value. It should be noted that the query information list may be stored in a local or communication server of the terminal device, and therefore, the terminal device may obtain the query information list from the local or communication server.
The target collection value interval may be a collection value interval to which the acquired collection value belongs in the query information list.
In some scenarios, the terminal device may query, directly from the query information list, a collection value interval to which the acquired collection value belongs as a target collection value interval.
In other scenarios, the terminal device may adopt a preset conversion strategy to convert the acquired acquisition value, and then query an acquisition value interval in which the converted acquisition value is located from the query information list as a target acquisition value interval.
The preset conversion strategy may be a strategy for converting a collection value collected by the target sensor. In practice, the collected values collected by different types of target sensors can be in different forms. After conversion, the collected values collected by the target sensors of different models can be unified.
Step 303, using the driving value corresponding to the target distance interval in the query information list as the target driving value.
In this embodiment, after querying the target distance interval to which the acquisition value belongs, the terminal device may use a driving value corresponding to the target distance interval in the query information list as the target driving value.
And step 304, determining a target output value for adjusting the current output value of the target device of the terminal equipment according to the target driving value.
Step 305, adjust the target device from the current output value to the target output value.
Step 304 and step 305 may be performed in a manner similar to that of step 103 and step 104 in the embodiment shown in fig. 1, and the above description for step 103 and step 104 also applies to step 304 and step 305, which is not described herein again.
In this embodiment, a target acquisition value interval to which an acquisition value acquired by a target sensor belongs is queried from a query information list, and a drive value corresponding to the target acquisition value interval in the query information list is used as a target drive value. Therefore, the adjustment of the output value of the target device of the terminal equipment is realized through the pre-obtained query information list.
With further reference to fig. 4, as an implementation of the methods shown in the above-mentioned figures, the present disclosure provides an embodiment of an output value adjusting apparatus, which corresponds to the embodiment of the method shown in fig. 1, and which can be applied in various electronic devices.
As shown in fig. 4, the output value adjusting apparatus of the present embodiment includes: an acquisition unit 401, a first determination unit 402, a second determination unit 403, and an adjustment unit 404. Wherein, the obtaining unit 401 may be configured to: and acquiring an acquisition value acquired by a target sensor of the terminal equipment. The first determining unit 402 may be configured to: and determining a target driving value corresponding to the acquired value. The second determining unit 403 may be configured to: and determining a target output value for adjusting the current output value of the target device of the terminal equipment according to the target driving value. The adjustment unit 404 may be configured to: the target device is adjusted from the current output value to the target output value.
In this embodiment, specific processes of the obtaining unit 401, the first determining unit 402, the second determining unit 403, and the adjusting unit 404 of the output value adjusting apparatus and technical effects thereof may refer to related descriptions of step 101, step 102, step 103, and step 104 in the corresponding embodiment of fig. 1, which are not repeated herein.
In some optional implementations, the first determining unit 402 may be further configured to: inquiring a target acquisition value interval to which an acquisition value belongs from an inquiry information list, wherein inquiry information in the inquiry information list comprises the acquisition value interval and a driving value; and taking the driving value corresponding to the target acquisition value interval in the query information list as a target driving value.
In some alternative implementations, the target sensor is a distance sensor, a light sensor, a sound sensor, or an electrical quantity sensor; the target device is a flashlight, a display screen, a receiver or a speaker.
In some optional implementations, the adjusting unit 404 may be further configured to: adjusting the target device from the current output value to the target output value in response to determining that the target output value is not the same as the current output value
In some optional implementations, the second determining unit 403 may be further configured to: in response to determining that the target driving value is not less than a preset driving threshold, determining a driving interval to which the target driving value belongs; and taking the output value corresponding to the determined driving interval as a target output value.
In some optional implementations, the flash brightness adjustment device may further include: an opening unit (not shown in the drawings). Wherein, the opening unit can be used for: and responding to the detection that the target device is in the working state, and starting the target sensor.
With further reference to fig. 5, fig. 5 illustrates an exemplary system architecture to which the output value adjustment method of one embodiment of the present disclosure may be applied.
As shown in fig. 5, the system architecture may include a terminal device 501. The terminal apparatus 501 may be mounted with a target sensor 5011 and a target device 5012.
The target sensor 5011 may be installed at any position of the terminal device 501 according to actual requirements. In some scenarios, the object sensors 5011 may be mounted in the vicinity of the earpiece of the terminal device 501.
The target device 5012 may be installed at any position of the terminal device 501 according to actual requirements. In some scenarios, the target device 5012 may be mounted in the periphery of a camera of the terminal device 501.
It should be noted that the output value adjusting method provided by the embodiment of the present disclosure may be executed by the terminal device 501, and accordingly, the output value adjusting device may be disposed in the terminal device 501.
It should be understood that the number of target sensors, target devices in fig. 5 is merely illustrative. There may be any number of target sensors, target devices, as desired for implementation.
Referring now to fig. 6, shown is a schematic diagram of an electronic device (e.g., the terminal device of fig. 5) suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring an acquisition value acquired by a target sensor of the terminal equipment; determining a target driving value corresponding to the acquisition value; determining a target output value for adjusting the current output value of a target device of the terminal equipment according to the target driving value; the target device is adjusted from the current output value to the target output value.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The name of the unit does not in some cases constitute a limitation of the unit itself, and for example, the acquiring unit may also be described as a unit that acquires an acquired value acquired by a target sensor of the terminal device.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (9)

1. An output value adjusting method is applied to terminal equipment and is characterized by comprising the following steps:
acquiring an acquisition value acquired by a target sensor of the terminal equipment;
determining a target driving value corresponding to the acquisition value;
determining a target output value for adjusting the current output value of a target device of the terminal equipment according to the target driving value;
adjusting the target device from the current output value to the target output value.
2. The method of claim 1, wherein the determining a target drive value corresponding to the acquired value comprises:
inquiring a target acquisition value interval to which the acquisition value belongs from an inquiry information list, wherein inquiry information in the inquiry information list comprises the acquisition value interval and a driving value;
and taking the driving value corresponding to the target acquisition value interval in the query information list as the target driving value.
3. The method of claim 1, wherein the target sensor is a distance sensor, a light sensor, a sound sensor, or a charge sensor; the target device is a flash lamp, a display screen, a receiver or a loudspeaker.
4. The method of claim 1, wherein said adjusting the target device from the current output value to the target output value comprises:
adjusting the target device from the current output value to the target output value in response to determining that the target output value is not the same as the current output value.
5. The method of claim 1, wherein determining a target output value for adjusting a current output value of a target device of the terminal device based on the target drive value comprises:
in response to determining that the target driving value is not less than a preset driving threshold, determining a driving interval to which the target driving value belongs;
and taking the output value corresponding to the determined driving interval as the target output value.
6. The method according to any one of claims 1-5, wherein before said obtaining the collected value collected by the target sensor of the terminal device, the method further comprises:
and responding to the detection that the target device is in the working state, and starting the target sensor.
7. An output value adjusting device applied to a terminal device, comprising:
the acquisition unit is used for acquiring an acquisition value acquired by a target sensor of the terminal equipment;
the first determining unit is used for determining a target driving value corresponding to the acquisition value;
a second determining unit, configured to determine, according to the target driving value, a target output value for adjusting a current output value of a target device of the terminal device;
an adjustment unit for adjusting the target device from the current output value to the target output value.
8. A terminal device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
9. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN202010083577.9A 2020-02-07 2020-02-07 Output value adjusting method and device and electronic equipment Pending CN111272200A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010083577.9A CN111272200A (en) 2020-02-07 2020-02-07 Output value adjusting method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010083577.9A CN111272200A (en) 2020-02-07 2020-02-07 Output value adjusting method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111272200A true CN111272200A (en) 2020-06-12

Family

ID=70999307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010083577.9A Pending CN111272200A (en) 2020-02-07 2020-02-07 Output value adjusting method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111272200A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101135792A (en) * 2006-08-30 2008-03-05 恩益禧电子股份有限公司 Mobile terminal and display panel driver
CN101346755A (en) * 2005-10-31 2009-01-14 捷讯研究有限公司 Automatic screen and keypad brightness adjustment on a mobile handheld electronic device
US20090298549A1 (en) * 2008-05-29 2009-12-03 High Tech Computer, Corp. Handheld device and power saving method therefor
US20110298766A1 (en) * 2009-05-05 2011-12-08 Apple Inc. Light sensing device having a color sensor and a clear sensor for infrared rejection
CN103916935A (en) * 2012-12-31 2014-07-09 赛龙通信技术(深圳)有限公司 Backlight control system and control method of mobile terminal
CN104023145A (en) * 2014-06-27 2014-09-03 广东欧珀移动通信有限公司 Method and device for automatically starting automatic backlight adjustment of mobile terminal
CN105208191A (en) * 2015-08-13 2015-12-30 小米科技有限责任公司 Mode switching method and mode switching device
CN107135316A (en) * 2017-06-30 2017-09-05 广东欧珀移动通信有限公司 A kind of adjusting method of In Call, device, storage medium and terminal
CN108391323A (en) * 2018-02-02 2018-08-10 北京小米移动软件有限公司 Equipment interconnected method, device and electronic equipment
CN110175082A (en) * 2019-05-31 2019-08-27 三角兽(北京)科技有限公司 Processing method, device, electronic equipment and the storage medium of notification message

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101346755A (en) * 2005-10-31 2009-01-14 捷讯研究有限公司 Automatic screen and keypad brightness adjustment on a mobile handheld electronic device
CN101135792A (en) * 2006-08-30 2008-03-05 恩益禧电子股份有限公司 Mobile terminal and display panel driver
US20090298549A1 (en) * 2008-05-29 2009-12-03 High Tech Computer, Corp. Handheld device and power saving method therefor
US20110298766A1 (en) * 2009-05-05 2011-12-08 Apple Inc. Light sensing device having a color sensor and a clear sensor for infrared rejection
CN103916935A (en) * 2012-12-31 2014-07-09 赛龙通信技术(深圳)有限公司 Backlight control system and control method of mobile terminal
CN104023145A (en) * 2014-06-27 2014-09-03 广东欧珀移动通信有限公司 Method and device for automatically starting automatic backlight adjustment of mobile terminal
CN105208191A (en) * 2015-08-13 2015-12-30 小米科技有限责任公司 Mode switching method and mode switching device
CN107135316A (en) * 2017-06-30 2017-09-05 广东欧珀移动通信有限公司 A kind of adjusting method of In Call, device, storage medium and terminal
CN108391323A (en) * 2018-02-02 2018-08-10 北京小米移动软件有限公司 Equipment interconnected method, device and electronic equipment
CN110175082A (en) * 2019-05-31 2019-08-27 三角兽(北京)科技有限公司 Processing method, device, electronic equipment and the storage medium of notification message

Similar Documents

Publication Publication Date Title
CN106161628B (en) Shooting file uploading method and device
CN107888765B (en) Method for switching scene mode and mobile terminal
CN113473035A (en) Ambient brightness determination method and device and electronic equipment
JP6862564B2 (en) Methods, devices and non-volatile computer-readable media for image composition
JP2022515863A (en) How to access the network with smart home devices and related devices
CN112256371A (en) Method and device for displaying information and electronic equipment
US10630885B2 (en) Focusing method and terminal
CN110730262A (en) Environment brightness value detection method and device and electronic equipment
CN115391601B (en) Video format detection method, index model construction method and device
CN111176744A (en) Electronic equipment control method, device, terminal and storage medium
CN113364993B (en) Exposure parameter value processing method and device and electronic equipment
CN111272200A (en) Output value adjusting method and device and electronic equipment
CN110278232B (en) Method, device and system for controlling data downloading
CN113971192A (en) Data processing method and device, readable medium and electronic equipment
CN109710576B (en) File display method, terminal and storage medium
CN111867203A (en) Working mode switching method, device, equipment and medium of desk lamp
CN113593495A (en) Calibration method and device and electronic equipment
CN113076053A (en) Cursor remote control method and device, electronic equipment and storage medium
CN113971876A (en) Terminal communication method, terminal device, terminal and storage medium
CN111416908A (en) Alarm clock reminding method, alarm clock reminding device and mobile terminal
CN111698367A (en) Method and device for terminal silent alarm, terminal and storage medium
CN114006880B (en) Method and device for acquiring message receipt, electronic equipment and storage medium
CN114924938A (en) Vehicle software service condition statistical analysis method and device, terminal and storage medium
CN117827490A (en) Signal processing method, driving system, vehicle, and computer-readable storage medium
CN113377050A (en) Method and device for controlling terminal, terminal and non-transitory storage medium

Legal Events

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