Control method and device, electronic equipment and computer readable storage medium

By determining whether to perform opening and closing angle detection based on the opening and closing status of the electronic device, the problem of high power consumption for detection of opening and closing angle of electronic devices in the prior art is solved, and a more power-saving and high-efficiency detection method is achieved.

CN119851585APending Publication Date: 2025-04-18GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311356469.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-18
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

In the prior art, electronic devices require high power consumption for detecting the opening and closing angle of the foldable screen, resulting in large power consumption.

Method used

By obtaining the opening and closing state of the electronic device, if the state is in the closed state, the opening and closing angle detection is not performed; if the state is in the non-closed state, the detection is performed. This strategy avoids unnecessary detection when the open and closed state is closed and only performs detection when needed.

Benefits of technology

It effectively reduces the power consumption of electronic devices when detecting opening and closing angles, and improves the battery life and overall energy efficiency of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119851585A_ABST
    Figure CN119851585A_ABST
Patent Text Reader

Abstract

The invention discloses a control method and device, electronic equipment and a computer readable storage medium, the control method is applied to a processing module of the electronic equipment, the electronic equipment comprises a first part provided with a first screen and a second part provided with a second screen, and the first part is rotationally connected with the second part. The method enables a first screen and a second screen to be close to each other and away from each other. The method comprises the steps of obtaining an opening-closing state of the electronic equipment; if the opening and closing state is a closed state, not detecting the opening and closing angle of the electronic equipment; and if the opening and closing state is a non-closed state, detecting the opening and closing angle of the electronic equipment. Under the condition of the closed state, the opening and closing angle of the electronic equipment can not be detected, so that the overall power consumption is reduced, and power saving is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of control technology, and more specifically, to a control method, device, electronic device, and computer-readable storage medium. Background Art

[0002] At present, with the rapid development of electronic information technology, the opening and closing angles of foldable electronic devices can be detected. However, the detection of the opening and closing angles of electronic devices in the prior art has high power consumption and large electricity consumption. Summary of the invention

[0003] The present application proposes a control method, device, electronic device and computer-readable storage medium to improve the above-mentioned defects.

[0004] In a first aspect, an embodiment of the present application provides a control method, which is applied to a processing module of an electronic device, wherein the electronic device includes a first part having a first screen and a second part having a second screen, the first part being rotatably connected to the second part so that the first screen and the second screen can approach and move away from each other, and the method includes: obtaining an opening and closing state of the electronic device; if the opening and closing state is a closed state, not detecting the opening and closing angle of the electronic device; if the opening and closing state is a non-closed state, detecting the opening and closing angle of the electronic device.

[0005] In a second aspect, the present application also provides a control device,

[0006] The control device is applied to a processing module of an electronic device, wherein the electronic device comprises a first part provided with a first screen and a second part provided with a second screen, wherein the first part and the second part are rotatably connected so that the first screen and the second screen can move closer to and farther from each other, and the device comprises: an acquisition unit, a first detection unit and a second detection unit. The acquisition unit is used to acquire the opening and closing state of the electronic device; the first detection unit is used to not detect the opening and closing angle of the electronic device if the opening and closing state is a closed state; and the second detection unit is used to detect the opening and closing angle of the electronic device if the opening and closing state is a non-closed state.

[0007] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a first part having a first screen and a second part having a second screen, wherein the first part is rotatably connected to the second part so that the first screen and the second screen can approach and move away from each other; the electronic device also comprises a processing module, and the processing module is used to execute the method described in the first aspect.

[0008] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the method described in the first aspect.

[0009] The present application provides a control method, device, electronic device, and computer-readable storage medium, wherein the control method is applied to a processing module of an electronic device, and the method comprises: first obtaining the opening and closing state of the electronic device; if the opening and closing state is a closed state, then the opening and closing angle of the electronic device is not detected; if the opening and closing state is a non-closed state, then the opening and closing angle of the electronic device is detected. If the opening and closing angle of the electronic device is continuously detected regardless of the opening and closing state of the electronic device, the power consumption of the electronic device will be high. However, the present application does not detect the opening and closing angle of the electronic device when the opening and closing state is a closed state, and only detects the opening and closing angle when the opening and closing state is a non-closed state. Thus, the electronic device is prevented from continuously detecting the opening and closing angle, which can make the electronic device more power-saving and reduce the power consumption of the electronic device to a certain extent.

[0010] Other features and advantages of the embodiments of the present application will be described in the subsequent description, and partly become apparent from the description, or can be understood by practicing the embodiments of the present application. The purposes and other advantages of the embodiments of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0012] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown;

[0013] Figure 2 A schematic diagram showing the structure of an electronic device provided by an embodiment of the present application in a closed state;

[0014] Figure 3 A schematic diagram showing a structure of an electronic device in an intermediate state provided by another embodiment of the present application is shown;

[0015] Figure 4 A schematic diagram of a control method according to an embodiment of the present invention is shown;

[0016] Figure 5A schematic flow chart of a control method provided by another embodiment of the present application is shown;

[0017] Figure 6 A schematic flow chart of a control method provided by another embodiment of the present application is shown;

[0018] Figure 7 A schematic flow chart of a control method provided by another embodiment is shown;

[0019] Figure 8 A structural block diagram of a control device provided in an embodiment of the present application is shown;

[0020] Fig. 9 A schematic diagram of the structure of an electronic device provided by another embodiment of the present application is shown;

[0021] Fig.10 A structural block diagram of a computer-readable storage medium provided in an embodiment of the present application is shown;

[0022] Fig.11 A structural block diagram of a computer program product provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0023] In order to make those skilled in the art better understand the present application scheme, the technical scheme in the present application embodiment will be clearly and completely described below in conjunction with the drawings in the present application embodiment. Obviously, the described embodiment is only a part of the present application embodiment, rather than all the embodiments. The components of the present application embodiment usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the present application for protection, but merely represents the selected embodiment of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0024] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0025] At present, with the rapid development of electronic information technology, the opening and closing angles of foldable electronic devices can be detected. However, the existing technology for detecting the opening and closing angles of electronic devices has high power consumption and large power consumption. How to reduce the power consumption of detecting the opening and closing angles of electronic devices is an urgent problem to be solved.

