[go: up one dir, main page]

CN111561899A - A folding angle detection method and electronic device - Google Patents

A folding angle detection method and electronic device Download PDF

Info

Publication number
CN111561899A
CN111561899A CN202010354734.5A CN202010354734A CN111561899A CN 111561899 A CN111561899 A CN 111561899A CN 202010354734 A CN202010354734 A CN 202010354734A CN 111561899 A CN111561899 A CN 111561899A
Authority
CN
China
Prior art keywords
electronic device
rotating shaft
distance
folding
folding body
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.)
Pending
Application number
CN202010354734.5A
Other languages
Chinese (zh)
Inventor
付何洋
贺晨阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010354734.5A priority Critical patent/CN111561899A/en
Publication of CN111561899A publication Critical patent/CN111561899A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/22Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring angles or tapers; for testing the alignment of axes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/02Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B7/00Measuring arrangements characterised by the use of electric or magnetic techniques
    • G01B7/02Measuring arrangements characterised by the use of electric or magnetic techniques for measuring length, width or thickness
    • G01B7/023Measuring arrangements characterised by the use of electric or magnetic techniques for measuring length, width or thickness for measuring distance between sensor and object

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

本发明提供了一种折叠角度检测方法及电子设备,其中,电子设备,包括第一折叠主体、第二折叠主体、与所述第一折叠主体连接的第一转轴和与所述第二折叠主体连接的第二转轴,所述第一转轴与所述第二转轴同轴线设置;所述电子设备还包括:围绕所述第一转轴的轴面固定设置的螺旋片;固定设置于所述第二转轴的端面上的距离传感器;其中,所述距离传感器与所述螺旋片相对设置,在所述第一折叠主体相对所述第二折叠主体转动的过程中,所述距离传感器沿所述第一转轴和第二转轴的轴心线方向的投影位于所述螺旋片的表面。本方案很好的解决了现有技术中电子设备折叠角度检测方案存在实现成本高、能够识别的角度有限的问题。

Figure 202010354734

The present invention provides a folding angle detection method and electronic device, wherein the electronic device includes a first folding body, a second folding body, a first rotating shaft connected with the first folding body, and a first folding body connected with the second folding body The second rotating shaft is connected, and the first rotating shaft and the second rotating shaft are arranged coaxially; the electronic device further includes: a screw plate fixedly arranged around the axial surface of the first rotating shaft; fixedly arranged on the first rotating shaft A distance sensor on the end surface of the two rotating shafts; wherein, the distance sensor is arranged opposite to the helical sheet, and during the rotation of the first folded body relative to the second folded body, the distance sensor moves along the second folded body. The projections of the axis line directions of the first rotating shaft and the second rotating shaft are located on the surface of the helical sheet. The solution well solves the problems of high implementation cost and limited identifiable angles in the prior art solution for detecting the folding angle of an electronic device.

Figure 202010354734

Description

一种折叠角度检测方法及电子设备A folding angle detection method and electronic device

技术领域technical field

本发明涉及电子设备技术领域,尤其涉及一种折叠角度检测方法及电子设备。The present invention relates to the technical field of electronic equipment, and in particular, to a folding angle detection method and electronic equipment.

背景技术Background technique

以柔性折叠屏手机为例,如果需要通过终端手机的转动动作实现人机交互、功能扩展等需求,则需要能够较为准确地检测到折叠屏手机的折叠角度。相关技术中,采用霍尔传感器感应磁场强度的变化,进而能够实时检测折叠屏手机的折叠角度,但其缺点是,当用户在磁场环境下使用折叠屏手机时,磁场环境可能会对霍尔传感器造成干扰或失效影响用户体验。Taking a flexible folding screen mobile phone as an example, if it is necessary to realize human-computer interaction, function expansion and other requirements through the rotating action of the terminal mobile phone, it is necessary to be able to detect the folding angle of the folding screen mobile phone more accurately. In the related art, the Hall sensor is used to sense the change of the magnetic field strength, so that the folding angle of the folding screen mobile phone can be detected in real time, but the disadvantage is that when the user uses the folding screen mobile phone in the magnetic field environment, the magnetic field environment may affect the Hall sensor. Cause interference or failure to affect the user experience.

此外,现有的电子设备折叠角度检测方案存在实现成本高、实现难度大、能够识别的角度有限、结构复杂等问题。In addition, the existing solutions for detecting the folding angle of electronic equipment have problems such as high implementation cost, high implementation difficulty, limited identifiable angles, and complex structure.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种折叠角度检测方法及电子设备,以解决现有技术中电子设备折叠角度检测方案存在实现成本高、能够识别的角度有限的问题。The purpose of the present invention is to provide a folding angle detection method and an electronic device, so as to solve the problems of high implementation cost and limited identifiable angles in the existing electronic device folding angle detection solution.

为了解决上述技术问题,本发明是这样实现的:In order to solve the above-mentioned technical problems, the present invention is achieved in this way:

第一方面,本发明实施例提供了一种电子设备,包括第一折叠主体、第二折叠主体、与所述第一折叠主体连接的第一转轴和与所述第二折叠主体连接的第二转轴,所述第一转轴与所述第二转轴同轴线设置;所述电子设备还包括:In a first aspect, an embodiment of the present invention provides an electronic device, comprising a first folding body, a second folding body, a first rotating shaft connected to the first folding body, and a second folding body connected to the second folding body A rotating shaft, the first rotating shaft and the second rotating shaft are arranged coaxially; the electronic device further includes:

围绕所述第一转轴的轴面固定设置的螺旋片;a helical sheet fixedly arranged around the axial surface of the first rotating shaft;

固定设置于所述第二转轴的端面上的距离传感器;a distance sensor fixedly arranged on the end face of the second rotating shaft;

其中,所述距离传感器与所述螺旋片相对设置,在所述第一折叠主体相对所述第二折叠主体转动的过程中,所述距离传感器沿所述第一转轴和第二转轴的轴心线方向的投影位于所述螺旋片的表面。Wherein, the distance sensor is disposed opposite to the helical sheet. During the rotation of the first folding body relative to the second folding body, the distance sensor is located along the axis of the first rotating shaft and the second rotating shaft. The projection of the line direction is on the surface of the helix.

第二方面,本发明实施例还提供了一种折叠角度检测方法,应用于上述的电子设备,所述折叠角度检测方法包括:In a second aspect, an embodiment of the present invention further provides a method for detecting a folding angle, which is applied to the aforementioned electronic device, and the method for detecting a folding angle includes:

获取所述电子设备中的距离传感器的检测信号;acquiring the detection signal of the distance sensor in the electronic device;

根据所述检测信号,确定所述距离传感器沿预设方向到所述螺旋片的距离;According to the detection signal, determine the distance from the distance sensor to the helical piece along a preset direction;

