Prompting method, folding screen equipment and computer readable storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2026-04-10
AI Technical Summary
When foreign objects adhere to the inner screen of a foldable device after it is folded, it can easily cause physical damage, affecting the user experience.
By detecting changes in capacitance data when the foldable screen device is in a folded state, it determines whether preset prompt conditions are met and outputs prompt information to remind the user to remove foreign objects.
It effectively avoids damage to the inner screen, improves user experience, saves power consumption, improves the accuracy of capacitance data, and reduces misjudgments.
Smart Images

Figure CN121844299A_ABST
Abstract
Description
Prompting method, folding screen device, and computer-readable storage medium
[0001] The present application claims priority to the Chinese patent application No. 202410544149.X, filed on April 30, 2024, and entitled "Prompting method, folding screen device, and computer-readable storage medium", the entire content of which is incorporated herein by reference. TECHNICAL FIELD
[0002] The present application relates to the technical field of terminals, in particular to a prompting method, a folding screen device, and a computer-readable storage medium. BACKGROUND
[0003] With the development of terminal devices, folding screen devices are increasingly widely used in people's production and life. A folding screen device usually has two screens. One is an inner screen as a main screen, and the other is an outer screen as a secondary screen. Generally, the inner screen is a foldable screen, referred to as a folding screen.
[0004] When a user unfolds the folding screen device, the inner screen with a large display area can be used for display, improving the user's experience of operating and watching the screen. When the user needs to carry the folding screen device, the folding screen device can be folded for convenient carrying.
[0005] After the user folds the folding screen device, if foreign matter is attached to the inner screen of the folding screen device, the foreign matter is likely to cause physical damage to the folded inner screen, affecting the user's use. SUMMARY
[0006] The present application provides a prompting method, device, chip, electronic device, computer-readable storage medium, and computer program product, which can remind the user to clean the screen in the case of foreign matter attached to the inner screen, avoid damage to the inner screen, and thus improve the user experience.
[0007] In a first aspect, a prompting method is provided. When it is detected that a folding screen device is in a folded state, first capacitance data is obtained, the first capacitance data being capacitance data of a folding screen of the folding screen device. If a first capacitance value change amount represented by the first capacitance data meets a preset prompting condition, a prompting information is outputted, the first capacitance value change amount representing a difference between the first capacitance data and reference capacitance data, the reference capacitance data being capacitance data collected when the folding screen device is in the folded state and no foreign matter exists on the folding screen.
[0008] In the use process of the folding screen device, whether it is in the folded state can be periodically detected by a Hall sensor or an angle sensor. When the folding screen device detects that it is in the folded state, the touch sensor of the folding screen (i.e., the inner screen) is controlled by a touch chip to collect capacitance data, obtaining the first capacitance data.
[0009] The folding screen device also pre-acquires reference capacitance data. The reference capacitance data represents the capacitance data in the case that the inner screen does not attach foreign matter. The folding screen device obtains a first capacitance change amount by subtracting the reference capacitance data from the first capacitance data. It should be noted that the first capacitance data, the reference capacitance data, and the first capacitance change amount.
[0010] The folding screen device determines whether the first capacitance change amount meets a preset prompt condition. If yes, it indicates that the inner screen has foreign matter at this time, which needs to be cleaned in time, and the folding screen device can output prompt information. This method can prompt the user to clean the foreign matter of the inner screen in time, avoid damage to the inner screen, and improve the user experience. If the first capacitance change amount does not meet the preset prompt condition, it indicates that the inner screen has no foreign matter at this time, and no prompt is needed.
[0011] In some possible implementation manners, the folding screen includes a first half screen and a second half screen, and the folding screen device includes a rotation shaft. The first half screen and the second half screen are foldable along the rotation shaft. The first capacitance data is obtained by determining that the folding screen device is in a half-screen typing state, and the first half screen is in a typing state and the second half screen is in a non-typing state when the folding screen device is in the half-screen typing state.
[0012] Optionally, when the first half screen is a left half screen, the second half screen is a right half screen. When the first half screen is a right half screen, the second half screen is a left half screen. The present application does not limit the first half screen and the second half screen, as long as they are two parts of the foldable screen in the folding screen device.
[0013] When the folding screen device detects that the folding screen device is switched from the unfolded state to the folded state, the folding screen device can also notify the touch chip to change the typing state, for example, to a half-screen typing state.
[0014] At this time, the first capacitance change amount collected by the folding screen device is the capacitance data of the first half screen. Correspondingly, the reference capacitance data is also the capacitance data collected in the case that the inner screen has no foreign matter in the half-screen typing state.
[0015] The folding screen device determines whether the first capacitance data meets a preset prompt condition. If yes, it indicates that the inner screen has foreign matter at this time, which needs to be cleaned in time, and the folding screen device can output prompt information. This method can prompt the user to clean the foreign matter of the inner screen in time, avoid damage to the inner screen, and improve the user experience. Furthermore, the first capacitance data in the half-screen typing state and the reference capacitance data are used as the judgment basis, which can save power consumption compared with the full-screen typing state. Furthermore, the first capacitance data obtained in the half-screen typing state can avoid the interference of the second half screen in the typing state on the first half screen, and improve the accuracy of the capacitance data.
[0016] In some possible implementation manners, the first half screen includes a plurality of capacitive units, the first capacitance variation includes a plurality of capacitance offsets, and the plurality of capacitance offsets and the plurality of capacitive units are in one-to-one correspondence; the preset prompt condition includes at least one of the following: the first ratio is greater than or equal to a first proportion threshold, the second ratio is greater than or equal to a second proportion threshold, and the third ratio is greater than or equal to a third proportion threshold; the first ratio is a ratio of a number of target capacitive units in the plurality of capacitive units to a total number of the plurality of capacitive units, and a capacitance offset corresponding to the target capacitive unit is greater than or equal to a preset variation threshold; the second ratio is a ratio of a number of target capacitive rows to a total number of capacitive rows in the plurality of capacitive units, and a proportion of a number of target capacitive units existing in the target capacitive row in the target capacitive row is greater than or equal to a fourth proportion threshold; and the third ratio is a ratio of a number of target capacitive columns to a total number of capacitive columns in the plurality of capacitive units, and a proportion of a number of target capacitive units existing in the target capacitive column in the target capacitive column is greater than or equal to a fifth proportion threshold.
[0017] The folding screen device can also calculate a proportion of a number of target capacitive units in the entire left half screen in all capacitive units in the entire left half screen (that is, the number of target capacitive units / the total number of all capacitive units), denoted as a first ratio. Optionally, the folding screen device can also calculate a ratio of a number of target capacitive rows to a total number of capacitive rows in the left half screen, denoted as a second ratio. Optionally, the folding screen device can also calculate a ratio of a number of target capacitive columns to a total number of capacitive columns in the left half screen, denoted as a third ratio.
[0018] Specifically, the preset prompt condition can include a limiting condition of any one or more of the first ratio, the second ratio, and the third ratio.
[0019] If the preset prompt condition includes one condition, the requirement for the limit value of the condition is more stringent.
[0020] For example, when the preset prompt condition is that the first ratio is greater than or equal to a first proportion threshold, the first proportion threshold is a first value, and the first value is a larger value, for example, three fourths, eighty percent, or other numbers greater than one half.
[0021] For another example, when the preset prompt condition is that the second ratio is greater than or equal to a second proportion threshold, the second proportion threshold is a second value, and the first value is a larger value, for example, three fourths, eighty percent, or other numbers greater than one half.
[0022] For another example, when the preset prompt condition is that the third ratio is greater than or equal to a third proportion threshold, the second proportion threshold is a second value, and the first value is a larger value, for example, three fourths, eighty percent, or other numbers greater than one half.
[0023] Taking three quarters as an example for the first proportion threshold value, the second proportion threshold value and the third proportion threshold value: that is, if the proportion of the target capacitance unit with a large capacitance value offset in the left half of the screen reaches three quarters of all the capacitance units in the left half of the screen; or, the proportion of the target capacitance row in the left half of the screen reaches three quarters of all the capacitance rows in the left half of the screen; or, the proportion of the target capacitance column in the left half of the screen reaches three quarters of all the capacitance columns in the left half of the screen, the folding screen device determines that the first capacitance value change amount meets the preset prompt condition.
[0024] In some possible implementation manners, the preset prompt condition is that the first ratio is greater than or equal to the first proportion threshold value, the first proportion threshold value is a first numerical value; the preset prompt condition is that the second ratio is greater than or equal to the second proportion threshold value, the second proportion threshold value is a second numerical value; the preset prompt condition is that the third ratio is greater than or equal to the third proportion threshold value, the third proportion threshold value is a third numerical value; the preset prompt condition is that the first ratio is greater than or equal to the first proportion threshold value and the second ratio is greater than or equal to the second proportion threshold value, the first proportion threshold value is a fourth numerical value, the second proportion threshold value is a fifth numerical value, the fourth numerical value is less than the first numerical value, and the fifth numerical value is less than the second numerical value; the preset prompt condition is that the first ratio is greater than or equal to the first proportion threshold value and the third ratio is greater than or equal to the third proportion threshold value, the first proportion threshold value is the fourth numerical value, the third proportion threshold value is a sixth numerical value, the fourth numerical value is less than the first numerical value, and the sixth numerical value is less than the third numerical value; the preset prompt condition is that the second ratio is greater than or equal to the second proportion threshold value and the third ratio is greater than or equal to the third proportion threshold value, the second proportion threshold value is the fifth numerical value, the third proportion threshold value is the sixth numerical value, the fifth numerical value is less than the second numerical value, and the sixth numerical value is less than the third numerical value; the preset prompt condition is that the first ratio is greater than or equal to the first proportion threshold value, the second ratio is greater than or equal to the second proportion threshold value, and the third ratio is greater than or equal to the third proportion threshold value, the first proportion threshold value is a seventh numerical value, the second proportion threshold value is an eighth numerical value, and the third proportion threshold value is a ninth numerical value, the seventh numerical value is less than the fourth numerical value, the eighth numerical value is less than the fifth numerical value, and the ninth numerical value is less than the sixth numerical value.
[0025] In some possible implementation manners, the first numerical value, the second numerical value and the third numerical value are greater than or equal to three quarters; the fourth numerical value, the fifth numerical value and the sixth numerical value are greater than or equal to one half; and the seventh numerical value, the eighth numerical value and the ninth numerical value are greater than or equal to one quarter.
[0026] If the preset prompt condition includes two conditions, the requirement for the limit value of the condition can be relaxed compared with that of one condition.
[0027] For example, when the preset prompt condition is that the first ratio is greater than or equal to a first proportion threshold value and the second ratio is greater than or equal to a second proportion threshold value, the first proportion threshold value is a fourth numerical value, and the second proportion threshold value is a fifth numerical value. The fourth numerical value is smaller than the first numerical value, for example, the fourth numerical value is one half. The fifth numerical value is smaller than the second numerical value, for example, the fifth numerical value is one half.
[0028] For another example, when the preset prompt condition is that the second ratio is greater than or equal to a second proportion threshold value and the third ratio is greater than or equal to a third proportion threshold value, the second proportion threshold value is a fifth numerical value, and the third proportion threshold value is a sixth numerical value. The fifth numerical value is smaller than the second numerical value, for example, the fifth numerical value is one half. The sixth numerical value is smaller than the third numerical value, for example, the sixth numerical value is one half.
[0029] For another example, when the preset prompt condition is that the first ratio is greater than or equal to a first proportion threshold value and the third ratio is greater than or equal to a third proportion threshold value, the first proportion threshold value is a fourth numerical value, and the third proportion threshold value is a sixth numerical value. The fifth numerical value is smaller than the second numerical value, for example, the fifth numerical value is one half. The sixth numerical value is smaller than the third numerical value, for example, the sixth numerical value is one half.
[0030] For example, when the preset prompt condition is that the first ratio is greater than or equal to a first proportion threshold value and the second ratio is greater than or equal to a second proportion threshold value, the first proportion threshold value is a seventh numerical value, the second proportion threshold value is an eighth numerical value, and the third proportion threshold value is a ninth numerical value. The seventh numerical value is smaller than the fourth numerical value, for example, the seventh numerical value is one third. The eighth numerical value is smaller than the fifth numerical value, for example, the eighth numerical value is one third. The ninth numerical value is smaller than the sixth numerical value, for example, the ninth numerical value is one third.
[0031] If the preset prompt condition includes three conditions, the requirement for the limit value of the condition can be further relaxed compared to the case of including one condition or two conditions.
[0032] For example, when the preset prompt condition is that the first ratio is greater than or equal to a first proportion threshold value and the second ratio is greater than or equal to a second proportion threshold value, the first proportion threshold value is a seventh numerical value, the second proportion threshold value is an eighth numerical value, and the third proportion threshold value is a ninth numerical value. The seventh numerical value is smaller than the fourth numerical value, for example, the seventh numerical value is one third. The eighth numerical value is smaller than the fifth numerical value, for example, the eighth numerical value is one third. The ninth numerical value is smaller than the sixth numerical value, for example, the ninth numerical value is one third.
[0033] Optionally, if the limit values of the above conditions require relatively strict, for example, the numerical values of the first proportion threshold, the second proportion threshold and the third proportion threshold are relatively large, the inner screen can be determined to have foreign matter in the case that the first capacitance value change amount meets the preset prompt condition, or the result that the inner screen has foreign matter is output.
[0034] In some possible implementation ways, the preset prompt condition is that the first ratio is greater than or equal to the first proportion threshold, the second ratio is greater than or equal to the second proportion threshold, and the third ratio is greater than or equal to the third proportion threshold, and the first capacitance value data representing the first capacitance value change amount meets the preset prompt condition, the prompt information is output. For example, when the seventh numerical value, the eighth numerical value and the ninth numerical value are one-half, if the first capacitance value data representing the first capacitance value change amount meets the preset prompt condition, the prompt information is output.
[0035] In some possible implementation ways, if the first capacitance value data representing the first capacitance value change amount meets the preset prompt condition, the prompt information is output. For example, when the seventh numerical value is one-fourth, the eighth numerical value is one-third, and the ninth numerical value is one-third, if the first capacitance value data representing the first capacitance value change amount meets the preset prompt condition, at least one group of second capacitance value data is obtained, the second capacitance value data is the capacitance data collected when the folding screen device is in the half-screen coding state, and the second capacitance value data is the capacitance data collected after the first capacitance value data is collected; if the second capacitance value change amount represented by any one of the at least one group of second capacitance value data meets the preset prompt condition, the prompt information is output.
[0036] Optionally, if the limit values of the above conditions require relatively loose, for example, the numerical values of the first proportion threshold, the second proportion threshold and the third proportion threshold are relatively small, the folding screen device can continue to collect capacitance value data multiple times and perform multiple judgments in the case that the first capacitance value change amount meets the preset prompt condition. Specifically, the folding screen device can continue to collect the second capacitance value data in the half-screen coding state in the folding state in the case that the first capacitance value change amount meets the preset prompt condition. Then, the folding screen device can continue to judge whether the second capacitance value change amount represented by the second capacitance value data meets the preset prompt condition. If the second capacitance value change amount also meets the preset prompt condition, the folding screen device can determine that the inner screen has foreign matter, and can also output the result that the inner screen has foreign matter.
[0037] Optionally, the second capacitance data can be a set of capacitance data collected at one time, or can be multiple sets of capacitance data collected at different times, and the embodiments of the present application are not limited thereto. If the second capacitance data is multiple sets of capacitance data collected at different times, the folding screen device can determine whether the second capacitance change amount represented by each set of capacitance data satisfies the preset prompt condition. If the second capacitance change amount represented by each set of capacitance data in the second capacitance data satisfies the preset prompt condition, or if the second capacitance change amount represented by multiple sets of capacitance data in the second capacitance data satisfies the preset prompt condition and the multiple sets of capacitance data account for more than half of the total number of sets of the second capacitance data, the folding screen device can determine that the inner screen has foreign matter. Otherwise, the folding screen device determines that the inner screen does not have foreign matter. In this implementation manner, the folding screen device determines whether the preset prompt condition is satisfied by the capacitance change amount represented by the capacitance data collected multiple times under the condition that the limit value of the condition is relatively loose, thereby obtaining a determination result. This method can avoid false positives caused by accidental interference and improve the accuracy of the determination result.
[0038] In some possible implementation manners, the outputting the prompt information includes at least one of playing a prompt voice, controlling a motor vibrator to vibrate, and displaying a prompt interface on the outer screen of the folding screen device, and the prompt interface displays prompt text or a prompt icon.
[0039] The folding screen device can output prompt information in different manners, and the prompt manners are rich and diverse, which can meet various prompt needs of the user.
[0040] In some possible implementation manners, the displaying the prompt interface on the outer screen of the folding screen device includes: determining a target region in the first half screen according to the first capacitance change amount, and the capacitive units in the target region are all target capacitive units; and displaying the prompt interface on the outer screen, and the prompt interface further includes region indication information, and the region indication information is used to indicate the position of the target region in the first half screen. The region indication information can indicate the position of the target region in the left half screen, thereby accurately guiding the user to remove the foreign matter.
[0041] In some possible implementation manners, after the outputting the prompt information, the method further includes: when it is detected that a reference update condition is met, collecting third capacitance data, the third capacitance data being capacitance data collected when the folding screen device is in the folded state and there is no foreign matter on the first half screen and the second half screen (i.e., the folding screen); updating the reference capacitance data by using the third capacitance data; and the reference update condition includes that the number of times of outputting the prompt information in a preset time period is greater than or equal to a first number threshold, and the number of times of switching the folding screen device from the folded state to the unfolded state exceeds a second number threshold; and / or the time interval between the current time and the collection time of the reference capacitance data is greater than or equal to a preset update period.
[0042] Optionally, the preset time period can be 1 day, 3 days, etc., the first number threshold can be 10, 20, etc., and the second number threshold can be 10, 20, or 30, etc.
[0043] After the folding screen device is used for a period of time, due to the wear of the hardware, slight scratches on the inner screen, and other reasons, even if there is no foreign matter on the inner screen, a larger capacitance offset may be detected at some capacitance units. In the case of meeting the reference condition, for example, in the case of outputting the prompt information multiple times and the user opening and closing the folding screen device multiple times, it is considered that the capacitance offset is the influence of solidification, and the process of re-acquiring the reference capacitance value data can be started to ensure the accuracy of the output prompt information. The folding screen device can also periodically update the reference capacitance value data to ensure the accuracy of the output prompt information.
[0044] In some possible implementation manners, the third capacitance value data is collected, including: displaying a calibration interface, the calibration interface including a calibration start control; receiving a selection operation of the calibration start control by the user; and in response to the selection operation, detecting that the folding screen device is in a folded state, collecting the third capacitance value data.
[0045] The folding screen device starts the calibration program and displays the calibration interface. The user can point to the calibration start control in the calibration interface. Then, the user folds the folding screen device. After the folding screen device receives the selection operation of the calibration start control by the user, it is detected whether the folding screen device is in a folded state. When the folding screen device enters the folded state, the code punching state is set to a half-screen code punching state, and the third capacitance value data is collected. The folding screen device saves the third capacitance value data and uses it as new reference capacitance value data, which can be used as a basis for subsequent prompts.
[0046] In some possible implementation manners, the first capacitance value data is collected, including: collecting the first capacitance value data according to a first code punching time length, the first code punching time length being greater than a preset code punching time length, and the reference capacitance value data being capacitance data collected according to the preset code punching time length.
[0047] The folding screen device collects the first capacitance value data by using a longer first code punching time length, thereby improving the signal-to-noise ratio of code punching and improving the accuracy of the capacitance value data.
[0048] In some possible implementations, the method comprises: recording a prompt location at which the prompt information is output, the prompt location being a position at which the folding-screen device outputs the prompt information; when the number of times that the prompt information is output at the prompt location exceeds a third number threshold, the number of times that the folding-screen device switches from the folded state to the unfolded state exceeds a fourth number threshold, and the folding-screen device is in the folded state, setting the folding-screen device to be in a half-screen coding state; when the folding-screen device is in the half-screen coding state, collecting fourth capacitance data, the fourth capacitance data being capacitance data collected when there is no foreign matter on the first half-screen and the second half-screen (i.e., the folding screen); and updating the reference capacitance data by using the fourth capacitance data.
[0049] Optionally, the third number threshold can be 10, 20, or the like, and the fourth number threshold can be 10, 20, 30, or the like.
[0050] In some areas, there can be relatively large interference signals due to the influence of base stations or some devices. When the folding-screen device is in such an area, the detected capacitance data can be relatively large due to the influence of the interference signals. In this case, even if there is no foreign matter clamped in the inner screen, the folding-screen device can continue to output the prompt information, affecting the user experience. Based on this, the folding-screen device can record the time and event when the prompt information is output, and can also record the position of the folding-screen device when the prompt information is output, which can be recorded as a prompt location.
[0051] The folding-screen device can count the number of times that the prompt information is output at a prompt location, and when the number of times that the prompt information is output exceeds a third number threshold, and the number of times that the folding-screen device switches from the folded state to the unfolded state during this process exceeds a fourth number threshold, it can be determined that there is a high probability of interference signals, and not a prompt caused by foreign matter in the inner screen. At this time, the folding-screen device can prompt the user to start calibration of new reference capacitance data, so as to obtain new reference capacitance data. For example, the folding-screen device automatically pops up an interface prompting the user to calibrate the reference capacitance data, or directly automatically displays a calibration interface of the calibration application. The user selects a calibration start control in the calibration interface to start the calibration process. The folding-screen device can also automatically start calibration of new reference capacitance data to obtain new reference capacitance data. Specifically, when the folding-screen device is detected to be in the folded state, the folding-screen device sets the coding state to be in a half-screen coding state and collects fourth capacitance data. The folding-screen device saves the third capacitance data and uses it as new reference capacitance data, which can be used as a basis for subsequent prompts. After that, if the folding-screen device leaves the area, the previous reference capacitance data can be used as a basis for prompting. If the folding-screen device does not leave the area or enters the area again after leaving the area, the folding-screen device can use the fourth capacitance data as new reference capacitance data to provide a basis for subsequent prompts.
[0052] Optionally, the folding screen device can also save the reference value data corresponding to the plurality of prompt locations, forming a corresponding relationship between the plurality of prompt locations and the plurality of groups of reference value data. When the folding screen device enters a certain area, the reference value data corresponding to the current prompt location can be filtered according to the current position as a prompt basis, thereby avoiding false positives caused by different environments and improving the accuracy of the prompt information output.
[0053] In a second aspect, a prompt device is provided, which includes a unit composed of software and / or hardware, and the unit is configured to execute any one of the methods in the technical solutions of the first aspect.
[0054] In a third aspect, an embodiment of the present application provides a chip, which includes a processor; the processor is configured to read and execute a computer program stored in a memory, so as to execute any one of the methods in the technical solutions of the first aspect.
[0055] Optionally, the chip further includes a memory, and the memory is connected to the processor through a circuit or a wire.
[0056] Further optionally, the chip further includes a communication interface.
[0057] In a fourth aspect, an electronic device is provided, which includes a processor, a memory and an interface; the processor, the memory and the interface cooperate with each other, so that the electronic device executes any one of the methods in the technical solutions of the first aspect, or includes any one of the chips in the third aspect.
[0058] Optionally, the electronic device is a folding screen device.
[0059] In a fifth aspect, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program; when the computer program is executed by a processor, the processor executes any one of the methods in the technical solutions of the first aspect.
[0060] In a sixth aspect, a computer program product is provided, and the computer program product includes computer program code; when the computer program code runs on an electronic device, the electronic device executes any one of the methods in the technical solutions of the first aspect. BRIEF DESCRIPTION OF DRAWINGS
[0061] FIG. 1 is a structural schematic diagram of a terminal device 100 provided by an embodiment of the present application;
[0062] FIG. 2 is a software structure block diagram of the terminal device 100 provided by an embodiment of the present application;
[0063] FIG. 3 is a schematic diagram of a folding screen device in an unfolded state and a folded state provided by an embodiment of the present application;
[0064] FIG. 4 is a schematic diagram of a transmitting channel and a receiving channel according to an embodiment of the present application;
[0065] FIG. 5 is a schematic diagram of a process of obtaining reference capacity data according to an embodiment of the present application;
[0066] FIG. 6 is a schematic diagram of a process of a prompting method according to an embodiment of the present application;
[0067] FIG. 7 is a schematic diagram of outputting prompting information according to an embodiment of the present application;
[0068] FIG. 8 is a schematic diagram of a prompting interface according to an embodiment of the present application;
[0069] FIG. 9 is a schematic diagram of a module architecture of a screen protection system according to an embodiment of the present application;
[0070] FIG. 10 is a schematic diagram of a structure of a prompting device according to an embodiment of the present application. DETAILED DESCRIPTION
[0071] In the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B; in this document, "and / or" is only a description of the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0072] Hereinafter, the terms "first", "second", "third" are only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first", "second", "third" can explicitly or implicitly include one or more features.
[0073] The prompting method provided by the embodiments of the present application can be applied to a terminal device with a folding screen, such as a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiments of the present application do not make any limitation on the specific type of the terminal device.
[0074] Exemplarily, FIG. 1 is a structural schematic diagram of an example terminal device 100 provided in an embodiment of the present application. The terminal device 100 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a loudspeaker 170A, a receiver 170B, a microphone 170C, a headset interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, and the like. The sensor module 180 can include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
[0075] Optionally, the terminal device 100 with a folding screen can be referred to as a folding screen device. A sensor, such as a Hall sensor or an angle sensor, can also be arranged in the terminal device 100 to identify whether the terminal device 100 is in an unfolded state or a folded state.
[0076] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 can include more or fewer components than those illustrated, or combine certain components, or split certain components, or different arrangement of components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
[0077] It can be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only illustrative and does not constitute a limitation on the structure of the terminal device 100. In other embodiments of the present application, the terminal device 100 can also use different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0078] The software system of the terminal device 100 can use a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiments of the present application take an Android system with a layered architecture as an example to illustratively describe the software structure of the terminal device 100.
[0079] FIG. 2 is a software structure block diagram of the terminal device 100 according to an embodiment of the present application. The layered architecture divides the software into several layers, each of which has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer. The application layer can include a series of application packages.
[0080] As shown in FIG. 2, the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0081] The application package can also include a calibration program, which is used to collect and save reference capacitance data. The reference capacitance data can represent the capacitance distribution in the absence of foreign matter on the folding screen.
[0082] The application framework layer provides the application layer with application programming interfaces (APIs) and programming frameworks for the applications. The application framework layer includes some pre-defined functions.
[0083] As shown in FIG. 2, the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc.
[0084] The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, and take screenshots, etc.
[0085] The content provider is used to store and obtain data, and make the data accessible to the applications. The data can include videos, images, audios, dialed and received calls, browsing history and bookmarks, phonebook, etc.
[0086] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a short message notification icon can include a view for displaying text and a view for displaying pictures.
[0087] The phone manager is used to provide the communication function of the terminal device 100. For example, the management of call state (including call connection, call hang-up, etc.).
[0088] The resource manager provides various resources for the applications, such as localized strings, icons, pictures, layout files, video files, etc.
[0089] A notification manager enables an application to display notification information in a status bar, which can be used to convey a message of an informative type that can automatically disappear after a brief stay without user interaction.
[0090] An Android runtime includes a core library and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.
[0091] The core library contains two parts: one part is a function function that the java language needs to call, and the other part is the core library of Android.
[0092] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the java file of the application layer and the application framework layer into a binary file. The virtual machine is used to perform the management of the object life cycle, the management of the stack, the management of the thread, the management of the security and the exception, and the garbage collection and the like.
[0093] The system library can include a plurality of functional modules. For example: a surface manager, media libraries, a three-dimensional graphics processing library (for example: OpenGL ES), a 2D graphics engine (for example: SGL) and the like.
[0094] The surface manager is used to manage the display subsystem, and provides a plurality of applications with the fusion of 2D and 3D layers.
[0095] The media library supports a plurality of commonly used audio, video format playback and recording, and static image files and the like. The media library can support a plurality of audio and video coding formats, for example: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG and the like.
[0096] The three-dimensional graphics processing library is used to realize three-dimensional graphics drawing, image rendering, synthesis, and layer processing and the like.
[0097] The 2D graphics engine is a drawing engine for 2D drawing.
[0098] The kernel layer is a layer between hardware and software. The kernel layer at least contains a display driver, a camera driver, an audio driver, and a sensor driver.
[0099] The hardware all belongs to the hardware layer, and a plurality of hardware in the hardware layer is also shown in FIG. 2, for example, a touch IC and a touch screen, a motor driving chip and a motor vibrator and the like. Among them, the touch screen can include an inner screen and an outer screen of a folding screen device. The touch screen is provided with a touch sensor, which can collect a capacitance data for sensing a user operation. The motor driving chip can drive the motor vibrator to vibrate.
[0100] For ease of understanding, the following embodiments of the present application will take the terminal device with the structure shown in FIG. 1 and FIG. 2 as an example, and the prompting method provided by the embodiments of the present application will be specifically described in combination with the drawings and application scenarios.
[0101] With the development of terminal devices, folding screen devices are increasingly widely used in people's production and life. A folding screen device usually has more than one screen, and a common folding screen device has two screens. One is an inner screen as a main screen, and the other is an outer screen as a secondary screen. The inner screen is a foldable screen, which is referred to as a folding screen. When a user unfolds the folding screen device, the inner screen is in an unfolded state, as shown in FIG. 3a. At this time, the user can use the inner screen with a large display area to operate and view the screen. When the user needs to carry the folding screen device, the folding screen device can be folded. At this time, the inner screen is folded. FIG. 3b shows a schematic diagram of the folding screen device in a folded state. After folding, the inner screen of the folding screen device is folded, and the volume of the folding screen device becomes smaller, which can be conveniently carried. However, if foreign matter such as glass slag, keys, branches, metal debris, etc. is attached to the inner screen of the folding screen device, the foreign matter attached to the inner screen is likely to cause physical damage to the folded inner screen after the folding screen device is folded by the user, affecting the user's use. In other cases, if the user inadvertently holds other foreign matter in the folding screen without noticing, the inner screen is also likely to be damaged.
[0102] Based on this, the embodiments of the present application provide a prompting method, which can remind the user to clean the foreign matter attached to the inner screen to avoid damage to the inner screen. The folding screen device pre-stores the capacitance data collected when the inner screen has no foreign matter attached, as reference capacitance data. When the folding screen is folded, the folding screen device detects the capacitance data of the inner screen. If the capacitance data of the inner screen detected at this time changes greatly compared with the pre-stored reference capacitance data, it means that the inner screen is likely to have foreign matter attached or hold foreign matter. At this time, the folding screen device can output a prompt information, which can prompt the user to clean the foreign matter on the inner screen in time to avoid damage to the inner screen and improve the user experience. If the capacitance data of the inner screen detected changes less compared with the pre-stored reference capacitance data, it means that the inner screen is likely to have no foreign matter attached or hold foreign matter, and there is no risk of being damaged by foreign matter, so no prompt is needed.
[0103] For the touch screen, according to the principle of detecting the capacitance, it can be divided into two ways of self-capacitance and mutual-capacitance. Here, taking the mutual-capacitance detection as an example, the code-on state of the touch screen is introduced. FIG. 4 is a schematic diagram of mutual-capacitance channels in the inner screen according to an embodiment of the present application. The transmitting channels (TX) are distributed horizontally, for example, including TX1, TX2, TX3, …, TXn-2, TXn-1, TXn; the receiving channels (RX) are distributed vertically, for example, RX1, RX2, RX3, …, RXm-1, TXm. The specific values of m and n are not limited. m and n can be the same or different, and can be determined according to the size of the screen. The number of transmitting channels and receiving channels in FIG. 4 is only an example and does not limit the embodiments of the present application. When the folding screen device is in the unfolded state, the code-on state of the folding screen device is a full-screen code-on state. That is, all the transmitting channels of the inner screen are code-on. Therefore, the entire area of the inner screen can detect the capacitance data. When the folding screen device is in the folded state, the user will not have the behavior of touching the inner screen. Therefore, the code-on state of the folding screen device can be a code-off state. That is, when the folding screen device is in the folded state, all the transmitting channels of the inner screen are code-off, which can save power consumption.
[0104] In the technical solution of the embodiments of the present application, the code-on state also relates to a half-screen code-on state. In the half-screen code-on state, the transmitting channels in a part of the screen of the folding screen device are code-on, and the transmitting channels in another part of the screen are code-off. For example, referring to the mutual-capacitance channels shown in FIG. 4, the transmitting channels (TX1 and adjacent transmitting channels) in the half-screen on one side of the hinge are code-on, and the transmitting channels (TXn and adjacent transmitting channels) in the half-screen on the other side of the hinge are code-off. That is, the left half-screen is code-on and the right half-screen is code-off. The code-on and code-off of the screen described in the embodiments of the present application essentially refer to the code-on and code-off of the transmitting channels in the screen.
[0105] It should be noted that the intersection of one transmitting channel and one receiving channel is a capacitance unit. As can be seen, the left half-screen can include a plurality of capacitance units. The plurality of capacitance units are arranged along the array of transmitting channels and receiving channels. The capacitance units distributed horizontally and in the same row constitute a capacitance row; the capacitance units distributed vertically and in the same column constitute a capacitance column. The arrangement of the capacitance units in the right half-screen can also be described with reference to the related description of the left half-screen, which will not be repeated here.
[0106] In order to accurately evaluate the change of the capacitance data of the folding screen device, the folding screen device can be calibrated for the reference capacitance data during the production process on the production line. It should be noted that the folding screen device for calibration of the reference capacitance data is a device that has completed the whole machine assembly, and the specific method is as follows:
[0107] In a shielded environment, ensure the inner screen of the foldable device is clean (free of foreign objects), and set the device's marking method to half-marking mode before collecting capacitance data. The collected capacitance data can characterize the capacitance distribution when there are no foreign objects on the inner screen.
[0108] Optionally, the collected capacitance data can be seen in the example shown in Table 1 below. In Table 1, TX represents different transmit channels, and RX represents different receive channels. For simplicity, Table 1 uses an example with 5 TX channels and 6 RX channels. In reality, for half of a foldable screen device, the number of TX and RX channels can be even greater.
[0109] Table 1
[0110] Each capacitance data point in Table 1 corresponds to a capacitance unit, representing the capacitance value detected at that unit. The capacitance data shown in Table 1 can be used as reference capacitance values.
[0111] Figure 5 is a flowchart of a method for obtaining reference capacitance data according to an embodiment of this application, including:
[0112] S501, Startup Process.
[0113] Users can initiate the calibration process through the interface of the foldable screen device, such as by clicking on the calibration application to start the process.
[0114] Alternatively, the foldable screen device may also automatically start the calibration process upon receiving a calibration command sent by the test bench; this application embodiment does not limit this.
[0115] S502. Confirm that the foldable screen device is in a folded state and enter the half-screen coding state.
[0116] After the foldable screen device initiates the calibration process, it first determines whether the device is in a folded state. If it is not yet in a folded state, periodic checks can be performed until the device enters this state. Once in a folded state, the touch chip can be notified to set the coding status to half-screen coding status. Optionally, setting the coding status to half-screen coding status can be achieved by the touch chip updating the value of the flag corresponding to the coding status to a value representing half-screen coding status.
[0117] In response to the setting of the flag value corresponding to the blurring status, the foldable screen device is set to blur the left half of the screen and not blur the right half of the screen.
[0118] S503, Collect capacitance data.
[0119] When the foldable screen device is in half-screen coding mode, the capacitance value data of each coded capacitor unit is collected.
[0120] S504, save the capacitance value data as the reference capacitance value data.
[0121] After the folding screen device collects the capacitance value data of each capacitance unit, the capacitance value data is saved as the reference capacitance value data.
[0122] Optionally, the folding screen device can calibrate the reference capacitance value data for each device to obtain the reference capacitance value data of itself. In this way, the hardware differences between each folding screen device (such as the gap size of the inner screen in the folded state, or the inconsistency of the screen itself) can be considered, so that the reference capacitance value data is more accurate.
[0123] Optionally, the reference capacitance value data can also be calibrated for each folding screen device of the same type to obtain the reference capacitance value data of each folding screen device. Then, the obtained multiple sets of reference capacitance value data of the multiple folding screen devices are fused to obtain new reference capacitance value data. The fused new reference capacitance value data is then used as the reference capacitance value data of the folding screen devices of the same type. This method can save the process of the production line and improve the efficiency of the production line. Optionally, the multiple sets of reference capacitance value data of the multiple folding screen devices can be fused, and the average value of the multiple capacitance data corresponding to the capacitance unit at the same position in the multiple sets of reference capacitance value data can be used as the capacitance data of the capacitance unit at the position in the final reference capacitance value data.
[0124] Optionally, the above-mentioned reference capacitance value data can also be obtained by downloading from a cloud server. For example, the cloud server can store the reference capacitance value data of folding screen devices of multiple types. When the folding screen device is powered on and registers the network, or is in an idle state, the reference capacitance value data corresponding to the type of the folding screen device can be downloaded from the cloud server.
[0125] After the folding screen device obtains the reference capacitance value data, the reference capacitance value data is saved in the memory, and then the foreign matter existing in the inner screen can be detected.
[0126] When the user does not use the folding screen device, the folding screen device can be folded. At this time, the folding screen device can detect that it enters the folded state through the sensor set by itself. Optionally, the folding screen device can detect that it enters the folded state through a Hall sensor. After detecting the folded state, the Hall sensor can transmit information that the folding screen device is in the folded state to the application layer, and the application layer can distribute according to needs. For example, the application layer can adjust the code state in response to the folding screen device being in the folded state, and can also instruct the inner screen to turn off the screen when the folding screen device is in the folded state.
[0127] When the folding screen device is in the folded state, the folding screen device can set the code printing state of the inner screen to a half-screen code printing state. Optionally, the half-screen code printing state can be left half-screen code printing and right half-screen non-code printing, or left half-screen non-code printing and right half-screen code printing. If it is an ideal space environment, for example, without external interference noise and other interference, the inner screen is clean and does not have foreign matter attached thereto, so that the capacity value data detected by the folding screen device is the same as the reference capacity value data. The folding screen device can output a capacity value change amount in the current state. Specifically, the capacity value change amount includes a plurality of capacitance offsets of a plurality of capacitive units detected. The capacitive units and the capacitance offsets are one-to-one correspondence. For a capacitive unit, the capacitance offset corresponding to the capacitive unit is obtained by subtracting the capacitance data of the capacitive unit in the reference capacity value data from the currently detected capacitance data. In the ideal space environment, the capacitance offset corresponding to each capacitive unit in the capacity value change amount is 0.
[0128] It should be noted that in the embodiments of the present application, the change of the capacitance distribution is described by using the capacity value change amount, which can reduce the specific value of the data to be processed compared with directly using the detected capacitance data, facilitating comparison and calculation.
[0129] Generally, there will be some interference noise in the environment. Therefore, when the folding screen device is in the folded state and the code printing state is set to the half-screen code printing state, even if the inner screen does not have foreign matter, there will be a difference between the capacity value data collected by the folding screen device and the reference capacity value data, that is, the capacitance offsets in the capacity value change amount will not all be 0. That is, the smaller the interference, the closer the capacitance offset to 0. Table 2 is an example of the capacity value change amount obtained by collecting capacitance data when the folding screen device is in the folded state and the code printing state is set to the half-screen code printing state.
[0130] Table 2
[0131] In Table 2, the capacitance offset corresponding to each capacitive unit is within 50, which indicates that although there is some interference around, it does not significantly cause large capacitance offset, which is not caused by the foreign matter attached to the inner screen.
[0132] However, if foreign matter is attached to the inner screen, the capacitance offset detected by the capacitive units at the attachment site and the surrounding area will be significantly increased due to the influence of the foreign matter. Table 3 is an example of the capacity value change amount when foreign matter is attached to the inner screen. In Table 3, it can be clearly seen that the capacitance offset corresponding to a plurality of capacitive units is greater than 200, and some even exceeds 500.
[0133] Table 3
[0134] Based on the description of the capacitance value change amount in the foregoing, the embodiment of the application can remind the presence of foreign matter in the inner screen by counting the characteristics of the capacitance value change amount, thereby avoiding damage to the inner screen and improving the user experience.
[0135] FIG. 6 is a flowchart of an example prompting method provided by an embodiment of the application. The method comprises the following steps:
[0136] S601, detecting whether the folding screen device is in a folded state; if not, performing S602A; if yes, performing S602B.
[0137] In the use process of the folding screen device, the folding screen device can periodically detect whether it is in a folded state through a Hall sensor. If it is detected that the folding screen device is not in a folded state, for example, the folding screen device is in an unfolded state, the folding screen device can perform S602A. If the folding screen device detects that it is in a folded state, S602B can be performed.
[0138] S602A, maintaining the current full-screen coding state and continuously detecting the capacitance data on the inner screen.
[0139] When the folding screen device is not in a folded state but in an unfolded state, the folding screen device does not need to change the current coding state. The folding screen device can maintain the current full-screen coding state, continuously detect the touch operation on the inner screen, and respond accordingly.
[0140] S602B, setting the coding state to a half-screen coding state. Then, S603 is performed.
[0141] When the folding screen device is in a folded state, the touch chip can be notified to change the coding state, and the coding state is modified to a half-screen coding state. For example, the folding screen device can be modified to a state of left half-screen coding and right half-screen non-coding, or a state of left half-screen non-coding and right half-screen coding. Alternatively, the left half-screen of the folding screen device can be referred to as a first half-screen, and the right half-screen can be referred to as a second half-screen. Alternatively, the right half-screen of the folding screen device can be referred to as a first half-screen, and the left half-screen can be referred to as a second half-screen. The first half-screen and the second half-screen are not limited in the embodiment of the application, as long as they are two parts of the screen of the folding screen device that can be folded along the rotation shaft of the folding screen device.
[0142] Taking the state of left half-screen coding and right half-screen non-coding as an example of the half-screen coding state, the first capacitance value change amount collected by the folding screen device is the capacitance value data when the left half-screen is coded and the right half-screen is not coded. Correspondingly, the reference capacitance value data is the capacitance value data collected when the left half-screen is coded and the right half-screen is not coded, and the inner screen has no foreign matter.
[0143] The folding screen device judges whether the first capacitance value data meets the preset prompt condition. If yes, it indicates that there is foreign matter in the inner screen at this time, which needs to be cleaned in time, and the prompt information can be output. This method can prompt the user to clean the foreign matter in the inner screen in time, avoid damage to the inner screen, and improve the user experience. Moreover, the first capacitance value data and the reference capacitance value data in the half-screen coding state are used as the judgment basis, which can save power consumption compared with the full-screen coding state; and the first capacitance value data obtained in the half-screen coding state can avoid the interference of the second half-screen in the coding state on the first half-screen, thereby improving the accuracy of the capacitance value data.
[0144] Optionally, the coding state of the folding screen device can also be to select multiple transmission channels to code according to certain rules. Optionally, the folding screen device can select transmission channels to code at intervals. For example, in the case of ten transmission channels in the entire folding screen, the first, third, fifth, seventh and ninth transmission channels (i.e., TX1, TX3, TX5, TX7 and TX9) are selected from left to right to code, thereby obtaining the first capacitance value data. Optionally, the folding screen device can also randomly select a certain number of transmission channels to code, thereby obtaining the first capacitance value data.
[0145] Optionally, the half-screen coding state referred to in the embodiments of the present application is a state in which all or part of the transmission channels in the first half-screen code, and all the transmission channels in the second half-screen do not code. For example, the folding screen device can also select part of the transmission channels in the first half-screen to code, such as selecting transmission channels at intervals to code, thereby presenting a half-screen coding state. The embodiments of the present application do not limit the specific form of transmission of the transmission channels in the half-screen coding state.
[0146] It should be noted that the coding state in the process of obtaining the reference capacitance value data and the first capacitance value data is consistent, so as to ensure that the data forms of the obtained reference capacitance value data and the first capacitance value data are consistent, ensure the smooth progress of the subsequent process, and ensure the accuracy of the output result.
[0147] S603, obtaining a capacitance value change amount.
[0148] When the folding screen device is in the folded state and the coding state is set to the half-screen coding state, the first capacitance value data is collected. It should be noted that if the half-screen coding state is the left half-screen coding and the right half-screen not coding state, the half-screen coding state when the reference capacitance value data is obtained is also the left half-screen coding and the right half-screen not coding state; if the half-screen coding state is the left half-screen not coding and the right half-screen coding state, the half-screen coding state when the reference capacitance value data is obtained is also the left half-screen not coding and the right half-screen coding state.
[0149] The folding screen device can subtract the first capacitance value data and the reference capacitance value data to obtain a first capacitance value change. Specifically, subtracting the first capacitance value data and the reference capacitance value data is to calculate a capacitance offset for each capacitance unit, and the capacitance offsets of all the capacitance units form the first capacitance value change. For example, for the capacitance unit at the intersection of TX1 and RX1, if the capacitance data in the reference capacitance value data is 15546 and the capacitance data in the first capacitance value data is 15884, the capacitance offset of the capacitance unit is 338; for another example, for the capacitance unit at the intersection of TX3 and RX4, if the capacitance data in the reference capacitance value data is 15452 and the capacitance data in the first capacitance value data is 16017, the capacitance offset of the capacitance unit is 565. Based on this, the folding screen device can obtain the capacitance value changes as shown in Table 2 in the foregoing.
[0150] Alternatively, the folding screen device can use a longer first coding duration to code, so as to obtain the first capacitance value data. It should be noted that the first coding duration is longer than a default preset coding duration. Alternatively, the first coding duration can be 100 milliseconds, 200 milliseconds, etc. The default preset coding duration is 50 milliseconds, etc. When collecting the reference capacitance value data, the folding screen device can code and collect according to the default preset coding duration. Extending the coding duration can avoid interference as much as possible, improve the signal-to-noise ratio of the coded signal, and thus improve the accuracy of the first capacitance value data.
[0151] S604, feature statistics are performed on the capacitance value changes to obtain the number of target capacitance units, the number of target capacitance rows, and the number of target capacitance columns.
[0152] The folding screen device can compare the capacitance offset corresponding to each capacitance unit with a preset change threshold. If the capacitance offset is greater than or equal to the preset change threshold, the capacitance unit is determined to be a target capacitance unit, which represents a high possibility of foreign matter at the position of the target capacitance unit.
[0153] After the folding screen device compares the capacitance offset corresponding to each capacitance unit with the preset change threshold, the folding screen device counts the target capacitance units whose capacitance offset is greater than or equal to the preset change threshold to obtain the number of target capacitance units. Specifically, the folding screen device can count the number of target capacitance units in the entire left half screen. Alternatively, the preset change threshold can be 150, 200, or 300, etc., which is not limited by the embodiments of the present application.
[0154] Alternatively, the folding screen device can also filter out a target capacitance row whose proportion of target capacitance units is greater than or equal to a second ratio according to the proportion of target capacitance units in each capacitance row.
[0155] One capacitor row can include the capacitor units of the same RX as shown in FIG. 4, for example, the capacitor units of this row of RX1 are one capacitor row. Specifically, the folding screen device counts the number of target capacitor units with a capacitor offset greater than or equal to the preset change threshold in one capacitor row; and compares the ratio of the number of target capacitor units existing in the capacitor row to the total number of capacitor units in the capacitor row (for example, the total number of capacitor channels in the left half of the screen) with the fourth proportion threshold. If the ratio of the number of target capacitor units existing in the capacitor row to the total number of capacitor units in the capacitor row is greater than or equal to the fourth proportion threshold, the capacitor row is determined to be a target capacitor row. If the ratio of the number of target capacitor units existing in the capacitor row to the total number of capacitor units in the capacitor row is less than the fourth proportion threshold, the capacitor row is determined to be not a target capacitor row. Then, the folding screen device can determine whether each capacitor row is a target capacitor row one by one, and count the number of target capacitor rows. Optionally, the fourth proportion threshold can be one-third, one-half or two-thirds, and the embodiments of the present application are not limited.
[0156] Optionally, the folding screen device can also screen out target capacitor columns with a proportion of target capacitor units greater than or equal to a third value according to the proportion of target capacitor units in each capacitor column. One capacitor column can include the capacitor units of the same TX as shown in FIG. 4, for example, the capacitor units of this column of TX1 are one capacitor column. Specifically, the folding screen device counts the number of target capacitor units with a capacitor offset greater than or equal to the preset change threshold in one capacitor column; and compares the ratio of the number of target capacitor units existing in the capacitor column to the total number of capacitor units in the capacitor column (for example, the total number of capacitor channels in the left half of the screen) with the fifth proportion threshold. If the ratio of the number of target capacitor units existing in the capacitor column to the total number of capacitor units in the capacitor column is greater than or equal to the fifth proportion threshold, the capacitor column is determined to be a target capacitor column. If the ratio of the number of target capacitor units existing in the capacitor column to the total number of capacitor units in the capacitor column is less than the fifth proportion threshold, the capacitor column is determined to be not a target capacitor column. Then, the folding screen device can determine whether each capacitor column is a target capacitor column one by one, and count the number of target capacitor columns. Optionally, the fifth proportion threshold can be one-third, one-half or two-thirds, and the embodiments of the present application are not limited.
[0157] S605, determine whether the number of target capacitor units, the number of target capacitor rows and / or the number of target capacitor columns meet the preset prompt condition. If not, perform S606A; if yes, perform S606B.
[0158] Optionally, the folding screen device can also calculate the proportion of the number of target capacitive units in the entire left half screen in all capacitive units in the entire left half screen (i.e., the number of target capacitive units / the total number of all capacitive units), denoted as a first ratio.
[0159] Optionally, the folding screen device can also calculate the ratio of the number of target capacitive rows to the total number of capacitive rows in the left half screen, denoted as a second ratio.
[0160] Optionally, the folding screen device can also calculate the ratio of the number of target capacitive columns to the total number of capacitive columns in the left half screen, denoted as a third ratio.
[0161] Specifically, the preset prompt condition can include a limit condition of any one or more of the first ratio, the second ratio, and the third ratio.
[0162] If the preset prompt condition includes one condition, the requirement for the limit value of the condition is more stringent.
[0163] For example, when the preset prompt condition is that the first ratio is greater than or equal to a first proportion threshold, the first proportion threshold is a first value, and the first value is a larger value, such as three-fourths, eighty percent, or other numbers greater than one-half.
[0164] For another example, when the preset prompt condition is that the second ratio is greater than or equal to a second proportion threshold, the second proportion threshold is a second value, and the first value is a larger value, such as three-fourths, eighty percent, or other numbers greater than one-half.
[0165] For another example, when the preset prompt condition is that the third ratio is greater than or equal to a third proportion threshold, the second proportion threshold is a second value, and the first value is a larger value, such as three-fourths, eighty percent, or other numbers greater than one-half.
[0166] Taking three-fourths as an example for the first proportion threshold, the second proportion threshold, and the third proportion threshold: that is, if the proportion of target capacitive units with large capacitive value offsets in the left half screen reaches three-fourths of all capacitive units in the left half screen; or, the number of target capacitive rows in the left half screen reaches three-fourths of all capacitive rows in the left half screen; or, the number of target capacitive columns in the left half screen reaches three-fourths of all capacitive columns in the left half screen, the folding screen device determines that the first capacitive value change amount satisfies the preset prompt condition.
[0167] If the preset prompt condition includes two conditions, the requirement for the limit value of the condition can be relaxed compared to including one condition.
[0168] For example, when the preset prompt condition is that the first ratio is greater than or equal to a first proportion threshold value and the second ratio is greater than or equal to a second proportion threshold value, the first proportion threshold value is a fourth numerical value, and the second proportion threshold value is a fifth numerical value. The fourth numerical value is smaller than the first numerical value, for example, the fourth numerical value is one half. The fifth numerical value is smaller than the second numerical value, for example, the fifth numerical value is one half.
[0169] For another example, when the preset prompt condition is that the second ratio is greater than or equal to a second proportion threshold value and the third ratio is greater than or equal to a third proportion threshold value, the second proportion threshold value is a fifth numerical value, and the third proportion threshold value is a sixth numerical value. The fifth numerical value is smaller than the second numerical value, for example, the fifth numerical value is one half. The sixth numerical value is smaller than the third numerical value, for example, the sixth numerical value is one half.
[0170] For another example, when the preset prompt condition is that the first ratio is greater than or equal to a first proportion threshold value and the third ratio is greater than or equal to a third proportion threshold value, the first proportion threshold value is a fourth numerical value, and the third proportion threshold value is a sixth numerical value. The fifth numerical value is smaller than the second numerical value, for example, the fifth numerical value is one half. The sixth numerical value is smaller than the third numerical value, for example, the sixth numerical value is one half.
[0171] For example, when the preset prompt condition is that the first ratio is greater than or equal to a first proportion threshold value and the second ratio is greater than or equal to a second proportion threshold value, the first proportion threshold value is a fourth numerical value, and the second proportion threshold value is a fifth numerical value. The fourth numerical value is smaller than the first numerical value, for example, the fourth numerical value is one half. The fifth numerical value is smaller than the second numerical value, for example, the fifth numerical value is one half.
[0172] If the preset prompt condition includes three conditions, the requirement for the limit value of the condition can be further relaxed compared to the case of including one condition or two conditions.
[0173] For example, when the preset prompt condition is that the first ratio is greater than or equal to a first proportion threshold value, the second ratio is greater than or equal to a second proportion threshold value, and the third ratio is greater than or equal to a third proportion threshold value, the first proportion threshold value is a seventh numerical value, the second proportion threshold value is an eighth numerical value, and the third proportion threshold value is a ninth numerical value. The seventh numerical value is smaller than the fourth numerical value, for example, the seventh numerical value is one third. The eighth numerical value is smaller than the fifth numerical value, for example, the eighth numerical value is one third. The ninth numerical value is smaller than the sixth numerical value, for example, the ninth numerical value is one third.
[0174] Optionally, if the limit values of the above conditions are relatively strict, for example, the numerical values of the first proportion threshold, the second proportion threshold and the third proportion threshold are relatively large, the folding screen device can determine that the inner screen has foreign matter or output the result that the inner screen has foreign matter when the first capacitance variation amount meets the preset prompt condition.
[0175] Optionally, if the limit values of the above conditions are relatively loose, for example, the numerical values of the first proportion threshold, the second proportion threshold and the third proportion threshold are relatively small, the folding screen device can continue to collect capacitance data multiple times and perform multiple judgments when the first capacitance variation amount meets the preset prompt condition. Specifically, the folding screen device can continue to collect the second capacitance data in the half-screen code state in the folded state when the first capacitance variation amount meets the preset prompt condition. Then, the folding screen device can continue to judge whether the second capacitance variation amount represented by the second capacitance data meets the preset prompt condition. If the second capacitance variation amount also meets the preset prompt condition, the folding screen device can determine that the inner screen has foreign matter, and can also output the result that the inner screen has foreign matter.
[0176] Optionally, the second capacitance data can be a set of capacitance data collected at one time, or can be multiple sets of capacitance data collected at different times, which is not limited by the embodiments of the present application. If the second capacitance data is multiple sets of capacitance data collected at different times, the folding screen device can judge whether the second capacitance variation amount represented by each set of capacitance data meets the preset prompt condition. If the second capacitance variation amount represented by each set of capacitance data in the second capacitance data meets the preset prompt condition, or the second capacitance variation amount represented by multiple sets of capacitance data in the second capacitance data meets the preset prompt condition, and the multiple sets of capacitance data account for more than half of the total number of sets of the second capacitance data, the folding screen device can determine that the inner screen has foreign matter. Otherwise, the folding screen device determines that the inner screen has no foreign matter. In this implementation, the folding screen device judges whether the capacitance variation amount represented by the capacitance data collected multiple times meets the preset prompt condition multiple times to obtain the judgment result when the limit values of the conditions are relatively loose. This method can avoid false positives caused by accidental interference and improve the accuracy of the judgment result.
[0177] Optionally, if any of the following conditions is met: the first ratio is less than one-tenth, the second ratio is less than one-third, and the third ratio is less than one-third, the folding screen device determines that the inner screen is clean and has no foreign matter.
[0178] Optionally, the folding screen device can judge whether the capacitance variation amount meets the preset prompt condition according to the first ratio, the second ratio and the third ratio, or can judge whether the capacitance variation amount meets the preset prompt condition according to the number of target capacitance units, the number of target capacitance rows and the number of target capacitance columns.
[0179] When the number of transmitting channels and receiving channels on the folding screen of the folding screen device is fixed, the number of capacitive units, the number of capacitive rows, and the number of capacitive columns for the left half screen are also fixed. The folding screen device can determine whether the capacitance value change amount meets the preset prompt requirement according to the specific values of the number of target capacitive units, the number of target capacitive rows, and the number of target capacitive columns. Correspondingly, the threshold in the preset prompt condition is converted into a specific value. For example, if the left half screen of the folding screen device includes 5 capacitive columns and 6 capacitive rows, and if the number of target capacitive units is greater than 10, the number of target capacitive rows is greater than 3, and the number of target capacitive columns is greater than 3, the folding screen device determines that the capacitance value change amount meets the preset prompt condition.
[0180] The specific logic of determining whether the capacitance value change amount meets the preset prompt condition according to one or more of the number of target capacitive units, the number of target capacitive rows, and the number of target capacitive columns can also be referred to the detailed description of determining whether the capacitance value change amount meets the preset prompt condition according to the first ratio, the second ratio, and the third ratio in the foregoing, which will not be repeated here.
[0181] Optionally, the folding screen device can also determine whether the capacitance value change amount meets the preset prompt condition according to the first ratio, the second ratio, and the third ratio, in combination with the number of target capacitive units, the number of target capacitive rows, and the number of target capacitive columns. For example, when the preset prompt condition includes the following three conditions:
[0182] Condition one: the number of target capacitive units is greater than 15, and / or the first ratio is greater than or equal to a first proportion threshold (for example, one half);
[0183] Condition two: the number of target capacitive rows is greater than or equal to 3, and / or the second ratio is greater than a second proportion threshold (for example, one half);
[0184] Condition three: the number of target capacitive columns is greater than or equal to 3, and / or the third ratio is greater than a third proportion threshold (for example, one half).
[0185] When the folding screen device determines that the first capacitance value change amount meets the above conditions one to three, it is determined that the first capacitance value change amount meets the preset prompt condition.
[0186] Optionally, the elements in the above conditions one, two, and three can also be combined and deleted arbitrarily, and the embodiments of the present application do not make any limitation.
[0187] Optionally, if the folding screen device determines that none of the conditions one, two, and three is met, it can be determined that the first capacitance value change amount does not meet the preset prompt condition.
[0188] For example, when the number of target capacitive units is less than 10, the proportion of the number of target capacitive units in all capacitive units is less than one-tenth, the number of target capacitive rows is less than 3, and the number of target capacitive columns is less than 3, the folding screen device determines that the first capacitance change amount does not satisfy the preset prompt condition.
[0189] It should be noted that the specific manner in which the folding screen device determines whether the second capacitance change amount satisfies the preset prompt condition can refer to the manner in which the first capacitance change amount satisfies the preset prompt condition, which will not be described here.
[0190] Optionally, after the target capacitive unit is screened out, the folding screen device can also determine the target area according to the distribution of the target capacitive unit. Since the target capacitive unit is a capacitive unit with a large capacitance offset, the area where the target capacitive unit is densely distributed is likely to be an area where the foreign matter directly contacts the inner screen. Based on this, the folding screen device can determine the area where the target capacitive unit is densely distributed as the target area. Optionally, the folding screen device can also re-screen the target capacitive unit in which the capacitance offset is greater than a certain threshold, for example, screen out the target capacitive unit in which the capacitance offset is greater than a certain 300, and determine the area in which these target capacitive units are located as the target area.
[0191] S606A, determine that the inner screen does not exist foreign matter.
[0192] S606B, determine that the inner screen exists foreign matter. Then, S607 is performed.
[0193] When the folding screen device determines that the first capacitance change amount satisfies the preset prompt condition, it is determined that the inner screen at this time is likely to have foreign matter, which may cause damage to the inner screen, so S607 can be performed.
[0194] When the folding screen device determines that the first capacitance change amount does not satisfy the preset prompt condition, it is determined that the inner screen at this time is likely to not have foreign matter, and the inner screen will not be damaged due to the inner screen clamping foreign matter, so there is no need to output the prompt information.
[0195] Optionally, the folding screen device can periodically collect capacitance data in the half-screen coding state in the folded state and perform the above judgment process.
[0196] Optionally, when the folding screen device enters the folded state, the inner screen is generally not easy to insert foreign matter. Therefore, the folding screen device can no longer detect capacitive data in the folded state, but can collect capacitance data in the half-screen coding state when the folding screen device enters the folded state again from the unfolded state, and determine whether the capacitance change amount represented by the capacitance data satisfies the preset prompt condition, which can reduce a large amount of invalid detection and save power consumption.
[0197] In the embodiments of the present application, the left half screen is taken as an example for coding, and the right half screen is taken as an example for not coding. Corresponding methods can also be applied to the case of not coding the left half screen and coding the right half screen, and the implementation principles are the same.
[0198] S607, outputting the prompt information.
[0199] Specifically, the folding screen device can output the prompt information in multiple ways. For example, the folding screen device can display prompt text and / or a prompt icon on the outer screen. For example, as shown in FIG. 7, the folding screen device displays prompt text of “Please clean the foreign matter on the inner screen” on the outer screen. Optionally, the folding screen device can also display a prompt icon, such as an exclamation mark, on the outer screen. Optionally, the folding screen device can also pop up a prompt box on the outer screen to remind the user.
[0200] Optionally, the folding screen device can also output a prompt sound, such as outputting a voice of “Please clean the inner screen” or playing specific music.
[0201] Optionally, the folding screen device can also drive the motor vibrator to vibrate through the motor driving chip. Optionally, the frequency of the motor vibrator can be a preset vibration waveform, such as vibrating three times every five seconds, or a vibration waveform of two short and one long, and the like, which is not limited in the embodiments of the present application.
[0202] Optionally, the folding screen device can also determine a target area where the target capacitive unit with a large capacitive offset is distributed according to the first capacitance data. It should be noted that in the target area, all capacitive units are target capacitive units. In the capacitive units of other non-target areas, there can be some target capacitive units, and there can also be some non-target capacitive units. After the folding screen device determines the target area, the folding screen device can also display area indication information in the prompt interface. Optionally, the area indication information can indicate the position of the target area in the left half screen, so as to accurately guide the user to clean the foreign matter. For example, as shown in FIG. 8, the area indication information of the outer screen is a prompt icon located in the upper left corner, which means that the foreign matter on the inner screen is most likely located in the upper left corner of the left half screen or the upper right corner of the right half screen. The user can quickly and accurately clean the foreign matter based on the area indication information.
[0203] After the folding screen device outputs the prompt information, the current detection process can be ended.
[0204] Optionally, the folding screen device can also detect whether the state of the folding screen device meets the reference update condition. When the reference update condition is met, the folding screen device can recalibrate the reference capacitance data to obtain updated reference capacitance data.
[0205] After the folding screen device is used for a period of time, a larger capacitance offset may be detected at some capacitance units due to wear of hardware and the like, even if there is no foreign matter on the inner screen. For example, after the folding screen device is used for a period of time, the gap of the inner screen after folding changes, causing the detected capacitance data to change. Therefore, the folding screen device can calibrate the reference capacitance value data after being used for a period of time. For example, when the time length from obtaining the current reference capacitance value data reaches a preset update period, for example, reaches one month, the folding screen device can start calibration of new reference capacitance value data. That is, calibration of new reference capacitance value data is started once every month, and new reference capacitance value data is obtained, so as to ensure the accuracy of the output prompt information.
[0206] Optionally, after the folding screen device is used for a period of time, the inner screen may also have slight scratches and other damage. However, slight damage does not affect user use, and the user has no intention to repair the inner screen. Then, due to the slight damage of the inner screen, the capacitance value changes greatly, and the folding screen device may always prompt the user to clean the inner screen in the folded state, affecting the user experience. At this time, if the folding screen device outputs the prompt information more than or equal to the first number threshold times within the preset time period, and the folding screen device switches from the folded state to the unfolded state more than or equal to the second number threshold times, calibration of new reference capacitance value data can be started, and new reference capacitance value data can be obtained.
[0207] For example, when the preset time period is three days, the first number threshold is ten times, and the second number threshold is twenty times. When the folding screen device detects that the number of times of outputting the prompt information within three days is greater than ten, for example, fifty times, and the number of times of opening and closing the folding screen device is more than twenty, for example, thirty times, it indicates that the user has not cleaned the inner screen in the case of multiple prompts of the folding screen device and multiple opening and closing of the folding screen device. Therefore, the current capacitance value change may be caused by physical damage, so that the prompt information does not need to be output, and over-prompting is avoided to affect the user experience. Optionally, the folding screen device can also consider such a screen state as an inherent feature, and start calibration of new reference capacitance value data to obtain new reference capacitance value data. The folding screen device can execute the above prompt process according to the new reference capacitance value data, and the accuracy of the output prompt information can be ensured.
[0208] Optionally, the folding screen device can also start calibration of new reference capacitance value data to obtain new reference capacitance value data when the time length from obtaining the current reference capacitance value data reaches the preset update period, and the number of times of outputting the prompt information within the preset time period is greater than or equal to the first number threshold, and the number of times of switching from the folded state to the unfolded state is greater than or equal to the second number threshold.
[0209] Optionally, the folding screen device automatically starts the calibration process when it is detected that the state of the folding screen device meets the reference update condition. Specifically, it can include: when the folding screen device is determined to be in the folded state, setting the coding state to the half-screen coding state. When the folding screen device is in the half-screen coding state, the third capacitance data is collected. The folding screen device saves the third capacitance data as new reference capacitance data, which can be used as a basis for subsequent prompts.
[0210] Optionally, the folding screen device can also prompt the user to start the calibration process when it is detected that the state of the folding screen device meets the reference update condition. Specifically, it can include: the folding screen device starts the calibration program and displays the calibration interface. The user can select the calibration start control in the calibration interface. Then, the user folds the folding screen device. After the folding screen device receives the user's selection operation on the calibration start control, it detects whether the folding screen device is in the folded state. When the folding screen device enters the folded state, the coding state is set to the half-screen coding state, and the third capacitance data is collected. The folding screen device saves the third capacitance data as new reference capacitance data, which can be used as a basis for subsequent prompts.
[0211] Optionally, in some areas, the interference signal may be relatively large due to the influence of base stations or some devices. When the folding screen device is in such an area, the detected capacitance change may be relatively large due to the influence of the interference signal. In this case, even if there is no foreign object clamped in the inner screen, the folding screen device may continue to output prompt information, affecting the user experience. Based on this, the folding screen device can record the time and event when the prompt information is output, and also record the location of the folding screen device when the prompt information is output, which can be recorded as the prompt location.
[0212] The folding screen device can count the number of times of outputting the prompt information at a prompt location, and when the number of times of outputting the prompt information exceeds a third number threshold, and the number of times of switching the folding screen device from the folded state to the unfolded state in this process exceeds a fourth number threshold, it can be determined that there is a high probability of an interference signal at this location, and it is not a prompt caused by a foreign object in the inner screen. At this time, the folding screen device can prompt the user to start calibration of new baseline capacity value data, so as to obtain new baseline capacity value data. For example, the folding screen device automatically pops up an interface prompting the user to calibrate the baseline capacity value data, or directly automatically displays the calibration interface of the calibration application. The user selects the calibration start control in the calibration interface to start the calibration process. The folding screen device can also automatically start calibration of new baseline capacity value data to obtain new baseline capacity value data. Specifically, when the folding screen device is in the folded state, the folding screen device sets the coding state to a half-screen coding state and collects fourth capacity value data. The folding screen device saves the fourth capacity value data and uses it as new baseline capacity value data, which can be used as a basis for subsequent prompts. After that, if the folding screen device leaves the area, the previous baseline capacity value data can be used as a basis for prompting. If the folding screen device does not leave the area or enters the area again after leaving, the folding screen device can use the fourth capacity value data as new baseline capacity value data to provide a basis for subsequent prompts.
[0213] Optionally, the folding screen device can also save baseline capacity value data corresponding to multiple prompt locations, forming a correspondence between multiple prompt locations and multiple groups of baseline capacity value data. When the folding screen device enters a certain area, it can filter out the baseline capacity value data corresponding to the current prompt location according to the current position as a basis for prompting, thereby avoiding false positives caused by different environments and improving the accuracy of prompt information output.
[0214] Optionally, the folding screen device can use a longer first coding duration to collect the second capacity value data, the third capacity value data, and the fourth capacity value data, thereby improving the signal-to-noise ratio of coding and improving the accuracy of capacity value data.
[0215] The above-mentioned prompting method can be implemented on a system on chip (SOC) including a processor. The processor can run a screen protection system. The module architecture of the screen protection system can refer to FIG. 9, which includes a state detection module, a coding state switching module, a baseline acquisition module, a feature data statistical module, a foreign object judgment module, and a foreign object prompt module.
[0216] The state detection module is configured to detect whether the folding screen device is in a folded state.
[0217] The coding state switching module is configured to switch the coding state to a half-screen coding state when the folding screen device is in the folded state.
[0218] The feature data statistics module is configured to acquire a capacitance value change amount in the half-screen code printing state, and statistically obtain a target capacitance unit, a target capacitance row and a target capacitance column according to the capacitance value change amount, to obtain a statistical result.
[0219] The foreign matter judgment module is configured to judge whether the capacitance value change amount meets a preset prompt condition according to the statistical result statistically obtained by the feature data statistics module, and send a judgment result to the foreign matter prompt module.
[0220] The foreign matter prompt module is configured to output a prompt information in a case where the judgment result is that the inner screen has foreign matter.
[0221] The above describes an example of the prompt method provided by the present application in detail. It can be understood that the corresponding device includes the corresponding hardware structure and / or software module for implementing the above functions. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of the examples described in the embodiments disclosed in the present application, the present application can be realized in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0222] The present application can divide the function modules of the prompt device according to the above method examples. For example, each function can be divided into a function module, or two or more functions can be integrated into one module. The above integrated module can be realized in the form of hardware or software function module. It should be noted that the division of modules in the present application is illustrative, and is only a logical function division. Actual implementation can have another division method.
[0223] FIG. 10 shows a structural schematic diagram of a prompt device provided by the present application. The device 1000 is applied to a folding screen device, and the device 1000 includes:
[0224] The acquisition module 1001 is configured to acquire first capacitance value data when it is detected that the folding screen device is in a folding state, the first capacitance value data being capacitance data of a folding screen of the folding screen device.
[0225] The prompt module 1002 is configured to output a prompt information if a first capacitance value change amount represented by the first capacitance value data meets a preset prompt condition, the first capacitance value change amount representing a difference between the first capacitance value data and reference capacitance value data, the reference capacitance value data being capacitance data collected when the folding screen device is in the folding state and no foreign matter exists on the folding screen.
[0226] In some possible implementation manners, the folding screen includes a first half screen and a second half screen, the folding screen device includes a rotation shaft, the first half screen and the second half screen are foldable along the rotation shaft, and the obtaining module 1001 is specifically configured to obtain the first capacitance value data when the folding screen device is in a half-screen coding state, the first half screen is in a coding state, and the second half screen is in a non-coding state when the folding screen device is in the half-screen coding state.
[0227] In some possible implementation manners, the first half screen includes a plurality of capacitive units, the first capacitance change amount includes a plurality of capacitance offsets, and the plurality of capacitance offsets and the plurality of capacitive units correspond to each other; the preset prompt condition includes at least one of the following: the first ratio is greater than or equal to a first proportion threshold, the second ratio is greater than or equal to a second proportion threshold, and the third ratio is greater than or equal to a third proportion threshold; the first ratio is a ratio of a number of target capacitive units to a total number of the plurality of capacitive units, the capacitance offset corresponding to the target capacitive unit is greater than or equal to a preset change threshold; the second ratio is a ratio of a number of target capacitive rows to a total number of rows of the plurality of capacitive units, a proportion of the number of the target capacitive units in the target capacitive row in the target capacitive row is greater than or equal to a fourth proportion threshold; and the third ratio is a ratio of a number of target capacitive columns to a total number of columns of the plurality of capacitive units, a proportion of the number of the target capacitive units in the target capacitive column in the target capacitive column is greater than or equal to a fifth proportion threshold.
[0228] In some possible implementation manners, when the preset prompt condition is that the first ratio is greater than or equal to the first proportion threshold, the first proportion threshold is a first numerical value; and when the preset prompt condition is that the second ratio is greater than or equal to the second proportion threshold, the second proportion threshold is a second numerical value.
[0229] When the preset prompt condition is that the third ratio is greater than or equal to the third proportion threshold, the third proportion threshold is a third numerical value.
[0230] When the preset prompt condition is that the first ratio is greater than or equal to the first proportion threshold and the second ratio is greater than or equal to the second proportion threshold, the first proportion threshold is a fourth numerical value, the second proportion threshold is a fifth numerical value, the fourth numerical value is less than the first numerical value, and the fifth numerical value is less than the second numerical value.
[0231] When the preset prompt condition is that the first ratio is greater than or equal to the first proportion threshold and the third ratio is greater than or equal to the third proportion threshold, the first proportion threshold is a fourth numerical value, the third proportion threshold is a sixth numerical value, the fourth numerical value is less than the first numerical value, and the sixth numerical value is less than the third numerical value.
[0232] The preset prompt condition is that the second ratio is greater than or equal to the second ratio threshold value, and the third ratio is greater than or equal to the third ratio threshold value, the second ratio threshold value is a fifth value, the third ratio threshold value is a sixth value, the fifth value is less than the second value, and the sixth value is less than the third value.
[0233] The preset prompt condition is that the first ratio is greater than or equal to the first ratio threshold value, the second ratio is greater than or equal to the second ratio threshold value, and the third ratio is greater than or equal to the third ratio threshold value, the first ratio threshold value is a seventh value, the second ratio threshold value is an eighth value, and the third ratio threshold value is a ninth value, the seventh value is less than the fourth value, the eighth value is less than the fifth value, and the ninth value is less than the sixth value.
[0234] In some possible implementation manners, the first value, the second value and the third value are greater than or equal to three quarters, the fourth value, the fifth value and the sixth value are greater than or equal to one half, and the seventh value, the eighth value and the ninth value are greater than or equal to one quarter.
[0235] In some possible implementation manners, the preset prompt condition is that the first ratio is greater than or equal to the first ratio threshold value, the second ratio is greater than or equal to the second ratio threshold value, and the third ratio is greater than or equal to the third ratio threshold value, the seventh value, the eighth value and the ninth value are one half, and the first capacitance value data represents the first capacitance value change amount that satisfies the preset prompt condition.
[0236] In some possible implementation manners, the seventh value is one quarter, the eighth value is one third, and the ninth value is one third, and the first capacitance value data represents the first capacitance value change amount that satisfies the preset prompt condition.
[0237] In some possible implementation manners, the prompt module 1002 is specifically configured to at least one of play a prompt voice, control a motor vibrator to vibrate, and display a prompt interface on the outer screen of the foldable screen device, and the prompt interface displays prompt text or a prompt icon.
[0238] In some possible implementation manners, the prompt module 1002 is specifically configured to determine a target region in the first half screen according to the first capacitance value change amount, and the capacitive units in the target region are all target capacitive units, and display a prompt interface on the outer screen, and the prompt interface further includes region indication information, and the region indication information is used to indicate a position of the target region in the first half screen.
[0239] In some possible implementation manners, the apparatus 1000 further includes an updating module, configured to: when it is detected that the reference updating condition is met, collect third capacitance value data, the third capacitance value data being capacitance data collected when the foldable screen device is in the folded state and no foreign matter exists on the first half screen and the second half screen; and update the reference capacitance value data by using the third capacitance value data; wherein the reference updating condition includes: the number of times of outputting the prompt information is greater than or equal to a first number threshold and the number of times of switching the foldable screen device from the folded state to the unfolded state exceeds a second number threshold within a preset time period; and / or the time interval between the current moment and the collection moment of the reference capacitance value data is greater than or equal to a preset updating period.
[0240] In some possible implementation manners, the updating module is specifically configured to: display a calibration interface, the calibration interface including a calibration starting control; receive a selection operation of the calibration starting control by a user; and in response to the selection operation, collect the third capacitance value data when the foldable screen device is in the folded state.
[0241] In some possible implementation manners, the obtaining module 1001 is specifically configured to: obtain the first capacitance value data according to a first code input time length, the first code input time length being greater than a preset code input time length, and the reference capacitance value data being capacitance data collected according to the preset code input time length.
[0242] In some possible implementation manners, the updating module is further configured to: record a prompt location at which the prompt information is output, the prompt location being a position at which the foldable screen device is located when the prompt information is output; and when the number of times of outputting the prompt information at the prompt location exceeds a third number threshold, the number of times of switching the foldable screen device from the folded state to the unfolded state exceeds a fourth number threshold, and the foldable screen device is in the folded state, set the foldable screen device to be in a half-screen code input state; set the foldable screen device in the half-screen code input state, collect fourth capacitance value data, the fourth capacitance value data being capacitance data collected when no foreign matter exists on the first half screen and the second half screen (i.e., the foldable screen); and update the reference capacitance value data by using the fourth capacitance value data.
[0243] The apparatus 1000 performs the specific manners of the prompt method and produces the beneficial effects, which can be referred to the related descriptions in the method embodiments, and details are not described herein.
[0244] The embodiment of the present application further provides an electronic device comprising the processor. The electronic device provided by the embodiment can be the terminal device 100 shown in FIG. 1, and is configured to execute the prompting method. In the case of an integrated unit, the terminal device can comprise a processing module, a storage module and a communication module. The processing module can be configured to control and manage the actions of the terminal device, for example, can be configured to support the terminal device to execute the steps performed by the display unit, the detection unit and the processing unit. The storage module can be configured to support the terminal device to execute the storage of program codes and data and the like. The communication module can be configured to support the communication between the terminal device and other devices.
[0245] The processing module can be a processor or a controller. The processing module can implement or execute various exemplary logical blocks, modules and circuits described in combination with the disclosure of the present application. The processor can also be a combination of computing functions, for example, a combination of one or more microprocessors, a combination of a digital signal processor (DSP) and a microprocessor, and the like. The storage module can be a memory. The communication module can be a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip and the like for interacting with other terminal devices.
[0246] In one embodiment, when the processing module is a processor and the storage module is a memory, the terminal device involved in the embodiment can be a device having the structure shown in FIG. 1.
[0247] The embodiment of the present application further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the prompting method provided in any one of the above embodiments.
[0248] The embodiment of the present application further provides a computer program product, when the computer program product runs on a computer, the computer program product makes the computer execute the above-mentioned related steps to realize the prompting method in the above-mentioned embodiment.
[0249] The electronic device, the computer readable storage medium, the computer program product or the chip provided by the embodiment are configured to execute the corresponding method provided above, and thus the beneficial effects achieved thereby can refer to the beneficial effects of the corresponding method provided above, which will not be described herein again.
[0250] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented by other manners. For example, the apparatus embodiments described above are merely illustrative, for example, the division of the modules or units is merely a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another apparatus, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units or components shown or discussed can be indirect coupling or communication connection through some interfaces, and the replaced units can be or can not be physically separated, and the components shown as units can be one physical unit or a plurality of physical units, that is, can be located in one place or can be distributed to a plurality of different places. Some or all units can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0251] In addition, each functional unit in the embodiments of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0252] When the integrated unit is realized in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on such understanding, the technical scheme of the embodiments of the present application essentially or the part that contributes to the prior art or the whole or part of the technical scheme can be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of instructions to make a device (which can be a single chip, a chip, etc.) or a processor execute all or part of the steps of the method of the embodiments of the present application. The storage medium mentioned above includes: a U disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various storage medium that can store program codes.
[0253] The above is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A prompting method characterized by comprising: The method is applied to a foldable screen device, and the method comprises: When it is detected that the foldable screen device is in a folded state, first capacitance data is acquired, the first capacitance data being capacitance data of a foldable screen of the foldable screen device; If a first capacitance value change amount represented by the first capacitance data satisfies a preset prompt condition, prompt information is output, the first capacitance value change amount representing a difference between the first capacitance data and reference capacitance data, the reference capacitance data being capacitance data acquired when the foldable screen device is in the folded state and no foreign matter exists on the foldable screen.
2. The method of claim 1, wherein, The foldable screen comprises a first half screen and a second half screen, and the foldable screen device comprises a rotation shaft, the first half screen and the second half screen being foldable along the rotation shaft, and the first capacitance data is acquired when the foldable screen device is in a half-screen coding state, the first half screen being in a coding state and the second half screen being in a non-coding state when the foldable screen device is in the half-screen coding state. The first half screen comprises a plurality of capacitive units, and the first capacitance value change amount comprises a plurality of capacitance offset amounts, the plurality of capacitance offset amounts and the plurality of capacitive units corresponding to each other; 3. The method of claim 2, wherein, The preset prompt condition comprises at least one of the following: a first ratio is greater than or equal to a first proportion threshold value, a second ratio is greater than or equal to a second proportion threshold value, and a third ratio is greater than or equal to a third proportion threshold value; The first ratio is a ratio of a number of target capacitive units to a total number of the plurality of capacitive units, a capacitance offset amount corresponding to the target capacitive unit being greater than or equal to a preset change amount threshold value; The second ratio is a ratio of a number of target capacitive rows to a total number of rows of the plurality of capacitive units, a proportion of a number of target capacitive units existing in the target capacitive row in the target capacitive row being greater than or equal to a fourth proportion threshold value; The third ratio is a ratio of a number of target capacitive columns to a total number of columns of the plurality of capacitive units, a proportion of a number of target capacitive units existing in the target capacitive column in the target capacitive column being greater than or equal to a fifth proportion threshold value.
4. The method of claim 3, wherein: The preset prompt condition is that the first ratio is greater than or equal to the first proportion threshold value, and the first proportion threshold value is a first numerical value; The preset prompt condition is that the second ratio is greater than or equal to the second proportion threshold value, and the second proportion threshold value is a second numerical value; The preset prompt condition is that the third ratio is greater than or equal to the third proportion threshold value, and the third proportion threshold value is a third numerical value; The preset prompt condition is that the first ratio is greater than or equal to the first proportion threshold value and the second ratio is greater than or equal to the second proportion threshold value, the first proportion threshold value is a fourth numerical value, the second proportion threshold value is a fifth numerical value, the fourth numerical value is less than the first numerical value, and the fifth numerical value is less than the second numerical value. The preset prompt condition is that the first ratio is greater than or equal to the first proportion threshold value, the second ratio is greater than or equal to the second proportion threshold value, and the third ratio is greater than or equal to the third proportion threshold value, and the first proportion threshold value is a fourth value, the second proportion threshold value is a fifth value, the third proportion threshold value is a sixth value, the fourth value is less than the first value, the fifth value is less than the second value, and the sixth value is less than the third value. The preset prompt condition is that the first ratio is greater than or equal to the first proportion threshold value, the second ratio is greater than or equal to the second proportion threshold value, and the third ratio is greater than or equal to the third proportion threshold value, and the first proportion threshold value is a fourth value, the second proportion threshold value is a fifth value, the third proportion threshold value is a sixth value, the fourth value is less than the first value, the fifth value is less than the second value, and the sixth value is less than the third value. The preset prompt condition is that the first ratio is greater than or equal to the first proportion threshold value, the second ratio is greater than or equal to the second proportion threshold value, and the third ratio is greater than or equal to the third proportion threshold value, and the first proportion threshold value is a fourth value, the second proportion threshold value is a fifth value, the third proportion threshold value is a sixth value, the fourth value is less than the first value, the fifth value is less than the second value, and the sixth value is less than the third value.
5. The method of claim 4, wherein, The first value, the second value, and the third value are greater than or equal to three quarters. The fourth value, the fifth value, and the sixth value are greater than or equal to one half. The seventh value, the eighth value, and the ninth value are greater than or equal to one quarter.
6. The method of claim 5, wherein, The preset prompt condition is that the first ratio is greater than or equal to the first proportion threshold value, the second ratio is greater than or equal to the second proportion threshold value, and the third ratio is greater than or equal to the third proportion threshold value, and the first proportion threshold value is a fourth value, the second proportion threshold value is a fifth value, the third proportion threshold value is a sixth value, the fourth value is less than the first value, the fifth value is less than the second value, and the sixth value is less than the third value. When the seventh value, the eighth value, and the ninth value are one half, if the first capacitance value change amount represented by the first capacitance data meets the preset prompt condition, the prompt information is output.
7. The method of claim 5, wherein, The preset prompt condition is that the first ratio is greater than or equal to the first proportion threshold value, the second ratio is greater than or equal to the second proportion threshold value, and the third ratio is greater than or equal to the third proportion threshold value, and the first proportion threshold value is a fourth value, the second proportion threshold value is a fifth value, the third proportion threshold value is a sixth value, the fourth value is less than the first value, the fifth value is less than the second value, and the sixth value is less than the third value. When the seventh value is one quarter, the eighth value is one third, and the ninth value is one third, if the first capacitance value change amount represented by the first capacitance data meets the preset prompt condition, at least one group of second capacitance data is obtained, the second capacitance data is the capacitance data collected when the folding screen device is in a half-screen coding state, and the second capacitance data is the capacitance data collected after the first capacitance data is collected. If the second capacitance value change amount represented by any one of the at least one group of second capacitance data meets the preset prompt condition, the prompt information is output.
8. The method according to any one of claims 2 to 7, characterized in that, The output prompt information includes at least one of playing a prompt voice, controlling a motor vibrator to vibrate, and displaying a prompt interface on the outer screen of the folding screen device, and the prompt interface displays prompt text or a prompt icon. The prompt interface displayed on the outer screen of the folding screen device includes 9. The method of claim 8, wherein, According to the first capacitance change amount, a target region in the first half screen is determined, and each capacitance unit in the target region is the target capacitance unit; When the outer screen displays the prompt interface, the prompt interface further includes region indication information, and the region indication information is used to indicate the position of the target region in the first half screen.
10. The method of claim 9, wherein, After the output of the prompt information, the method further includes: When it is detected that a reference update condition is met, third capacitance data is collected, the third capacitance data being capacitance data collected when the folding screen device is in a folded state and there is no foreign matter on the first half screen and the second half screen; The third capacitance data is used to update the reference capacitance data; The reference update condition includes that, within a preset time period, the number of times of outputting the prompt information is greater than or equal to a first number threshold, and the number of times of switching the folding screen device from the folded state to the unfolded state exceeds a second number threshold; and / or, The time interval between the current time and the collection time of the reference capacitance data is greater than or equal to a preset update period.
11. The method of claim 10, wherein, The collection of the third capacitance data includes: A calibration interface is displayed, and the calibration interface includes a calibration start control; A selection operation of a user on the calibration start control is received; In response to the selection operation, when it is detected that the folding screen device is in a folded state, the third capacitance data is collected.
12. The method according to any one of claims 1 to 11, characterized in that, The collection of the first capacitance data includes: The first capacitance data is collected according to a first code input time length, the first code input time length being greater than a preset code input time length, and the reference capacitance data being capacitance data collected according to the preset code input time length.
13. The method according to any one of claims 1 to 12, characterized in that, The method includes: A prompt location at which the prompt information is output is recorded, the prompt location being a position of the folding screen device when the folding screen device outputs the prompt information; When the number of times of outputting the prompt information at the prompt location exceeds a third number threshold, the number of times of switching the folding screen device from the folded state to the unfolded state exceeds a fourth number threshold, and the folding screen device is in the folded state, the folding screen device is set to be in a half-screen code input state; When the folding screen device is set to be in the half-screen code input state, fourth capacitance data is collected, the fourth capacitance data being capacitance data collected when there is no foreign matter on the folding screen; The fourth capacitance data is used to update the reference capacitance data.
14. A foldable screen device, characterized in that, It includes: A processor, a memory and an interface; The processor, the memory and the interface cooperate with each other, so that the folding screen device executes the method in any one of claims 1 to 13.
15. A computer-readable storage medium, characterized in that, The computer program stored in the computer readable storage medium causes the processor to execute the method in any one of claims 1 to 13 when the computer program is executed by the processor.