[0026] At present, for electronic devices equipped with foldable display screens, the opening and closing angle of the display screen of the electronic device can be detected. For example, a detection signal can be generated by the electronic device, and then the opening and closing angle of the display screen can be detected based on the detection signal.

[0027] However, the inventors discovered during their research that in the prior art, it is necessary to continuously respond to the detection signal in order to continuously detect the opening and closing angle of the display screen, which results in higher power consumption and greater electricity consumption of the electronic device.

[0028] Therefore, the present application provides a control method, device, electronic device and computer-readable storage medium to solve or partially solve the above-mentioned problems.

[0029] See also Figure 1 , Figure 1 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application is shown. The electronic device 100 includes a first part 110 and a second part 120, wherein the first part 110 is rotatably connected to the second part 120. The first part 110 and the second part 120 can be relatively folded to a closed state, and can also be relatively unfolded to an unfolded state. Among them, the first part 110 is provided with a first screen 111, and the second part 120 is provided with a second screen 121, so the first screen 111 of the first part 110 and the second screen 121 of the second part 120 can be close to and away from each other. Among them, the opening and closing state of the electronic device 100 can include a closed state and a non-closed state, and the non-closed state can include an unfolded state and an intermediate state, and the intermediate state is a state between the non-closed state and the closed state. Figure 1 The opening and closing state of the electronic device 100 shown in FIG. 1 is the unfolded state. Further, the first portion 110 may include a proximity sensor 112. Since the proximity sensor 112 is disposed at the first portion 110, the proximity sensor 112 and the second portion 120 may be close to or away from each other.

[0030] Specifically, when the first part 110 and the second part 120 are folded relative to each other to a closed state, the proximity sensor 112 and the second part 120 are close to each other, and when the first part 110 and the second part 120 are unfolded relative to each other to an open state, the proximity sensor 112 and the second part 120 are away from each other.

[0031] It should be noted that Figure 1 In the electronic device 100 shown, the first part 110 can be regarded as the upper half of the electronic device 100, and the second part 120 can be regarded as the lower half of the electronic device 100; in other embodiments, the first part 110 can also be the lower half of the electronic device 110, and the second part 120 can be the upper half of the electronic device 120.

[0032] Among them, the proximity sensor 112 is a sensor that can detect the movement information and existence information of an object, and can detect without contacting the detection object. The proximity sensor 112 is a non-contact detection method. The detection method of the proximity sensor 112 may include a method of using eddy currents generated in the metal body of the detection object caused by electromagnetic induction, a method of capturing the capacity change of the electrical signal caused by the proximity of the detection object, etc. The proximity sensor 112 can be widely used in various fields such as automatic control systems and robots to detect functions such as object position, speed, posture, and counting. In the present application, the proximity sensor 112 can be used to detect the open and closed state of the screen of an electronic device.

[0033] The electronic device 100 may further include a rotation axis 130, which may be used to rotatably connect the first portion 110 and the second portion 120, so that the first portion 110 and the second portion 120 may be relatively folded or unfolded along the rotation axis 130, and the first portion 110 and the second portion 120 may be switched between a closed state and an unfolded state through the rotation axis 130. Furthermore, the opening and closing state of the electronic device may also include an intermediate state, which is a state between the unfolded state and the closed state.

[0034] See also Figure 2 , Figure 2 Shows Figure 1 The opening and closing state of the electronic device 100 is a structural schematic diagram of a closed state. Figure 2 The proximity sensor 112 is disposed at the first portion 110 , and at this time, the distance parameter detected by the proximity sensor 112 to the second portion 120 is minimum.

[0035] See also Figure 3 , Figure 3 Shows Figure 1 The structural diagram of the electronic device in which the opening and closing state is an intermediate state. The intermediate state can be a state between the open state and the closed state.

[0036] Please continue reading Figure 1 The electronic device 100 may further include a processing module 170, which may be one or more processing modules 170, and the processing module 170 is connected to the proximity sensor 112, and may be used to control not detecting the opening and closing angle of the electronic device, or may be used to control detecting the opening and closing angle of the electronic device. For a specific introduction, please refer to the subsequent embodiments.

[0037] See also Figure 4 , Figure 4 A method flow chart of a control method of an electronic device provided in an embodiment of the present application is shown. The control method can be applied to Figure 1In the electronic device shown, the processing module in the electronic device can be used as the execution subject. The method includes steps S110 to S130.

[0038] The electronic device provided in the embodiment of the present application may include a first part with a first screen and a second part with a second screen, the first part and the second part are rotatably connected so that the first screen and the second screen can move closer to and farther from each other, and the first part is provided with a proximity sensor, which is connected to the processing module. For a detailed introduction to the electronic device, please refer to Figures 1 to 3 The introduction of will not be repeated here.

[0039] Step S110: Acquire the opening and closing status of the electronic device.

[0040] It is understandable that when the opening and closing state of the electronic device is in the closed state, the user is less likely to use the electronic device through the first screen or the second screen. At this time, if the opening and closing angle of the electronic device is continuously detected, the power consumption of the electronic device will be higher. Therefore, in some embodiments, when the opening and closing state of the electronic device is in the closed state, the opening and closing angle of the electronic device may not be detected, thereby avoiding the problem of high power consumption caused by the electronic device continuously detecting the opening and closing angle. To this end, the opening and closing state of the electronic device may be first obtained.

[0041] The opening and closing state of the electronic device may include a closed state and a non-closed state, and the non-closed state may include an unfolded state and an intermediate state, where the intermediate state is a state between the non-closed state and the closed state.