根据所述距离,确定所述第一折叠主体与所述第二折叠主体之间的相对角度;determining a relative angle between the first folding body and the second folding body according to the distance;

其中,所述预设方向为所述电子设备的第一转轴和第二转轴的轴心线方向。Wherein, the preset direction is the axis line direction of the first rotating shaft and the second rotating shaft of the electronic device.

第三方面,本发明实施例还提供了一种电子设备,包括上述的电子设备所包含的第一折叠主体、第二折叠主体、第一转轴、第二转轴、螺旋片以及距离传感器,所述电子设备还包括:In a third aspect, an embodiment of the present invention further provides an electronic device, including a first folded body, a second folded body, a first rotating shaft, a second rotating shaft, a spiral piece, and a distance sensor included in the electronic device described above. Electronic equipment also includes:

第一获取模块,用于获取所述电子设备中的距离传感器的检测信号;a first acquisition module, configured to acquire a detection signal of a distance sensor in the electronic device;

第一确定模块,用于根据所述检测信号,确定所述距离传感器沿预设方向到所述螺旋片的距离;a first determining module, configured to determine the distance from the distance sensor to the helical sheet along a preset direction according to the detection signal;

第二确定模块,用于根据所述距离,确定所述第一折叠主体与所述第二折叠主体之间的相对角度;a second determining module, configured to determine the relative angle between the first folding body and the second folding body according to the distance;

其中,所述预设方向为所述电子设备的第一转轴和第二转轴的轴心线方向。Wherein, the preset direction is the axis line direction of the first rotating shaft and the second rotating shaft of the electronic device.

第四方面,本发明实施例还提供了一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述的折叠角度检测方法的步骤。In a fourth aspect, an embodiment of the present invention further provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor When executed, the steps of the above-mentioned folding angle detection method are realized.

第五方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现上述的折叠角度检测方法的步骤。In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned folding angle detection method are implemented.

在本发明实施例中,通过设置螺旋片和距离传感器,能够实现获得与电子设备的折叠角度相关的检测信号,进而精准的确定电子设备的当前折叠角度,并且能够确定任意折叠角度、实现成本较低、实现难度低,很好的解决了现有技术中电子设备折叠角度检测方案存在实现成本高、能够识别的角度有限的问题。In the embodiment of the present invention, by arranging the spiral sheet and the distance sensor, a detection signal related to the folding angle of the electronic device can be obtained, and then the current folding angle of the electronic device can be accurately determined, and any folding angle can be determined, and the realization cost is relatively low. The utility model has the advantages of low cost and low implementation difficulty, and solves the problems of high implementation cost and limited identifiable angles in the prior art electronic device folding angle detection solution.

附图说明Description of drawings

图1为本发明实施例的电子设备结构示意图一;FIG. 1 is a schematic structural diagram 1 of an electronic device according to an embodiment of the present invention;

图2为本发明实施例的折叠角度检测方法流程示意图;2 is a schematic flowchart of a method for detecting a folding angle according to an embodiment of the present invention;

图3为本发明实施例的折叠手机示意图;3 is a schematic diagram of a folding mobile phone according to an embodiment of the present invention;

图4为本发明实施例的部分电子设备结构示意图;4 is a schematic structural diagram of a part of an electronic device according to an embodiment of the present invention;

图5为本发明实施例的金属天线极板投影示意图;5 is a schematic projection view of a metal antenna pole plate according to an embodiment of the present invention;

图6为本发明实施例的距离传感器电路示意图;6 is a schematic diagram of a distance sensor circuit according to an embodiment of the present invention;

图7为本发明实施例的电子设备结构示意图二;7 is a second schematic structural diagram of an electronic device according to an embodiment of the present invention;

图8为本发明实施例的电子设备结构示意图三。FIG. 8 is a third schematic structural diagram of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

本发明针对现有的技术中电子设备折叠角度检测方案存在实现成本高、能够识别的角度有限的问题,提供一种电子设备,如图1所示,包括第一折叠主体1、第二折叠主体2、与所述第一折叠主体1连接的第一转轴3和与所述第二折叠主体2连接的第二转轴4,所述第一转轴3与所述第二转轴4同轴线设置;所述电子设备还包括:Aiming at the problems of high implementation cost and limited identifiable angles in the existing technology for detecting the folding angle of electronic devices, the present invention provides an electronic device, as shown in FIG. 1 , comprising a first folding body 1 and a second folding body 2. The first rotating shaft 3 connected with the first folding body 1 and the second rotating shaft 4 connected with the second folding body 2, the first rotating shaft 3 and the second rotating shaft 4 are arranged coaxially; The electronic device also includes:

围绕所述第一转轴3的轴面固定设置的螺旋片5;A helical sheet 5 fixedly arranged around the axial surface of the first rotating shaft 3;

固定设置于所述第二转轴4的端面上的距离传感器6;a distance sensor 6 fixedly arranged on the end face of the second rotating shaft 4;

其中,所述距离传感器6与所述螺旋片5相对设置,在所述第一折叠主体1相对所述第二折叠主体2转动的过程中,所述距离传感器6沿所述第一转轴3和第二转轴4的轴心线方向的投影位于所述螺旋片5的表面。Wherein, the distance sensor 6 is disposed opposite to the helical sheet 5. During the rotation of the first folding body 1 relative to the second folding body 2, the distance sensor 6 moves along the first rotating shaft 3 and The projection of the axis line direction of the second rotating shaft 4 is located on the surface of the spiral piece 5 .

本发明实施例提供的所述电子设备通过设置螺旋片和距离传感器,能够实现获得与电子设备的折叠角度相关的检测信号,进而精准的确定电子设备的当前折叠角度,并且能够确定任意折叠角度、实现成本较低、实现难度低,很好的解决了现有技术中电子设备折叠角度检测方案存在实现成本高、能够识别的角度有限的问题。The electronic device provided by the embodiment of the present invention can obtain a detection signal related to the folding angle of the electronic device by setting the spiral sheet and the distance sensor, thereby accurately determining the current folding angle of the electronic device, and can determine any folding angle, The implementation cost is low and the implementation difficulty is low, and the problems of high implementation cost and limited identifiable angles in the prior art electronic device folding angle detection solution are well solved.

具体的,所述距离传感器6与所述螺旋片5相对设置,且两者之间具有间隔空间,以便第一转轴与第二转轴之间相对运动的过程中,距离传感器与螺旋片之间不会碰撞;其中,“投影位于所述螺旋片5的表面”可为“投影持续位于所述螺旋片5的表面”,这样以保证得到较为精准的测量数据。Specifically, the distance sensor 6 and the helical sheet 5 are disposed opposite to each other, and there is a space between them, so that during the relative movement between the first rotating shaft and the second rotating shaft, there is no distance between the distance sensor and the helical sheet. may collide; wherein, "the projection is located on the surface of the helical blade 5" may be "the projection is continuously located on the surface of the helical blade 5", so as to ensure accurate measurement data.

