Detailed description of the invention
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing the present invention made intoOne step ground describes in detail, it is clear that described embodiment is only some embodiments of the present invention rather than whole enforcementExample.Based on the embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premiseAll other embodiments, broadly fall into the scope of protection of the invention.
As it is shown in figure 1, be a kind of method of information processing in the embodiment of the present invention, the method includes:
Step 101: terminal by range sensor the distance determined between current screen and shelter more than go out screen away fromFrom rear, it is judged that whether the capacitance of screen is less than predetermined capacitance;
Step 102: terminal determine the capacitance of screen less than predetermined capacitance, and after described screen is in bright screen, controlScreen processed goes out screen.
Wherein, range sensor is passed through in the distance determined between current screen and shelter not less than going out in described terminalBefore, described terminal is it needs to be determined that present terminal is in talking state to screen distance.
It should be noted that user's press-to-talk key presses end key to user or the other side to terminate time period of call equalBelong to talking state.The screen that goes out refers to close the light source of screen and close the touch controllable function of screen;Accordingly, bright screen refers to openThe light source of screen also opens the touch controllable function of screen.
Wherein, range sensor is by launching infrared signal and calculating screen according to the infrared signal reflected and blockDistance between thing;
Terminal by the transmitting infrared signal of command range cycle sensor detect between screen and shelter away fromFrom.
By range sensor, terminal determines that the distance between current screen and shelter is permissible with the relation of screen distance of going outConfirmed by following two mode:
Infrared signal launched by mode one, range sensor, and receives the infrared signal reflected;
Range sensor utilizes algorithm to calculate the corresponding numerical value A of distance between screen with shelter, this numerical value withDistance between screen and shelter is inverse ratio;
Terminal judges numerical value A and the screen size apart from corresponding threshold X 1 of going out;
If numerical value A is less than threshold X 1, namely when the distance between current screen and shelter shields distance more than going out, terminal is beatenOpen the capacitance of contact panel detection screen;
If numerical value A is not less than threshold X 1, namely the distance between current screen and shelter is less than or equal to going out screen distanceTime, and current screen is under bright screen state, and terminal control screen goes out screen.
Infrared signal launched by mode two, range sensor, and receives the infrared signal reflected;
Range sensor utilizes algorithm to calculate the corresponding numerical value B of distance between screen with shelter, this numerical value withGo out the distance between screen and shelter proportional;
Terminal judges numerical value B and the screen size apart from corresponding threshold X 2 of going out;
If numerical value B is more than threshold X 2, namely when the distance between current screen and shelter shields distance more than going out, terminal is beatenOpen contact panel and carry out detecting the capacitance of screen;
If numerical value B is not more than threshold X 2, namely the distance between current screen and shelter is less than or equal to going out screen distanceTime, and current screen is under bright screen state, and terminal control screen goes out screen.
When terminal by range sensor after the distance determined between current screen and shelter is more than screen distance of going out, eventuallyEnd opens the capacitance of contact panel detection screen;
Face or finger are set as predetermined capacitance S not in contact with the capacitance of contact panel before screen by terminal;
When terminal by range sensor after the distance determined between current screen and shelter is more than screen distance of going out, eventuallyEnd judges the capacitance of screen and the magnitude relationship of predetermined capacitance S;
If described terminal determine the capacitance of screen less than predetermined capacitance S, namely current screen and face or handsReferring to there is contact, and described screen is in bright screen state, the most described terminal control screen goes out screen;
If described terminal determine the capacitance of screen equal to predetermined capacitance S, namely current screen and face or handsRefer to not exist contact, then terminal control screen keeps original state.
Described terminal control screen goes out after screen, and described terminal is determining current screen and shelter by range sensorBetween distance more than bright screen distance, and the described capacitance of screen is equal to after described predetermined capacitance, controls screen bright screen.
Wherein, terminal can control screen bright screen by following two mode:
Infrared signal launched by mode one, range sensor, and receives the infrared signal reflected;
Range sensor utilizes algorithm to calculate the corresponding numerical value A of distance between screen with shelter, this numerical value withGoing out the distance between screen and shelter is inverse ratio;
Terminal judges numerical value A and bright screen are apart from the size of corresponding threshold value Y1;
If the distance that numerical value A is not more than between threshold value Y1, namely current screen and shelter is not less than bright screen distance, and screenThe capacitance of curtain equal to predetermined capacitance S, namely face or finger contactless with screen, then terminal control screen bright screen;
If the distance that numerical value A is not more than between threshold value Y1, namely current screen and shelter is not less than bright screen distance, and screenThe capacitance of curtain is less than predetermined capacitance S, namely face or finger contact with screen, then terminal holding screen goes out screen.
Infrared signal launched by mode two, range sensor, and receives the infrared signal reflected;
Range sensor utilizes algorithm to calculate the corresponding numerical value B of distance between screen with shelter, this numerical value withGo out the distance between screen and shelter proportional;
Terminal judges numerical value B and bright screen are apart from the size of corresponding threshold value Y2;
If numerical value B is not less than bright screen distance, and screen not less than the distance between threshold value Y2, namely current screen and shelterThe capacitance of curtain equal to predetermined capacitance S, namely face or finger contactless with screen, then terminal control screen bright screen;
If numerical value B is not less than bright screen distance, and screen not less than the distance between threshold value Y2, namely current screen and shelterThe capacitance of curtain is less than predetermined capacitance S, namely face or finger contact with screen, then terminal holding screen goes out screen.
It should be noted that the distance between current screen and shelter is less than bright screen distance, then terminal needs to judge to work asDistance between forth screen and shelter and the relation gone out between screen distance, step afterwards and control panel curtain before go out the step of screenRapid similar, here is omitted, and wherein, screen distance of going out and bright screen are apart from general and unequal, and general bright screen distance is more than going out screenDistance.
With range sensor utilize the corresponding numerical value of distance institute that algorithm calculates between screen with shelter and screen andAs a example by distance between shelter is inverse ratio, as in figure 2 it is shown, be a kind of method controlling screen in the embodiment of the present invention, the partyMethod includes:
Step 201: terminal determines and is currently at talking state;
Step 202: infrared signal launched by terminal control range sensor, and receives the infrared signal reflected;
Step 203: the distance institute that terminal control range sensor utilizes algorithm to calculate between screen to shelter is correspondingNumerical value A;
Step 204: whether terminal judges numerical value A shields apart from corresponding threshold X 1 less than going out, if it is, perform step205, otherwise perform step 207;
Step 205: terminal opens the capacitance of contact panel detection screen;
Step 206: whether the capacitance of terminal judges screen is less than predetermined capacitance S;If it is, perform step 207,Otherwise perform step 208;
Step 207: after terminal determines that screen is in bright screen state, terminal control screen goes out screen;
Step 208: terminal keeps current screen state;
Step 209: terminal judges numerical value A the most no more than bright screen is apart from corresponding threshold value Y1, if it is, perform stepRapid 210, otherwise perform step 204;
Step 210: whether the capacitance of terminal judges screen is less than predetermined capacitance S, if it is, perform step 211,Otherwise perform step 212;
Step 211: terminal keeps screen to go out screen;
Step 212: terminal control screen bright screen;
As it is shown on figure 3, be the structural representation of range sensor:
Range sensor includes prism 301, the black trace (Black Printing) 302 on prism, rubber sleeve 303,Receive sensor 304, infrared lamp 305, chip 306, circuit board 307.Its chips 306 controls infrared lamp 305 and launches infrared letterNumber, infrared signal is sent by the black trace 302 on rubber sleeve 303, prism 301, prism, and infrared signal is running into screeningAfter block material, having part infrared signal to reflect, the sensor 304 that receives in range sensor receives reflect infraredSignal, chip 306 utilizes algorithm to calculate the corresponding numerical value of distance between screen with shelter;
Wherein, the black trace 302 on prism can ensure that the transmitance of infrared signal, rubber sleeve 303 can reduce away fromMake an uproar from the end of sensor internal value, prevent the interference of the infrared signal to reflecting of the infrared signal in range sensor, shadowRing testing result.
Following is a brief introduction of the principle of the capacitance of the screen of contact panel detection, as shown in Figure 4, survey for contact panelThe simple structure schematic diagram of examination electric capacity.
Fig. 4 a be face or finger not in contact with the structural representation of screen during screen, including the upper pole of parallel capacitancePlate 401, the top crown 402 of parallel capacitance, the electric field line 403 between top crown and bottom crown, Fig. 4 b is face or finger does not connectsThe structural representation of screen during touch screen curtain, including the top crown 401 of parallel capacitance, the top crown 402 of parallel capacitance, upper poleElectric field line 403 between plate and bottom crown, finger 404, there is parallel capacitance in general contact panel, owing to human body belongs to conductor,When face or finger 404 are close to screen, face or finger just can be equivalent to a part for top crown in parallel capacitance,Now equivalent capacity has reduced not in contact with capacitance during screen compared to the face shown in Fig. 4 a or finger, the most also canMake in contact panel electric current and voltage at contact point also can change.
Whether test face or finger have been contacted can have been judged, also by the change of electric current on screen with screensCan be judged by the change of voltage on screen, it is also possible to by crossing the change of electric capacity on screen judge no matter adoptBy which kind of mode judging, its essence is all the situation of change judging electric capacity.
Based on same inventive concept, this discovery embodiment additionally provides a kind of terminal controlling screen and solves due to this terminalThe principle of problem is similar to the method for embodiment of the present invention information processing, and therefore the enforcement of this equipment may refer to the reality of methodExecute, repeat no more in place of repetition.
As it is shown in figure 5, the terminal that the embodiment of the present invention controls screen includes:
Judge module 500: for by range sensor in the distance determined between current screen and shelter more than going outAfter screen distance, it is judged that whether the capacitance of screen is less than predetermined capacitance;
Processing module 501: for being less than predetermined capacitance at the capacitance determining screen, and described screen is in bright screenAfter, control screen and go out screen.
Wherein, range sensor is passed through in the distance determined between current screen and shelter at described judge module 500Not less than the screen that goes out apart from before, described judge module 500 is it needs to be determined that present terminal is in talking state.
It should be noted that user's press-to-talk key presses end key to user or the other side to terminate time period of call equalBelong to talking state.The screen that goes out refers to close the light source of screen and close the touch controllable function of screen;Accordingly, bright screen refers to openThe light source of screen also opens the touch controllable function of screen.
Wherein, range sensor is by launching infrared signal and calculating screen according to the infrared signal reflected and blockDistance between thing;
Judge module is detected between screen and shelter by the transmitting infrared signal of command range cycle sensorDistance.
Determine that the distance between current screen and shelter can be passed through with the relation shielding distance of going out by range sensorFollowing two mode confirms:
Infrared signal launched by mode one, range sensor, and receives the infrared signal reflected;
Range sensor utilizes algorithm to calculate the corresponding numerical value A of distance between screen with shelter, this numerical value withDistance between screen and shelter is inverse ratio;
Described judge module 500 judges numerical value A and the screen size apart from corresponding threshold X 1 of going out;
If numerical value A is less than threshold X 1, namely when the distance between current screen and shelter shields distance more than going out, processes mouldBlock 501 opens the capacitance of contact panel detection screen;
If numerical value A is not less than threshold X 1, namely the distance between current screen and shelter is less than or equal to going out screen distanceTime, and current screen is under bright screen state, and processing module 501 controls screen and goes out screen.
Infrared signal launched by mode two, range sensor, and receives the infrared signal reflected;
Range sensor utilizes algorithm to calculate the corresponding numerical value B of distance between screen with shelter, this numerical value withGo out the distance between screen and shelter proportional;
Judge module 500 judges numerical value B and the screen size apart from corresponding threshold X 2 of going out;
If numerical value B is more than threshold X 2, namely when the distance between current screen and shelter shields distance more than going out, processes mouldBlock 501 is opened contact panel and is carried out detecting the capacitance of screen;
If numerical value B is not more than threshold X 2, namely the distance between current screen and shelter is less than or equal to going out screen distanceTime, and current screen is under bright screen state, and processing module 501 controls screen and goes out screen.
When by range sensor the distance determined between current screen and shelter more than go out screen distance after, process mouldBlock 501 opens the capacitance of contact panel detection screen;
Face or finger are set as predetermined capacitance S not in contact with the capacitance of contact panel before screen;
When by range sensor the distance determined between current screen and shelter more than go out screen distance after, it is judged that mouldBlock 500 judges the capacitance of screen and the magnitude relationship of predetermined capacitance S;
If described judge module 500 determine the capacitance of screen less than predetermined capacitance S, namely current screen and faceOr finger exists contact, and described screen is in bright screen state, the most described processing module 501 controls screen and goes out screen.
Described terminal control screen goes out after screen, and described judge module 500 is determining current screen by range sensorAnd the distance between shelter is more than bright screen distance, and the described capacitance of screen is equal to after described predetermined capacitance, processes mouldBlock 501 controls screen bright screen.
Wherein it is possible to control screen bright screen by following two mode:
Infrared signal launched by mode one, range sensor, and receives the infrared signal reflected;
Range sensor utilizes algorithm to calculate the corresponding numerical value A of distance between screen with shelter, this numerical value withGoing out the distance between screen and shelter is inverse ratio;
Judge module 500 judges numerical value A and the bright screen size apart from corresponding threshold value Y1;
If the distance that numerical value A is not more than between threshold value Y1, namely current screen and shelter is not less than bright screen distance, and screenThe capacitance of curtain equal to predetermined capacitance S, namely face or finger contactless with screen, then processing module 501 controls screenBright screen;
If the distance that numerical value A is not more than between threshold value Y1, namely current screen and shelter is not less than bright screen distance, and screenThe capacitance of curtain is less than predetermined capacitance S, namely face or finger contact with screen, then processing module 501 keeps screenGo out screen.
Infrared signal launched by mode two, range sensor, and receives the infrared signal reflected;
Range sensor utilizes algorithm to calculate the corresponding numerical value B of distance between screen with shelter, this numerical value withGo out the distance between screen and shelter proportional;
Judge module 500 judges numerical value B and the bright screen size apart from corresponding threshold value Y2;
If numerical value B is not less than bright screen distance, and screen not less than the distance between threshold value Y2, namely current screen and shelterThe capacitance of curtain equal to predetermined capacitance S, namely face or finger contactless with screen, then processing module 501 controls screenBright screen;
If numerical value B is not less than bright screen distance, and screen not less than the distance between threshold value Y2, namely current screen and shelterThe capacitance of curtain is less than predetermined capacitance S, namely face or finger contact with screen, then processing module 501 keeps screenGo out screen
It should be noted that go out, screen distance and bright screen are apart from general and unequal, and general bright screen distance is more than going out screen distance.
Above by reference to the method illustrated according to the embodiment of the present application, device (system) and/or the frame of computer programFigure and/or flow chart describe the application.Should be understood that and can realize block diagram and/or flow process diagram by computer program instructionsOne block of figure and the combination of the block of block diagram and/or flowchart illustration.Can be supplied to lead to by these computer program instructionsBy computer, the processor of special-purpose computer and/or other programmable data processing means, to produce machine so that via meterThe instruction that calculation machine processor and/or other programmable data processing means perform creates and is used for realizing block diagram and/or flow chart blockThe method of the function/action specified by.
Correspondingly, it is also possible to implement the application with hardware and/or software (including firmware, resident software, microcode etc.).MoreFurther, the application can take computer to use or the shape of computer program on computer-readable recording mediumFormula, it has the computer realized in media as well and can use or computer readable program code, to be made by instruction execution systemWith or combined command perform system and use.In the present context, computer can use or computer-readable medium is permissibleBeing arbitrary medium, it can comprise, stores, communicates, transmit or transmission program, to be made by instruction execution system, device or equipmentWith, or combined command execution system, device or equipment use.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the present invention to the present inventionGod and scope.So, if these amendments of the present invention and modification belong to the scope of the claims in the present invention and equivalent technologies thereofWithin, then the present invention is also intended to comprise these change and modification.