[0042] Exemplarily, a proximity sensor may be provided on the electronic device, and the proximity sensor may be used to collect target distance parameters, so that the opening and closing state of the electronic device may be determined based on the target distance parameters. For a detailed description, please refer to the subsequent embodiments.

[0043] In another exemplary embodiment, the opening and closing state of the electronic device can also be determined based on a target capacitance parameter, wherein the target capacitance parameter includes at least one of a first capacitance parameter of the first screen and a second capacitance parameter of the second screen. For a detailed description, please refer to the subsequent embodiments.

[0044] In another exemplary embodiment, the opening and closing state of the electronic device may be comprehensively determined by using the target distance parameter collected by the proximity sensor and the target capacitance parameter of the electronic device. For a detailed description, please refer to the subsequent embodiments.

[0045] Step S120: If the opening and closing state is the closed state, then the opening and closing angle of the electronic device is not detected.

[0046] Step S130: If the opening and closing state is a non-closed state, detecting the opening and closing angle of the electronic device.

[0047] The opening and closing angle of the electronic device can be detected, so that other operations can be performed based on the detected opening and closing angle. For example, the opening and closing angle can be displayed in real time on the first screen or the second screen of the electronic device; for example, the application running in the electronic device can be controlled to enter a suspended state or a foreground running state based on the opening and closing angle. However, when the opening and closing state of the electronic device is a closed state, it is generally less likely that the user will use the electronic device through the first screen or the second screen at this time, so even if the opening and closing angle of the electronic device is not obtained at this time, it will not affect the operation of the electronic device. Therefore, in the implementation mode provided in the present application, after the opening and closing state is obtained, it can be further determined based on the opening and closing state whether it is necessary to detect the opening and closing progress of the electronic device.

[0048] Specifically, if the opening and closing state is a closed state, the opening and closing angle of the electronic device is not detected. If the opening and closing state is a non-closed state, the opening and closing angle of the electronic device is detected. The opening and closing angle of the electronic device can also be detected by calculating the angle between the first screen and the second screen based on the change of the first capacitance parameter of the first screen and the second capacitance parameter of the second screen, thereby realizing the detection of the opening and closing angle of the electronic device.

[0049] It should be noted that not detecting the opening and closing angle of the electronic device may mean not triggering the electronic device to detect the opening and closing angle, rather than simply not obtaining the result of angle detection. In other words, when the opening and closing state is the closed state, the electronic device does not trigger the detection of the opening and closing angle, thereby reducing the power consumption of the electronic device to a certain extent.

[0050] For example, if the opening and closing state is a closed state, a first control instruction can be generated at this time, and the first control instruction can be used to control the electronic device not to detect the opening and closing angle. Similarly, if the opening and closing state is a non-closed state, a second control instruction can be generated at this time, and the second control instruction can be used to control the electronic device to detect the opening and closing angle.

[0051] In some embodiments, the first screen and the second screen may include a transmitting channel and a receiving channel, wherein the capacitance data of the transmitting channel to the ground and the capacitance data of the receiving channel to the ground are both self-capacitance data. The detection of the opening and closing angle can be achieved by obtaining the self-capacitance data. Exemplarily, the electronic device can send a detection signal to the first screen and the second screen through the transmitting channel, and receive the signal returned through the first screen and the second screen through the receiving channel, thereby obtaining the capacitance data of the transmitting channel to the ground and the capacitance data of the receiving channel to the ground, thereby realizing the detection of the opening and closing angle. Among them, the process of sending the detection signal and obtaining the returned signal can also be called signal coding.

[0052] Specifically, the electronic device may further include a screen driver module, which is connected to the processing module, and is also connected to the first screen and the second screen respectively. The driver module may control the first screen and the second screen not to perform signal coding based on the first control instruction, so as not to detect the opening and closing angle of the electronic device. The driver module may also control the first screen and the second screen to perform signal coding based on the second control instruction, so as to detect the opening and closing angle of the electronic device.

[0053] The control method provided in the present application is applied to a processing module of an electronic device, and the method includes: first obtaining the opening and closing state of the electronic device; if the opening and closing state is a closed state, the opening and closing angle of the electronic device is not detected; if the opening and closing state is a non-closed state, the opening and closing angle of the electronic device is detected. If the opening and closing angle of the electronic device is continuously detected regardless of the opening and closing state of the electronic device, the power consumption of the electronic device will be high. However, the present application does not detect the opening and closing angle of the electronic device when the opening and closing state is a closed state, and only detects the opening and closing angle when the opening and closing state is a non-closed state. Thereby, the electronic device is prevented from continuously detecting the opening and closing angle, which can make the electronic device more power-saving and reduce the power consumption of the electronic device to a certain extent.

[0054] See also Figure 5 , Figure 5 A method flow chart of a control method of an electronic device provided in an embodiment of the present application is shown. The control method can be applied to Figure 1 In the electronic device shown, the processing module in the electronic device can be used as the execution subject. The method includes steps S210 to S2110.

[0055] The electronic device provided in the embodiment of the present application may include a first part with a first screen and a second part with a second screen, the first part and the second part are rotatably connected so that the first screen and the second screen can move closer to and farther from each other, and the first part is provided with a proximity sensor, which is connected to the processing module. For a detailed introduction to the electronic device, please refer to Figures 1 to 3 The introduction of will not be repeated here.

[0056] For some embodiments, the electronic device may also be provided with a proximity sensor. Specifically, the proximity sensor may be provided in the first part of the electronic device, and the proximity sensor is connected to the processing module, so that the opening and closing state of the electronic device may be determined based on the target distance parameter collected by the proximity sensor. Specifically, obtaining the opening and closing state of the electronic device may also include: obtaining the target distance parameter collected by the proximity sensor; and determining the opening and closing state of the electronic device based on the target distance parameter.