本发明实施例中,第一转轴和第二转轴同轴心相对转动;图1中的α表示电子设备的折叠角度;进一步的,本发明实施例中的电子设备还可以包括圆形印制电路板7,以保证电路功能的正常实现,但并不以此为限。In the embodiment of the present invention, the first rotating shaft and the second rotating shaft rotate relatively coaxially; α in FIG. 1 represents the folding angle of the electronic device; further, the electronic device in the embodiment of the present invention may further include a circular printed circuit Board 7 to ensure the normal realization of circuit functions, but not limited to this.

如图1所示,具体的,所述第一转轴3套设于所述第二转轴4内,即第一转轴作为内轴,第二转轴作为外轴,外轴套设于内轴上。As shown in FIG. 1 , specifically, the first rotating shaft 3 is sleeved inside the second rotating shaft 4 , that is, the first rotating shaft is used as an inner shaft, the second rotating shaft is used as an outer shaft, and the outer shaft is sleeved on the inner shaft.

在此说明,本发明实施例中,与第一转轴连接的当然也可以是第二折叠主体,与第二转轴连接的也可以是第一折叠主体,即第一折叠主体与内轴连接,第二折叠主体与外轴连接。Here, in this embodiment of the present invention, of course, the second folding body is connected to the first rotating shaft, and the first folding body is also connected to the second rotating shaft, that is, the first folding body is connected to the inner shaft, and the second folding body The two-fold main body is connected with the outer shaft.

本发明实施例中,所述距离传感器可为通过信号反射测距的第一传感器,或者,所述距离传感器可为通过电容量测距的第二传感器。In this embodiment of the present invention, the distance sensor may be a first sensor that measures distance through signal reflection, or the distance sensor may be a second sensor that measures distance through capacitance.

其中,测距所使用的所述信号可为光信号、声波信号等,在此不作限定。Wherein, the signal used for ranging may be an optical signal, a sound wave signal, or the like, which is not limited herein.

具体的,在所述距离传感器为所述第一传感器的情况下,所述距离传感器的信号发射器和信号接收器设于所述第二转轴的预设端面上;所述信号发射器发送的信号通过所述螺旋片进行反射;其中,所述预设端面为靠近所述螺旋片的端面。Specifically, in the case where the distance sensor is the first sensor, the signal transmitter and the signal receiver of the distance sensor are arranged on the preset end surface of the second rotating shaft; the signal sent by the signal transmitter is The signal is reflected by the helical sheet; wherein, the preset end face is an end face close to the helical sheet.

这样能够保证得到较为精准的测量数据。This can ensure more accurate measurement data.

此外,第一传感器可以为激光测距传感器、雷达测距传感器或红外测距传感器,在此不作限定。In addition, the first sensor may be a laser ranging sensor, a radar ranging sensor or an infrared ranging sensor, which is not limited herein.

具体的,在所述距离传感器为所述第二传感器的情况下,所述距离传感器包括用于形成第二传感器的第一极板,所述第一极板设于所述第二转轴的预设端面上;所述螺旋片用于形成所述第二传感器的第二极板;其中,所述预设端面为靠近所述螺旋片的端面。Specifically, in the case where the distance sensor is the second sensor, the distance sensor includes a first electrode plate for forming a second sensor, and the first electrode plate is provided on a pre-position of the second shaft. The end face is set; the spiral sheet is used to form the second pole plate of the second sensor; wherein, the preset end face is the end face close to the spiral sheet.

这样同样能够保证得到较为精准的测量数据。This can also ensure more accurate measurement data.

此外,第二传感器可以为电容式接近传感器;所述投影为所述第一极板的投影;为了保证准确的测量结果,本发明实施例中,第一极板可为金属天线极板,即第一极板的材质为金属;对应的,所述螺旋片的材质为金属,所述第一转轴的材质为非金属;但并不以此为限。In addition, the second sensor may be a capacitive proximity sensor; the projection is the projection of the first pole plate; in order to ensure accurate measurement results, in the embodiment of the present invention, the first pole plate may be a metal antenna pole plate, that is The material of the first pole plate is metal; correspondingly, the material of the spiral piece is metal, and the material of the first rotating shaft is non-metal; but it is not limited thereto.

本发明实施例中,所述第一极板的形状可为扇形,但并不以此为限。In the embodiment of the present invention, the shape of the first electrode plate may be fan-shaped, but not limited thereto.

本发明实施例还提供了一种折叠角度检测方法,应用于上述的电子设备,如图2所示,所述折叠角度检测方法包括:An embodiment of the present invention also provides a folding angle detection method, which is applied to the above-mentioned electronic device. As shown in FIG. 2 , the folding angle detection method includes:

步骤21:获取所述电子设备中的距离传感器的检测信号。Step 21: Acquire the detection signal of the distance sensor in the electronic device.

其中,检测信号可以是距离传感器向螺旋片发射信号后被反射回来的信号;还可以是距离传感器与螺旋片形成的电容的电容量信号,在此不作限定,只要是能够用于确定距离传感器与螺旋片之间的轴向投影距离的信号即可。Among them, the detection signal can be the signal reflected back after the distance sensor transmits the signal to the spiral plate; it can also be the capacitance signal of the capacitance formed by the distance sensor and the spiral plate, which is not limited here, as long as it can be used to determine the distance sensor and the spiral plate. The signal of the axial projection distance between the spiral slices is sufficient.

步骤22:根据所述检测信号,确定所述距离传感器沿预设方向到所述螺旋片的距离。Step 22: According to the detection signal, determine the distance from the distance sensor to the helical piece along a preset direction.

其中,所述距离具体可为轴向投影距离。The distance may specifically be an axial projection distance.

步骤23:根据所述距离,确定所述第一折叠主体与所述第二折叠主体之间的相对角度;其中,所述预设方向为所述电子设备的第一转轴和第二转轴的轴心线方向。Step 23: Determine the relative angle between the first folding body and the second folding body according to the distance; wherein the preset direction is the axis of the first rotation axis and the second rotation axis of the electronic device heart line direction.

其中,所述相对角度即所述电子设备的当前折叠角度。The relative angle is the current folding angle of the electronic device.

本发明实施例提供的所述折叠角度检测方法通过获取所述电子设备中的距离传感器的检测信号;根据所述检测信号,确定所述距离传感器沿预设方向到所述螺旋片的距离;根据所述距离,确定所述第一折叠主体与所述第二折叠主体之间的相对角度;其中,所述预设方向为所述电子设备的第一转轴和第二转轴的轴心线方向;能够实现获得与电子设备的折叠角度相关的检测信号,进而精准的确定电子设备的当前折叠角度,并且能够确定任意折叠角度、实现成本较低、实现难度低,很好的解决了现有技术中电子设备折叠角度检测方案存在实现成本高、能够识别的角度有限的问题。The folding angle detection method provided by the embodiment of the present invention obtains the detection signal of the distance sensor in the electronic device; according to the detection signal, the distance from the distance sensor to the spiral piece along the preset direction is determined; The distance determines the relative angle between the first foldable body and the second foldable body; wherein the preset direction is the axis line direction of the first rotating shaft and the second rotating shaft of the electronic device; The detection signal related to the folding angle of the electronic device can be obtained, and then the current folding angle of the electronic device can be accurately determined, and any folding angle can be determined. The electronic device folding angle detection solution has the problems of high implementation cost and limited identifiable angles.

