CN113064806B - Control method and electronic equipment - Google Patents

Control method and electronic equipment Download PDF

Info

Publication number
CN113064806B
CN113064806B CN202110346726.0A CN202110346726A CN113064806B CN 113064806 B CN113064806 B CN 113064806B CN 202110346726 A CN202110346726 A CN 202110346726A CN 113064806 B CN113064806 B CN 113064806B
Authority
CN
China
Prior art keywords
effective
angle
distance
distance sensor
use state
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.)
Active
Application number
CN202110346726.0A
Other languages
Chinese (zh)
Other versions
CN113064806A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202110346726.0A priority Critical patent/CN113064806B/en
Publication of CN113064806A publication Critical patent/CN113064806A/en
Application granted granted Critical
Publication of CN113064806B publication Critical patent/CN113064806B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • 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
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/06Systems determining position data of a target
    • G01S17/08Systems determining position data of a target for measuring distance only
    • G01S17/10Systems determining position data of a target for measuring distance only using transmission of interrupted, pulse-modulated waves
    • G01S17/14Systems determining position data of a target for measuring distance only using transmission of interrupted, pulse-modulated waves wherein a voltage or current pulse is initiated and terminated in accordance with the pulse transmission and echo reception respectively, e.g. using counters
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Electromagnetism (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Life Sciences & Earth Sciences (AREA)
  • Geophysics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a control method which is applied to electronic equipment, wherein the electronic equipment is provided with a distance sensor and can detect the distance of a plurality of points in the effective visual field range; the control method comprises the steps of obtaining the use state of the electronic equipment, wherein the electronic equipment at least has a first use state and a second use state, and the distances between the distance sensor and the supporting surface for supporting the electronic equipment are different in the two use states; in response to a use state of the electronic device, a first effective field angle of the distance sensor in a first use state is set to be different from a second effective field angle of the distance sensor in a second use state, so that a first effective field range of the distance sensor in the first use state and a second effective field range in the second use state are different. According to different use states of the electronic equipment, the distance sensor has different effective visual field ranges, and objects except the target object can be prevented from being interfered, so that the accuracy of detecting the target object is improved. The application also discloses electronic equipment.

Description

Control method and electronic equipment
Technical Field
The application relates to the technical field of electronic equipment, in particular to a control method and electronic equipment.
Background
In order to optimize the use, a distance sensor for scanning and detecting whether a user exists in front of the computer is arranged on the frame at the top end of the display screen of the notebook computer; when the user leaves, the distance sensor can find that no user exists, and then immediately lock the system and enable the system to enter a power saving mode, so that the system safety is improved and the power consumption is reduced. The distance sensor enters a low-power consumption autonomous mode, scans a scene, detects whether a user returns, and simultaneously enables the computer to keep a sleep state, so that electric energy is saved. When the user returns, the distance sensor wakes up the computer and automatically initiates lose face the login function without waiting for a button or moving the mouse.
When the notebook computer is used in the traditional mode, the distance sensor is located above, and the effective detection distance adopted when the position of the user is detected is the normal use distance of the user. However, when the notebook computer is in a tent mode, the top frame of the display screen can rotate to the lower side, so that the distance sensor is relatively close to the placing desktop of the notebook computer, a human hand is easy to detect, the using distance of a user is shortened by mistake, and the effective detecting distance of the distance sensor is shortened, so that the condition that the user cannot detect before the computer is caused, and the accuracy of detecting whether the user exists before the computer is further influenced.
Disclosure of Invention
In view of the above, the present application aims to disclose a control method to improve the accuracy of detecting whether an object exists in front of an electronic device.
Another object of the present application is to disclose an electronic device, so as to improve accuracy of detecting whether an object exists in front of the electronic device.
In order to achieve the above purpose, the application discloses the following technical scheme:
the control method is applied to electronic equipment, wherein the electronic equipment is provided with a distance sensor, and the distance of a plurality of points in the effective visual field range of the distance sensor can be detected; the control method comprises the following steps:
Acquiring the use state of the electronic equipment, wherein the electronic equipment at least has a first use state and a second use state, and the distances between the distance sensor and a supporting surface for supporting the electronic equipment are different in the two use states;
In response to a use state of the electronic device, a first effective field angle of the distance sensor in the first use state is set to be different from a second effective field angle of the distance sensor in the second use state, so that a first effective field range of the distance sensor in the first use state and a second effective field range of the distance sensor in the second use state are different.
Preferably, in the above control method, the electronic device includes a first body and a second body, the first body is provided with a first gravity sensor, and the second body is provided with a second gravity sensor;
acquiring the use state of the electronic equipment by acquiring the opening and closing angle of the second body relative to the first body through the first gravity sensor and the second gravity sensor;
The second body is provided with a display component which is rotationally connected with the first body to realize the opening and closing of the second body relative to the first body, and the opening and closing angle of the first body and the second body is 0-360 degrees;
The distance sensor is positioned on the display side of the second body and is arranged at one end of the second body opposite to the connecting end of the first body and the second body;
the first effective field of view and the second effective field of view are effective vertical field of view angles of the distance sensor in a vertical direction.
Preferably, in the above control method, when the opening and closing angle of the second body relative to the first body is smaller than 180 °, the electronic device is acquired to be in the first use state, and the first effective field angle is set as the maximum vertical field angle of the distance sensor;
when the opening and closing angle of the second body relative to the first body is larger than a first target angle and smaller than 360 degrees, acquiring that the electronic equipment is in the second use state, and setting the second effective field angle smaller than the first effective field angle by adjusting the angle of the effective lower detection edge line of the distance sensor relative to the horizontal direction so that the detection distance of the effective lower detection edge line is larger than the minimum effective detection distance of the distance sensor;
wherein the first target angle is greater than 180 °.
Preferably, in the control method, the first target angle is 220 ° -240 °;
when the electronic equipment is in the second use state, the second effective field angle is gradually reduced along with the increase of the opening and closing angle of the second body relative to the first body.
Preferably, in the above control method, when the opening and closing angle of the second body relative to the first body is smaller than a second target angle, the distance sensor is controlled to use a first detection time;
when the opening and closing angle of the second body relative to the first body is between the second target angle and the third target angle, controlling the distance sensor to adopt a second detection time, wherein the second detection time is gradually prolonged along with the increase of the opening and closing angle;
when the opening and closing angle of the second body relative to the first body is larger than the third target angle, controlling the distance sensor to adopt third detection time;
Wherein the second target angle is 120-130 degrees and the third target angle is 270-280 degrees; the first detection time is less than the second detection time and less than the third detection time.
Preferably, in the above control method, the first detection time is 4-6 seconds, and the third detection time is 12-18 seconds.
Preferably, in the above control method, when the opening and closing angle of the second body relative to the first body is smaller than the second target angle, the distance sensor is controlled to use a first effective detection distance;
when the opening and closing angle of the second body relative to the first body is between the second target angle and the third target angle, controlling the distance sensor to adopt a second effective detection distance;
When the opening and closing angle of the second body relative to the first body is larger than the third target angle, controlling the distance sensor to adopt a third effective detection distance;
The first effective detection distance is smaller than the second effective detection distance and smaller than the third effective detection distance, and the third effective detection distance is the maximum detection distance of the distance sensor.
According to the technical scheme, the control method disclosed by the application enables the distance sensor to have different effective visual field ranges according to different use states of the electronic equipment; the electronic equipment is set to use the first effective field angle in the first use state and use the second effective field angle in the second use state, so that when the distance sensor has different distances with the supporting surface for supporting the electronic equipment, the distance sensor can accurately detect the target object at a plurality of points in the effective field range, the object interference beyond the target object is avoided, and the accuracy of detecting whether the target object exists before the electronic equipment is improved.
The application also discloses an electronic device, comprising:
the state detector is used for acquiring the use state of the electronic equipment;
the distance sensor can detect the distance of a plurality of points in the effective visual field range of the distance sensor;
A controller that receives a use state signal of the electronic device, the controller setting a first effective field of view of the distance sensor in the first use state to be different from a second effective field of view of the distance sensor in the second use state in response to the use state of the electronic device, such that the first effective field of view of the distance sensor in the first use state and the second effective field of view in the second use state are different;
the electronic equipment at least has a first use state and a second use state, and the distance between the distance sensor and the supporting surface supporting the electronic equipment is different in the two use states.
Preferably, in the electronic device, the electronic device includes a first body and a second body; the second body is provided with a display component which is rotationally connected with the first body to realize the opening and closing of the second body relative to the first body, and the opening and closing angle of the first body and the second body is 0-360 degrees; the distance sensor is positioned on the display side of the second body and is arranged at one end of the second body opposite to the connecting end of the first body and the second body;
The state detector comprises a first gravity sensor arranged on the first body and a second gravity sensor arranged on the second body, and the controller can obtain the opening and closing angle of the second body relative to the first body according to the detection of the first gravity sensor and the second gravity sensor so as to obtain the use state of the electronic equipment;
when the opening and closing angle of the second body relative to the first body is smaller than 180 degrees, the electronic equipment is in the first use state, and the controller sets the first effective field angle as the maximum vertical field angle of the distance sensor;
When the opening and closing angle of the second body relative to the first body is larger than a first target angle and smaller than 360 degrees, the electronic equipment is in the second use state, and the controller sets the second effective field angle smaller than the first effective field angle by adjusting the angle of the effective lower detection edge line of the distance sensor relative to the horizontal direction so that the detection distance of the effective lower detection edge line is larger than the minimum effective detection distance of the distance sensor;
wherein the first target angle is greater than 180 °.
Preferably, in the electronic device, when the opening and closing angle of the second body relative to the first body is smaller than the second target angle, the controller controls the distance sensor to adopt a first detection time and a first effective detection distance;
When the opening and closing angle of the second body relative to the first body is between the second target angle and the third target angle, the controller controls the distance sensor to adopt a second detection time and a second effective detection distance, and the second detection time is gradually prolonged along with the increase of the opening and closing angle;
When the opening and closing angle of the second body relative to the first body is larger than the third target angle, the controller controls the distance sensor to adopt a third detection time and a third effective detection distance;
Wherein the second target angle is 120-130 degrees and the third target angle is 270-280 degrees; the first detection time is less than the second detection time and less than the third detection time;
The first effective detection distance is smaller than the second effective detection distance and smaller than the third effective detection distance, and the third effective detection distance is the maximum detection distance of the distance sensor.
According to the technical scheme, the electronic equipment disclosed by the application obtains the use state of the electronic equipment through the state detector; according to different use states of the electronic equipment, the controller controls the distance sensor to have different effective visual field ranges; the electronic equipment is set to use the first effective field angle in the first use state and use the second effective field angle in the second use state, so that when the distance sensor has different distances with the supporting surface for supporting the electronic equipment, the distance sensor can accurately detect the target object at a plurality of points in the effective field range, the object interference beyond the target object is avoided, and the accuracy of detecting whether the target object exists before the electronic equipment is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an electronic device according to an embodiment of the present application in a first use state;
fig. 2 is a schematic diagram of an electronic device according to an embodiment of the present application in a second use state.
Detailed Description
The embodiment of the application discloses a control method, which improves the accuracy of detecting whether a target object exists before electronic equipment.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The control method disclosed by the embodiment of the application is applied to electronic equipment, and the electronic equipment is provided with the distance sensor 3, so that the distance of a plurality of points in the effective visual field range of the distance sensor 3 can be detected; the control method comprises the following steps: acquiring a use state of electronic equipment, wherein the electronic equipment at least has a first use state and a second use state, and the distances between the distance sensor 3 and a supporting surface for supporting the electronic equipment are different in the two use states; in response to the use state of the electronic apparatus, the first effective field angle α1 of the distance sensor 3 in the first use state is set to be different from the second effective field angle α2 in the second use state so that the first effective field range of the distance sensor 3 in the first use state and the second effective field range in the second use state are different.
According to the control method disclosed by the application, the distance sensor 3 has different effective visual field ranges according to different use states of the electronic equipment; the electronic equipment is set to use the first effective field angle alpha 1 in the first use state and use the second effective field angle alpha 2 in the second use state, so that when the distance sensor 3 has different distances with the supporting surface for supporting the electronic equipment, the object can be accurately detected at a plurality of points in the effective field range, the object interference beyond the object is avoided, and the accuracy of detecting whether the object exists before the electronic equipment is improved.
In a specific embodiment, the electronic device includes a first body 1 and a second body 2, the first body 1 is provided with a first gravity sensor, the second body 2 is provided with a second gravity sensor, wherein the second body 2 is provided with a display component, and is rotatably connected with the first body 1 to realize opening and closing of the second body 2 relative to the first body 1, and an opening and closing angle beta between the first body 1 and the second body 2 is 0-360 degrees; the distance sensor 3 is located on the display side of the second body 2 and is disposed at an end of the second body 2 opposite to the connection end of the first body 1 and the second body 2; the first effective field angle α1 and the second effective field angle α2 are effective vertical field angles of the distance sensor 3 in the vertical direction.
The control method of the embodiment obtains the opening and closing angle beta of the second body 2 relative to the first body 1 through the first gravity sensor and the second gravity sensor to obtain the use state of the electronic equipment;
The electronic device of this embodiment is a notebook computer, the first body 1 is a base, the second body 2 is a display screen, and when in use, the supporting surface for supporting the electronic device is a horizontal plane.
The first gravity sensor and the second gravity sensor acquire an included angle between the first body 1 and the second body 2 by sensing the change of the gravity direction of the first body 1 and the second body 2, so that the distance between the distance sensor 3 and the supporting surface for supporting the electronic equipment is obtained.
Specifically, the distance sensor 3 is a TOF (Time of Flight) sensor, has a lattice capable of detecting distance, and is a 3D depth image capturing mode, mainly by emitting near infrared light to a target object through the sensor, using light to start from a lens, and then to meet the light reflected by the surface of the object, calculating the Time difference/phase difference between the light emission and reflection, and calculating the current distance.
The target object in the embodiment is a person, and the TOF sensor determines that the person exists when detecting that the barrier exists in the set effective visual field range by emitting rays; otherwise, the notebook computer is in a locking state.
Alternatively, the distance sensor 3 may also be a radar or ultrasonic distance sensor 3.
It can be understood that the electronic device may be other devices, such as a tablet pc, which respectively form a first use state and a second use state when the horizontal screen is used and the vertical screen is used; the intelligent sound box and the intelligent alarm clock can be used for changing the effective field angle according to different installation angles on the vertical wall, and the first effective field angle alpha 1 and the second effective field angle alpha 2 are effective horizontal field angles of the distance sensor 3 in the horizontal direction.
Preferably, when the opening and closing angle β of the second body 2 relative to the first body 1 is smaller than 180 °, the electronic device is obtained to be in a first use state, and the first effective field angle α1 is set as the maximum vertical field angle of the distance sensor 3; when the opening and closing angle beta of the second body 2 relative to the first body 1 is larger than the first target angle and smaller than 360 degrees, acquiring that the electronic equipment is in a second use state, and setting a second effective field angle alpha 2 smaller than the first effective field angle alpha 1 by adjusting the angle of the effective lower detection edge line of the distance sensor 3 relative to the horizontal direction so that the detection distance of the effective lower detection edge line is larger than the minimum effective detection distance of the distance sensor 3; wherein the first target angle is greater than 180 °.
As shown in fig. 1, when the notebook computer is used in the conventional mode, that is, the first body 1 is placed on the desktop, and the opening angle of the second body 2 is smaller than 180 °, the electronic device is considered to be in the first use state, the distance sensor 3 is located above, and the distance sensor 3 is set to use the maximum vertical field angle as the first effective field angle α1.
As shown in fig. 2, when the notebook computer adopts the tent mode, that is, the opening angle of the second body 2 is greater than 180 ° and the first body 1 and the second body 2 form a triangular support with the desktop, the electronic device is considered to be in the second use state, the top frame of the display screen can rotate to the lower side, the distance sensor 3 is closer to the desktop, and the effective angle of view is reduced to the second effective angle of view α2, thereby avoiding shortening the use distance of the user due to the fact that the article on the desktop is detected by mistake, changing the effective detection distance, further causing the condition that the user cannot detect before the computer, and improving the accuracy of detecting whether the user exists before the computer.
Specifically, the infrared point array in the visual field range of the TOF sensor is provided with dozens of infrared emission points, specifically 30-80 infrared emission points; judging whether an object exists in the field of view of the TOF sensor according to the object distance measured when the infrared emission point detects the object, and if the distance can be measured by one infrared emission point, indicating that the object exists in the emission path of the point; if the infrared emission point does not measure the distance, it is indicated that there is no object in the emission path of the point.
In order to better adapt to the use habits of different users, the notebook computer can take the detected user use distance as the effective detection distance of the distance sensor; in order to prevent a mouse, a human hand or other obstacles which are closer to the distance sensor than the body of a person on the supporting table surface of the electronic equipment from influencing the effective detection distance set by the distance sensor, the application sets the minimum effective detection distance of the distance sensor, wherein the minimum effective detection distance is the minimum value which can be achieved between the body and the distance sensor when a user normally uses the notebook computer.
In this way, in the conventional use mode of the notebook computer, the TOF sensor is far away from the supporting table top, the emission paths of the infrared emission points in the field of view of the TOF sensor are not blocked by the obstacle on the supporting table top, the distances measured by all the infrared emission points are larger than the minimum effective detection distance, and then the detection results of all the infrared emission points in the field of view of the TOF sensor are regarded as effective detection distances, namely, the maximum vertical field angle of the TOF sensor is selected as the first effective field angle α1.
In the tent mode of the notebook computer, the TOF sensor is close to the supporting desktop, when the distance measured by the part of infrared emission points close to the lower part in the visual field range of the TOF sensor is smaller than the minimum effective detection distance, the transmission path of the infrared emission points is blocked by an obstacle, the detection results of the infrared emission points are ignored at the moment, for example, the number of the infrared emission points is 10, the visual field range formed by the infrared emission points is regarded as an invalid visual field range, the angle of the effective lower detection edge line of the distance sensor relative to the horizontal direction is increased, and the effective visual field angle of the TOF sensor in the vertical direction is reduced, so that the detected distance is ensured to be the normal use distance of a user body, the effective detection distance of the TOF sensor is used, and the situation that the user cannot detect the position in front of the computer due to the fact that the set effective detection distance is smaller is avoided.
In a further technical scheme, the first target angle is 220-240 degrees; when the electronic device is in the second use state, the second effective field angle α2 is gradually reduced as the opening and closing angle β of the second body 2 relative to the first body 1 increases. Specifically, the first target angle is selected to be 230 °. When the opening and closing angle beta of the second body 2 relative to the first body 1 is larger than 180 degrees and smaller than 230 degrees, the blocking object on the tabletop is not in the visual field range of the distance sensor 3; according to the application, when the opening and closing angle beta of the second body 2 relative to the first body 1 is larger than 230 degrees, the effective lower detection edge line of the distance sensor 3 gradually approaches the upper detection edge line, and the effective field angle of the distance sensor 3 in the vertical direction is gradually reduced, so that the distance sensor 3 can avoid a desktop barrier and ensure the maximum effective field range, and the sensitivity of detecting whether a user is in front of a computer is further improved.
In order to better control the detection accuracy, when the opening and closing angle β of the second body 2 relative to the first body 1 is smaller than the second target angle, the control distance sensor 3 adopts the first detection time; when the opening and closing angle beta of the second body 2 relative to the first body 1 is between the second target angle and the third target angle, the control distance sensor 3 adopts a second detection time, and the second detection time is gradually prolonged along with the increase of the opening and closing angle beta; when the opening and closing angle beta of the second body 2 relative to the first body 1 is larger than a third target angle, controlling the distance sensor 3 to adopt a third detection time; wherein the second target angle is 120-130 degrees, and the third target angle is 270-280 degrees; the first detection time is less than the second detection time and less than the third detection time.
Specifically, the second target angle is selected to be 127 ° and the third target angle is selected to be 270 °. According to the application, the detection time of the distance sensor 3 is adjusted according to the opening and closing angle beta of the second body 2 relative to the first body 1; when the opening and closing angle beta of the second body 2 relative to the first body 1 is 30-127 degrees, the visual field range of the distance sensor 3 is easy to detect a person, and shorter first detection time is adopted; when the opening and closing angle beta of the second body 2 relative to the first body 1 is between 127 degrees and 270 degrees, the adopted second detection time continuously increases; when the opening and closing angle beta of the second body 2 relative to the first body 1 is larger than 270 degrees, the third detection time is prolonged.
The first detection time is 4-6 seconds, and the third detection time is 12-18 seconds. Specifically, the first detection time is 5 seconds, the third detection time is 15 seconds, and the second detection time is gradually prolonged from 5 seconds to 15 seconds according to the increase of the opening and closing angle beta of the second body 2 relative to the first body 1, so that the use state of the person is conveniently detected by adopting shorter detection time, the use state of the person is inconvenient to be detected by adopting longer detection time, and the working state of the electronic equipment can be more intelligently controlled.
In order to further improve the detection precision, when the opening and closing angle beta of the second body 2 relative to the first body 1 is smaller than the second target angle, the control distance sensor 3 adopts a first effective detection distance; when the opening and closing angle beta of the second body 2 relative to the first body 1 is between the second target angle and the third target angle, the control distance sensor 3 adopts a second effective detection distance; when the opening and closing angle beta of the second body 2 relative to the first body 1 is larger than a third target angle, the control distance sensor 3 adopts a third effective detection distance; the first effective detection distance is less than the second effective detection distance and less than the third effective detection distance, and the third effective detection distance is the maximum detection distance of the distance sensor 3.
According to the opening and closing angle beta of the second body 2 relative to the first body 1, the effective detection distance of the distance sensor 3 is adjusted according to the corresponding different user use distances, so that the electronic equipment can be better suitable for different use states of the electronic equipment.
Specifically, the maximum detection distance of the distance sensor 3 is 1.5m. When the opening and closing angle beta of the second body 2 relative to the first body 1 is 30-127 degrees, the using distance of a person is relatively short, and the first effective detection distance adopted by the distance sensor 3 is 0.8m; when the opening and closing angle beta of the second body 2 relative to the first body 1 is between 127 degrees and 270 degrees, the adopted second effective detection distance is 1.2m; when the opening and closing angle β of the second body 2 relative to the first body 1 is greater than 270 °, the third effective detection distance is 1.5m.
The embodiment of the application also discloses an electronic device, which comprises a state detector for acquiring the use state of the electronic device; a distance sensor 3 capable of detecting the distance of a plurality of points within the effective field of view of the distance sensor 3; a controller that receives a use state signal of the electronic device, the controller setting a first effective field angle α1 of the distance sensor 3 in a first use state to be different from a second effective field angle α2 in a second use state in response to the use state of the electronic device so that a first effective field range of the distance sensor 3 in the first use state and a second effective field range in the second use state are different; the electronic device has at least a first use state and a second use state, and the distance between the distance sensor 3 and the supporting surface for supporting the electronic device is different in the two use states.
The electronic equipment disclosed by the application acquires the use state of the electronic equipment through the state detector; according to different use states of the electronic equipment, the controller controls the distance sensor 3 to have different effective visual field ranges; the electronic equipment is set to use the first effective field angle alpha 1 in the first use state and use the second effective field angle alpha 2 in the second use state, so that when the distance sensor 3 has different distances with the supporting surface for supporting the electronic equipment, the object can be accurately detected at a plurality of points in the effective field range, the object interference beyond the object is avoided, and the accuracy of detecting whether the object exists before the electronic equipment is improved.
In a specific embodiment, as shown in fig. 1-2, an electronic device includes a first body 1 and a second body 2; the second body 2 is provided with a display component which is rotationally connected with the first body 1 to realize the opening and closing of the second body 2 relative to the first body 1, and the opening and closing angle beta between the first body 1 and the second body 2 is 0-360 degrees; the distance sensor 3 is located on the display side of the second body 2 and is disposed at an end of the second body 2 opposite to the connection end of the first body 1 and the second body 2; the state detector comprises a first gravity sensor arranged on the first body 1 and a second gravity sensor arranged on the second body 2, and the controller can obtain the opening and closing angle beta of the second body 2 relative to the first body 1 according to the detection of the first gravity sensor and the second gravity sensor so as to obtain the use state of the electronic equipment; when the opening and closing angle beta of the second body 2 relative to the first body 1 is smaller than 180 degrees, the electronic equipment is in a first use state, and the controller sets the first effective field angle alpha 1 as the maximum vertical field angle of the distance sensor 3; when the opening and closing angle β of the second body 2 relative to the first body 1 is greater than the first target angle and smaller than 360 °, the electronic device is in the second use state, and the controller sets the second effective field angle α2 smaller than the first effective field angle α1 by adjusting the angle of the effective lower detection edge line of the distance sensor 3 relative to the horizontal direction so that the detection distance of the effective lower detection edge line is greater than the minimum effective detection distance of the distance sensor 3; wherein the first target angle is greater than 180 °.
In the embodiment, the opening and closing angle beta of the second body 2 relative to the first body 1 is obtained through the first gravity sensor and the second gravity sensor to obtain the use state of the electronic equipment;
The electronic device of this embodiment is a notebook computer, the first body 1 is a base, the second body 2 is a display screen, and when in use, the supporting surface for supporting the electronic device is a horizontal plane.
The first gravity sensor and the second gravity sensor acquire an included angle between the first body 1 and the second body 2 by sensing the change of the gravity direction of the first body 1 and the second body 2, so that the distance between the distance sensor 3 and the supporting surface for supporting the electronic equipment is obtained.
Specifically, the distance sensor 3 is a TOF (Time of Flight) sensor, has a lattice capable of detecting distance, and is a 3D depth image capturing mode, mainly by emitting near infrared light to a target object through the sensor, using light to start from a lens, and then to meet the light reflected by the surface of the object, calculating the Time difference/phase difference between the light emission and reflection, and calculating the current distance.
The target object in the embodiment is a person, and the TOF sensor determines that the person exists when detecting that the barrier exists in the set effective visual field range by emitting rays; otherwise, the notebook computer is in a locking state.
Alternatively, the distance sensor 3 may also be a radar or ultrasonic distance sensor 3.
It can be understood that the electronic device may be other devices, such as a tablet pc, which respectively form a first use state and a second use state when the horizontal screen is used and the vertical screen is used; the intelligent sound box and the intelligent alarm clock can be used for changing the effective field angle according to different installation angles on the vertical wall, and the first effective field angle alpha 1 and the second effective field angle alpha 2 are effective horizontal field angles of the distance sensor 3 in the horizontal direction.
As shown in fig. 1, when the notebook computer is used in the conventional mode, that is, the first body 1 is placed on the desktop, and the opening angle of the second body 2 is smaller than 180 °, the electronic device is considered to be in the first use state, the distance sensor 3 is located above, and the distance sensor 3 is set to use the maximum vertical field angle as the first effective field angle α1.
As shown in fig. 2, when the notebook computer adopts the tent mode, that is, the opening angle of the second body 2 is greater than 180 ° and the first body 1 and the second body 2 form a triangular support with the desktop, the electronic device is considered to be in the second use state, the top frame of the display screen can rotate to the lower side, the distance sensor 3 is closer to the desktop, and the effective angle of view is reduced to the second effective angle of view α2, thereby avoiding shortening the use distance of the user due to the fact that the article on the desktop is detected by mistake, changing the effective detection distance, further causing the condition that the user cannot detect before the computer, and improving the accuracy of detecting whether the user exists before the computer.
The first target angle is 220-240 degrees; when the electronic device is in the second use state, the second effective field angle α2 is gradually reduced as the opening and closing angle β of the second body 2 relative to the first body 1 increases. Specifically, the first target angle is selected to be 230 °. When the opening and closing angle beta of the second body 2 relative to the first body 1 is larger than 180 degrees and smaller than 230 degrees, the blocking object on the tabletop is not in the visual field range of the distance sensor 3; according to the application, when the opening and closing angle beta of the second body 2 relative to the first body 1 is larger than 230 degrees, the effective lower detection edge line of the distance sensor 3 gradually approaches the upper detection edge line, and the effective field angle of the distance sensor 3 in the vertical direction is gradually reduced, so that the distance sensor 3 can avoid a desktop barrier and ensure the maximum effective field range, and the sensitivity of detecting whether a user is in front of a computer is further improved.
Preferably, when the opening and closing angle β of the second body 2 relative to the first body 1 is smaller than the second target angle, the controller controls the distance sensor 3 to adopt the first detection time and the first effective detection distance; when the opening and closing angle beta of the second body 2 relative to the first body 1 is between the second target angle and the third target angle, the controller controls the distance sensor 3 to adopt a second detection time and a second effective detection distance, and the second detection time is gradually prolonged along with the increase of the opening and closing angle beta; when the opening and closing angle beta of the second body 2 relative to the first body 1 is larger than a third target angle, the controller controls the distance sensor 3 to adopt a third detection time and a third effective detection distance; wherein the second target angle is 120-130 degrees, and the third target angle is 270-280 degrees; the first detection time is less than the second detection time and less than the third detection time; the first effective detection distance is less than the second effective detection distance and less than the third effective detection distance, and the third effective detection distance is the maximum detection distance of the distance sensor 3.
Specifically, the second target angle is selected to be 127 ° and the third target angle is selected to be 270 °. According to the application, the detection time of the distance sensor 3 is adjusted according to the opening and closing angle beta of the second body 2 relative to the first body 1; when the opening and closing angle beta of the second body 2 relative to the first body 1 is 30-127 degrees, the visual field range of the distance sensor 3 is easy to detect a person, and shorter first detection time is adopted; when the opening and closing angle beta of the second body 2 relative to the first body 1 is between 127 degrees and 270 degrees, the adopted second detection time continuously increases; when the opening and closing angle beta of the second body 2 relative to the first body 1 is larger than 270 degrees, the third detection time is prolonged.
The first detection time is 4-6 seconds, and the third detection time is 12-18 seconds. Specifically, the first detection time is 5 seconds, the third detection time is 15 seconds, and the second detection time is gradually prolonged from 5 seconds to 15 seconds according to the increase of the opening and closing angle beta of the second body 2 relative to the first body 1, so that the use state of the person is conveniently detected by adopting shorter detection time, the use state of the person is inconvenient to be detected by adopting longer detection time, and the working state of the electronic equipment can be more intelligently controlled.
According to the opening and closing angle beta of the second body 2 relative to the first body 1, the effective detection distance of the distance sensor 3 is adjusted according to the corresponding different user use distances, so that the electronic equipment can be better suitable for different use states of the electronic equipment.
Specifically, the maximum detection distance of the distance sensor 3 is 1.5m. When the opening and closing angle beta of the second body 2 relative to the first body 1 is 30-127 degrees, the using distance of a person is relatively short, and the first effective detection distance adopted by the distance sensor 3 is 0.8m; when the opening and closing angle beta of the second body 2 relative to the first body 1 is between 127 degrees and 270 degrees, the adopted second effective detection distance is 1.2m; when the opening and closing angle β of the second body 2 relative to the first body 1 is greater than 270 °, the third effective detection distance is 1.5m.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. The control method is applied to electronic equipment, wherein the electronic equipment is provided with a distance sensor, and the distance of a plurality of points in the effective visual field range of the distance sensor can be detected; the control method is characterized by comprising the following steps:
acquiring a use state of the electronic equipment, wherein the electronic equipment at least has a first use state and a second use state, and the distance between the distance sensor and a supporting surface for supporting the electronic equipment is different in the first use state and the second use state;
Setting a first effective field angle of the distance sensor in the first use state to be different from a second effective field angle of the distance sensor in the second use state in response to a use state of the electronic device, so that a first effective field range of the distance sensor in the first use state and a second effective field range in the second use state are different;
The angle of the effective lower detection edge line of the distance sensor relative to the horizontal direction of the supporting surface is adjusted to be different from the first effective angle of view by upwards detecting the approaching direction of the edge line along the lower detection edge line of the distance sensor, so that the barrier placed on the supporting surface is not in the second effective field of view of the distance sensor.
2. The control method according to claim 1, characterized in that the electronic device includes a first body provided with a first gravity sensor and a second body provided with a second gravity sensor;
acquiring the use state of the electronic equipment by acquiring the opening and closing angle of the second body relative to the first body through the first gravity sensor and the second gravity sensor;
The second body is provided with a display component which is rotationally connected with the first body to realize the opening and closing of the second body relative to the first body, and the opening and closing angle of the first body and the second body is 0-360 degrees;
The distance sensor is positioned on the display side of the second body and is arranged at one end of the second body opposite to the connecting end of the first body and the second body;
the first effective field of view and the second effective field of view are effective vertical field of view angles of the distance sensor in a vertical direction.
3. The control method according to claim 2, wherein when the opening and closing angle of the second body with respect to the first body is smaller than 180 °, the electronic device is acquired to be in the first use state, and the first effective field angle is set as the maximum vertical field angle of the distance sensor;
when the opening and closing angle of the second body relative to the first body is larger than a first target angle and smaller than 360 degrees, acquiring that the electronic equipment is in the second use state, and setting the second effective field angle smaller than the first effective field angle by adjusting the angle of the effective lower detection edge line of the distance sensor relative to the horizontal direction so that the detection distance of the effective lower detection edge line is larger than the minimum effective detection distance of the distance sensor;
wherein the first target angle is greater than 180 °.
4. A control method according to claim 3, wherein the first target angle is 220 ° -240 °;
when the electronic equipment is in the second use state, the second effective field angle is gradually reduced along with the increase of the opening and closing angle of the second body relative to the first body.
5. The control method according to claim 2, wherein when the opening and closing angle of the second body relative to the first body is smaller than a second target angle, the distance sensor is controlled to use a first detection time;
when the opening and closing angle of the second body relative to the first body is between the second target angle and the third target angle, controlling the distance sensor to adopt a second detection time, wherein the second detection time is gradually prolonged along with the increase of the opening and closing angle;
when the opening and closing angle of the second body relative to the first body is larger than the third target angle, controlling the distance sensor to adopt third detection time;
Wherein the second target angle is 120-130 degrees and the third target angle is 270-280 degrees; the first detection time is less than the second detection time and less than the third detection time.
6. The control method according to claim 5, wherein the first detection time is 4-6 seconds and the third detection time is 12-18 seconds.
7. The control method according to claim 5, wherein when the opening and closing angle of the second body with respect to the first body is smaller than the second target angle, the distance sensor is controlled to use a first effective detection distance;
when the opening and closing angle of the second body relative to the first body is between the second target angle and the third target angle, controlling the distance sensor to adopt a second effective detection distance;
When the opening and closing angle of the second body relative to the first body is larger than the third target angle, controlling the distance sensor to adopt a third effective detection distance;
The first effective detection distance is smaller than the second effective detection distance and smaller than the third effective detection distance, and the third effective detection distance is the maximum detection distance of the distance sensor.
8. An electronic device, comprising:
The state detector is used for acquiring the use state of the electronic equipment, and the electronic equipment at least has a first use state and a second use state;
the distance sensor can detect the distance of a plurality of points in the effective visual field range of the distance sensor;
A controller that receives a use state signal of the electronic device, the controller setting a first effective field of view of the distance sensor in the first use state to be different from a second effective field of view of the distance sensor in the second use state in response to the use state of the electronic device, such that the first effective field of view of the distance sensor in the first use state and the second effective field of view in the second use state are different;
the distance sensor and the supporting surface supporting the electronic device are different in distance in the first use state and the second use state, and the controller sets the second effective view angle to be different from the first effective view angle by adjusting the angle of the effective lower detection edge line of the distance sensor relative to the horizontal direction of the supporting surface along the direction in which the lower detection edge line of the distance sensor approaches upward, so that a barrier placed on the supporting surface is not in the second effective view range of the distance sensor.
9. The electronic device of claim 8, wherein the electronic device comprises a first body and a second body; the second body is provided with a display component which is rotationally connected with the first body to realize the opening and closing of the second body relative to the first body, and the opening and closing angle of the first body and the second body is 0-360 degrees; the distance sensor is positioned on the display side of the second body and is arranged at one end of the second body opposite to the connecting end of the first body and the second body;
The state detector comprises a first gravity sensor arranged on the first body and a second gravity sensor arranged on the second body, and the controller can obtain the opening and closing angle of the second body relative to the first body according to the detection of the first gravity sensor and the second gravity sensor so as to obtain the use state of the electronic equipment;
when the opening and closing angle of the second body relative to the first body is smaller than 180 degrees, the electronic equipment is in the first use state, and the controller sets the first effective field angle as the maximum vertical field angle of the distance sensor;
When the opening and closing angle of the second body relative to the first body is larger than a first target angle and smaller than 360 degrees, the electronic equipment is in the second use state, and the controller sets the second effective field angle smaller than the first effective field angle by adjusting the angle of the effective lower detection edge line of the distance sensor relative to the horizontal direction so that the detection distance of the effective lower detection edge line is larger than the minimum effective detection distance of the distance sensor;
wherein the first target angle is greater than 180 °.
10. The electronic device of claim 9, wherein the controller controls the distance sensor to employ a first detection time and a first effective detection distance when the opening and closing angle of the second body relative to the first body is less than a second target angle;
When the opening and closing angle of the second body relative to the first body is between the second target angle and the third target angle, the controller controls the distance sensor to adopt a second detection time and a second effective detection distance, and the second detection time is gradually prolonged along with the increase of the opening and closing angle;
When the opening and closing angle of the second body relative to the first body is larger than the third target angle, the controller controls the distance sensor to adopt a third detection time and a third effective detection distance;
Wherein the second target angle is 120-130 degrees and the third target angle is 270-280 degrees; the first detection time is less than the second detection time and less than the third detection time;
The first effective detection distance is smaller than the second effective detection distance and smaller than the third effective detection distance, and the third effective detection distance is the maximum detection distance of the distance sensor.
CN202110346726.0A 2021-03-31 2021-03-31 Control method and electronic equipment Active CN113064806B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110346726.0A CN113064806B (en) 2021-03-31 2021-03-31 Control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110346726.0A CN113064806B (en) 2021-03-31 2021-03-31 Control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN113064806A CN113064806A (en) 2021-07-02
CN113064806B true CN113064806B (en) 2024-05-28

Family

ID=76565087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110346726.0A Active CN113064806B (en) 2021-03-31 2021-03-31 Control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN113064806B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216509A (en) * 2013-06-03 2014-12-17 联想(北京)有限公司 Electronic equipment and information processing method
CN105929819A (en) * 2012-02-27 2016-09-07 联想(北京)有限公司 Method for controlling electronic equipment, and electronic equipment
CN107145162A (en) * 2017-04-10 2017-09-08 北京小鸟看看科技有限公司 Camera angle method of adjustment, system and virtual reality system
CN109634429A (en) * 2018-12-29 2019-04-16 联想(北京)有限公司 A kind of electronic equipment and information acquisition method
CN111256580A (en) * 2020-02-13 2020-06-09 维沃移动通信有限公司 Electronic equipment and rotation angle detection method
JP2020102151A (en) * 2018-12-25 2020-07-02 レノボ・シンガポール・プライベート・リミテッド Electronic device, control method, and program
CN111475077A (en) * 2020-02-04 2020-07-31 华为技术有限公司 Display control method and electronic equipment
CN111896971A (en) * 2020-08-05 2020-11-06 上海炬佑智能科技有限公司 TOF sensing device and distance detection method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI464445B (en) * 2012-09-26 2014-12-11 Pixart Imaging Inc Miniaturized optical system, light source module and portable electronic device
JP6367049B2 (en) * 2013-11-15 2018-08-01 シャープ株式会社 Electronics

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105929819A (en) * 2012-02-27 2016-09-07 联想(北京)有限公司 Method for controlling electronic equipment, and electronic equipment
CN104216509A (en) * 2013-06-03 2014-12-17 联想(北京)有限公司 Electronic equipment and information processing method
CN107145162A (en) * 2017-04-10 2017-09-08 北京小鸟看看科技有限公司 Camera angle method of adjustment, system and virtual reality system
JP2020102151A (en) * 2018-12-25 2020-07-02 レノボ・シンガポール・プライベート・リミテッド Electronic device, control method, and program
CN109634429A (en) * 2018-12-29 2019-04-16 联想(北京)有限公司 A kind of electronic equipment and information acquisition method
CN111475077A (en) * 2020-02-04 2020-07-31 华为技术有限公司 Display control method and electronic equipment
CN111256580A (en) * 2020-02-13 2020-06-09 维沃移动通信有限公司 Electronic equipment and rotation angle detection method
CN111896971A (en) * 2020-08-05 2020-11-06 上海炬佑智能科技有限公司 TOF sensing device and distance detection method thereof

Also Published As

Publication number Publication date
CN113064806A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
US11069217B2 (en) Sensor configuration
KR101773592B1 (en) Smart system for blind people and method for obstacle detection
CN111671352B (en) Automatic door induction triggering area adjusting method
US8963088B2 (en) Passive infrared range, size, and direction finding proximity detector
US11543559B2 (en) Device, system, and method for detecting human presence
EP2167982B1 (en) Sensible motion detector
US10072403B2 (en) Human body detection sensor and automatic faucet
WO2021147122A1 (en) Human detection method and apparatus, terminal device, storage medium, and electronic device
KR20190081316A (en) Moving apparatus for cleaning and method for controlling thereof
US10682270B2 (en) Seat, motion control method thereof and motion control system thereof
KR20200051576A (en) Human safety protection laser sensor for revolving door
CN110082836A (en) A kind of human body recognition method based on infrared sensor, device and equipment
CN113064806B (en) Control method and electronic equipment
CN112450810A (en) Sweeping robot and control method for same
US11782124B2 (en) Electric or electronic device module comprising at least one radar sensor
WO2014108771A2 (en) Controlling a lighting system based on detecting motion
WO2023078323A1 (en) Self-moving device, obstacle detection method of self-moving device, and storage medium
CN113623828A (en) Control method and device of air conditioner and air conditioner
CN110544365A (en) Bathroom falling sensing device
CN109001712B (en) Infrared distance sensor calibration method and intelligent household appliance
JP2003270354A (en) Switch for automatic door
JP3090354B2 (en) Distance measuring intruder detector
CN112346053A (en) Biological radar, sensing controller, control method, electrical equipment and storage medium
CN209172202U (en) Clean robot
TWM514576U (en) Motion detection device

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