[0057] It can be understood that the proximity sensor is arranged on the first part, so when the electronic device is switched from a non-closed state to a closed state, the proximity sensor and the second part are close to each other; when the electronic device is switched from a closed state to a non-closed state, the proximity sensor and the second part are away from each other. Therefore, the target distance parameter collected by the proximity sensor can be regarded as the Euclidean distance between the proximity sensor and the second part.

[0058] Therefore, when the electronic device is switched from a non-closed state to a closed state, the target distance parameter collected by the proximity sensor will gradually decrease; when the electronic device is switched from a closed state to a non-closed state, the target distance parameter collected by the proximity sensor will gradually increase. Therefore, the target distance parameter collected by the proximity sensor can be obtained.

[0059] Further, the opening and closing state of the electronic device can be determined based on the target distance parameter. Specifically, the opening and closing state of the electronic device can be determined based on the target distance parameter. For some embodiments, a distance threshold can be set, so as to judge the opening and closing state of the electronic device based on the size relationship between the distance threshold and the target distance parameter. Among them, the opening and closing state of the electronic device can include a non-closed state or a closed state, and the non-closed state can include an intermediate state and an unfolded state.

[0060] Exemplarily, if the opening and closing state of the electronic device is the unfolded state, then the relative distance between the first part and the second part is relatively large, so that the target distance parameter collected by the proximity sensor disposed on the first part is also relatively large, and then the first distance threshold can be pre-set, and the unfolded state is the opening and closing state when the target distance parameter is greater than or equal to the first distance threshold. If the opening and closing state of the electronic device is the closed state, then the relative distance between the first part and the second part is relatively small, so that the target distance parameter collected by the proximity sensor disposed on the first part is also relatively small, and then the second distance threshold can be pre-set, and the closed state is the opening and closing state when the target distance parameter is less than or equal to the second distance threshold. The intermediate state can be the opening and closing state when the target distance parameter is less than the first distance threshold and greater than or equal to the second distance threshold.

[0061] Optionally, since the first screen is disposed in the first part and the second screen is disposed in the second part, in some embodiments, the first screen and the second screen may be touch screens, such as capacitive touch screens. Thus, when the relative positional relationship between the first screen and the second screen changes, the first capacitance parameter of the first screen and the second capacitance parameter of the second screen will also change. Therefore, the opening and closing state of the electronic device can also be determined based on the target capacitance parameter, wherein the target capacitance parameter includes at least one of the first capacitance parameter of the first screen and the second capacitance parameter of the second screen.

[0062] Optionally, for some other implementations, the open and closed state of the electronic device may also be determined based on the target distance parameter and the target capacitance parameter.

[0063] For some implementations, obtaining the target distance parameter collected by the proximity sensor may further include step S210.

[0064] Step S210: acquiring target distance parameters collected by the proximity sensor at intervals of a specified time threshold.

[0065] For some implementations, the proximity sensor may be continuously controlled to collect target distance parameters, so that the target distance parameters can be acquired in time when the relative distance between the first part and the second part changes, so that the subsequent determination of the opening and closing state of the electronic device based on the target distance parameters can be made with high timeliness.

[0066] However, if the proximity sensor is continuously controlled to collect the target distance parameter, the electronic device will have higher power consumption. Therefore, for other embodiments, the target distance parameter collected by the proximity sensor can also be obtained at intervals, that is, the proximity sensor can be controlled to collect the target distance parameter at intervals. Exemplarily, the target distance parameter collected by the proximity sensor can be obtained at intervals of a specified time threshold. Among them, the specified time threshold can be a pre-set time length, such as 0.5s, 1s, 1.5s, etc. It is easy to understand that the larger the value of the specified time threshold, the larger the time interval between each acquisition of the target distance parameter collected by the proximity sensor, thereby reducing the frequency of collecting the target distance parameter based on the proximity sensor, and also reducing the overall power consumption of the electronic device to a certain extent; and the smaller the value of the specified time threshold, the smaller the time interval between each acquisition of the target distance parameter collected by the proximity sensor, thereby timely collecting the target distance parameter based on the proximity sensor, thereby improving the timeliness of the subsequent determination of the opening and closing state of the electronic device based on the target distance parameter.

[0067] The specified time threshold may be input through an input device of the electronic device, or may be sent to the electronic device by other devices, and the embodiment of the present application does not make any specific limitation thereto.

[0068] Determining the opening and closing state of the electronic device based on the target distance parameter may also include steps S220 to S260.

[0069] Step S220: Whether the target distance parameter is greater than or equal to the first distance threshold.

[0070] From the above introduction, it can be known that in the process of switching the opening and closing state of the electronic device from a non-closed state to a closed state, the target distance parameter collected by the proximity sensor will gradually decrease; in the process of switching the opening and closing state of the electronic device from a closed state to a non-closed state, the target distance parameter collected by the proximity sensor will gradually increase. Therefore, the target distance parameter changes monotonically in the process of switching the opening and closing state of the electronic device from a non-closed state to a closed state or in the process of switching the opening and closing state of the electronic device from a closed state to a non-closed state. Thus, the first distance threshold and the second distance threshold can be set in advance, and the opening and closing state of the electronic device can be specifically determined by comparing the size relationship between the target distance parameter and the first distance threshold and the second distance threshold respectively. Among them, the first distance threshold can be greater than the second distance threshold.

[0071] Specifically, when the target distance parameter is greater than or equal to the first distance threshold, that is, when the opening and closing state is the unfolded state, the process can jump to step S230; when the target distance parameter is less than the first distance threshold, the process can jump to step S240 to further determine whether the target distance parameter is less than the second distance threshold.

[0072] Step S230: If the target distance parameter is greater than or equal to the first distance threshold, determining that the opening and closing state is the unfolded state.

[0073] If the target distance parameter is greater than or equal to the first distance threshold, it can be represented that the target distance parameter collected by the proximity sensor is large, and the opening and closing state can be determined to be the unfolded state. At this time, the process can further jump to step S2110.