具体的,所述根据所述距离,确定所述第一折叠主体与所述第二折叠主体之间的相对角度,包括:根据所述距离和预设对应关系,确定所述第一折叠主体与所述第二折叠主体之间的相对角度;其中,所述预设对应关系为已确定的所述距离与所述相对角度之间的对应关系。Specifically, the determining the relative angle between the first folding body and the second folding body according to the distance includes: determining the first folding body and the second folding body according to the distance and a preset corresponding relationship. The relative angle between the second folding bodies; wherein, the preset corresponding relationship is the determined corresponding relationship between the distance and the relative angle.

本发明实施例中,在所述距离传感器为电容式接近传感器,所述电容式接近传感器的金属天线极板(即上述第一极板)沿所述轴心线方向的投影位于所述螺旋片上的情况下,所述根据所述检测信号,确定所述距离传感器沿预设方向到所述螺旋片的距离,包括:根据所述检测信号,确定所述螺旋片和金属天线极板构成的电容的当前电容量;根据所述当前电容量,确定所述距离。In the embodiment of the present invention, the distance sensor is a capacitive proximity sensor, and the projection of the metal antenna pole plate (that is, the first pole plate) of the capacitive proximity sensor along the axis direction is located on the spiral sheet In the case of , determining the distance from the distance sensor to the helical sheet along a preset direction according to the detection signal includes: determining, according to the detection signal, a capacitance formed by the helical sheet and the metal antenna plate The current electric capacity; according to the current electric capacity, the distance is determined.

这样能够精准的获取用于得到折叠角度的距离。In this way, the distance used to obtain the folding angle can be accurately obtained.

下面对本发明实施例提供的电子设备以及折叠角度检测方法进行进一步说明,电子设备以折叠手机为例,距离传感器以电容式接近传感器SAR sensor为例。The electronic device and the folding angle detection method provided by the embodiments of the present invention are further described below. The electronic device takes a folding mobile phone as an example, and the distance sensor takes a capacitive proximity sensor SAR sensor as an example.

针对上述技术问题,本发明实施例提供了一种电子设备以及折叠角度检测方法,具体可实现为:通过转轴上增加螺旋叶片(即上述螺旋片),SAR sensor检测容值变化的方法,实现折叠角度的精确测量;本方案能够达到:实现成本的降低以及设计难度的降低,并且可以自定义设计,实现任意角度的检测,提升性能。In response to the above technical problems, the embodiments of the present invention provide an electronic device and a method for detecting a folding angle, which can be specifically implemented as follows: by adding a helical blade (that is, the above-mentioned helical blade) on the rotating shaft, the SAR sensor detects the change of the capacitance value, so as to realize the folding Accurate measurement of angles; this solution can achieve: cost reduction and design difficulty reduction, and can be custom designed to achieve detection at any angle and improve performance.

其中,(1)折叠手机的整体结构及连接方式,可如图3所示,主要包括第一折叠主体1、第二折叠主体2以及中心转轴8(包括第一转轴3和第二转轴4)三个主要部分,所述第一折叠主体1和第二折叠主体2通过中心转轴8转动连接;图3也可理解为柔性折叠屏设备整体连接结构示意图,图中α表示电子设备的折叠角度。Among them, (1) the overall structure and connection method of the foldable mobile phone, as shown in FIG. 3, mainly includes a first folding body 1, a second folding body 2 and a central rotating shaft 8 (including the first rotating shaft 3 and the second rotating shaft 4) Three main parts, the first foldable body 1 and the second foldable body 2 are rotatably connected by the central shaft 8; FIG. 3 can also be understood as a schematic diagram of the overall connection structure of the flexible folding screen device, and α in the figure represents the folding angle of the electronic device.

(2)转轴上增加螺旋叶片和电容极板的实现方式具体可如下:(2) The implementation of adding helical blades and capacitor plates on the rotating shaft is as follows:

如图4和图5所示,在塑料材质的转轴S1(可为上述第一转轴或第二转轴)上,增加金属螺旋叶片S2,其中,金属螺旋叶片S2通过转轴S1与第二折叠主体连接固定,并实现接地(形成电容极板);C1为SAR sensor的金属天线极板,位置固定(固定在与第一折叠主体连接固定的转轴(可为上述第二转轴或第一转轴,与S1为不同的转轴)上);图中h表述上述轴向投影距离。具体的,C1的形状可为扇形,可以轴向投影在S2上,如图5所示;图5也可理解为螺旋叶片和扇形电容极板截面视图。As shown in FIG. 4 and FIG. 5 , a metal helical blade S2 is added on the plastic rotating shaft S1 (which can be the first rotating shaft or the second rotating shaft), wherein the metal helical blade S2 is connected to the second folding body through the rotating shaft S1 It is fixed and grounded (to form a capacitor plate); C1 is the metal antenna plate of the SAR sensor, and its position is fixed (fixed on a fixed rotating shaft connected to the first folding body (which can be the above-mentioned second rotating shaft or first rotating shaft, and S1). is on a different rotation axis); in the figure h represents the above-mentioned axial projection distance. Specifically, the shape of C1 can be a fan shape, which can be axially projected on S2, as shown in FIG. 5; FIG. 5 can also be understood as a cross-sectional view of a spiral blade and a fan-shaped capacitor plate.

(3)测量折叠角度的方法(以电容传感为例)(3) The method of measuring the folding angle (taking capacitive sensing as an example)

当转轴转动时,C1在S2上轴向投影距离h会有变化,由于When the shaft rotates, the axial projection distance h of C1 on S2 will change, because

Figure BDA0002473086590000071
Figure BDA0002473086590000071

其中:C表示:极板(如上述C1)与地(S2)之间的电容;k表示:静电力常数;S表示:极板面积;ε表示:介电常数;h表示:C1与S2之间的距离(即上述轴向投影距离);Among them: C means: the capacitance between the plate (such as C1) and the ground (S2); k means: electrostatic force constant; S means: plate area; ε means: dielectric constant; h means: between C1 and S2 The distance between (that is, the above-mentioned axial projection distance);

