Search

CN-122018640-A - Anti-collision method and device, electronic equipment and storage medium

CN122018640ACN 122018640 ACN122018640 ACN 122018640ACN-122018640-A

Abstract

The application provides an anti-collision method, device, equipment and storage medium, wherein the method comprises the steps of responding to the output of N magnetic induction devices to meet a first preset condition, determining the adsorption position of an external keyboard on a first display screen based on the relative positions of the N magnetic induction devices and the first display screen, wherein N is an integer larger than 0, determining a locking angle threshold corresponding to the adsorption position according to the corresponding relation between the preset position and a locking angle, and controlling the locking device to lock so as to prevent the first display screen and the second display screen from being closed, wherein the first included angle is an included angle between the first display screen and the second display screen. According to the application, when the included angle of the two screens is smaller than the threshold value corresponding to the adsorbed position of the keyboard, the first display screen and the second display screen are prevented from being closed based on the locking device, so that the potential safety hazard that the keyboard and the display screen are easy to collide when the two-screen notebook computer is closed is solved.

Inventors

  • LI SHUAI
  • YANG XUKUN
  • YIN LONG
  • YUE XUDONG
  • TANG GUANG

Assignees

  • 联宝(合肥)电子科技有限公司

Dates

Publication Date
20260512
Application Date
20260112

Claims (10)

  1. 1. The utility model provides an anticollision method, its characterized in that is applied to electronic equipment, electronic equipment includes first display screen and second display screen, first display screen with the second display screen passes through the pivot and connects, be provided with locking device in the pivot, external keyboard can adsorb in on the first display screen, first display screen below is provided with N magnetic induction device, the method includes: Responding to the output of N magnetic induction devices to meet a first preset condition, and determining the adsorption position of the external keyboard on the first display screen based on the relative positions of the N magnetic induction devices and the first display screen, wherein N is an integer greater than 0; Determining a locking angle threshold corresponding to the adsorption position according to a corresponding relation between a preset position and a locking angle; And controlling the locking device to lock in response to the first included angle being smaller than or equal to the locking angle threshold value so as to prevent the first display screen and the second display screen from being closed, wherein the first included angle is an included angle between the first display screen and the second display screen.
  2. 2. The method of claim 1, wherein the output of the magnetic induction device meets a first predetermined condition, comprising changing a level of the output of the magnetic induction device from a first level to a second level, the first level being higher than the second level, or wherein a duration of the output of the magnetic induction device being the second level and being maintained at the second level exceeds a predetermined duration threshold.
  3. 3. The method of claim 1, wherein determining the adsorption position of the external keyboard on the first display screen based on the relative positions of the N magnetic induction devices and the first display screen comprises: responding to the output magnetic induction devices meeting a first preset condition and distributed in a first installation area below the first display screen, and determining a first placement area of the first display screen as an adsorption position of the external keyboard on the first display screen; and responding to the output magnetic induction devices meeting the first preset condition and distributed in a second installation area below the first display screen, and determining a second placement area of the first display screen as an adsorption position of the external keyboard on the first display screen.
  4. 4. The method of claim 1, wherein prior to controlling the locking of the locking device in response to the first angle being less than or equal to the locking angle threshold, the method further comprises: Determining an alarm angle threshold corresponding to the adsorption position according to a preset corresponding relation between the position and the alarm angle; And sending out alarm information in response to the first included angle being smaller than or equal to the alarm angle threshold, wherein the alarm angle threshold is larger than the locking angle threshold.
  5. 5. The method of collision avoidance according to claim 1, further comprising: And controlling the locking device to stop the locking action in response to the first included angle being larger than the locking angle threshold value and/or the output of the N magnetic induction devices not meeting a first preset condition, so that the first display screen and the second display screen can be closed.
  6. 6. The utility model provides an anti-collision device, its characterized in that is applied to electronic equipment, electronic equipment includes first display screen and second display screen, first display screen with the second display screen is connected through the pivot, be provided with locking device in the pivot, external keyboard can adsorb in on the first display screen, first display screen below is provided with N magnetic induction device, the device includes: The first determining module is used for determining the adsorption position of the external keyboard on the first display screen based on the relative positions of the N magnetic induction devices and the first display screen in response to the output of the N magnetic induction devices meeting a first preset condition, wherein N is an integer greater than 0; the second determining module is used for determining a locking angle threshold value corresponding to the adsorption position according to the corresponding relation between the preset position and the locking angle; And the control module is used for responding to the fact that the first included angle is smaller than or equal to the locking angle threshold value, controlling the locking device to lock so as to prevent the first display screen from being closed with the second display screen, and the first included angle is an included angle between the first display screen and the second display screen.
  7. 7. The anti-collision device of claim 1, wherein the first determination module comprises: the first determining submodule is used for determining a first placement area of the first display screen as an adsorption position of the external keyboard on the first display screen in response to the fact that magnetic induction devices which output the magnetic induction devices according with a first preset condition are distributed in a first installation area below the first display screen; the second determining submodule is used for responding to the fact that the magnetic induction devices which output the magnetic induction devices meeting the first preset conditions are distributed in a second installation area below the first display screen, and determining that a second placement area of the first display screen is an adsorption position of the external keyboard on the first display screen.
  8. 8. The anti-collision device of claim 1, further comprising: the third determining module is used for determining an alarm angle threshold corresponding to the adsorption position according to the corresponding relation between the preset position and the alarm angle; And the early warning module is used for responding to the fact that the first included angle is smaller than or equal to the alarm angle threshold value, and sending out a voice alarm, wherein the alarm angle threshold value is larger than the locking angle threshold value.
  9. 9. An electronic device, comprising: The first display screen is connected with the second display screen through a rotating shaft and is used for placing an external keyboard, a locking device is arranged in the rotating shaft, and the locking device is connected with the embedded controller; The second display screen; The N magnetic induction devices are distributed below the first display screen; the embedded controller for performing the collision avoidance method of any of claims 1 to 5.
  10. 10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-5.