[0074] Step S240: Whether the target distance parameter is less than a second distance threshold.

[0075] When the target distance parameter is less than the first distance threshold, it can only be determined that the opening and closing state of the electronic device is not a non-closed state. However, the opening and closing state of the electronic device may also be a closed state or an intermediate state at this time. Therefore, it is also possible to further determine whether the target distance parameter is less than the second distance threshold. If the target distance parameter is less than the second distance threshold, step S250 can be skipped at this time; if the target distance parameter is greater than or equal to the second distance threshold, step S260 can be skipped.

[0076] Step S250: If the target distance parameter is less than the second distance threshold, determining that the opening and closing state is a closed state.

[0077] If the target distance parameter is less than the second distance threshold, it can be represented that the target distance parameter collected by the proximity sensor is small, and the opening and closing state can be determined to be a closed state. At this time, the process can jump to step S270.

[0078] Step S260: If the target distance parameter is greater than or equal to the second distance threshold, the opening and closing state is determined to be an intermediate state.

[0079] In the case where the target distance parameter is determined to be less than the first distance threshold by step S220, if the target distance parameter is greater than or equal to the second distance threshold, then the target distance parameter is less than the first distance threshold and greater than or equal to the second distance threshold, which can indicate that the target distance parameter collected by the proximity sensor is at an intermediate value, and the opening and closing state can be determined to be an intermediate state. The intermediate value can be a value between the first distance threshold and the second distance threshold. At this time, the process can further jump to step S2110.

[0080] It should be noted that the first distance threshold and the second distance threshold in the embodiment of the present application can be pre-set. For example, the electronic device can be pre-controlled to be in a non-closed state, and the value collected by the proximity sensor when the electronic device is in a non-closed state is used as the first distance threshold; the electronic device can be pre-controlled to be in a closed state, and the value collected by the proximity sensor when the electronic device is in a closed state is used as the second distance threshold.

[0081] Since there may be errors when the proximity sensor collects the target distance parameters, in order to improve the accuracy of judging the opening and closing state of the electronic device through the target distance parameters, the values ​​collected by the proximity sensor can also be appropriately adjusted when the first distance and the second distance are pre-set. Exemplarily, the electronic device can be pre-controlled to be in an unfolded state, and the value collected by the proximity sensor when the electronic device is in an unfolded state can be obtained, and the value can be reduced by an adjusted value and used as the first distance threshold; the electronic device can be pre-controlled to be in a closed state, and the value collected by the proximity sensor when the electronic device is in a closed state can be obtained, and the value can be increased by an adjusted value and used as the second distance threshold. Thereby, the accuracy of subsequent judgment of the opening and closing state of the electronic device through the target distance parameters can be improved.

[0082] Step S270: If the opening and closing state is a closed state, the duration of the closed state is obtained.

[0083] Step S280: Whether the duration is greater than or equal to the duration threshold.

[0084] In some embodiments, when the opening and closing state is determined to be a closed state, the opening and closing angle of the electronic device may not be detected immediately. Instead, when the opening and closing state is determined to be a closed state, the duration of the closed state may be obtained. When the duration is greater than or equal to a duration threshold, the opening and closing angle of the electronic device is not detected. In other words, when the opening and closing state is detected to be a closed state, the opening and closing angle of the electronic device is not detected until after a delay of a duration threshold.

[0085] Therefore, when the duration is greater than or equal to the duration threshold, the process jumps to step S290 ; if the duration is less than the duration threshold, the process jumps to step S290 .

[0086] Step S290: If the duration is greater than or equal to the duration threshold, the opening and closing angle of the electronic device is not detected.

[0087] Step S2100: If the duration is less than the duration threshold, the opening and closing angle of the electronic device is detected.

[0088] If the duration is greater than or equal to the duration threshold, the opening and closing angle of the electronic device is not detected. If the duration is less than the duration threshold, the opening and closing angle of the electronic device is detected.

[0089] Thus, by delaying the time length threshold, the opening and closing angle of the electronic device is not detected, and a slow detection response of the opening and closing angle can be avoided when the opening and closing state of the electronic device is rapidly switched. The opening and closing state of the electronic device is rapidly switched, which can be used to indicate that the opening and closing state of the electronic device repeatedly switches from a non-closed state to a closed state, and then from a closed state to a non-closed state in a short period of time.

[0090] Step S2110: If the opening and closing state is a non-closed state, detecting the opening and closing angle of the electronic device.

[0091] Among them, step S2110 has been introduced in detail in the above embodiment and will not be repeated here.

[0092] The control method provided by the present application is applied to the processing module of the electronic device, and the method includes: obtaining the target distance parameter collected by the proximity sensor at intervals of a specified time threshold; if the target distance parameter is greater than or equal to the first distance threshold, determining that the open and closed state is a non-closed state; if the target distance parameter is less than the second distance threshold, determining that the open and closed state is a closed state; if the target distance parameter is less than the first distance threshold and greater than or equal to the second distance threshold, determining that the open and closed state is an intermediate state; if the open and closed state is a closed state, obtaining the duration of the closed state; if the duration is greater than or equal to the duration threshold, not detecting the opening and closing angle of the electronic device; if the open and closed state is a non-closed state, detecting the opening and closing angle of the electronic device. In the embodiment provided by the present application, the frequency of collecting the target distance parameter based on the proximity sensor can be reduced, and the overall power consumption of the electronic device can also be reduced to a certain extent. In addition, by setting the first distance threshold and the second threshold distance, and then comparing the size relationship between the target distance parameter and the first distance threshold and the second distance threshold, the accuracy of the subsequent judgment of the opening and closing state of the electronic device by the target distance parameter can be improved.

[0093] See also Figure 6 , Figure 6 A method flow chart of a control method of an electronic device provided in an embodiment of the present application is shown. The control method can be applied to Figure 1 In the electronic device shown, the processing module in the electronic device can be used as the execution subject. The method includes steps S310 to S350.