h变化相应地C1和S2的等效电容值也会改变,通过SAR sensor检测,进而可以计算出转轴的折叠角度(具体的,可根据电容值确定h,根据h与折叠角度之间的对应关系得到电子设备当前的折叠角度;关于对应关系可以是预存储的,但并不以此为限;对应关系可以为线性关系)。When h changes, the equivalent capacitance values of C1 and S2 will also change accordingly. Through the detection of the SAR sensor, the folding angle of the rotating shaft can be calculated (specifically, h can be determined according to the capacitance value, and according to the corresponding relationship between h and the folding angle Obtain the current folding angle of the electronic device; the corresponding relationship may be pre-stored, but not limited thereto; the corresponding relationship may be a linear relationship).

具体的,本发明实施例提供的SAR sensor的电路可如图6所示,包括:上述C1、电阻R1、电感L1、电容C2和SAR sensor功能模块;Specifically, the circuit of the SAR sensor provided by the embodiment of the present invention may be as shown in FIG. 6, including: the above-mentioned C1, a resistor R1, an inductor L1, a capacitor C2, and a SAR sensor functional module;

其中,R1的第一端与C1相连、R1的第二端与L1的第一端相连、L1的第二端分别与C2的第一端和SAR sensor功能模块的检测通道1相连、C2的第二端接地GND。The first end of R1 is connected to C1, the second end of R1 is connected to the first end of L1, the second end of L1 is connected to the first end of C2 and the detection channel 1 of the SAR sensor function module, respectively, and the second end of C2 Both ends are grounded to GND.

SAR sensor功能模块可用于处理数据,比如计算上述h。The SAR sensor function module can be used to process data, such as calculating h above.

图7也可理解为本发明实施例中的SAR sensor检测电容C值的电路示意图。FIG. 7 can also be understood as a schematic circuit diagram of the SAR sensor detecting the capacitance C value in the embodiment of the present invention.

由上可知,本发明实施例提供的方案实现原理简单,成本低;并且能够实现空间的节省,设计难度的降低;还可以自定义设计,实现任意角度的检测,提升性能。It can be seen from the above that the solution provided by the embodiment of the present invention is simple in implementation principle and low in cost; it can save space and reduce the difficulty of design; and can also customize the design, realize detection at any angle, and improve performance.

本发明实施例还提供了一种电子设备,包括上述的电子设备所包含的第一折叠主体、第二折叠主体、第一转轴、第二转轴、螺旋片以及距离传感器,如图7所示,所述电子设备还包括:An embodiment of the present invention further provides an electronic device, including a first folding body, a second folding body, a first rotating shaft, a second rotating shaft, a spiral piece, and a distance sensor included in the above-mentioned electronic device, as shown in FIG. 7 , The electronic device also includes:

第一获取模块71,用于获取所述电子设备中的距离传感器的检测信号;The first acquisition module 71 is used to acquire the detection signal of the distance sensor in the electronic device;

第一确定模块72,用于根据所述检测信号,确定所述距离传感器沿预设方向到所述螺旋片的距离;a first determination module 72, configured to determine the distance from the distance sensor to the helical sheet along a preset direction according to the detection signal;

第二确定模块73,用于根据所述距离,确定所述第一折叠主体与所述第二折叠主体之间的相对角度;a second determining module 73, configured to determine the relative angle between the first folding body and the second folding body according to the distance;

其中,所述预设方向为所述电子设备的第一转轴和第二转轴的轴心线方向。Wherein, the preset direction is the axis line direction of the first rotating shaft and the second rotating shaft of the electronic device.

本发明实施例提供的所述电子设备通过获取所述电子设备中的距离传感器的检测信号;根据所述检测信号,确定所述距离传感器沿预设方向到所述螺旋片的距离;根据所述距离,确定所述第一折叠主体与所述第二折叠主体之间的相对角度;其中,所述预设方向为所述电子设备的第一转轴和第二转轴的轴心线方向;能够实现获得与电子设备的折叠角度相关的检测信号,进而精准的确定电子设备的当前折叠角度,并且能够确定任意折叠角度、实现成本较低、实现难度低,很好的解决了现有技术中电子设备折叠角度检测方案存在实现成本高、能够识别的角度有限的问题。The electronic device provided in the embodiment of the present invention obtains the detection signal of the distance sensor in the electronic device; according to the detection signal, determines the distance from the distance sensor to the spiral piece along the preset direction; distance, to determine the relative angle between the first folding body and the second folding body; wherein, the preset direction is the axis line direction of the first rotating shaft and the second rotating shaft of the electronic device; it can be achieved The detection signal related to the folding angle of the electronic device is obtained, and then the current folding angle of the electronic device can be accurately determined, and any folding angle can be determined, the realization cost is low, and the realization difficulty is low, and the electronic device in the prior art is well solved. The folding angle detection scheme has the problems of high implementation cost and limited angles that can be identified.

具体的,所述第二确定模块,包括:第一确定子模块,用于根据所述距离和预设对应关系,确定所述第一折叠主体与所述第二折叠主体之间的相对角度;其中,所述预设对应关系为已确定的所述距离与所述相对角度之间的对应关系。Specifically, the second determination module includes: a first determination sub-module, configured to determine the relative angle between the first folding body and the second folding body according to the distance and a preset corresponding relationship; The preset correspondence is the determined correspondence between the distance and the relative angle.

本发明实施例提供的电子设备能够实现图1至图6的实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the embodiments of FIG. 1 to FIG. 6 , and to avoid repetition, details are not described here.

图8为实现本发明各个实施例的一种电子设备的硬件结构示意图,该电子设备80包括但不限于:射频单元81、网络模块82、音频输出单元83、输入单元84、传感器85、显示单元86、用户输入单元87、接口单元88、存储器89、处理器810、以及电源811等部件。本领域技术人员可以理解,图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。8 is a schematic diagram of the hardware structure of an electronic device implementing various embodiments of the present invention. The electronic device 80 includes but is not limited to: a radio frequency unit 81, a network module 82, an audio output unit 83, an input unit 84, a sensor 85, and a display unit 86. User input unit 87, interface unit 88, memory 89, processor 810, and power supply 811 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 8 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than the one shown, or combine some components, or different components layout. In this embodiment of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.

其中,电子设备80包括上述电子设备所包含的第一折叠主体、第二折叠主体、第一转轴、第二转轴、螺旋片以及距离传感器;处理器810,用于获取所述电子设备中的距离传感器的检测信号;根据所述检测信号,确定所述距离传感器沿预设方向到所述螺旋片的距离;根据所述距离,确定所述第一折叠主体与所述第二折叠主体之间的相对角度;其中,所述预设方向为所述电子设备的第一转轴和第二转轴的轴心线方向。Wherein, the electronic device 80 includes a first folding body, a second folding body, a first rotating shaft, a second rotating shaft, a spiral piece, and a distance sensor included in the above-mentioned electronic device; the processor 810 is used to obtain the distance in the electronic device The detection signal of the sensor; according to the detection signal, determine the distance from the distance sensor to the spiral sheet along the preset direction; according to the distance, determine the distance between the first folding body and the second folding body Relative angle; wherein, the preset direction is the axis line direction of the first rotating shaft and the second rotating shaft of the electronic device.

