CN108983211B - Proximity sensor, method of controlling the same, electronic device, and computer-readable storage medium - Google Patents

Proximity sensor, method of controlling the same, electronic device, and computer-readable storage medium Download PDF

Info

Publication number
CN108983211B
CN108983211B CN201810706860.5A CN201810706860A CN108983211B CN 108983211 B CN108983211 B CN 108983211B CN 201810706860 A CN201810706860 A CN 201810706860A CN 108983211 B CN108983211 B CN 108983211B
Authority
CN
China
Prior art keywords
emission
light sources
power
driven
proximity sensor
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.)
Expired - Fee Related
Application number
CN201810706860.5A
Other languages
Chinese (zh)
Other versions
CN108983211A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810706860.5A priority Critical patent/CN108983211B/en
Publication of CN108983211A publication Critical patent/CN108983211A/en
Application granted granted Critical
Publication of CN108983211B publication Critical patent/CN108983211B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S13/00Systems using the reflection or reradiation of radio waves, e.g. radar systems; Analogous systems using reflection or reradiation of waves whose nature or wavelength is irrelevant or unspecified
    • G01S13/02Systems using reflection of radio waves, e.g. primary radar systems; Analogous systems
    • G01S13/06Systems determining position data of a target
    • G01S13/08Systems for measuring distance only
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Optical Communication System (AREA)

Abstract

The application provides a proximity sensor, a control method thereof, an electronic device and a computer-readable storage medium. The proximity sensor control method comprises the following steps: a receiving end and a transmitting end; the transmitting end comprises a plurality of transmitting light sources, and the difference between the sum of the transmitting power of each transmitting light source and the rated transmitting power of the transmitting end is smaller than a preset value. The proximity sensor, the control method thereof, the electronic device and the computer readable storage medium can solve the problem of screen flashing and ensure the detection distance.

Description