[0094] Step S310: Acquire target distance parameters collected by the proximity sensor.

[0095] Among them, step S310 has been introduced in detail in the above embodiment and will not be repeated here.

[0096] Step S320: acquiring a target capacitance parameter, where the target capacitance parameter includes at least one of a first capacitance parameter of the first screen and a second capacitance parameter of the second screen.

[0097] Step S330: determining the open or closed state of the electronic device based on the target distance parameter and the target capacitance parameter.

[0098] The first screen may have a first capacitance parameter, and the second screen may have a second capacitance parameter. It can be seen from the above introduction that when the opening and closing state of the electronic device changes, the relative position relationship between the first screen and the second screen will also change, which will cause the first capacitance parameter and the second capacitance parameter to change. Among them, the target capacitance parameter includes at least one of the first capacitance parameter of the first screen and the second capacitance parameter of the second screen. Thus, the opening and closing state of the electronic device can be determined based on the target capacitance parameter and the target distance parameter.

[0099] Similar to the aforementioned detection of the opening and closing angle of the electronic device based on the first screen and the second screen, the detection of the opening and closing state can also be achieved by obtaining self-capacitance data through signal coding. In other words, the target capacitance data can be the self-capacitance data of the first screen or the second screen.

[0100] After the target capacitance parameter is obtained, the open / closed state of the electronic device may be determined based on the target distance parameter and the target capacitance parameter. Specifically, when executing step S330, steps S331 to S333 may also be included.

[0101] Step S331: determining a first open / closed state of the electronic device based on the target distance parameter.

[0102] Step S332: determining a second open / closed state of the electronic device based on the target capacitance parameter.

[0103] Step S333: If at least one of the first opening and closing state and the second opening and closing state is a closed state, determining that the opening and closing state is a closed state.

[0104] The corresponding opening and closing states may be determined first based on the target distance parameter and the target capacitance parameter, respectively, and then the opening and closing state of the electronic device may be determined based on the corresponding opening and closing states.

[0105] Exemplarily, the first opening and closing state of the electronic device can be first determined based on the target distance parameter, wherein the method for determining the first opening and closing state based on the target distance parameter is similar to the method for determining the opening and closing state of the electronic device based on the target distance parameter in the aforementioned embodiment, and will not be repeated here.

[0106] Then, the second open / closed state of the electronic device can be determined based on the target capacitance parameter. Similarly, the second open / closed state of the electronic device can be obtained by obtaining the self-capacitance data through signal coding.

[0107] For some embodiments, when judging the opening and closing state of an electronic device based on a first opening and closing state and a second opening and closing state, if at least one of the first opening and closing state and the second opening and closing state is a closed state, then the opening and closing state is judged to be a closed state; or it may be that the first opening and closing state and the second opening and closing state need to be closed states at the same time before the opening and closing state is judged to be a closed state.

[0108] It is easy to understand that if at least one of the first opening and closing state and the second opening and closing state is a closed state, the opening and closing state is determined to be a closed state. At this time, missing electronic equipment in a closed state can be avoided as much as possible; and if the first opening and closing state and the second opening and closing state are required to be closed states at the same time, the opening and closing state is determined to be a closed state. At this time, the accuracy of determining the opening and closing state as a closed state can be maximized.

[0109] If at least one of the first opening and closing state and the second opening and closing state is a closed state, the opening and closing state is determined to be a closed state. It is necessary to determine that the opening and closing state of the electronic device is a non-closed state only when both the first opening and closing state and the second opening and closing state are non-closed states.

[0110] Step S340: If the opening and closing state is the closed state, then the opening and closing angle of the electronic device is not detected.

[0111] Similarly, when executing step S340, when the opening and closing state is the closed state, the duration of the closed state is first obtained; if the duration is greater than or equal to the duration threshold, the opening and closing angle of the electronic device is not detected. For a specific introduction, please refer to the above embodiment, which will not be repeated here.

[0112] Step S350: If the opening and closing state is a non-closed state, detecting the opening and closing angle of the electronic device.

[0113] The relevant introduction of step S350 can be found in the aforementioned embodiment and will not be repeated here.

[0114] The control method provided by the present application is applied to a processing module of an electronic device, and the method includes: first obtaining a target distance parameter collected by the proximity sensor; obtaining a target capacitance parameter, the target capacitance parameter including at least one of a first capacitance parameter of the first screen and a second capacitance parameter of the second screen; determining the opening and closing state of the electronic device based on the target distance parameter and the target capacitance parameter; if the opening and closing state is a closed state, obtaining the duration of the closed state; if the duration is greater than or equal to a duration threshold, not detecting the opening and closing angle of the electronic device; if the opening and closing state is a non-closed state, detecting the opening and closing angle of the electronic device. The embodiment provided by the present application can maximize the accuracy of determining whether the opening and closing state is a closed state by combining the target distance parameter and the target capacitance parameter to judge the opening and closing state.

[0115] See also Figure 7 , Figure 7 A method flow chart of a control method of an electronic device provided in an embodiment of the present application is shown. The control method can be applied to Figure 1 In the electronic device shown, the processing module in the electronic device can be used as the execution subject. The method includes steps S410 to S350.

[0116] Step S410: acquiring a target capacitance parameter, where the target capacitance parameter includes at least one of a first capacitance parameter of the first screen and a second capacitance parameter of the second screen.

[0117] Step S420: determining the on / off state of the electronic device based on the target capacitance parameter.

[0118] The first screen of the electronic device may have a first capacitance parameter, and the second screen may have a second capacitance parameter. It can be seen from the foregoing introduction that when the opening and closing state of the electronic device changes, the relative position relationship between the first screen and the second screen will also change, which will cause the first capacitance parameter and the second capacitance parameter to change. Therefore, for some embodiments, the target capacitance parameter can also be obtained first, and then the opening and closing state of the electronic device can be determined based on the target capacitance parameter. Among them, the target capacitance parameter includes at least one parameter of the first capacitance parameter of the first screen and the second capacitance parameter of the second screen.