在本发明实施例中,通过获取所述电子设备中的距离传感器的检测信号;根据所述检测信号,确定所述距离传感器沿预设方向到所述螺旋片的距离;根据所述距离,确定所述第一折叠主体与所述第二折叠主体之间的相对角度;其中,所述预设方向为所述电子设备的第一转轴和第二转轴的轴心线方向;能够实现获得与电子设备的折叠角度相关的检测信号,进而精准的确定电子设备的当前折叠角度,并且能够确定任意折叠角度、实现成本较低、实现难度低,很好的解决了现有技术中电子设备折叠角度检测方案存在实现成本高、能够识别的角度有限的问题。In this embodiment of the present invention, a detection signal of a distance sensor in the electronic device is acquired; according to the detection signal, the distance from the distance sensor to the helical sheet along a preset direction is determined; according to the distance, the distance is determined The relative angle between the first folding body and the second folding body; wherein, the preset direction is the axis line direction of the first rotating shaft and the second rotating shaft of the electronic device; The detection signal related to the folding angle of the device can accurately determine the current folding angle of the electronic device, and can determine any folding angle, the realization cost is low, the realization difficulty is low, and the detection of the folding angle of the electronic device in the prior art is well solved. The solution has the problems of high implementation cost and limited identifiable angles.

可选的,处理器810具体用于,根据所述距离和预设对应关系,确定所述第一折叠主体与所述第二折叠主体之间的相对角度;其中,所述预设对应关系为已确定的所述距离与所述相对角度之间的对应关系。Optionally, the processor 810 is specifically configured to, according to the distance and a preset corresponding relationship, determine the relative angle between the first folding body and the second folding body; wherein the preset corresponding relationship is: The determined correspondence between the distance and the relative angle.

应理解的是,本发明实施例中,射频单元81可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器810处理;另外,将上行的数据发送给基站。通常,射频单元81包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元81还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the radio frequency unit 81 can be used for receiving and sending signals during sending and receiving of information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the processor 810; The uplink data is sent to the base station. Typically, the radio frequency unit 81 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 81 can also communicate with the network and other devices through a wireless communication system.

电子设备通过网络模块82为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides the user with wireless broadband Internet access through the network module 82, such as helping the user to send and receive emails, browse web pages, access streaming media, and the like.

音频输出单元83可以将射频单元81或网络模块82接收的或者在存储器89中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元83还可以提供与电子设备80执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元83包括扬声器、蜂鸣器以及受话器等。The audio output unit 83 may convert audio data received by the radio frequency unit 81 or the network module 82 or stored in the memory 89 into audio signals and output as sound. Also, the audio output unit 83 may also provide audio output related to a specific function performed by the electronic device 80 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 83 includes a speaker, a buzzer, a receiver, and the like.

输入单元84用于接收音频或视频信号。输入单元84可以包括图形处理器(Graphics Processing Unit,GPU)841和麦克风842,图形处理器841对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元86上。经图形处理器841处理后的图像帧可以存储在存储器89(或其它存储介质)中或者经由射频单元81或网络模块82进行发送。麦克风842可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元81发送到移动通信基站的格式输出。The input unit 84 is used to receive audio or video signals. The input unit 84 may include a graphics processor (Graphics Processing Unit, GPU) 841 and a microphone 842, and the graphics processor 841 captures still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode data is processed. The processed image frames may be displayed on the display unit 86 . The image frames processed by the graphics processor 841 may be stored in the memory 89 (or other storage medium) or transmitted via the radio frequency unit 81 or the network module 82 . The microphone 842 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 81 for output in the case of a telephone call mode.

电子设备80还包括至少一种传感器85,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板861的亮度,接近传感器可在电子设备80移动到耳边时,关闭显示面板861和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器85还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 80 also includes at least one sensor 85, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 861 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 861 and the display panel 861 when the electronic device 80 is moved to the ear. / or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; sensors 85 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., are not repeated here.

显示单元86用于显示由用户输入的信息或提供给用户的信息。显示单元86可包括显示面板861,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板861。The display unit 86 is used to display information input by the user or information provided to the user. The display unit 86 may include a display panel 861, and the display panel 861 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

用户输入单元87可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元87包括触控面板871以及其他输入设备872。触控面板871,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板871上或在触控面板871附近的操作)。触控面板871可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器810,接收处理器810发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板871。除了触控面板871,用户输入单元87还可以包括其他输入设备872。具体地,其他输入设备872可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 87 may be used to receive input numerical or character information, and generate key signal input related to user setting and function control of the electronic device. Specifically, the user input unit 87 includes a touch panel 871 and other input devices 872 . The touch panel 871, also known as a touch screen, collects touch operations by the user on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 871). operate). The touch panel 871 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 810, the command sent by the processor 810 is received and executed. In addition, the touch panel 871 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 871 , the user input unit 87 may also include other input devices 872 . Specifically, other input devices 872 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again.

进一步的,触控面板871可覆盖在显示面板861上,当触控面板871检测到在其上或附近的触摸操作后,传送给处理器810以确定触摸事件的类型,随后处理器810根据触摸事件的类型在显示面板861上提供相应的视觉输出。虽然在图8中,触控面板871与显示面板861是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板871与显示面板861集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 871 can be covered on the display panel 861. When the touch panel 871 detects a touch operation on or near it, it transmits it to the processor 810 to determine the type of the touch event, and then the processor 810 determines the type of the touch event according to the touch The type of event provides corresponding visual output on display panel 861 . Although in FIG. 8 , the touch panel 871 and the display panel 861 are used as two independent components to realize the input and output functions of the electronic device, but in some embodiments, the touch panel 871 and the display panel 861 may be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.

