CN106686247A - Proximity transducer detecting method and mobile terminal - Google Patents

Proximity transducer detecting method and mobile terminal Download PDF

Info

Publication number
CN106686247A
CN106686247A CN201710025321.0A CN201710025321A CN106686247A CN 106686247 A CN106686247 A CN 106686247A CN 201710025321 A CN201710025321 A CN 201710025321A CN 106686247 A CN106686247 A CN 106686247A
Authority
CN
China
Prior art keywords
value
diffraction
receiving device
infrared light
performance number
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.)
Granted
Application number
CN201710025321.0A
Other languages
Chinese (zh)
Other versions
CN106686247B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710025321.0A priority Critical patent/CN106686247B/en
Publication of CN106686247A publication Critical patent/CN106686247A/en
Application granted granted Critical
Publication of CN106686247B publication Critical patent/CN106686247B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V8/00Prospecting or detecting by optical means
    • G01V8/10Detecting, e.g. by using light barriers
    • 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)
  • Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Life Sciences & Earth Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Geophysics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a proximity transducer detecting method and a mobile terminal. The method comprises the following steps: detecting a first diffraction value of infrared light transmitted by a transmitting device, wherein the first diffraction value is a power value of the infrared light received by a receiving device; judging whether the first diffraction value is greater than a preset value or not; and if the first diffraction value is greater than the preset value, reducing transmitting power of the transmitting device to targeted transmitting power, so that the power value of the infrared light received by the receiving device is not greater than the preset value. According to the proximity transducer detecting method provided by the invention, when a user uses functions of a proximity transducer of the mobile terminal, the receiving power value detected by the proximity transducer is accurate, and the detecting performance of the proximity transducer can be improved.

Description