[0119] Similar to the aforementioned detection of the opening and closing angle of the electronic device based on the first screen and the second screen, the opening and closing state of the electronic device can also be determined by obtaining self-capacitance data through signal coding.

[0120] Step S430: If the opening and closing state is the closed state, then the opening and closing angle of the electronic device is not detected.

[0121] Step S440: If the opening and closing state is a non-closed state, detecting the opening and closing angle of the electronic device.

[0122] Among them, step S430 and step S440 have been introduced in detail in the above embodiments and will not be repeated here.

[0123] The control method provided in the embodiment of the present application is applied to a processing module of an electronic device, and can directly determine the opening and closing state of the electronic device through at least one of the first capacitance parameter of the first screen of the electronic device and the second capacitance parameter of the second screen, without the need to additionally set a proximity sensor on the electronic device, thereby reducing the cost and difficulty of detecting the opening and closing state.

[0124] See also Figure 8 , Figure 7 The structural block diagram of a control device provided by an embodiment of the present application is shown. The control device 800 is applied to a processing module of an electronic device, the electronic device includes a first part with a first screen and a second part with a second screen, the first part and the second part are rotatably connected, so that the first screen and the second screen can move closer to and away from each other, and the control state device 800 includes: an acquisition unit 810, a first detection unit 820, and a second detection unit 830.

[0125] The acquisition unit 810 is used to acquire the opening and closing status of the electronic device.

[0126] Optionally, the acquisition unit 810 may also be configured to acquire a target distance parameter collected by the proximity sensor; and determine the open or closed state of the electronic device based on the target distance parameter.

[0127] Optionally, the acquisition unit 810 can also be used to determine that the opening and closing state is a non-closed state if the target distance parameter is greater than or equal to a first distance threshold; to determine that the opening and closing state is a closed state if the target distance parameter is less than a second distance threshold; and to determine that the opening and closing state is an intermediate state if the target distance parameter is less than the first distance threshold and greater than or equal to the second distance threshold.

[0128] Optionally, the acquisition unit 810 can also be used to obtain target capacitance parameters, wherein the target capacitance parameters include at least one of a first capacitance parameter of the first screen and a second capacitance parameter of the second screen; determining the opening and closing state of the electronic device based on the target distance parameter includes: determining the opening and closing state of the electronic device based on the target distance parameter and the target capacitance parameter.

[0129] Optionally, the acquisition unit 810 can also be used to determine a first open and closed state of the electronic device based on the target distance parameter; determine a second open and closed state of the electronic device based on the target capacitance parameter; if at least one of the first open and closed state and the second open and closed state is a closed state, then determine that the open and closed state is a closed state.

[0130] Optionally, the acquisition unit 810 may also be configured to acquire the target distance parameter collected by the proximity sensor at intervals of a specified time threshold.

[0131] Optionally, the acquisition unit 810 can also be used to obtain target capacitance parameters, where the target capacitance parameters include at least one of a first capacitance parameter of the first screen and a second capacitance parameter of the second screen; based on the target capacitance parameters, determine the open and closed state of the electronic device.

[0132] The first detection unit 820 is configured to not detect the opening and closing angle of the electronic device if the opening and closing state is the closed state.

[0133] Optionally, the first detection unit 820 can also be used to obtain the duration of the closed state if the opening and closing state is a closed state; if the duration is greater than or equal to a duration threshold, the opening and closing angle of the electronic device is not detected.

[0134] The second detection unit 830 is configured to detect the opening and closing angle of the electronic device if the opening and closing state is a non-closed state.

[0135] Please continue reading Figure 1 , Figure 1 The electronic device 100 in the present application may be a smartphone, a laptop, a tablet computer, etc. equipped with a foldable screen. The electronic device 100 in the present application may also include a memory 180, wherein the processing module 170 is electrically connected to the memory 180, and one or more programs are configured to execute the method described in the above method embodiment.

[0136] The processing module 170 may include one or more processing cores. The processing module 170 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 180, and calling data stored in the memory 180. Specifically, the method described in the above embodiment can be executed by one or more processing modules 170.

[0137] For some embodiments, the memory 180 may include a random access memory (RAM) or a read-only memory (ROM). The memory 180 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 180 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the following various method embodiments, etc. The data storage area may also store data created by the electronic device 100 during use, etc.

[0138] The first screen 111 and the second screen 121 may include a liquid crystal display (LCD), an organic electroluminescence display (OLED), or a quantum dot light emitting diode (QLED).

[0139] Optionally, the electronic device 100 may further include a screen driver module 190, which may be connected to the processing module 170, the first screen 111, and the second screen 121, respectively. The processing module 170 may send a first control instruction to the screen driver module 190 when the opening and closing state is a closed state, and may also send a second control instruction to the screen driver module 190 when the opening and closing state is a non-closed state.

[0140] Therefore, the screen driving module 190 can be used to disable the opening and closing angle detection of the electronic device based on the first control instruction sent by the processing module 170 when the opening and closing state is a closed state; the screen driving module 190 is also used to drive the first screen and the second screen to detect the opening and closing angle of the electronic device 100 based on the second control instruction sent by the processing module 170 when the opening and closing state is a non-closed state.

[0141] Optionally, the electronic device 100 may further include a register 150, and the register 150 is connected to the screen driving module 190. The register 150 may be used to obtain the first control instruction sent by the screen driving module 190 when the opening and closing state is a closed state; the register 150 may also be used to obtain the second control instruction sent by the screen driving module 190 when the opening and closing state is a non-closed state.

[0142] Furthermore, the register 150 may subsequently send the first control instruction or the second control instruction to the first screen 111 and the second screen 121 .

[0143] The screen driving module 190 and the register 150 may communicate with each other based on an Inter-Integrated Circuit (I2C) protocol or a Serial Peripheral Interface (SPI) protocol.