Proximity sensor, method of controlling the same, electronic device, and computer-readable storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a proximity sensor, a control method thereof, an electronic device, and a computer-readable storage medium.
Background
In the full screen era of the mobile phone, along with the increasing screen occupation ratio of the mobile phone, no space is reserved on the front side of the whole screen for the layout of the infrared proximity sensor, and the external proximity sensor cannot be installed under the screen, so that the main technical means is provided. Due to the photoelectric effect of an OLED (Organic Light-Emitting Diode) display screen, the infrared near Emitting end has an influence on the display of the screen, and the infrared Light with a certain energy in a bright screen state causes the corresponding area of the screen to flicker.
In the prior art, whether the mobile phone is in a close state or not is confirmed through an infrared light intensity value sensed by an infrared proximity sensor, so that screen flashing is eliminated, but the confirmation process is more complicated and additionally increases calculation cost and time due to data calculation involving multiple steps.
Disclosure of Invention
In view of the above, embodiments of the present application provide a proximity sensor, a control method thereof, an electronic device, and a computer-readable storage medium, which can solve the problem of screen flashing and reduce the calculation cost and the calculation time through simple hardware setting by setting a plurality of emission light sources of an emission end and maintaining the total emission power of the emission end to be equal to the rated emission power of the emission end.
An embodiment of the present application provides a proximity sensor, including: a receiving end and a transmitting end; the transmitting end comprises a plurality of transmitting light sources, and the difference between the sum of the transmitting power of each transmitting light source and the rated transmitting power of the transmitting end is smaller than a preset value.
The embodiment of the application also provides a proximity sensor control method, which is applied to a mobile terminal, wherein the mobile terminal is provided with a proximity sensor, the transmitting end of the proximity sensor comprises a plurality of transmitting light sources, and the method comprises the following steps: obtaining rated transmitting power of the transmitting end; determining emission light sources to be driven and emission power of the emission light sources to be driven according to a preset driving rule and the rated emission power, wherein the difference between the sum of the emission power of the emission light sources to be driven and the rated emission power is smaller than a preset value; and driving each emission light source to be driven to emit infrared signals according to the determined emission power.
An embodiment of the present application further provides an electronic device, including: the proximity sensor control system comprises a memory, a processor, a computer program stored on the memory and capable of running on the processor, and the proximity sensor provided by the above embodiment, wherein when the processor executes the computer program, the proximity sensor control method provided by the above embodiment is realized.
The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the proximity sensor control method provided in the foregoing embodiment.
According to the embodiment of the application, the infrared signals are transmitted by the plurality of transmitting light sources simultaneously, the power of each transmitting light source can be set to be a lower value, and meanwhile, the power is not influenced because the energy of the receiving end is the sum of the infrared energy transmitted by the plurality of transmitting light sources, so that the problem of screen flashing can be solved, and the detection distance can be guaranteed.
Drawings
FIG. 1 is a schematic view of a proximity sensor provided in accordance with an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a positional relationship between a light emitting source and a receiving end in a proximity sensor according to an embodiment of the present disclosure;
fig. 3 is a schematic view illustrating another positional relationship between the emitting light source and the receiving end in the proximity sensor according to the embodiment of the present disclosure;
fig. 4 is a schematic view illustrating another positional relationship between the emitting light source and the receiving end in the proximity sensor according to the embodiment of the present disclosure;
fig. 5 is a schematic flow chart illustrating an implementation of a proximity sensor control method according to an embodiment of the present application;
fig. 6 is a schematic flow chart illustrating an implementation of a proximity sensor control method according to another embodiment of the present application;
fig. 7 is a schematic flow chart illustrating an implementation of a proximity sensor control method according to another embodiment of the present application;
fig. 8 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application;
fig. 9 is a schematic diagram of a hardware structure of the electronic device.
Detailed Description
To further clarify the technical measures and effects taken by the present application to achieve the intended purpose of the invention, the following detailed description is given, along with the accompanying drawings and preferred embodiments, of specific embodiments, structures, features and effects according to the present application.
Referring to fig. 1, fig. 1 is a schematic view of a proximity sensor according to an embodiment of the present disclosure. The proximity sensor can be specifically an infrared proximity sensor, and can be arranged in a mobile terminal, wherein the mobile terminal comprises a mobile phone, a notebook computer, a tablet computer, a vehicle-mounted computer, an intelligent wearable device and other electronic devices which can be used in moving. The proximity sensor includes: a receiving end 10 and a transmitting end 20.
The transmitting terminal 20 includes a plurality of transmitting light sources 201, and a difference between a sum of transmitting powers of the transmitting light sources 201 and a rated transmitting power of the transmitting terminal 20 is smaller than a preset value. The emission light source 201 emits a signal, specifically an infrared signal.
The nominal emission power refers to the emission power of the emission end of the proximity sensor when the emission end has an emission light source. The value of the nominal transmission power is related to the model of the mobile terminal and factory settings.
The preset value is a small value, and can be set by self-definition, for example, 0.2, 0, etc., so as to ensure that the difference between the sum of the emission powers of the emission light sources 201 and the rated emission power of the emission end 20 is small. Preferably, the sum of the emission power of the emission light sources 201 is the same as the rated emission power of the emission end 20.
Alternatively, as shown in fig. 2, a plurality of emission light sources 201 of the emission end 20 are disposed around the receiving end 10. The number of the emission light sources 201 may specifically be an even number, such as 2 or 4 or more, or an odd number, such as 3 or 5 or more. As shown in fig. 2, the number of the emitting light sources 201 is 4, and 4 emitting light sources 201 may be arranged around the receiving end 10. Preferably, the distances between two adjacent emission light sources 201 are equal.
Further, when the number of the emission light sources 201 is 2, as shown in fig. 3, the 2 emission light sources 201 may be located at both lateral ends of the receiving end 10, or as shown in fig. 4, the 2 emission light sources 201 may be located at both longitudinal ends of the receiving end 10.
Optionally, the plurality of emitting light sources 201 are equidistant from the receiving end 10.
It is understood that, in practical applications, the plurality of emitting light sources 201 may not be limited to be arranged around the receiving end 10, and may be arranged around the receiving end 10 for multiple circles according to the number of the emitting light sources 201. The plurality of emission light sources 201 are uniformly surrounded around the receiving end 10. Alternatively, the distance between each circle of the emitting light source 201 and the receiving end 10 is increased or decreased from near to far in an equal ratio. Each emission light source 201 in the same circle of emission light sources 201 is equidistant from the receiving end 10.
In the embodiment of the application, through using a plurality of transmitting light sources to emit infrared signals simultaneously, the power of each transmitting light source can be set to be a lower value, and simultaneously, the power is not influenced because the energy of the receiving end is the sum of the infrared energy emitted by the plurality of transmitting light sources, so that the problem of screen flashing can be solved, and the detection distance can be ensured.
Fig. 5 is a schematic implementation flow chart of a proximity sensor control method according to an embodiment of the present disclosure. The proximity sensor setting method may be applied to a mobile terminal equipped with the proximity sensor shown in fig. 1 described above, the transmitting end of which includes a plurality of transmitting light sources. As shown in fig. 5, the proximity sensor control method includes:
s101, obtaining rated transmitting power of a transmitting end;
the nominal emission power refers to the emission power of the emission end of the proximity sensor under the condition that the emission end is provided with one emission light source. The rated emission power varies with the light environment outside the handset.
S102, determining an emission light source to be driven and the emission power of the emission light source to be driven according to a preset driving rule and a rated emission power;
the emission light sources to be driven may be all emission light sources or may be part of emission light sources according to a preset driving rule. That is, all the emission light sources may be driven to emit infrared signals at a time, or a part of the emission light sources may be driven to emit infrared signals first, and then the driven emission light sources may be dynamically increased or decreased according to the state of the splash screen.
The difference between the sum of the emission power of the emission light sources to be driven and the rated emission power of the emission end is smaller than a preset value. Alternatively, the power value obtained by dividing the rated emission power by the number of the emission light sources to be driven may be used as the value of the emission power of each emission light source to be driven.
And S103, driving each emission light source to be driven, and emitting an infrared signal according to the determined emission power.
In the embodiment of the application, through using a plurality of transmitting light sources to emit infrared signals simultaneously, the power of each transmitting light source can be set to be a lower value, and simultaneously, the power is not influenced because the energy of the receiving end is the sum of the infrared energy emitted by the plurality of transmitting light sources, so that the problem of screen flashing can be solved, and the detection distance can be ensured.
Fig. 6 is a schematic implementation flow chart of a proximity sensor control method according to another embodiment of the present application. The proximity sensor setting method may be applied to a mobile terminal equipped with the proximity sensor shown in fig. 1 described above, the transmitting end of which includes a plurality of transmitting light sources. In the embodiment, the predetermined driving rule is to drive the part emitting light source for the first time. Unlike the embodiment shown in fig. 5, as shown in fig. 6, after step S103, the method further includes the following steps:
s201, if the screen flashing happens at present, determining the transmitting power of each transmitting light source according to the total number of the transmitting light sources and the rated transmitting power;
specifically, whether screen flashing happens currently is judged, and if screen flashing happens currently, the emitting power of each emitting light source is appropriate and does not need to be adjusted. If the current screen flashing happens, which indicates that the transmitting power of a single transmitting light source is too high and needs to be adjusted, the transmitting power of each transmitting light source is determined according to the total number of the transmitting light sources and the rated transmitting power. The difference between the sum of the emission power of all the emission light sources and the rated emission power of the emission end is smaller than a preset value. Optionally, a power value obtained by dividing the rated emission power by the total number of the emission light sources is used as a new emission power value of each emission light source.
Optionally, a shortcut button, an icon, or a menu for reporting that a screen splash occurs may be preset, and when a click or press event of the shortcut button, the icon, or the menu is monitored, the screen splash is determined to occur. Or when the third-party light sensor detects that the frequency of light flicker above the display screen is greater than the preset frequency, determining that the screen flicker occurs.
S202, driving the non-working emission light source, emitting an infrared signal according to the determined emission power, and reducing the emission power of the working emission light source to the determined emission power.
Optionally, the emission power of the emission light sources to be driven in the batch is determined according to the number of the emission light sources to be driven in the batch, the number of the emission light sources to be operated and the rated emission power, the emission light sources to be driven in the batch are driven to emit infrared signals according to the determined emission power, and meanwhile, the emission power of the emission light sources to be operated is reduced to the determined emission power. And then judging whether the screen flash occurs again, if so, repeatedly executing the steps of determining the emission power of the batch of emission light sources which need to be driven and do not work according to the number of the emission light sources which need to be driven and do not work, the number of the emission light sources which need to be driven and the rated emission power, driving the batch of emission light sources which need to be driven and do not work to emit infrared signals according to the determined emission power, and simultaneously reducing the emission power of the emission light sources which do work to the determined emission power until the preset time length is exceeded and the screen flash does not occur.
The emission power of the batch of emission light sources to be driven, which are not in operation, may be a power value obtained by dividing the rated emission power by the sum of the number of emission light sources to be driven, which are not in operation, and the number of emission light sources in operation.
In particular, in practical applications, the number of non-operating light emitting sources to be driven may or may not be the same for each batch. When a plurality of emission light sources are arranged around the receiving end of the proximity sensor, the emission light sources which do not work can be driven circle by circle according to the number of circles around.
In the embodiment of the application, through using a plurality of transmitting light sources to emit infrared signals simultaneously, the power of each transmitting light source can be set to be a lower value, and simultaneously, the power is not influenced because the energy of the receiving end is the sum of the infrared energy emitted by the plurality of transmitting light sources, so that the problem of screen flashing can be solved, and the detection distance can be ensured. Furthermore, the number of the working emitting light sources is dynamically increased by driving the emitting light sources for the first time and then according to whether the screen flashing occurs, so that the infrared signals emitted by the emitting light sources are gathered around the receiving end to the maximum extent, the receiving end can receive enough infrared energy, and the working stability of the receiving end is ensured.
Fig. 7 is a schematic implementation flow chart of a proximity sensor control method according to another embodiment of the present application. The proximity sensor setting method may be applied to a mobile terminal equipped with the proximity sensor shown in fig. 1 described above, the transmitting end of which includes a plurality of transmitting light sources. A plurality of emitting light sources are disposed around the receiving end of the proximity sensor. In this embodiment, the predetermined driving rule is to drive all the light emitting sources for the first time. Unlike the embodiment shown in fig. 5, as shown in fig. 7, after step S103, the following steps are further included:
s301, if the screen flashing does not occur within the preset time, closing the working transmitting light sources according to the sequence from far to near from the receiving end, and adjusting the transmitting power of the rest of the non-closed working transmitting light sources according to the rated transmitting power;
s302, if the screen flashing happens, the emitting light source which is turned off last time before the screen flashing happens is re-driven, the infrared light signal is emitted according to the emitting power before the turning-off, and the emitting power of the non-re-driven emitting light source which is working is adjusted according to the rated emitting power.
Optionally, a shortcut button, an icon, or a menu for reporting that a screen splash occurs may be preset, and when a click or press event of the shortcut button, the icon, or the menu is monitored, the screen splash is determined to occur. Or when the third-party light sensor detects that the frequency of light flicker above the display screen is greater than the preset frequency, determining that the screen flicker occurs.
If the screen flashing does not occur within the preset time length, the working emission light sources are turned off in batches according to the sequence from far to near from the receiving end, and the emission power of the remaining non-turned-off working emission light sources is adjusted according to the rated emission power, so that the difference between the sum of the emission power of the working emission light sources and the rated emission power of the emitting end is smaller than a preset value.
It will be appreciated that as the number of active light emitting sources is reduced, the emission power of the individual light emitting sources increases and, correspondingly, the chance of a flicker occurring increases. Therefore, after each batch of working emission light sources are turned off, whether screen flashing occurs is judged, if the screen flashing occurs, and the power of a single emission light source is over high, the emission light source which is turned off last time before the screen flashing occurs is re-driven, an infrared light signal is emitted according to the emission power before turning off, and the emission power of the non-re-driven working emission light source is adjusted according to the rated emission power, so that the difference between the sum of the emission power of the working emission light sources and the rated emission power of an emission end is smaller than a preset value. If the screen flash does not occur, further closing the next batch of emission light sources, and repeating the steps until the emission light source closed last time before the screen flash occurs is re-driven when the screen flash occurs, emitting the infrared light signal according to the emission power before closing, and adjusting the emission power of the non-re-driven emission light source which is working according to the rated emission power.
In the embodiment of the application, through using a plurality of transmitting light sources to emit infrared signals simultaneously, the power of each transmitting light source can be set to be a lower value, and simultaneously, the power is not influenced because the energy of the receiving end is the sum of the infrared energy emitted by the plurality of transmitting light sources, so that the problem of screen flashing can be solved, and the detection distance can be ensured. Furthermore, all the emitting light sources are driven for the first time, and then the number of the emitting light sources in work is dynamically reduced according to whether screen flashing occurs or not, so that infrared signals emitted by the emitting light sources are gathered around the receiving end to the maximum extent, the receiving end can be ensured to receive enough infrared energy, and the working stability of the receiving end is ensured.
Referring to fig. 8, fig. 8 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
The electronic apparatus described in this embodiment includes:
a memory 801, a processor 802 and a computer program stored on the memory 801 and executable on the processor 802, which when executed by the processor 802, implement the proximity sensor control method described in the embodiments of fig. 5 and 6 above.
Further, the electronic device further includes:
at least one input device 803, at least one output device 804, and a proximity sensor 805 as shown in fig. 1.
The memory 801, the processor 802, the input device 803, the output device 804, and the proximity sensor 805 are connected by a bus 806.
The input device 803 may be a camera, a touch panel, a physical button, or the like. The output device 804 may specifically be a display screen.
The Memory 801 may be a high-speed Random Access Memory (RAM) Memory or a non-volatile Memory (non-volatile Memory), such as a disk Memory. The memory 801 is used to store a set of executable program code, and the processor 802 is coupled to the memory 801.
Further, an embodiment of the present application also provides a computer-readable storage medium, where the computer-readable storage medium may be provided in an electronic device in the foregoing embodiments, and the computer-readable storage medium may be the memory in the foregoing embodiment shown in fig. 8. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the proximity sensor control method described in the foregoing embodiments shown in fig. 5 and 6.
For example, the electronic device may be any of various types of computer system apparatuses that are mobile or portable and perform wireless communication. In particular, the electronic apparatus may be a mobile phone or a smart phone (e.g., iPhone (TM) -based phone), a Portable game device (e.g., Nintendo DS (TM), PlayStation Portable (TM), Gameboy Advance (TM), iPhone (TM)), a laptop, a PDA, a Portable internet appliance, a music player and a data storage device, other handheld devices and a head-mounted device (HMD) such as a watch, a headset, a pendant, a headset, etc., and other wearable devices (e.g., electronic glasses, electronic clothes, an electronic bracelet, an electronic necklace, an electronic tattoo, an electronic device, or a smart watch).
The electronic apparatus may also be any of a number of electronic devices including, but not limited to, cellular phones, smart phones, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders, video recorders, cameras, other media recorders, radios, medical devices, vehicle transportation equipment, calculators, programmable remote controllers, pagers, laptop computers, desktop computers, printers, netbook computers, Personal Digital Assistants (PDAs), Portable Multimedia Players (PMPs), moving picture experts group (MPEG-1 or MPEG-2) audio layer 3(MP3) players, portable medical devices, and digital cameras and combinations thereof.
In some cases, the electronic device may perform a variety of functions (e.g., playing music, displaying video, storing pictures, and receiving and sending telephone calls). If desired, the electronic apparatus may be a portable device such as a cellular telephone, media player, other handheld device, wristwatch device, pendant device, earpiece device, or other compact portable device.
As shown in fig. 9, the electronic device 110 may include control circuitry, which may include storage and processing circuitry 130. The storage and processing circuitry 130 may include memory, such as hard drive memory, non-volatile memory (e.g., flash memory or other electronically programmable erase limit memory used to form solid state drives, etc.), volatile memory (e.g., static or dynamic random access memory, etc.), and so forth, although the embodiments of the present application are not limited thereto. Processing circuitry in storage and processing circuitry 130 may be used to control the operation of electronic device 110. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 130 may be used to run software in the electronic device 110, such as an Internet browsing application, a Voice Over Internet Protocol (VOIP) telephone call application, an email application, a media playing application, operating system functions, and so forth. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality based on status indicators such as status indicator lights of light emitting diodes, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 110, and the like, without limitation of the embodiments of the present application.
The electronic device 110 may also include input-output circuitry 142. The input-output circuitry 142 may be used to enable the electronic device 110 to enable input and output of data, i.e., to allow the electronic device 110 to receive data from external devices and also to allow the electronic device 110 to output data from the electronic device 110 to external devices. The input-output circuit 142 may further include a sensor 132. The sensors 132 may include ambient light sensors, optical and capacitive based proximity sensors, touch sensors (e.g., optical based touch sensors and/or capacitive touch sensors, where the touch sensors may be part of a touch display screen or may be used independently as a touch sensor structure), acceleration sensors, and other sensors, among others.
The input-output circuitry 142 may also include one or more displays, such as display 114. The display 114 may include one or a combination of liquid crystal displays, organic light emitting diode displays, electronic ink displays, plasma displays, displays using other display technologies. Display 114 may include an array of touch sensors (i.e., display 14 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The electronic device 110 may also include an audio component 136. The audio component 136 may be used to provide audio input and output functionality for the electronic device 110. The audio components 136 in the electronic device 110 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sound.
The communication circuitry 138 may be used to provide the electronic device 110 with the ability to communicate with external devices. The communication circuitry 138 may include analog and digital input-output interface circuitry, and wireless communication circuitry based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 138 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in Communication circuitry 138 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuitry 138 may include a near field communication antenna and a near field communication transceiver. The communications circuitry 138 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and so forth.
The electronic device 110 may further include a battery, power management circuitry, and other input-output units 140. The input-output unit 140 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, etc.
A user may input commands through the input-output circuitry 142 to control operation of the electronic device 110, and may use output data of the input-output circuitry 142 to enable receiving status information and other outputs from the electronic device 110.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a readable storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned readable storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In view of the above description of the proximity sensor, the control method thereof, the electronic device and the computer readable storage medium provided by the present application, those skilled in the art will recognize that changes may be made in the embodiments and applications of the proximity sensor according to the teachings of the present application.

Claims (3)

1. A proximity sensor control method is characterized in that the method is applied to a mobile terminal, a proximity sensor is configured on the mobile terminal, a transmitting end of the proximity sensor comprises a plurality of transmitting light sources, and the plurality of transmitting light sources are arranged around a receiving end of the proximity sensor for a plurality of circles;
a plurality of emission light sources uniformly surround the receiving end; or the distance between each circle of emission light source and the receiving end is increased or decreased in an equal ratio from near to far;
the method comprises the following steps:
obtaining rated transmitting power of the transmitting end;
determining emission light sources to be driven and emission power of the emission light sources to be driven according to a preset driving rule and the rated emission power, wherein the difference between the sum of the emission power emitted by the emission light sources to be driven simultaneously and the rated emission power is smaller than a preset value;
the preset driving rule is that part of the emission light source is driven for the first time; if the screen flashing happens currently, determining the emission power of the emission light sources which do not work and need to be driven according to the number of the emission light sources which do not work and need to be driven, the number of the emission light sources which do work and the rated emission power, driving the emission light sources which do not work and need to be driven to emit infrared signals according to the determined emission power, and reducing the emission power of the emission light sources which do work to the determined emission power; judging whether the screen flashing occurs, if so, repeatedly executing the steps of determining the emission power of the batch of emission light sources which need to be driven and do not work according to the number of the emission light sources which need to be driven and do not work, the number of the emission light sources which need to be driven and the rated emission power, driving the batch of emission light sources which need to be driven and do not work to emit infrared signals according to the determined emission power, and reducing the emission power of the emission light sources which do work to the determined emission power until the preset time length is exceeded and the screen flashing does not occur; or,
the preset driving rule is that all the emission light sources are driven for the first time; if the screen flashing does not occur within the preset time, closing the working transmitting light sources according to the sequence from far to near from the receiving end, and adjusting the transmitting power of the remaining non-closed working transmitting light sources according to the rated transmitting power; if the screen flashing happens, the emission light source which is closed for the last time before the screen flashing happens is re-driven, the infrared light signal is emitted according to the emission power before the screen flashing happens, and the emission power of the non-re-driven emission light source which is working is adjusted according to the rated emission power; and driving each emission light source to be driven to emit infrared signals according to the determined emission power.
2. An electronic device, comprising: the proximity sensor comprises a memory, a processor, a computer program stored on the memory and capable of running on the processor, and a proximity sensor, wherein the transmitting end of the proximity sensor comprises a plurality of transmitting light sources which are arranged around the receiving end of the proximity sensor for a plurality of circles;
a plurality of emission light sources uniformly surround the receiving end; or the distance between each circle of emission light source and the receiving end is increased or decreased in an equal ratio from near to far;
the distance between the same circle of the emission light source and the receiving end is equal;
characterized in that the processor, when executing the computer program, implements a proximity sensor control method according to claim 1.
3. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a proximity sensor control method according to claim 1.
CN201810706860.5A 2018-07-02 2018-07-02 Proximity sensor, method of controlling the same, electronic device, and computer-readable storage medium Expired - Fee Related CN108983211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810706860.5A CN108983211B (en) 2018-07-02 2018-07-02 Proximity sensor, method of controlling the same, electronic device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810706860.5A CN108983211B (en) 2018-07-02 2018-07-02 Proximity sensor, method of controlling the same, electronic device, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN108983211A CN108983211A (en) 2018-12-11
CN108983211B true CN108983211B (en) 2022-08-09

Family

ID=64539334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810706860.5A Expired - Fee Related CN108983211B (en) 2018-07-02 2018-07-02 Proximity sensor, method of controlling the same, electronic device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN108983211B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618031B (en) * 2018-12-25 2020-06-12 Oppo广东移动通信有限公司 Electronic device and control method thereof
CN109887421A (en) * 2018-12-27 2019-06-14 李宗杰 Range sensor is placed in the application under electronic console
CN109724640B (en) * 2019-01-12 2021-04-06 Oppo广东移动通信有限公司 Proximity sensor calibration method, electronic device, and computer-readable storage medium
CN109828636A (en) * 2019-01-30 2019-05-31 维沃移动通信有限公司 A kind of display module and electronic equipment
CN112751617B (en) * 2019-10-31 2022-05-20 Oppo广东移动通信有限公司 Electronic setting, control method and device thereof, and storage medium
CN111865342B (en) * 2020-07-07 2021-11-02 上海龙旗科技股份有限公司 Detection device and intelligent wearable equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724748A (en) * 2012-06-29 2012-10-10 华为技术有限公司 Power adjusting method and communication equipment of MIMO (multiple input multiple output) system
CN104320189A (en) * 2014-10-20 2015-01-28 北京智谷睿拓技术服务有限公司 Visible optical signal transmission control method, transmission control device and transmission equipment
CN106291740A (en) * 2016-09-07 2017-01-04 华讯方舟科技有限公司 Power regulating method, device and human body safety check equipment
CN107527596A (en) * 2017-09-29 2017-12-29 晨星半导体股份有限公司 The Poewr control method and control device of the backlight of display device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012014819A1 (en) * 2010-07-26 2012-02-02 シャープ株式会社 Display device
CN106357922B (en) * 2016-10-12 2018-05-01 广东欧珀移动通信有限公司 State monitoring method, device and the terminal device of terminal device
CN107968883B (en) * 2017-11-22 2020-08-14 Oppo广东移动通信有限公司 Distance state detection method and device, storage medium and electronic equipment
CN107831901A (en) * 2017-11-22 2018-03-23 广东欧珀移动通信有限公司 Display panel control method, device, storage medium and electronic installation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724748A (en) * 2012-06-29 2012-10-10 华为技术有限公司 Power adjusting method and communication equipment of MIMO (multiple input multiple output) system
CN104320189A (en) * 2014-10-20 2015-01-28 北京智谷睿拓技术服务有限公司 Visible optical signal transmission control method, transmission control device and transmission equipment
CN106291740A (en) * 2016-09-07 2017-01-04 华讯方舟科技有限公司 Power regulating method, device and human body safety check equipment
CN107527596A (en) * 2017-09-29 2017-12-29 晨星半导体股份有限公司 The Poewr control method and control device of the backlight of display device

Also Published As

Publication number Publication date
CN108983211A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
CN108983211B (en) Proximity sensor, method of controlling the same, electronic device, and computer-readable storage medium
CN110109759B (en) Catton optimization method, server, electronic device and computer-readable storage medium
CN109271014B (en) Method and equipment for adjusting screen brightness
CN109495871B (en) Bluetooth connection control method, electronic device and computer readable storage medium
US9265126B2 (en) Method and apparatus for using portable terminal
CN109150326A (en) Antenna impedance adjustment method, electronic device and computer readable storage medium
CN109067984B (en) Data transmission method, electronic device and computer readable storage medium
JP7193641B2 (en) Electromagnetic interference control method and related products
CN103713804A (en) Equipment control method and device and electronic equipment
US11399088B2 (en) Method for establishing communication connection and related products
CN109684011B (en) Interface display control method, electronic device and computer readable storage medium
CN108924358A (en) proximity sensor control method, electronic device and computer readable storage medium
CN111681621A (en) Communication method and driving structure of time schedule controller and power management chip
CN108769401B (en) Signal detection method and related product
CN107124902A (en) Display backlight control method, device and terminal
KR20210068127A (en) Display control method and related products
CN104850274A (en) Method and device for realizing key function by infrared induction
CN109885201B (en) Touch area detection method for touch screen, electronic device and computer readable storage medium
CN110429696B (en) Battery charging method, electronic device and computer readable storage medium
CN110058980B (en) Terminal start time early warning method, electronic device and computer readable storage medium
US20220179261A1 (en) Light guide plate structure, display device and electronic device
CN108834206B (en) Control method of electronic device and electronic device
CN104348949A (en) Method and apparatus for switching operation state of electronic device
WO2022217730A1 (en) Grayscale control method and display panel
CN112438007B (en) Charging prompt method and related product

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220809

CF01 Termination of patent right due to non-payment of annual fee