接口单元88为外部装置与电子设备80连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元88可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备80内的一个或多个元件或者可以用于在电子设备80和外部装置之间传输数据。The interface unit 88 is an interface for connecting an external device to the electronic device 80 . For example, external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 88 may be used to receive input (eg, data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 80 or may be used between the electronic device 80 and the external Transfer data between devices.

存储器89可用于存储软件程序以及各种数据。存储器89可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器89可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 89 may be used to store software programs as well as various data. The memory 89 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 89 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

处理器810是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器89内的软件程序和/或模块,以及调用存储在存储器89内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器810可包括一个或多个处理单元;优选的,处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。The processor 810 is the control center of the electronic device, using various interfaces and lines to connect various parts of the entire electronic device, by running or executing the software programs and/or modules stored in the memory 89, and calling the data stored in the memory 89. , perform various functions of electronic equipment and process data, so as to monitor electronic equipment as a whole. The processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 810.

电子设备80还可以包括给各个部件供电的电源811(比如电池),优选的,电源811可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 80 may also include a power supply 811 (such as a battery) for supplying power to various components. Preferably, the power supply 811 may be logically connected to the processor 810 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system and other functions.

另外,电子设备80包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 80 includes some unshown functional modules, which are not repeated here.

优选的,本发明实施例还提供一种电子设备,包括处理器810,存储器89,存储在存储器89上并可在所述处理器810上运行的计算机程序,该计算机程序被所述处理器810执行时实现上述折叠角度检测方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention further provides an electronic device, including a processor 810, a memory 89, a computer program stored in the memory 89 and running on the processor 810, the computer program being executed by the processor 810 During execution, each process of the above-mentioned embodiment of the folding angle detection method is implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not described here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述折叠角度检测方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned embodiment of the folding angle detection method is implemented, and can achieve the same The technical effect, in order to avoid repetition, will not be repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.

Claims (10)

1.一种电子设备,其特征在于,包括第一折叠主体、第二折叠主体、与所述第一折叠主体连接的第一转轴和与所述第二折叠主体连接的第二转轴,所述第一转轴与所述第二转轴同轴线设置;所述电子设备还包括:1. An electronic device, characterized in that it comprises a first folding body, a second folding body, a first rotating shaft connected with the first folding body, and a second rotating shaft connecting with the second folding body, the The first rotating shaft and the second rotating shaft are arranged coaxially; the electronic device further includes: 围绕所述第一转轴的轴面固定设置的螺旋片;a helical sheet fixedly arranged around the axial surface of the first rotating shaft; 固定设置于所述第二转轴的端面上的距离传感器;a distance sensor fixedly arranged on the end face of the second rotating shaft; 其中,所述距离传感器与所述螺旋片相对设置,在所述第一折叠主体相对所述第二折叠主体转动的过程中,所述距离传感器沿所述第一转轴和第二转轴的轴心线方向的投影位于所述螺旋片的表面。Wherein, the distance sensor is disposed opposite to the helical sheet. During the rotation of the first folding body relative to the second folding body, the distance sensor is located along the axis of the first rotating shaft and the second rotating shaft. The projection of the line direction is on the surface of the helix. 2.根据权利要求1所述的电子设备,其特征在于,所述第一转轴套设于所述第二转轴内。2 . The electronic device according to claim 1 , wherein the first rotating shaft is sleeved inside the second rotating shaft. 3 . 3.根据权利要求1所述的电子设备,其特征在于,所述距离传感器为通过信号反射测距的第一传感器,或者,所述距离传感器为通过电容量测距的第二传感器。3 . The electronic device according to claim 1 , wherein the distance sensor is a first sensor that measures distance through signal reflection, or the distance sensor is a second sensor that measures distance through capacitance. 4 . 4.根据权利要求3所述的电子设备,其特征在于,在所述距离传感器为所述第一传感器的情况下,所述距离传感器的信号发射器和信号接收器设于所述第二转轴的预设端面上;所述信号发射器发送的信号通过所述螺旋片进行反射;4 . The electronic device according to claim 3 , wherein when the distance sensor is the first sensor, a signal transmitter and a signal receiver of the distance sensor are arranged on the second shaft. 5 . on the preset end face; the signal sent by the signal transmitter is reflected by the helical sheet; 其中,所述预设端面为靠近所述螺旋片的端面。Wherein, the preset end face is the end face close to the helical sheet. 5.根据权利要求3所述的电子设备,其特征在于,在所述距离传感器为所述第二传感器的情况下,所述距离传感器包括用于形成第二传感器的第一极板,所述第一极板设于所述第二转轴的预设端面上;所述螺旋片用于形成所述第二传感器的第二极板;5 . The electronic device according to claim 3 , wherein when the distance sensor is the second sensor, the distance sensor comprises a first electrode plate for forming a second sensor, and the The first pole plate is arranged on the preset end surface of the second rotating shaft; the spiral sheet is used to form the second pole plate of the second sensor; 其中,所述预设端面为靠近所述螺旋片的端面。Wherein, the preset end face is the end face close to the helical sheet. 6.一种折叠角度检测方法,应用于权利要求1至5任一项所述的电子设备,其特征在于,所述折叠角度检测方法包括:6. A folding angle detection method, applied to the electronic device according to any one of claims 1 to 5, wherein the folding angle detection method comprises: 获取所述电子设备中的距离传感器的检测信号;acquiring the detection signal of the distance sensor in the electronic device; 根据所述检测信号,确定所述距离传感器沿预设方向到所述螺旋片的距离;According to the detection signal, determine the distance from the distance sensor to the helical piece along a preset direction; 根据所述距离,确定所述第一折叠主体与所述第二折叠主体之间的相对角度;determining a relative angle between the first folding body and the second folding body according to the distance; 其中,所述预设方向为所述电子设备的第一转轴和第二转轴的轴心线方向。Wherein, the preset direction is the axis line direction of the first rotating shaft and the second rotating shaft of the electronic device. 7.根据权利要求6所述的折叠角度检测方法,其特征在于,所述根据所述距离,确定所述第一折叠主体与所述第二折叠主体之间的相对角度,包括:7 . The folding angle detection method according to claim 6 , wherein the determining the relative angle between the first folding body and the second folding body according to the distance comprises: 8 . 根据所述距离和预设对应关系,确定所述第一折叠主体与所述第二折叠主体之间的相对角度;determining the relative angle between the first folding body and the second folding body according to the distance and the preset correspondence; 其中,所述预设对应关系为已确定的所述距离与所述相对角度之间的对应关系。The preset correspondence is the determined correspondence between the distance and the relative angle. 8.一种电子设备,包括权利要求1至5任一项所述的电子设备所包含的第一折叠主体、第二折叠主体、第一转轴、第二转轴、螺旋片以及距离传感器,其特征在于,所述电子设备还包括:8. An electronic device, comprising a first folding body, a second folding body, a first rotating shaft, a second rotating shaft, a spiral piece and a distance sensor included in the electronic device according to any one of claims 1 to 5, wherein That is, the electronic device further includes: 第一获取模块,用于获取所述电子设备中的距离传感器的检测信号;a first acquisition module, configured to acquire a detection signal of a distance sensor in the electronic device; 第一确定模块,用于根据所述检测信号,确定所述距离传感器沿预设方向到所述螺旋片的距离;a first determining module, configured to determine the distance from the distance sensor to the helical sheet along a preset direction according to the detection signal; 第二确定模块,用于根据所述距离,确定所述第一折叠主体与所述第二折叠主体之间的相对角度;a second determining module, configured to determine the relative angle between the first folding body and the second folding body according to the distance; 其中,所述预设方向为所述电子设备的第一转轴和第二转轴的轴心线方向。Wherein, the preset direction is the axis line direction of the first rotating shaft and the second rotating shaft of the electronic device. 9.根据权利要求8所述的电子设备,其特征在于,所述第二确定模块,包括:9. The electronic device according to claim 8, wherein the second determining module comprises: 第一确定子模块,用于根据所述距离和预设对应关系,确定所述第一折叠主体与所述第二折叠主体之间的相对角度;a first determination submodule, configured to determine the relative angle between the first folding body and the second folding body according to the distance and a preset correspondence; 其中,所述预设对应关系为已确定的所述距离与所述相对角度之间的对应关系。The preset correspondence is the determined correspondence between the distance and the relative angle. 10.一种电子设备,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求6至7中任一项所述的折叠角度检测方法的步骤。10. An electronic device, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to achieve the right The steps of the folding angle detection method described in any one of 6 to 7 are required.
CN202010354734.5A 2020-04-29 2020-04-29 A folding angle detection method and electronic device Pending CN111561899A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010354734.5A CN111561899A (en) 2020-04-29 2020-04-29 A folding angle detection method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010354734.5A CN111561899A (en) 2020-04-29 2020-04-29 A folding angle detection method and electronic device

Publications (1)

Publication Number Publication Date
CN111561899A true CN111561899A (en) 2020-08-21

Family

ID=72070810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010354734.5A Pending CN111561899A (en) 2020-04-29 2020-04-29 A folding angle detection method and electronic device

Country Status (1)

Country Link
CN (1) CN111561899A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112304252A (en) * 2020-10-30 2021-02-02 维沃移动通信有限公司 Folding angle determining method, folding equipment and electronic equipment
CN112829530A (en) * 2019-11-22 2021-05-25 陕西重型汽车有限公司 Device and method for measuring angle between automobile and trailer
WO2024192614A1 (en) * 2023-03-20 2024-09-26 Huawei Technologies Co., Ltd. Foldable screen capacitive sensing for hinge and fold state related interaction

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE2937248A1 (en) * 1978-12-16 1980-06-19 Inst Geodezji I Kartografii Angle measurement device capacitive transducer - has dielectric discs carrying circle sector electrode layers rotating w.r.t. each other
JPS59164903A (en) * 1983-03-10 1984-09-18 Mitsubishi Heavy Ind Ltd Rotational angle detector
DE3617953A1 (en) * 1986-05-13 1989-06-15 Roman Koller Capacitive incremental length measurement system
JPH0743134A (en) * 1993-07-30 1995-02-10 Optec Dai Ichi Denko Co Ltd Rotation angle detector
JPH0791906A (en) * 1993-09-20 1995-04-07 S K S Kk Rotary encoder
EP0882943A1 (en) * 1997-06-05 1998-12-09 Aktiebolaget SKF "Device for determining a momentary angular position"
JP2002162252A (en) * 2000-09-18 2002-06-07 Mitsubishi Electric Corp Rotational position detector
JP2002310646A (en) * 2001-04-19 2002-10-23 Sony Corp Angular displacement detector for joint actuator
CN103545990A (en) * 2013-10-05 2014-01-29 郭惠君 Motor closed-loop feedback device
CN206891452U (en) * 2017-06-15 2018-01-16 广西三创科技有限公司 Screen rotation angle induction device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE2937248A1 (en) * 1978-12-16 1980-06-19 Inst Geodezji I Kartografii Angle measurement device capacitive transducer - has dielectric discs carrying circle sector electrode layers rotating w.r.t. each other
JPS59164903A (en) * 1983-03-10 1984-09-18 Mitsubishi Heavy Ind Ltd Rotational angle detector
DE3617953A1 (en) * 1986-05-13 1989-06-15 Roman Koller Capacitive incremental length measurement system
JPH0743134A (en) * 1993-07-30 1995-02-10 Optec Dai Ichi Denko Co Ltd Rotation angle detector
JPH0791906A (en) * 1993-09-20 1995-04-07 S K S Kk Rotary encoder
EP0882943A1 (en) * 1997-06-05 1998-12-09 Aktiebolaget SKF "Device for determining a momentary angular position"
CN1221106A (en) * 1997-06-05 1999-06-30 Skf股份公司 Instruments for determining instantaneous angular position
JP2002162252A (en) * 2000-09-18 2002-06-07 Mitsubishi Electric Corp Rotational position detector
JP2002310646A (en) * 2001-04-19 2002-10-23 Sony Corp Angular displacement detector for joint actuator
CN103545990A (en) * 2013-10-05 2014-01-29 郭惠君 Motor closed-loop feedback device
CN206891452U (en) * 2017-06-15 2018-01-16 广西三创科技有限公司 Screen rotation angle induction device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112829530A (en) * 2019-11-22 2021-05-25 陕西重型汽车有限公司 Device and method for measuring angle between automobile and trailer
CN112829530B (en) * 2019-11-22 2022-09-27 陕西重型汽车有限公司 Device and method for measuring angle between automobile and trailer
CN112304252A (en) * 2020-10-30 2021-02-02 维沃移动通信有限公司 Folding angle determining method, folding equipment and electronic equipment
WO2024192614A1 (en) * 2023-03-20 2024-09-26 Huawei Technologies Co., Ltd. Foldable screen capacitive sensing for hinge and fold state related interaction

Similar Documents

Publication Publication Date Title
CN109040377B (en) An angle determination circuit, method and folding screen terminal
CN109189305B (en) A hinge, electronic device and electronic device control method
CN109788137B (en) Falling protection method and terminal equipment
CN111475247B (en) Display method and electronic device
CN110784575B (en) Electronic equipment and shooting method
CN108008859B (en) A screen control method and mobile terminal
CN110456923B (en) Gesture sensing data processing method and electronic equipment
CN107895143A (en) A kind of finger print information processing method, mobile terminal and computer-readable recording medium
CN110139018A (en) Camera controls the control method for movement and terminal of mould group, camera
CN109739394B (en) SAR value processing method and mobile terminal
CN109257504B (en) A kind of audio processing method and terminal device
CN111561899A (en) A folding angle detection method and electronic device
CN110825168B (en) A kind of electronic equipment and control part control method
CN111256580B (en) Electronic device and rotation angle detection method
CN109888928B (en) Terminal and wireless charging control method
CN111142618A (en) Method for detecting folding angle and electronic equipment
CN110307821A (en) A kind of angle measurement method and mobile terminal
CN109443261B (en) Method for obtaining folding angle of folding screen mobile terminal and mobile terminal
CN111356221A (en) Method for adjusting transmitting power and electronic equipment
CN108898548B (en) Display method of panorama and mobile terminal
CN110764650A (en) Button trigger detection method and electronic device
CN111562874A (en) Display control method and device and electronic equipment
CN111240567A (en) A kind of angle adjustment method of display screen and electronic device
CN110888494A (en) An angle detection method, device and mobile terminal
CN110113490A (en) A kind of information processing method, terminal and computer readable storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200821

RJ01 Rejection of invention patent application after publication