[0144] See also Fig. 9 , which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 900 may be a smartphone, a laptop, a tablet computer, etc. equipped with a foldable screen. The electronic device 900 in the present application may include one or more of the following components: a processor 910, a memory 920, and one or more applications, wherein one or more applications may be stored in the memory 920 and configured to be executed by one or more processors 910, and one or more programs are configured to execute the method described in the aforementioned method embodiment.

[0145] The processor 910 may include one or more processing cores. The processor 910 uses various interfaces and lines to connect various parts of the entire electronic device 900, and executes various functions and processes data of the electronic device 900 by running or executing instructions, programs, code sets or instruction sets stored in the memory 920, and calling data stored in the memory 920. Optionally, the processor 910 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 910 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 910, but may be implemented separately through a communication chip.

[0146] The memory 920 may include a random access memory (RAM) or a read-only memory ROM. The memory 920 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 920 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the following various method embodiments, etc. The data storage area may also store data created by the electronic device 900 during use, etc.

[0147] Please refer to Fig.10 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 1000 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0148] The computer readable storage medium 1000 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 1000 includes a non-transitory computer-readable storage medium. The computer readable storage medium 1000 has storage space for program code 1010 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 1010 can be compressed, for example, in an appropriate form.

[0149] Please refer to Fig.11 , which shows a block diagram of a computer program product provided in an embodiment of the present application. The computer program product 1100 includes a computer program / instruction 1110, which implements the steps of the above method when executed by a processor.

[0150] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A control method, characterized in that: The control method is applied to a processing module of an electronic device, wherein the electronic device comprises a first part provided with a first screen and a second part provided with a second screen, wherein the first part is rotatably connected to the second part so that the first screen and the second screen can move closer to and farther from each other, and the method comprises: Acquiring the opening and closing status of the electronic device; If the opening and closing state is a closed state, then the opening and closing angle of the electronic device is not detected; If the opening and closing state is a non-closed state, the opening and closing angle of the electronic device is detected.

2. The method according to claim 1, characterized in that If the opening and closing state is the closed state, then the opening and closing angle of the electronic device is not detected, including: If the opening and closing state is a closed state, obtaining the duration of the closed state; If the duration is greater than or equal to the duration threshold, the opening and closing angle of the electronic device is not detected.

3. The method according to claim 1, characterized in that The first part is provided with a proximity sensor, and the proximity sensor is connected to the processing module. The step of obtaining the opening and closing state of the electronic device includes: Acquire target distance parameters collected by the proximity sensor; The opening and closing state of the electronic device is determined based on the target distance parameter.

4. The method according to claim 3, characterized in that The non-closed state includes an unfolded state and an intermediate state, and the determining the open and closed state of the electronic device based on the target distance parameter includes: If the target distance parameter is greater than or equal to the first distance threshold, determining that the opening and closing state is a non-closed state; If the target distance parameter is less than a second distance threshold, determining that the opening and closing state is a closed state; If the target distance parameter is less than the first distance threshold and greater than or equal to the second distance threshold, the opening and closing state is determined to be an intermediate state.

5. The method according to claim 3, characterized in that: Before determining the opening and closing state of the electronic device based on the target distance parameter, the method further includes: Acquire a target capacitance parameter, where the target capacitance parameter includes at least one of a first capacitance parameter of the first screen and a second capacitance parameter of the second screen; The determining the opening and closing state of the electronic device based on the target distance parameter includes: Based on the target distance parameter and the target capacitance parameter, an open or closed state of the electronic device is determined.

6. The method according to claim 5, characterized in that The determining the open / closed state of the electronic device based on the target distance parameter and the target capacitance parameter includes: Determining a first open / closed state of the electronic device based on the target distance parameter; determining a second open / closed state of the electronic device based on the target capacitance parameter; If at least one of the first opening and closing state and the second opening and closing state is a closed state, the opening and closing state is determined to be a closed state.

7. The method according to claim 3, characterized in that The obtaining of the target distance parameter collected by the proximity sensor includes: The target distance parameter collected by the proximity sensor is obtained at intervals of a specified time threshold.

8. The method according to claim 1, characterized in that The obtaining the opening and closing state of the electronic device includes: Acquire a target capacitance parameter, where the target capacitance parameter includes at least one of a first capacitance parameter of the first screen and a second capacitance parameter of the second screen; Based on the target capacitance parameter, an on / off state of the electronic device is determined.

9. A control device, characterized in that: The control device is applied to a processing module of an electronic device, wherein the electronic device comprises a first part provided with a first screen and a second part provided with a second screen, wherein the first part is rotatably connected to the second part so that the first screen and the second screen can move closer to and farther from each other, and the device comprises: An acquisition unit, used for acquiring the opening and closing state of the electronic device; A first detection unit, configured to not detect the opening and closing angle of the electronic device if the opening and closing state is a closed state; The second detection unit is used to detect the opening and closing angle of the electronic device if the opening and closing state is a non-closed state.

10. An electronic device, characterized in that: The electronic device comprises a first part with a first screen and a second part with a second screen, the first part and the second part are rotatably connected so that the first screen and the second screen can move closer to and farther from each other; The electronic device further comprises a processing module, and the processing module is used to execute the method according to any one of claims 1-8.

11. The electronic device according to claim 10, characterized in that: The first part is provided with a proximity sensor, and the proximity sensor is connected to the processing module; The proximity sensor is used to collect target distance parameters.

12. The electronic device according to claim 10, characterized in that: The electronic device further comprises a screen driving module, and the screen driving module is connected to the processing module; The screen driving module is used for disabling the detection of the opening and closing angle of the electronic device based on the first control instruction sent by the processing module when the opening and closing state is the closed state; The screen driving module is further configured to, when the opening and closing state is a non-closed state, drive the first screen and the second screen to detect the opening and closing angle of the electronic device based on a second control instruction sent by the processing module.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 8.