A kind of proximity transducer detection method and mobile terminal
Technical field
The present invention relates to communication technical field, more particularly to a kind of proximity transducer detection method and mobile terminal.
Background technology
Proximity transducer is a kind of common sensor being applied in mobile terminal, and proximity transducer is used as The detection Rule of judgment being turned on and off of application function.For example, the proximity transducer in touch screen mobile terminal can be used for control The open and close of touch display screen during system call, to avoid interference of the face to touch-screen during call from causing maloperation.
Proximity transducer is generally made up of transmitting tube and reception pipe, the infrared energy size that can be received by detection Come judgment object away from or be close to.The infrared light of infrared transmitting tube transmitting is by surface and un-densified air under a touch screen Layer multiple reflections and the infrared light of infrared transmitting tube transmitting are sealed in red by surface on the touchscreen and lower surface multiple reflections The factors such as outer reception pipe, are the main causes of infrared proximity transducer generation diffraction value.But due to mobile terminal structure design Uniformity, the infrared hole light transmittance uniformity of touch-screen, different use environment caused by the original such as aging, the dirty, feed liquor in infrared hole Because increasing infrared x-ray diffraction value, or even beyond detection range, so as to influence infrared detections.
The content of the invention
The embodiment of the present invention provides a kind of proximity transducer detection method and mobile terminal, to solve proximity transducer reception Infrared light beyond detection range, influence infrared detections problem.
In a first aspect, a kind of proximity transducer detection method is the embodiment of the invention provides, including:
The first diffraction value of the infrared light of the ballistic device transmitting is detected, the first diffraction value is the receiving device The performance number of the infrared light for receiving;
Judge the first diffraction value whether more than preset value;
If the first diffraction value is more than the preset value, the transmission power of the ballistic device is reduced to target hair Power is penetrated, so that the performance number that the receiving device receives infrared light is not more than the preset value.
Second aspect, the embodiment of the present invention also provides a kind of mobile terminal, including:
Detection module, the first diffraction value of the infrared light for detecting the ballistic device transmitting, the first diffraction value It is the performance number of the infrared light that the receiving device is received;
Judge module, for judging the first diffraction value whether more than preset value;
Module is reduced, if being more than the preset value for the first diffraction value, by the transmitting work(of the ballistic device Rate is reduced to objective emission power, so that the performance number that the receiving device receives infrared light is not more than the preset value.
So, in the embodiment of the present invention, the first diffraction value of the infrared light of the ballistic device transmitting, described first are detected Diffraction value is the performance number of the infrared light that the receiving device is received;Judge the first diffraction value whether more than preset value; If the first diffraction value is more than the preset value, the transmission power of the ballistic device is reduced to objective emission power, So that the performance number that the receiving device receives infrared light is not more than the preset value.So, when user uses mobile terminal During proximity transducer function, the received power value of proximity transducer detection is in detection range, and detection received power value is more accurate Really, it is possible to increase the detection performance of proximity transducer.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to needed for embodiment of the present invention description The accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, For those of ordinary skill in the art, without having to pay creative labor, can also be obtained according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is a kind of flow chart of proximity transducer detection method that first embodiment of the invention is provided;
Fig. 2 is the flow chart of another proximity transducer detection method that second embodiment of the invention is provided;
Fig. 3 be a kind of diffraction value correspondence that second embodiment of the invention is provided it is interval put out screen door limit value and bright screen threshold value Exemplary graph;
Fig. 4 be another diffraction value correspondence that second embodiment of the invention is provided it is interval put out screen door limit value and bright screen thresholding Exemplary graph;
Fig. 5 is a kind of structure chart of mobile terminal that third embodiment of the invention is provided;
Fig. 6 is the structure chart of another mobile terminal that third embodiment of the invention is provided;
Fig. 7 is the structure chart of another mobile terminal that third embodiment of the invention is provided;
Fig. 8 is the structure chart of another mobile terminal that third embodiment of the invention is provided;
Fig. 9 is the structure chart of another mobile terminal that fourth embodiment of the invention is provided.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
First embodiment
Referring to Fig. 1, Fig. 1 is a kind of flow chart of proximity transducer detection method provided in an embodiment of the present invention, such as Fig. 1 institutes Show, comprise the following steps:
Step 101, the first diffraction value for detecting the infrared light that the ballistic device is launched, the first diffraction value is described The performance number of the infrared light that receiving device is received.
The proximity transducer of mobile terminal can include ballistic device and receiving device, wherein, above-mentioned ballistic device and connect Receiving device can include transmitting tube and reception pipe.When user conversed using mobile terminal or using mobile terminal other When function triggering proximity transducer detection function is opened, the ballistic device of proximity transducer can be launched with default transmission power Infrared light, receiving device is received by the infrared light after reflection, and detects the performance number of the infrared light for receiving.Above-mentioned first around It can be that receiving device is received by after the infrared light after reflection to penetrate value, the performance number of the infrared light for detecting.
The infrared light that receiving device is received can be included by the way that surface and un-densified air layer are multiple under a touch screen The infrared light of receiving device is sealed in after reflection and receiving device is sealed in by surface on the touchscreen and lower surface multiple reflections Infrared light, it is also possible to including the infrared light that the receiving device after object reflects is received.
Step 102, whether the first diffraction value is judged more than preset value, if the first diffraction value is default more than described Value, then perform step 103.
Above-mentioned preset value can be mobile terminal factory preset, or mobile terminal receives user preset, or Person is that mobile terminal receives other equipment transmission.Above-mentioned preset value can be less than above-mentioned proximity transducer detection infrared light Detect the value of range.
Just the diffraction value can be judged after a diffraction value is often detected, if the first diffraction value is more than default Value, then perform step 103;If the first diffraction value is less than preset value, terminates flow or perform other steps, the end in Fig. 1 Flow is only a kind of citing.
Step 103, the transmission power of the ballistic device is reduced to objective emission power, so that the receiving device connects The performance number for receiving infrared light is not more than the preset value.
In this step, transmission power can be set several grades, is arranged according to power order from big to small Row.If the first diffraction value is more than preset value, the effect for reducing the first diffraction value can be reached by reducing transmission power.Can Launch red using the transmission power reduced after a grade the transmission power of ballistic device first is reduced into a grade, and is detected The received power value that receiving device is detected when outer smooth, if the received power value is still above above-mentioned preset value, by above-mentioned hair The transmission power of emitter part reduces a grade again, until when transmission power is reduced to target power, receiving device is received The performance number of infrared light be not more than above-mentioned preset value.
The transmission power of above-mentioned reduction ballistic device can be the driving current or reduction pulse by reducing transmitting fluorescent tube Number come reach reduce ballistic device transmission power purpose.
The proximity transducer detection method of the embodiment of the present invention can apply to the mobile terminal with proximity transducer, example Such as:Mobile phone, panel computer (Tablet Personal Computer), kneetop computer (Laptop Computer), individual number Word assistant (personal digital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or Wearable device (Wearable Device) etc..
The proximity transducer detection method of the embodiment of the present invention, detects the first diffraction value of infrared light, first diffraction It is worth the performance number of the infrared light received for the receiving device;Judge the first diffraction value whether more than preset value;If institute The first diffraction value is stated more than the preset value, then the transmission power of the ballistic device is reduced to objective emission power, wherein, When the ballistic device uses the objective emission power emission infrared light, the receiving device receives the performance number of infrared light No more than described preset value.So, when user uses mobile terminal proximity transducer function, the reception of proximity transducer detection Performance number is in detection range, and detection received power value is more accurate, it is possible to increase the detection performance of proximity transducer.
Second embodiment
Referring to Fig. 2, Fig. 2 is the flow chart of another proximity transducer detection method provided in an embodiment of the present invention, such as Fig. 2 It is shown, comprise the following steps:
Step 201, the first diffraction value for detecting the infrared light that the ballistic device is launched, the first diffraction value is described The performance number of the infrared light that receiving device is received.
The proximity transducer of mobile terminal can include ballistic device and receiving device, wherein, above-mentioned ballistic device and connect Receiving device can include transmitting tube and reception pipe.When user conversed using mobile terminal or using mobile terminal other When function triggering proximity transducer detection function is opened, the ballistic device of proximity transducer can be launched with default transmission power Infrared light, receiving device is received by the infrared light after reflection, and detects the performance number of the infrared light for receiving.Above-mentioned first around It can be that receiving device is received by after the infrared light after reflection to penetrate value, the performance number of the infrared light for detecting.
The infrared light that receiving device is received can be included by the way that surface and un-densified air layer are multiple under a touch screen The infrared light of receiving device is sealed in after reflection and receiving device is sealed in by surface on the touchscreen and lower surface multiple reflections Infrared light, it is also possible to including the infrared light that the receiving device after object reflects is received.
Optionally, the first diffraction value of the infrared light of the detection ballistic device transmitting, including:
Using first performance number of the infrared light of the receiving device detection ballistic device transmitting as the first diffraction Value.
When function of the user using mobile terminal, such as during the function such as call or false triggering detection, proximity transducer Detection function open, the ballistic device of proximity transducer launches infrared light with default transmission power, and receiving device receives anti- The infrared light penetrated simultaneously detects the performance number for receiving infrared light, and first performance number that receiving device will can be detected can be as First diffraction value.
In this embodiment, first performance number for proximity transducer being detected as the first diffraction value, so, when When user uses mobile terminal, if the first diffraction value for detecting is more than preset value, mobile terminal can be to current transmitting work( Rate is adjusted, and currently detected received power value is in default scope, improves the standard of the detection performance number of sensor True property, so as to improve sensor detection performance.
Step 202, whether the first diffraction value is judged more than preset value, if the first diffraction value is default more than described Value, then perform step 203.
Above-mentioned preset value can be mobile terminal factory preset, or mobile terminal receives user preset, or Person is that mobile terminal receives other equipment transmission.Above-mentioned preset value can be less than above-mentioned proximity transducer detection infrared light Detect the value of range.
Just the diffraction value can be judged after a diffraction value is often detected, if the first diffraction value is more than default Value, then perform step 203;If the first diffraction value is less than preset value, terminates flow or perform other steps, the end in Fig. 2 Flow is only a kind of citing.
Step 203, the diffraction value for continuing the detection proximity transducer infrared light.
Above-mentioned the first diffraction value for detecting more than above-mentioned preset value be probably due to detection means failure or due to The testing result that the unstability of local environment and other specific factors bring, therefore, it can by repeated detection close to biography The diffraction value of sensor infrared light reduces the interference that accidentalia is caused.It is more than above-mentioned preset value when the first diffraction value is detected When, continue to detect the diffraction value of the proximity transducer infrared light, and whether the diffraction value is judged more than preset value, if the diffraction Value then continues to detect the diffraction value of proximity transducer infrared light still above preset value.
If the diffraction value of the infrared light for detecting is not more than above-mentioned preset value, can be searched using the diffraction value corresponding The interval of default diffraction value, the current power value that the receiving device is received default first thresholding corresponding with the interval Value and default second threshold value are compared.Judge current power value whether more than the first threshold value or less than above-mentioned second Limit value, the first threshold value and the second threshold value can respectively be proximate to threshold value and away from threshold value.If the current power value More than first threshold value, it is believed that object is near state, and control mobile terminal puts out screen, to prevent being close to for object The maloperation of generation;If the current power value is less than second threshold value, it is believed that object is in away from state, will not There is maloperation in mobile terminal screen, control mobile terminal bright screen.
If step 204, the diffraction value of continuous n times detection are both greater than the preset value, by the transmitting of the ballistic device Power is reduced to objective emission power, so that the performance number that the receiving device receives infrared light is not more than the preset value, N It is the integer more than or equal to 2.
In this step, can to repeated detection to diffraction value judge, if the diffraction value that continuous n times are detected is all More than above-mentioned preset value, then now think that diffraction value is caused more than the interference that above-mentioned preset value is not due to specific factor, can be with By the transmission power reduction of above-mentioned ballistic device.For example, it is, more than or equal to 2, and to be less than or equal to that can set above-mentioned N 5 arbitrary integer.
Transmission power can be set several grades, be arranged according to power order from big to small.If first around Value is penetrated more than preset value, then can be reached by reducing transmission power reduces the effect of the first diffraction value.Can first by transmitting Transmission power one grade of reduction of device, and detect during using the transmission power transmitting infrared light reduced after a grade, connect The received power value that units test is arrived is received, if the received power value is still above above-mentioned preset value, by above-mentioned ballistic device Transmission power reduces a grade again, until when transmission power is reduced to target power, the infrared light that receiving device is received Performance number be not more than above-mentioned preset value.
The transmission power of above-mentioned reduction ballistic device can be the driving current or reduction pulse by reducing transmitting fluorescent tube Number come reach reduce ballistic device transmission power purpose.
Optionally, objective emission power is reduced in the transmission power by the ballistic device, so that the reception The performance number that device receives infrared light is not more than after the preset value, and methods described also includes:
The performance number that the receiving device is received default first threshold value corresponding with the second diffraction value and preset the Two threshold values are compared, wherein, the second diffraction value is that the ballistic device is infrared with the objective emission power emission Light time, the performance number that the receiving device is detected, default first threshold value is more than default second threshold value;
If the performance number that the receiving device is received is more than first threshold value, the mobile terminal is controlled to put out screen;
If the performance number that the receiving device is received is less than second threshold value, above-mentioned mobile terminal bright screen is controlled.
Wherein, above-mentioned second diffraction value can be when transmission power is reduced to target work(by the ballistic device of proximity transducer During rate, ballistic device launches infrared light, the performance number that receiving device is detected with target power.Second diffraction value can correspond to pre- If the first threshold value and the second threshold value, first threshold value and the second threshold value can be respectively according to the second diffraction value meter The value for calculating.
The current power value that receiving device is received compares with above-mentioned first threshold value and the second threshold value, judges current Whether, more than the first threshold value or less than above-mentioned second threshold value, the first threshold value and the second threshold value can be respectively for performance number It is proximate to threshold value and away from threshold value.If the current power value is more than first threshold value, it is believed that object is in Near state, control mobile terminal puts out screen, to prevent the maloperation near generation of object;If the current power value is less than institute State the second threshold value, it is believed that object is in away from state, maloperation will not occur in mobile terminal screen, control is mobile eventually End bright screen.
In addition, when the transmission power of above-mentioned ballistic device is reduced to default minimum emissive power, proximity transducer connects The diffraction value for receiving then can receive parameter still greater than above-mentioned preset value using default transmitting, can include transmission power The transmission power that ballistic device is used for the first time is adjusted to open detection function.
In this embodiment, the received power value for proximity transducer being received is corresponding with the second diffraction value first Limit value and the second threshold value are contrasted, and control mobile terminal puts out screen or bright screen, so, when user uses mobile terminal, Neng Goufang Only object is close to and produces maloperation.
Optionally, the performance number that the receiving device is received default first thresholding corresponding with the second diffraction value Value and default second threshold value are compared, including:
Determine the interval of default diffraction value residing for the second diffraction value;
The performance number that the receiving device is received default first threshold value corresponding with the interval and default second Threshold value is compared.
In this embodiment, the second diffraction value is contrasted with the scope of default diffraction value, so that it is determined that second The interval of the diffraction value residing for diffraction value.The current power value that the receiving device of proximity transducer is received and the second diffraction value Whether interval corresponding first threshold value in place and the second threshold value are compared, judge current power value more than the first threshold value Or can respectively be proximate to threshold value and away from thresholding less than above-mentioned second threshold value, the first threshold value and the second threshold value Value.If current power value is more than first threshold value, it is believed that object is near state, and control mobile terminal puts out screen, To prevent the maloperation near generation of object;If current power value is less than second threshold value, it is believed that object is in Away from state, maloperation will not occur in mobile terminal screen, control mobile terminal bright screen.Wherein, first threshold value and Two threshold values can be respectively the value calculated according to the second diffraction value.
For example, Fig. 3 and Fig. 4 are respectively the corresponding interval exemplary graph for putting out screen door limit value and bright screen threshold value of diffraction value.Fig. 3 It is mobile terminal when engineering mode is calibrated, diffraction value is corresponding to put out screen door limit value and bright screen threshold value, and Fig. 4 is to make a phone call to face When calibrating, diffraction value is corresponding to put out screen door limit value and bright screen threshold value.
Such as Fig. 3, when the second diffraction value is 100, it is determined that the interval scope between 0 to 200 of residing diffraction value, should be around Penetrate the corresponding screen door that puts out of value and be limited to 210, corresponding bright screen thresholding is 140.So, when proximity transducer receiving device is received When performance number is more than 210, control mobile terminal puts out screen;When the performance number that proximity transducer receiving device is received is less than 140, Control mobile terminal bright screen.
When the second diffraction value is 600, it is determined that the interval scope between 550 to 850 of residing diffraction value, the diffraction value The corresponding screen door that puts out is limited to 680, and corresponding bright screen thresholding is 625.So, when the power that proximity transducer receiving device is received When value is more than 680, control mobile terminal puts out screen;When the performance number that proximity transducer receiving device is received is less than 625, control Mobile terminal bright screen.
In this embodiment, the interval of scope residing for the second diffraction value, the work(that the receiving device is received are determined Rate value default first threshold value corresponding with the interval and default second threshold value are compared, in such manner, it is possible to improve compare Efficiency, improve to mobile terminal screen put out screen or bright screen control efficiency, so as to improve the performance of proximity transducer.
The embodiment of the present invention on the basis of the corresponding embodiments of Fig. 1, when the diffraction value of continuous n times detection be both greater than it is described During preset value, the transmission power of the ballistic device is reduced to objective emission power, can reduce that accidentalia causes is dry Disturb, it is possible to increase the accuracy of testing result, improve the detection performance of proximity transducer.
3rd embodiment
Referring to Fig. 5, Fig. 5 is a kind of structure chart of mobile terminal that the present invention implements offer, as shown in figure 5, mobile terminal 500 include:Detection module 501, judge module 502 and reduction module 503, wherein:
Detection module 501, the first diffraction value of the infrared light for detecting the ballistic device transmitting, first diffraction It is worth the performance number of the infrared light received for the receiving device;
Judge module 502, for judging the first diffraction value whether more than preset value;
Module 503 is reduced, if being more than the preset value for the first diffraction value, by the transmitting of the ballistic device Power is reduced to objective emission power, so that the performance number that the receiving device receives infrared light is not more than the preset value.
Optionally, the detection module 501 is used to detect the receiving device infrared light of the ballistic device transmitting First performance number as the first diffraction value.
Optionally, as shown in fig. 6, the reduction module 503 includes:
Detection unit 5031, if being more than the preset value for the first diffraction value, continues to detect described close to biography The diffraction value of sensor infrared light;
Unit 5032 is reduced, if being both greater than the preset value for the diffraction value of continuous n times detection, by the transmitter The transmission power of part is reduced to objective emission power so that the receiving device receive infrared light performance number be not more than it is described Preset value, N is the integer more than or equal to 2.
Optionally, as shown in fig. 7, the mobile terminal 500 also includes:
Comparison module 504, performance number for the receiving device to be received corresponding with the second diffraction value default the One threshold value and default second threshold value are compared, wherein, the second diffraction value is the ballistic device with the target During transmission power transmitting infrared light, the performance number that the receiving device is detected, default first threshold value is more than described pre- If the second threshold value;
First control module 505, if being more than first threshold value, control for the performance number that the receiving device is received Make the mobile terminal and put out screen;
Second control module 506, if being less than second threshold value, control for the performance number that the receiving device is received Make the mobile terminal bright screen.
Optionally, as shown in figure 8, the comparison module 504 includes:
Determining unit 5041, the interval for determining default diffraction value residing for the second diffraction value;
Comparing unit 5042, the performance number corresponding with the interval default first for the receiving device to be received Threshold value and default second threshold value are compared.
Mobile terminal 500 can realize each process that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 2, to keep away Exempt to repeat, repeat no more here.
The mobile terminal 500 of the embodiment of the present invention, detects the first diffraction value of the infrared light of the ballistic device transmitting, institute State the performance number that the first diffraction value is the infrared light that the receiving device is received;Judge the first diffraction value whether more than pre- If value;If the first diffraction value is more than the preset value, the transmission power of the ballistic device is reduced to objective emission Power, so that the performance number that the receiving device receives infrared light is not more than the preset value.So, when user uses movement During terminal proximity transducer function, the received power value of proximity transducer detection is in detection range, detects received power value It is more accurate, it is possible to increase the detection performance of proximity transducer.
Fourth embodiment
Referring to Fig. 9, Fig. 9 is the structure chart of another mobile terminal that the present invention implements offer, as shown in figure 9, mobile whole End 900 includes:At least one processor 901, memory 902, at least one network interface 904 and user interface 903.It is mobile whole Each component in end 900 is coupled by bus system 905.It is understood that bus system 905 is used to realize these components Between connection communication.Bus system 905 is also believed in addition to including data/address bus including power bus, controlling bus and state Number bus.But for the sake of for clear explanation, various buses are all designated as bus system 905 in fig .9.
Wherein, user interface 903 can include display, keyboard or pointing device (for example, mouse, trace ball (track ball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 902 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable P ROM, EPROM), Electrically Erasable Read Only Memory (Electrically EP ROM, EEPROM) Or flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous D RAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SD RAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SD RAM, ESDRAM), synchronous connect Connect dynamic random access memory (Synch link D RAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 902 of system and method described herein be intended to including but not limited to these With the memory of any other suitable type.
In some embodiments, memory 902 stores following element, can perform module or data structure, or Person their subset, or their superset:Operating system 9021 and application program 9022.
Wherein, operating system 9021, comprising various system programs, such as ccf layer, core library layer, driving layer etc. are used for Realize various basic businesses and process hardware based task.Application program 9022, comprising various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 9022.
In embodiments of the present invention, by the program for calling memory 902 to store or instruction, specifically, can be application The program stored in program 9022 or instruction, processor 901 are used for:
The first diffraction value of the infrared light of the ballistic device transmitting is detected, the first diffraction value is the receiving device The performance number of the infrared light for receiving;
Judge the first diffraction value whether more than preset value;
If the first diffraction value is more than the preset value, the transmission power of the ballistic device is reduced to target hair Power is penetrated, so that the performance number that the receiving device receives infrared light is not more than the preset value.
The method that the embodiments of the present invention are disclosed can apply in processor 901, or be realized by processor 901. Processor 901 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 901 or software form.Above-mentioned treatment Device 901 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to embodiment of the present invention institute The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor And software module combination performs completion.Software module may be located at random access memory, and flash memory, read-only storage may be programmed read-only In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at Memory 902, processor 901 reads the information in memory 902, with reference to the step of its hardware completion above method.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realized for software, can be realized by performing the module (such as process, function etc.) of function described herein herein Described technology.Software code is storable in memory and by computing device.Memory can within a processor or Realize processor outside.
Optionally, processor 901 performs the first diffraction value of the detection infrared light, including:
Using first performance number of the infrared light of the receiving device detection ballistic device transmitting as the first diffraction Value.
Optionally, if processor 901 performs the first diffraction value more than the preset value, by the transmitter The transmission power of part is reduced to objective emission power so that the receiving device receive infrared light performance number be not more than it is described Preset value, including:
If the first diffraction value is more than the preset value, continue to detect the diffraction of the proximity transducer infrared light Value;
If the diffraction value of continuous n times detection is both greater than the preset value, by the transmission power reduction of the ballistic device To objective emission power so that the performance number that the receiving device receives infrared light is not more than the preset value, N be more than or The integer that person is equal to 2.
Optionally, processor 901 is additionally operable to:The performance number that the receiving device is received is corresponding with the second diffraction value Default first threshold value and default second threshold value are compared, wherein, the second diffraction value is the ballistic device with institute When stating objective emission power emission infrared light, the performance number that the receiving device is detected, default first threshold value is more than Default second threshold value;
If the performance number that the receiving device is received is more than first threshold value, the mobile terminal is controlled to put out screen;
If the performance number that the receiving device is received is less than second threshold value, the mobile terminal bright screen is controlled.
Optionally, to perform the performance number for receiving the receiving device corresponding with the second diffraction value for processor 901 Default first threshold value and default second threshold value be compared, including:
Determine the interval of default diffraction value residing for the second diffraction value;
The performance number that the receiving device is received default first threshold value corresponding with the interval and default second Threshold value is compared.
Mobile terminal 900 can realize each process of mobile terminal realization in previous embodiment, to avoid repeating, here Repeat no more.
The mobile terminal 900 of the embodiment of the present invention, detects the first diffraction value of the infrared light of the ballistic device transmitting, institute State the performance number that the first diffraction value is the infrared light that the receiving device is received;Judge the first diffraction value whether more than pre- If value;If the first diffraction value is more than the preset value, the transmission power of the ballistic device is reduced to objective emission Power, so that the performance number that the receiving device receives infrared light is not more than the preset value.So, when user uses movement During terminal proximity transducer function, the received power value of proximity transducer detection is in detection range, detects received power value It is more accurate, it is possible to increase the detection performance of proximity transducer.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Unit and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function, but this realization can be realized it is not considered that exceeding using distinct methods to each specific application The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can be by other Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some interfaces Connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be according to the actual needs selected to realize embodiment of the present invention scheme Purpose.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (10)

1. a kind of proximity transducer detection method, is applied to the mobile terminal with proximity transducer, the proximity transducer bag Include receiving device and ballistic device, it is characterised in that methods described includes:
The first diffraction value of the infrared light of the ballistic device transmitting is detected, the first diffraction value is received for the receiving device The performance number of the infrared light for arriving;
Judge the first diffraction value whether more than preset value;
If the first diffraction value is more than the preset value, the transmission power of the ballistic device is reduced to objective emission work( Rate, so that the performance number that the receiving device receives infrared light is not more than the preset value.
2. the method for claim 1, it is characterised in that the first of the infrared light of the detection ballistic device transmitting Diffraction value, including:
Using first performance number of the infrared light of the receiving device detection ballistic device transmitting as the first diffraction value.
3. method as claimed in claim 1 or 2, it is characterised in that if the first diffraction value is more than the preset value, The transmission power of the ballistic device is then reduced to objective emission power, so that the receiving device receives the work(of infrared light Rate value is not more than the preset value, including:
If the first diffraction value is more than the preset value, continue to detect the diffraction value of the proximity transducer infrared light;
If the diffraction value of continuous n times detection is both greater than the preset value, the transmission power of the ballistic device is reduced to mesh Mark transmission power so that the performance number that the receiving device receives infrared light is not more than the preset value, N be more than or wait In 2 integer.
4. method as claimed in claim 3, it is characterised in that be reduced to mesh in the transmission power by the ballistic device Mark transmission power, so that the performance number that the receiving device receives infrared light is not more than after the preset value, methods described Also include:
The performance number that the receiving device is received default first threshold value corresponding with the second diffraction value and preset second Limit value is compared, wherein, the second diffraction value be the ballistic device with the objective emission power emission infrared light when, The performance number that the receiving device is detected, default first threshold value is more than default second threshold value;
If the performance number that the receiving device is received is more than first threshold value, the mobile terminal is controlled to put out screen;
If the performance number that the receiving device is received is less than second threshold value, the mobile terminal bright screen is controlled.
5. method as claimed in claim 4, it is characterised in that the performance number for receiving the receiving device and second Corresponding default first threshold value of diffraction value and default second threshold value are compared, including:
Determine the interval of default diffraction value residing for the second diffraction value;
The performance number that the receiving device is received default first threshold value corresponding with the interval and default second thresholding Value is compared.
6. a kind of mobile terminal, the proximity transducer of the mobile terminal includes receiving device and ballistic device, it is characterised in that Including:
Detection module, the first diffraction value of the infrared light for detecting the ballistic device transmitting, the first diffraction value is institute State the performance number of the infrared light that receiving device is received;
Judge module, for judging the first diffraction value whether more than preset value;
Module is reduced, if being more than the preset value for the first diffraction value, the transmission power of the ballistic device is dropped As little as objective emission power, so that the performance number that the receiving device receives infrared light is not more than the preset value.
7. mobile terminal as claimed in claim 6, it is characterised in that the detection module is used for receiving device detection First performance number of the infrared light of the ballistic device transmitting is used as the first diffraction value.
8. mobile terminal as claimed in claims 6 or 7, it is characterised in that the reduction module includes:
Detection unit, if being more than the preset value for the first diffraction value, continues to detect that the proximity transducer is infrared The diffraction value of light;
Unit is reduced, if being both greater than the preset value for the diffraction value of continuous n times detection, by the transmitting of the ballistic device Power is reduced to objective emission power, so that the performance number that the receiving device receives infrared light is not more than the preset value, N It is the integer more than or equal to 2.
9. mobile terminal as claimed in claim 8, it is characterised in that the mobile terminal also includes:
Comparison module, performance number default first threshold value corresponding with the second diffraction value for the receiving device to be received It is compared with default second threshold value, wherein, the second diffraction value is the ballistic device with the objective emission power During transmitting infrared light, the performance number that the receiving device is detected, default first threshold value is default second more than described Limit value;
First control module, if being more than first threshold value for the performance number that the receiving device is received, control is described Mobile terminal puts out screen;
Second control module, if being less than second threshold value for the performance number that the receiving device is received, control is described Mobile terminal bright screen.
10. mobile terminal as claimed in claim 9, it is characterised in that the comparison module includes:
Determining unit, the interval for determining default diffraction value residing for the second diffraction value;
Comparing unit, performance number for the receiving device to be received default first threshold value corresponding with the interval and Default second threshold value is compared.
CN201710025321.0A 2017-01-13 2017-01-13 A kind of proximity sensor detection method and mobile terminal Active CN106686247B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710025321.0A CN106686247B (en) 2017-01-13 2017-01-13 A kind of proximity sensor detection method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710025321.0A CN106686247B (en) 2017-01-13 2017-01-13 A kind of proximity sensor detection method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106686247A true CN106686247A (en) 2017-05-17
CN106686247B CN106686247B (en) 2019-09-27

Family

ID=58860598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710025321.0A Active CN106686247B (en) 2017-01-13 2017-01-13 A kind of proximity sensor detection method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106686247B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107884764A (en) * 2017-11-22 2018-04-06 广东欧珀移动通信有限公司 Detection method, device, storage medium and the electronic equipment of proximity state
CN107911554A (en) * 2017-11-22 2018-04-13 广东欧珀移动通信有限公司 The control method of electronic device and electronic device
CN108012028A (en) * 2017-11-29 2018-05-08 广东欧珀移动通信有限公司 Anti-interference method, electronic device and computer-readable recording medium
CN109444858A (en) * 2018-09-14 2019-03-08 珠海格力电器股份有限公司 The infrared current calibration method of dustbin, device, equipment and storage medium
WO2022053006A1 (en) * 2020-09-10 2022-03-17 华为技术有限公司 Proximity light sensor control method and related device
CN115668902A (en) * 2020-07-15 2023-01-31 ams国际有限公司 Adaptive proximity detection system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11131879A (en) * 1997-10-30 1999-05-18 Alpha Corp Non-contact-type lock control device
CN102590867A (en) * 2012-02-03 2012-07-18 华为终端有限公司 Approaching detection device and mobile terminal
CN103731546A (en) * 2013-09-26 2014-04-16 广东明创软件科技有限公司 Electrostatic processing method based on mobile terminal and electrostatic processing mobile terminal
CN104811547A (en) * 2015-04-02 2015-07-29 深圳市金立通信设备有限公司 Terminal control method
CN105025159A (en) * 2015-06-05 2015-11-04 广东欧珀移动通信有限公司 A proximity sensor adjusting method and apparatus
CN106297628A (en) * 2016-08-15 2017-01-04 青岛海信电器股份有限公司 Brightness of display screen control method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11131879A (en) * 1997-10-30 1999-05-18 Alpha Corp Non-contact-type lock control device
CN102590867A (en) * 2012-02-03 2012-07-18 华为终端有限公司 Approaching detection device and mobile terminal
CN103731546A (en) * 2013-09-26 2014-04-16 广东明创软件科技有限公司 Electrostatic processing method based on mobile terminal and electrostatic processing mobile terminal
CN104811547A (en) * 2015-04-02 2015-07-29 深圳市金立通信设备有限公司 Terminal control method
CN105025159A (en) * 2015-06-05 2015-11-04 广东欧珀移动通信有限公司 A proximity sensor adjusting method and apparatus
CN106297628A (en) * 2016-08-15 2017-01-04 青岛海信电器股份有限公司 Brightness of display screen control method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107884764A (en) * 2017-11-22 2018-04-06 广东欧珀移动通信有限公司 Detection method, device, storage medium and the electronic equipment of proximity state
CN107911554A (en) * 2017-11-22 2018-04-13 广东欧珀移动通信有限公司 The control method of electronic device and electronic device
CN107884764B (en) * 2017-11-22 2020-04-21 Oppo广东移动通信有限公司 Proximity state detection method and device, storage medium and electronic device
CN108012028A (en) * 2017-11-29 2018-05-08 广东欧珀移动通信有限公司 Anti-interference method, electronic device and computer-readable recording medium
CN108012028B (en) * 2017-11-29 2020-12-29 Oppo广东移动通信有限公司 Anti-jamming method, electronic device, and computer-readable storage medium
CN109444858A (en) * 2018-09-14 2019-03-08 珠海格力电器股份有限公司 The infrared current calibration method of dustbin, device, equipment and storage medium
CN115668902A (en) * 2020-07-15 2023-01-31 ams国际有限公司 Adaptive proximity detection system
CN115668902B (en) * 2020-07-15 2024-04-02 ams国际有限公司 Adaptive proximity detection system, method, mobile device and storage medium
WO2022053006A1 (en) * 2020-09-10 2022-03-17 华为技术有限公司 Proximity light sensor control method and related device

Also Published As

Publication number Publication date
CN106686247B (en) 2019-09-27

Similar Documents

Publication Publication Date Title
CN106686247A (en) Proximity transducer detecting method and mobile terminal
CN107194331A (en) A kind of fingerprint identification method and mobile terminal
CN106919313A (en) The startup method and mobile terminal of a kind of application program
CN106844265B (en) A kind of control method and mobile terminal of general-purpose serial bus USB interface
CN106656236B (en) A kind of method and electronic device of the reduction SAR based on multiple antennas
CN107392148A (en) A kind of fingerprint detection method and mobile terminal
CN107203313A (en) Adjust desktop and show object method, mobile terminal and computer-readable recording medium
CN107145782A (en) A kind of recognition methods, mobile terminal and the server of abnormal application program
CN107450773A (en) A kind of false-touch prevention method, terminal and computer-readable recording medium
CN107479058A (en) A kind of distance detection method, mobile terminal and computer-readable recording medium
CN106527802A (en) Detection method and mobile terminal
CN107038367A (en) A kind of fingerprint identification method and mobile terminal
CN106998367A (en) A kind of document down loading method and mobile terminal
CN107798228A (en) A kind of face identification method and mobile terminal
CN107390854A (en) A kind of fingerprint detection open method and electronic equipment
CN106502545B (en) A kind of operating method and mobile terminal for sliding control
CN106776085A (en) Touch screen protective method and mobile terminal
CN106557240A (en) A kind of detection method and mobile terminal
CN106874046A (en) The operating method and mobile terminal of a kind of application program
CN106383634A (en) Picture processing method and electronic equipment
CN107688420A (en) A kind of method and mobile terminal for starting suspension object
CN107483821A (en) A kind of image processing method and mobile terminal
CN107679381A (en) A kind of announcement information processing method and mobile terminal
CN107422970A (en) A kind of unlocking method and mobile terminal
CN106648242A (en) Control method of touch-control operation and mobile terminal

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
TA01 Transfer of patent application right

Effective date of registration: 20171107

Address after: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Applicant after: VIVO MOBILE COMMUNICATION CO., LTD.

Applicant after: Wewo Mobile Communication Co. Ltd. Beijing branch

Address before: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Applicant before: VIVO MOBILE COMMUNICATION CO., LTD.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200515

Address after: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Patentee after: VIVO MOBILE COMMUNICATION Co.,Ltd.

Address before: 283 No. 523860 Guangdong province Dongguan city Changan town usha BBK Avenue

Co-patentee before: Wewo Mobile Communication Co. Ltd. Beijing branch

Patentee before: VIVO MOBILE COMMUNICATION Co.,Ltd.

TR01 Transfer of patent right