Description

Anti-collision method and device, electronic equipment and storage medium Technical Field The present application relates to the field of device control technologies, and in particular, to an anti-collision method, an anti-collision device, an electronic device, and a storage medium. Background Both the B-side (conventional display panel) and the C-side (conventional keyboard side) of the dual-screen notebook computer are set as screens. In order to make up for the lack of physical keyboards, a virtual keyboard and a touch pad are usually implemented on a C-plane screen through software, and an external keyboard, such as a bluetooth keyboard, which can be adsorbed on the C-plane screen is usually provided for such notebook computers. However, when the external keyboard is adsorbed on the C-plane screen, if the user closes the computer, the B-plane screen is easily collided with the hard external keyboard, so that the B-plane screen is broken, that is, the design of the dual-screen notebook computer in the related art has potential safety hazard. Disclosure of Invention The application provides an anti-collision method, an anti-collision device, anti-collision equipment and a storage medium, which are used for at least solving the technical problems in the prior art. The application provides an anti-collision method, which is applied to electronic equipment, wherein the electronic equipment comprises a first display screen and a second display screen, the first display screen is connected with the second display screen through a rotating shaft, a locking device is arranged in the rotating shaft, an external keyboard can be adsorbed on the first display screen, and N magnetic induction devices are arranged below the first display screen, and the method comprises the following steps: Responding to the output of N magnetic induction devices to meet a first preset condition, and determining the adsorption position of the external keyboard on the first display screen based on the relative positions of the N magnetic induction devices and the first display screen, wherein N is an integer greater than 0; Determining a locking angle threshold corresponding to the adsorption position according to a corresponding relation between a preset position and a locking angle; And controlling the locking device to lock in response to the first included angle being smaller than or equal to the locking angle threshold value so as to prevent the first display screen and the second display screen from being closed, wherein the first included angle is an included angle between the first display screen and the second display screen. In one embodiment, the output of the magnetic induction device meets a first preset condition, including changing the level of the output of the magnetic induction device from a first level to a second level, wherein the first level is higher than the second level, or maintaining the level of the output of the magnetic induction device at the second level for a period of time exceeding a preset period of time threshold. In an embodiment, the determining, based on the relative positions of the N magnetic induction devices and the first display screen, an adsorption position of the external keyboard on the first display screen includes: responding to the output magnetic induction devices meeting a first preset condition and distributed in a first installation area below the first display screen, and determining a first placement area of the first display screen as an adsorption position of the external keyboard on the first display screen; and responding to the output magnetic induction devices meeting the first preset condition and distributed in a second installation area below the first display screen, and determining a second placement area of the first display screen as an adsorption position of the external keyboard on the first display screen. In one embodiment, before controlling the locking of the locking device in response to the first included angle being less than or equal to the locking angle threshold, the method further comprises: Determining an alarm angle threshold corresponding to the adsorption position according to a preset corresponding relation between the position and the alarm angle; and responding to the first included angle being smaller than or equal to the alarm angle threshold value, and sending out a voice alarm, wherein the alarm angle threshold value is larger than the locking angle threshold value. In an embodiment, the method further comprises: And controlling the locking device to stop the locking action in response to the first included angle being larger than the locking angle threshold value and/or the output of the N magnetic induction devices not meeting a first preset condition, so that the first display screen and the second display screen can be closed. According to a second aspect of the present application, there is provided an anti-collision device, applied to