Method and equipment for controlling rotating speed
By detecting the loudness parameters of the electronic device and determining the rotation speed of the driving device based on it, the problem of noise generated by the electronic device when driving the screen is solved, the matching of noise and loudness parameters is achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202411986771.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-11
AI Technical Summary
When the electronic device drives the screen, noise occurs due to motor rotation and component friction, which affects the user experience.
By detecting the loudness parameters of the electronic device, the rotation speed of the driving device is determined based on the detected loudness parameters, so that the noise generated when the display screen moves matches the loudness parameters, thereby controlling the noise level.
When driving the display screen to move, the loudness of the noise corresponds to the loudness parameters of the electronic device, so as to avoid excessive noise from interfering with the normal use of the user.
Smart Images

Figure CN119806228A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of control technology, and in particular to a method and device for controlling rotation speed. Background Art
[0002] Some electronic devices have a rollable flexible screen and a motor capable of driving the screen. These electronic devices can control the motor to rotate based on user operations, thereby driving the screen to unfold to a specific position or curling the unfolded screen into a specific storage space.
[0003] When these electronic devices drive the screen, they may generate noise due to motor rotation, friction between components, etc. Summary of the invention
[0004] To this end, this application discloses the following technical solutions:
[0005] A first aspect of the present application provides a method for controlling a rotation speed, comprising:
[0006] Detect loudness parameters of electronic devices;
[0007] Determining a first rotation speed of a driving device of the electronic device according to the detected first loudness parameter, the driving device being used to drive a display screen of the electronic device to move along a first direction or a second direction, the first direction being opposite to the second direction, and the movement of the display screen can cause a display size of the display screen to change;
[0008] The driving device is controlled to rotate at the first speed so that the display screen of the electronic device moves.
[0009] Optionally, also include:
[0010] When a change in the loudness parameter of the electronic device is detected, the second rotation speed of the driving device is determined according to the changed second loudness parameter.
[0011] Optionally, the detecting a loudness parameter of an electronic device includes:
[0012] When a trigger instruction is obtained, detecting a loudness parameter of the electronic device, wherein the trigger instruction is used to trigger the movement of the display screen;
[0013] or,
[0014] When the driving device drives the display screen to move, the loudness parameter of the electronic device is detected at predetermined intervals.
[0015] Optionally, the detecting a loudness parameter of an electronic device includes:
[0016] Detecting a first sound loudness and a second sound loudness of an electronic device, wherein the first sound loudness represents the loudness of an external environment in which the electronic device is located, and the second sound loudness represents the loudness of a sound generated by a component of the electronic device;
[0017] A loudness parameter of the electronic device is determined according to the first sound loudness and the second sound loudness.
[0018] Optionally, determining a loudness parameter of the electronic device according to the first sound loudness and the second sound loudness includes:
[0019] When the electronic device plays audio through the first audio module, the loudness of the first sound and the loudness of the second sound are fused according to a first weight coefficient to obtain a loudness parameter of the electronic device;
[0020] When the electronic device plays audio through the second audio module, the first sound loudness and the second sound loudness are fused according to a second weight coefficient to obtain a loudness parameter of the electronic device.
[0021] Optionally, also include:
[0022] Detecting the actual movement distance of the display screen;
[0023] In the case where the actual movement distance does not match the expected movement distance of the display screen, status prompt information indicating abnormal movement of the display screen is output, and the expected movement distance is determined according to the rotation amplitude of the driving device.
[0024] Optionally, the outputting of status prompt information indicating abnormal motion of the display screen includes:
[0025] In the case where the expected movement direction of the display screen deviates from the driving device, if the actual movement distance is greater than the expected movement distance, outputting first state prompt information, wherein the first state prompt information indicates that the display screen is stretched;
[0026] If the actual movement distance is less than the expected movement distance, the real-time current parameter of the driving device is greater than the current threshold, or the real-time temperature parameter of the driving device is greater than the temperature threshold, a second status prompt information is output, and the second status prompt information indicates that the display screen is pressed or encounters a fixed obstacle.
[0027] Optionally, also include:
[0028] If the actual movement distance is less than the expected movement distance, the real-time current parameter of the driving device is greater than a current threshold, or the real-time temperature parameter of the driving device is greater than a temperature threshold, power off and restart the driving device at least once;
[0029] When the actual movement distance of the display screen does not match the expected movement distance after each power failure and restart, obstacle prompt information is output, wherein the obstacle prompt information indicates that a fixed obstacle exists on the movement path of the display screen.
[0030] Optionally, the outputting of status prompt information indicating abnormal motion of the display screen includes:
[0031] Determine a change rate of the distance deviation parameter according to the distance deviation parameter of the display screen this time and the historical distance deviation parameter of the display screen, wherein the distance deviation parameter represents a deviation between an actual movement distance of the display screen and an expected movement distance;
[0032] When the change rate is less than a preset change rate threshold, a third state prompt information is output, wherein the third state prompt information indicates that the degree of wear of the driving device and / or related components for supporting the movement of the display screen exceeds an allowable range.
[0033] A second aspect of the present application provides an electronic device, including a driving device, a display screen, and a processor;
[0034] The driving device is used to drive the display screen of the electronic device to move in a first direction or a second direction, wherein the first direction is opposite to the second direction;
[0035] The movement of the display screen causes the display size of the display screen to change;
[0036] The processor is used to:
[0037] detecting a loudness parameter of the electronic device;
[0038] determining a first rotation speed of the driving device according to the detected first loudness parameter,
[0039] The driving device is controlled to rotate at the first speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0041] Figure 1 is a flow chart of a method for controlling rotation speed provided in an embodiment of the present application;
[0042] Figure 2It is a schematic diagram of the external structure of an electronic device provided in an embodiment of the present application;
[0043] Figure 3 It is a schematic diagram of the internal structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0045] The present application also provides a method for controlling the rotation speed. Figure 1 , the method may include the following steps.
[0046] S101, detecting a loudness parameter of an electronic device.
[0047] The method of this embodiment may be applicable to an electronic device having a rollable flexible screen, and the execution subject of the method may be a processor of the electronic device.
[0048] The form of the electronic device of this embodiment is not limited. For example, the electronic device can be any one of a computer, a mobile phone, a tablet, a television, a projector, a medical device, and a sports device.
[0049] The loudness parameter of an electronic device can be determined based on the loudness of the external environment in which the electronic device is located and the loudness of the sound generated by the operation of the electronic device. The loudness parameter can represent the strength of the sound that can be heard by the user currently using the electronic device. The larger the detected loudness parameter, the louder the sound heard by the current user, and the smaller the detected loudness parameter, the smaller the sound heard by the current user.
[0050] S102, determining a first rotation speed of a driving device of the electronic device according to the detected first loudness parameter, the driving device is used to drive a display screen of the electronic device to move along a first direction or a second direction, the first direction is opposite to the second direction, and the movement of the display screen can cause a display size of the display screen to change.
[0051] As an example, the electronic device applicable to this embodiment may have the following Figure 2 The external structure shown, wherein the electronic device may include a device body, a guide rail and a display screen, and the display screen is a rollable flexible screen.
[0052] The guide rail can be stored in the device body by folding, telescoping or other means, and can be unfolded when needed. Figure 2The state shown in (1).
[0053] The device body may include a drive device and a processor, and the drive device may include at least one drive motor, such as Figure 2 As shown in (1), it can include two driving motors, which are symmetrically installed on both sides of the guide rail.
[0054] The device body may have a storage space capable of storing the rolled display screen.
[0055] See also Figure 2 According to (2) and (3), after the guide rail is unfolded, the processor of the electronic device can control the driving motor contained in the driving device to rotate, and the display screen can be driven to move in the first direction or the second direction along the guide rail through the rotation of the driving motor. When moving in the first direction, the display screen can be unfolded outward from the storage space along the guide rail until it is unfolded to the end of the guide rail or any specified position before the end of the guide rail. When moving in the second direction, the outwardly unfolded display screen can be curled into the storage space in the device body until it is completely curled into the storage space or curled to a specified position.
[0056] Combination Figure 2 As can be seen from (1) to (3), as the display screen moves, its display size can change. When the display screen moves from the storage space in the first direction to the end of the guide rail, its display size can gradually increase. When the display screen starts to curl from the end of the guide rail into the storage space, its display size can gradually decrease.
[0057] The device body may also have a keyboard, a touchpad, a touch screen, or a device other than Figure 2 Alternative displays to the display shown.
[0058] In some embodiments, the electronic device of this embodiment may not have a guide rail. After the display screen is unfolded outward in the first direction, the display screen can remain relatively stable through its own structure without relying on the support of the guide rail.
[0059] The first rotation speed may be determined by, according to the correspondence between the rotation speed of the driving device and the expected noise loudness, determining a rotation speed which is as large as possible and whose corresponding expected noise loudness is not greater than the first loudness parameter as the first rotation speed;
[0060] Alternatively, the first loudness parameter is increased by a certain amplitude (for example, by 10%) to obtain a first loudness threshold, and according to the corresponding relationship between the rotation speed of the driving device and the expected noise loudness, a rotation speed that is as large as possible and whose corresponding expected noise loudness is not greater than the first loudness threshold is determined as the first rotation speed.
[0061] When the driving device drives the display screen to move, the rotation of the driving device and the friction of various components will generate noise of a certain loudness. Generally, the faster the rotation speed of the driving device, the louder the noise is.
[0062] The expected noise loudness corresponding to a certain rotation speed can be understood as: when the driving device drives the display screen to move at this rotation speed, the noise generated by the rotation of the driving device and the movement of the display screen is expected to reach a loudness. For example, the expected noise loudness corresponding to the rotation speed x1 is y1, which means that when the driving device drives the display screen at a rotation speed x1, a noise with a loudness of y1 is expected to be generated.
[0063] The correspondence between the rotation speed and the expected noise loudness can be expressed in various forms. For example, it can be expressed by a specific function expression. In this case, for any rotation speed, the rotation speed can be calculated based on the function expression, and the calculation result obtained is used as the expected noise loudness corresponding to the rotation speed; or it can be expressed by a table of rotation speeds and expected noise loudness, and the table can include multiple rotation speeds and the expected noise loudness corresponding to each rotation speed. In this case, the expected noise loudness corresponding to the rotation speed can be determined by looking up the table.
[0064] For any model of electronic equipment, multiple rotational speeds of the electronic equipment and the expected noise loudness corresponding to each rotational speed can be obtained through experiments, and the corresponding relationship between the rotational speed and the expected noise loudness can be determined based on the data obtained from the experiments.
[0065] S103, controlling the driving device to rotate at a first speed so that the display screen of the electronic device moves.
[0066] The driving device may include one or more driving motors. In step S103, the rotation speed of each driving motor in the driving device may be set to a first rotation speed, so that each driving motor in the driving device rotates at the first rotation speed, and the display screen is driven to move by these driving motors.
[0067] The beneficial effects of this embodiment are:
[0068] The rotation speed of the driving device is controlled according to the first loudness parameter of the electronic device, so that the loudness of the noise generated when the driving device drives the display screen to move corresponds to the first loudness parameter of the electronic device. In this way, the display screen can be driven to move to a specific state at a faster rotation speed, and the noise when the display screen moves can be made close to the first loudness parameter, thereby avoiding excessive noise that interferes with the user's normal use of the electronic device.
[0069] The electronic device can detect the loudness parameter when certain conditions are met.
[0070] In some embodiments, the electronic device may detect a loudness parameter of the electronic device when obtaining a trigger instruction, and the trigger instruction is used to trigger the movement of the display screen.
[0071] The electronic device can obtain trigger instructions based on the user's operation. For example, when the user performs an operation of unfolding the display screen or increasing the display size through physical buttons, touch screen or voice control, the electronic device can obtain a trigger instruction to trigger the display screen to move in a first direction. When the user performs an operation of curling the display screen or reducing the display size through the above method, the electronic device can obtain a trigger instruction to trigger the display screen to move in a second direction.
[0072] The electronic device can also obtain trigger instructions based on the running applications. For example, when an application needs to unfold the display screen or increase the display size, the electronic device can obtain a trigger instruction generated by the application to trigger the display screen to move in a first direction. When an application needs to curl the display screen or reduce the display size, the electronic device can obtain a trigger instruction generated by the application to trigger the display screen to move in a second direction.
[0073] In some embodiments, the electronic device may also detect the loudness parameter of the electronic device at predetermined intervals when the driving device drives the display screen to move.
[0074] The predetermined interval may be a predetermined time interval. In this case, the electronic device may detect the loudness parameter of the electronic device at a predetermined time interval during the movement of the display screen. Exemplarily, the time interval may be 1 second, and the electronic device detects the loudness parameter every 1 second during the movement of the display screen.
[0075] The predetermined interval may be a predetermined distance interval. In this case, the electronic device may detect the loudness parameter of the electronic device once each time the display screen moves a certain distance interval during the movement of the display screen. Exemplarily, the distance interval may be 0.5 centimeters (cm), and when the display screen moves, the electronic device detects the loudness parameter once each time the display screen moves 0.5 cm.
[0076] In some embodiments, during the period of controlling the driving device to rotate at the first speed, the processor may further detect a loudness parameter at a predetermined interval, and perform the following steps based on the detected loudness parameter:
[0077] When a change in the loudness parameter of the electronic device is detected, the second rotation speed of the driving device is determined according to the changed second loudness parameter.
[0078] In this embodiment, the processor may compare the loudness parameter detected this time with the loudness parameter detected before a predetermined interval each time after the loudness parameter is detected. If the two are consistent, it is determined that the loudness parameter has not changed, and the current rotation speed of the driving device is maintained. If the two are inconsistent, it is determined that the loudness parameter has changed, and the currently detected loudness parameter is used as the second loudness parameter, and the above steps are executed.
[0079] The method for determining the second rotation speed can refer to the method for determining the first rotation speed in the above text, and will not be described in detail. The second rotation speed may be different from the first rotation speed.
[0080] After determining the second rotation speed, the processor may change the rotation speed of the driving device from the first rotation speed to the second rotation speed, so that the driving device continues to drive the display screen to move at the second rotation speed.
[0081] Through the above embodiments, the processor can ensure that the loudness of the noise generated by the movement of the display screen is not significantly greater than the loudness parameter of the electronic device during the movement of the display screen, thereby preventing the noise generated by the movement of the display screen from interfering with the normal use of the user.
[0082] In some embodiments, the electronic device may have two or more driving devices, and correspondingly may have two or more display screens that can be driven by the driving devices. In this case, different driving devices may have different corresponding relationships between rotational speeds and expected noise loudness. When the processor determines the first rotational speed according to step S102, it may determine different first rotational speeds for different driving devices.
[0083] Exemplarily, assuming that the electronic device has a driving device 1 and a driving device 2, the driving device 1 can drive the display screen 1 to move to change the display size of the display screen 1, and the driving device 2 can drive the display screen 2 to move to change the display size of the display screen 2. When the electronic device detects the first loudness parameter, it can determine the first speed 1 based on the rotation speed-expected noise loudness correspondence of the driving device 1 and the first loudness parameter, and determine the first speed 2 based on the rotation speed-expected noise loudness correspondence of the driving device 2 and the first loudness parameter, and control the driving device 1 to drive the display screen 1 at the first speed 1, and the driving device 2 to drive the display screen 2 at the first speed 2.
[0084] The electronic device may detect the loudness parameter in the following ways:
[0085] Detecting a first sound loudness and a second sound loudness of the electronic device, wherein the first sound loudness represents the loudness of an external environment in which the electronic device is located, and the second sound loudness represents the loudness of a sound generated by a component of the electronic device;
[0086] A loudness parameter of the electronic device is determined according to the first sound loudness and the second sound loudness.
[0087] The first sound loudness may represent the loudness of the external environment in which the electronic device is located, for example, the sum of the loudness of various sounds in the external environment, such as the user's voice, environmental noise, and the sound played by the speaker of the electronic device. In this embodiment, the first sound loudness may be detected by a microphone of the electronic device.
[0088] The second sound loudness may include the loudness of sounds generated by several components of the electronic device. These components may include components inside the electronic device, or may include external components that are communicatively connected to the electronic device through a specific interface and controlled by the electronic device.
[0089] As an example, the second sound loudness may include at least one of the loudness of the sound generated by the fan of the electronic device, the loudness of the audio played by the speaker, and the loudness of the audio played by the earphone. The fan here may be any fan used to cool the processor of the electronic device when the electronic device is working.
[0090] The second sound loudness may be determined according to operating parameters of the corresponding component.
[0091] For example, for speakers and headphones, the processor can obtain parameters that determine the volume of speakers and headphones from a human interface device (HID) interface to determine the loudness of the audio played by the speakers and headphones; for fans, the processor can obtain the fan speed from an electronic commutation (EC) motor, and determine the loudness of the sound generated by the fan based on the correspondence between the fan speed and the loudness of the sound generated, or, considering that the higher the operating frequency or temperature of the processor, the higher the speed of the fan used for cooling is generally, the processor can obtain the current operating frequency or temperature of the processor, and obtain the fan speed based on the correspondence between the operating frequency and the fan speed, or the correspondence between the temperature and the fan speed, and then obtain the loudness of the sound generated by the fan.
[0092] The second sound loudness may also be directly detected by a corresponding sensor, that is, a sensor for detecting the sound loudness may be installed on components such as a fan and a speaker, and the loudness of the sound generated by these components may be directly detected by the sensor.
[0093] When determining the loudness parameter of the electronic device, the loudness of the first sound and the loudness of the second sound may be directly superimposed to obtain the loudness parameter of the electronic device, or the loudness of the first sound and the second sound may be fused according to a preconfigured weight coefficient to obtain the loudness parameter.
[0094] The weight coefficient here can be configured according to the degree of influence of different sound loudness on the user.
[0095] As an example, assume that the first sound loudness includes the loudness of the external environment, and the second sound loudness includes the loudness of the electronic device fan and the loudness of the speaker. Considering that various noises, human voices, etc. in the external environment are generally far away from the user, the fan of the electronic device is encapsulated in the casing, and its sound is generally not obvious. The speaker is close to the user and directly exposed to the external environment. Therefore, in the weight coefficient, the weight of the loudness of the external environment can be 0.2, the weight of the loudness of the fan can be 0.2, and the weight of the loudness of the speaker can be 0.6. Based on the above weight coefficients, the loudness parameters of the electronic device can be determined as follows.
[0096] Loudness parameter = 0.2*loudness of external environment + 0.2*loudness of fan + 0.6*loudness of speaker.
[0097] In some embodiments, considering that when an electronic device plays audio with different components, the loudness of various sounds may have different impacts on the user, different weight coefficients corresponding to different audio modules used to play audio can be configured, and then the loudness of the first sound and the loudness of the second sound are processed based on different weight coefficients in the following manner, so as to more accurately detect the loudness parameter of the electronic device:
[0098] When the electronic device plays audio through the first audio module, the loudness of the first sound and the loudness of the second sound are fused according to the first weight coefficient to obtain a loudness parameter of the electronic device;
[0099] When the electronic device plays audio through the second audio module, the loudness of the first sound and the loudness of the second sound are fused according to the second weight coefficient to obtain a loudness parameter of the electronic device.
[0100] The first audio module and the second audio module can be two different audio output modules controlled by the electronic device, wherein, compared with the first audio module and the second audio module, the first audio module can be an audio output module that is farther away from the user when working and the output sound has a weaker impact on the user, and the second audio module can be an audio output module that is closer to the user when working and the output sound has a stronger impact on the user. For example, the first audio module can be a speaker of the electronic device, and the second audio module can be a wired or wireless headset controlled by the electronic device.
[0101] In the first weight coefficient, the loudness of the first audio module may correspond to a smaller weight, and in the second weight coefficient, the loudness of the second audio module may correspond to a larger weight.
[0102] As an example, the first weight coefficient may include the above-mentioned weights of 0.2:0.2:0.6, and the second weight coefficient may include the weights of 0.1:0.1:0.8. That is to say, when fused according to the first weight coefficient, the method for determining the loudness parameter can be referred to the above text, and when fused according to the second weight coefficient, the method for determining the loudness parameter can be: loudness parameter = 0.1*loudness of the external environment + 0.1*loudness of the fan + 0.8*loudness of the headphone.
[0103] In some optional embodiments, the processor may further detect whether the movable display screen is at risk of damage by the following steps:
[0104] Detect the actual movement distance of the display screen;
[0105] In the case where the actual movement distance does not match the expected movement distance of the display screen, a status prompt message indicating abnormal movement of the display screen is output, and the expected movement distance is determined according to the rotation amplitude of the driving device.
[0106] The processor may periodically execute the above steps at predetermined intervals only when the driving device drives the display screen to move, or may periodically execute the above steps at predetermined intervals continuously during the power-on period of the electronic device, regardless of whether the display screen moves, or may periodically execute the above steps when the display screen is not fully retracted, for example, when the display screen is not fully retracted. Figure 2 In the state shown in (2) or (3), the above steps are performed periodically at predetermined intervals regardless of whether the display screen is moving.
[0107] For the first case, the predetermined interval may be a predetermined distance interval, a predetermined time interval or a predetermined angle interval, and for the second and third cases, the predetermined interval may be a predetermined time interval. The predetermined angle interval means that the above steps are performed once each time the driving device rotates a certain angle. When the motor included in the driving device is a stepping motor, the predetermined angle interval may be represented by the number of steps of the motor, that is, the above steps are performed once each time the motor rotates a certain number of steps (for example, each time the motor rotates N steps).
[0108] The actual movement distance of the display screen can be detected by a sensor pre-installed on the electronic device and capable of detecting the displacement of the display screen. The installation position of the sensor is not limited. As an example, the sensor can be installed at the exit of the storage space of the display screen, so that no matter the display screen moves outward from the storage space or curls back into the storage space, the sensor can detect the actual movement distance of the display screen. The sensor used to detect the actual movement distance can be a linear encoder or other types of sensors, without limitation.
[0109] The actual movement distance may be the distance that the display screen actually moves during the predetermined interval, and the unit may be centimeters or millimeters. For example, if the predetermined interval is 0.5 seconds, the actual movement distance detected may be that the display screen actually moves 30 millimeters in the past 0.5 seconds.
[0110] The expected movement distance may represent the distance that the display screen should move under ideal conditions ignoring various interference factors during a predetermined interval.
[0111] The expected movement distance can be detected by detecting the rotation amplitude of the driving device and determining it based on the rotation amplitude and a pre-configured transmission ratio. The transmission ratio is determined by the transmission structure between the driving device and the display screen. The value can be calculated based on the structural parameters of the transmission structure or obtained through experimental testing, and is not limited.
[0112] When the motor included in the driving device is a stepper motor, the rotation amplitude can be expressed by the number of steps the stepper motor rotates during a predetermined interval. If the motor included is not a stepper motor, the rotation amplitude can be expressed by the cumulative angle or number of turns the motor rotates during the predetermined interval.
[0113] The way to determine whether the actual movement distance matches the expected movement distance of the display can be:
[0114] Calculate the difference between the actual movement distance and the expected movement distance, use the absolute value of the difference as the distance deviation parameter, and determine whether the distance deviation parameter is less than or equal to the deviation threshold. If it is less than or equal to the deviation threshold, it is determined that the actual movement distance and the expected movement distance match; if it is greater than the deviation threshold, it is determined that the actual movement distance and the expected movement distance do not match.
[0115] When the expected movement distance is equal to 0, that is, the driving device is not working, the method for determining whether the actual movement distance matches the expected movement distance of the display screen can be:
[0116] If the actual movement distance is equal to the expected movement distance, it is determined that the actual movement distance and the expected movement distance match; if the two are not equal, it is determined that the actual movement distance and the expected movement distance do not match.
[0117] Taking the case where the motor included in the drive device is a stepper motor as an example, the deviation threshold value may be determined by:
[0118] When the stepper motor of the driving device rotates N steps, the actual moving distance L1 of the display screen is detected, and the corresponding expected moving distance L2 is calculated according to the number of rotation steps N, and the absolute value of the difference between L1 and L2 is recorded. This process is repeated multiple times, and the multiple absolute values are averaged. The average value obtained can be used as the deviation threshold S when the driving device rotates N steps NN is a preset parameter, and the actual value can be set as needed without limitation.
[0119] When determining whether the actual movement distance matches the expected movement distance, if the number of steps of the stepper motor of the driving device during the predetermined interval is N steps, the distance deviation parameter can be directly compared with the deviation threshold S when rotating N steps. N , determine whether there is a match based on the comparison result;
[0120] If the actual number of rotation steps of the stepper motor of the driving device during the predetermined interval is not equal to N steps, the actual deviation threshold corresponding to the actual number of rotation steps can be calculated using the proportional relationship between N and the actual number of rotation steps, and the distance deviation parameter and the actual deviation threshold are compared to determine whether they match based on the comparison result. For example, if the stepper motor of the driving device rotates 0.5N steps during the predetermined interval, the actual deviation threshold can be equal to 0.5S N , if the stepper motor of the driving device rotates 2N steps during the predetermined interval, the actual deviation threshold may be equal to 2S N .
[0121] When the motor included in the driving device is not a stepper motor, it is only necessary to replace the rotation of N steps in the above determination method with rotation of a certain angle or a certain number of circles. The other steps are the same as above and will not be repeated.
[0122] The status prompt information can be output in a variety of forms, including but not limited to the speaker outputting a prompt voice, the speaker outputting a specific prompt ringtone, the display screen displaying a prompt text, the electronic device's vibration motor vibrating, etc.
[0123] Optionally, when outputting the above status prompt information, the processor may further determine the detailed abnormal status in the following manner, and then output the corresponding status prompt information in a targeted manner:
[0124] In the case where the expected movement direction of the display screen deviates from the driving device, if the actual movement distance is greater than the expected movement distance, a first state prompt information is output, and the first state prompt information indicates that the display screen is stretched;
[0125] If the actual movement distance is less than the expected movement distance, the real-time current parameter of the driving device is greater than the current threshold, or the real-time temperature parameter of the driving device is greater than the temperature threshold, a second state prompt message is output, and the second state prompt message indicates that the display screen is pressed or encounters a fixed obstacle;
[0126] When the expected movement direction of the display screen is toward the driving device, if the actual movement distance is greater than the expected movement distance, outputting a second state prompt message;
[0127] If the actual movement distance is less than the expected movement distance, the real-time current parameter of the driving device is greater than the current threshold, or the real-time temperature parameter of the driving device is greater than the temperature threshold, a first state prompt message is output.
[0128] Combination Figure 2 , the expected movement direction of the display screen is away from the drive device, which is equivalent to Figure 2 The display screen moves in a first direction, and the expected movement direction of the display screen is toward the driving device, which is equivalent to Figure 2 The middle display screen moves in the second direction.
[0129] It can be seen that when the display screen moves in the first direction, if the display screen is stretched outward by an external force (for example, the user manually pulls it in the first direction), the distance the display screen moves in the first direction will be longer than the expected movement distance. If the display screen is pressed inward by an external force (for example, the user manually presses it in the second direction), or there are stationary obstacles on the movement path (for example, debris on the guide rail), the movement of the display screen is blocked, and the distance moved in the first direction will be shorter than the expected movement distance. At the same time, due to the obstruction of movement, the drive device will output a higher torque than in the unobstructed state in order to overcome the resistance, resulting in a significant increase in the real-time current and real-time temperature of the drive device compared to the unobstructed state.
[0130] When the display screen moves in the second direction, if the display screen is stretched outward by an external force, the distance the display screen moves in the second direction will be shorter than the expected movement distance, and due to the obstruction of movement, the real-time current and real-time temperature of the driving device will increase significantly. If the display screen is pressed inward by an external force, the distance moved in the second direction will be longer than the expected movement distance.
[0131] In summary, when outputting status prompt information, the processor can determine different states of the display screen based on parameters such as actual movement distance, real-time current, and real-time temperature, and then output different status prompt information.
[0132] In some embodiments, the processor may also simultaneously detect three parameters, namely, the actual movement distance, the real-time current, and the real-time temperature. As long as at least one of the three conditions, namely, the actual movement distance does not match the expected movement distance, the real-time current is greater than the current threshold, and the real-time temperature is greater than the temperature threshold, is met, the status prompt information is output. If the condition that the actual movement distance does not match the expected movement distance is met, the first status prompt information or the second status prompt information may be output according to the above embodiment; if the condition that the real-time current is greater than the current threshold or the real-time temperature is greater than the temperature threshold is met, different information may be output according to the movement direction of the display screen, that is, if the display screen moves in the first direction, the second status prompt information is output, and if the display screen moves in the second direction, the first status prompt information is output.
[0133] The current threshold value may be determined by, under the premise that the above-mentioned abnormal state does not exist, detecting the current value of the driving device when it rotates multiple times, and taking the average of the detected current values as the current threshold value.
[0134] The method for determining the temperature threshold is the same as the method for determining the current threshold described above, except that the detection current is replaced by the detection temperature, which will not be described in detail.
[0135] The content of the first state prompt information and the second state prompt information is not limited. For example, the content of the first state prompt information may be "Please stop stretching the screen to avoid screen damage", and the content of the second state prompt information may be "Please stop pressing or blocking the screen to avoid screen damage".
[0136] In some embodiments, a specific state may also be detected by setting a sensor on the display screen. Figure 2 For example, in Figure 2 In (3), a pressure sensor is provided at the top of the display screen, and the processor can obtain the pressure value detected by the pressure sensor. When the pressure value exceeds a certain threshold, it is determined that the display screen is pressed or encounters an obstacle when moving in the first direction, and a second state prompt information is output.
[0137] In some optional embodiments, if it is determined that the display screen moves in the first direction and the movement is blocked, the processor may further perform the following steps to determine whether it is pressed or encounters a fixed obstacle:
[0138] If the actual movement distance is less than the expected movement distance, the real-time current parameter of the drive device is greater than the current threshold, or the real-time temperature parameter of the drive device is greater than the temperature threshold, the drive device is powered off and restarted at least once;
[0139] When the actual movement distance of the display screen does not match the expected movement distance after each power failure and restart, an obstacle prompt information is output, and the obstacle prompt information indicates that a fixed obstacle exists on the movement path of the display screen.
[0140] If the display screen is in a state where the user is pressing the display screen, the user generally will not continue to press the display screen after the second state prompt information is output. Therefore, after power failure and restart, the actual movement distance of the display screen should match the expected movement distance. If there is a fixed obstacle on the movement path, the user may not be able to find or remove the obstacle in time. Therefore, after power failure and restart, the actual movement distance of the display screen may still not match the expected movement distance.
[0141] Based on the above principle, the processor can try to drive the display screen to move multiple times by powering off and restarting. If the actual movement distance of the display screen may still not match the expected movement distance after several attempts, it means that the display screen is most likely blocked by a fixed obstacle, so obstacle prompt information can be output.
[0142] As some examples, the content of the obstacle prompt information may be "There is an obstacle above the display screen, please check in time."
[0143] Optionally, when outputting the status prompt information, the processor may also determine whether to output the third status prompt information in the following manner:
[0144] Determine the change rate of the distance deviation parameter according to the distance deviation parameter of the current display screen and the historical distance deviation parameter of the display screen, where the distance deviation parameter represents the deviation between the actual movement distance of the display screen and the expected movement distance;
[0145] When the change rate is less than a preset change rate threshold, a third state prompt information is output, and the third state prompt information indicates that the degree of wear of the driving device and / or related components for supporting the movement of the display screen exceeds an allowable range.
[0146] The related components include, but are not limited to, transmission gears between the rotating shafts connecting the driving device and the display screen, and guide rails in contact with the display screen.
[0147] When electronic equipment is used normally, the drive device and related components will produce a certain degree of wear due to friction or dust accumulation. The longer the use time, the more serious the wear. The more serious the wear, the greater the resistance when the display moves. The increase in resistance will cause the distance deviation parameter, real-time current and real-time temperature of the display to increase when it moves, and eventually cause these parameters to exceed the corresponding thresholds.
[0148] However, this parameter change caused by loss generally manifests as a slow linear change. That is to say, if there is no external force interference such as stretching, pressing or obstacles, and only the influence of the above-mentioned component loss is considered, the distance deviation parameter detected this time is less different from the historical distance deviation parameters detected in the most recent times or in the most recent period of time. In the case of external force interference, the distance deviation parameter detected this time may be significantly different from the historical distance deviation parameters detected in the most recent times or in the most recent period of time.
[0149] Based on the above principles, the processor can determine whether the cause of abnormal display movement is excessive component wear or external force interference according to the change rate of the distance deviation parameter, and then output the corresponding status prompt information.
[0150] The change rate threshold may be determined by detecting the distance deviation parameters multiple times in succession without being disturbed by external forces, and determining the change rates of these distance deviation parameters as the change rate threshold.
[0151] The above-mentioned rate of change can be expressed by the difference between the distance deviation parameter detected this time and the historical distance deviation parameter detected last time, or can be expressed by the difference between the distance deviation parameter detected this time and the historical distance deviation parameter detected M times before. M is a preset parameter, and its value can be set as needed without limitation.
[0152] The content of the third status prompt information is not limited. As an example, the third status prompt information may be "The driving mechanism is severely worn, please repair it in time."
[0153] When the change rate of the above distance deviation parameter is greater than or equal to the above change rate threshold, the processor can output the first state prompt information or the second state prompt information according to the above method.
[0154] The distance deviation parameter in the above embodiment may also be replaced by real-time current or real-time temperature. The corresponding implementation methods are the same and will not be described in detail.
[0155] In some optional embodiments, the processor may also detect the opening and closing angle change amplitude and / or jitter amplitude of the display screen at predetermined intervals during the operation of the driving device. If the opening and closing angle change amplitude exceeds a certain threshold, or the jitter amplitude exceeds a certain threshold, a fourth state prompt information may be output, and the fourth state prompt information indicates that the display screen is jittering too much.
[0156] If the opening and closing angle changes or shakes too much during the movement of the display screen, it may cause damage to related components. Through the above embodiment, a corresponding prompt can be output when the opening and closing angle changes or shakes too much, so that the user can stop moving the display screen to avoid damage.
[0157] Optionally, after outputting any status prompt information, the processor can immediately control the drive device to stop rotating to avoid causing serious malfunctions.
[0158] The present application also provides an electronic device. Figure 3 , including a driving device 301, a display screen 302, and a processor 303;
[0159] The driving device 301 is used to drive the display screen 302 of the electronic device to move along a first direction or a second direction, and the first direction is opposite to the second direction;
[0160] The movement of the display screen 302 causes the display size of the display screen 302 to change;
[0161] The processor 303 is used to:
[0162] Detect loudness parameters of electronic devices;
[0163] Determine a first rotation speed of the driving device 301 according to the detected first loudness parameter,
[0164] The driving device 301 is controlled to rotate at a first rotation speed.
[0165] Optionally, the processor 303 is further configured to:
[0166] When it is detected that the loudness parameter of the electronic device changes, the second rotation speed of the driving device 301 is determined according to the changed second loudness parameter.
[0167] Optionally, when the processor 303 detects the loudness parameter of the electronic device, it is configured to:
[0168] When a trigger instruction is obtained, a loudness parameter of the electronic device is detected, and the trigger instruction is used to trigger the display screen to move;
[0169] or,
[0170] When the driving device 301 drives the display screen 302 to move, the loudness parameter of the electronic device is detected at predetermined intervals.
[0171] Optionally, when the processor 303 detects the loudness parameter of the electronic device, it is configured to:
[0172] Detecting a first sound loudness and a second sound loudness of the electronic device, wherein the first sound loudness represents the loudness of an external environment in which the electronic device is located, and the second sound loudness represents the loudness of a sound generated by a component of the electronic device;
[0173] A loudness parameter of the electronic device is determined according to the first sound loudness and the second sound loudness.
[0174] Optionally, when the processor 303 determines the loudness parameter of the electronic device according to the first sound loudness and the second sound loudness, it is configured to:
[0175] When the electronic device plays audio through the first audio module, the loudness of the first sound and the loudness of the second sound are fused according to the first weight coefficient to obtain a loudness parameter of the electronic device;
[0176] When the electronic device plays audio through the second audio module, the loudness of the first sound and the loudness of the second sound are fused according to the second weight coefficient to obtain a loudness parameter of the electronic device.
[0177] Optionally, the processor 303 is further configured to:
[0178] Detecting the actual movement distance of the display screen 302;
[0179] When the actual movement distance does not match the expected movement distance of the display screen, a status prompt message indicating abnormal movement of the display screen is output, and the expected movement distance is determined according to the rotation amplitude of the driving device 301 .
[0180] Optionally, when the processor 303 outputs status prompt information indicating abnormal motion of the display screen, it is used to:
[0181] In the case where the expected movement direction of the display screen 302 deviates from the driving device 301, if the actual movement distance is greater than the expected movement distance, a first state prompt information is output, and the first state prompt information indicates that the display screen 302 is stretched;
[0182] If the actual movement distance is less than the expected movement distance, the real-time current parameter of the driving device 301 is greater than the current threshold, or the real-time temperature parameter of the driving device 301 is greater than the temperature threshold, a second state prompt message is output, and the second state prompt message indicates that the display screen 302 is pressed or encounters a fixed obstacle.
[0183] Optionally, the processor 303 is further configured to:
[0184] If the actual movement distance is less than the expected movement distance, the real-time current parameter of the driving device 301 is greater than the current threshold, or the real-time temperature parameter of the driving device 301 is greater than the temperature threshold, the driving device 301 is powered off and restarted at least once;
[0185] When the actual movement distance of the display screen 302 does not match the expected movement distance after each power failure and restart, obstacle prompt information is output, and the obstacle prompt information indicates that a fixed obstacle exists on the movement path of the display screen 302 .
[0186] Optionally, when the processor 303 outputs status prompt information indicating abnormal motion of the display screen 302, it is used to:
[0187] Determine the change rate of the distance deviation parameter according to the distance deviation parameter of the display screen 302 this time and the historical distance deviation parameter of the display screen 302 , where the distance deviation parameter represents the deviation between the actual movement distance of the display screen 302 and the expected movement distance;
[0188] When the change rate is less than a preset change rate threshold, a third state prompt information is output, and the third state prompt information indicates that the degree of wear of the driving device 301 and / or related components for supporting the movement of the display screen 302 exceeds an allowable range.
[0189] The working principle of the electronic device of this embodiment can refer to the relevant steps of the method for controlling the rotation speed in any of the above embodiments, which will not be described in detail.
[0190] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0191] For the convenience of description, the above system or device is described by dividing it into various modules or units according to its functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0192] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application or some parts of the embodiments.
[0193] Finally, it should be noted that, in this article, relational terms such as first, second, third and fourth are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0194] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for controlling a rotation speed, comprising: Detect loudness parameters of electronic devices; Determining a first rotation speed of a driving device of the electronic device according to the detected first loudness parameter, the driving device being used to drive a display screen of the electronic device to move along a first direction or a second direction, the first direction being opposite to the second direction, and the movement of the display screen can cause a display size of the display screen to change; The driving device is controlled to rotate at the first speed so that the display screen of the electronic device moves.
2. The method according to claim 1, further comprising: When a change in the loudness parameter of the electronic device is detected, the second rotation speed of the driving device is determined according to the changed second loudness parameter.
3. The method according to claim 1, wherein detecting the loudness parameter of the electronic device comprises: When a trigger instruction is obtained, detecting a loudness parameter of the electronic device, wherein the trigger instruction is used to trigger the movement of the display screen; or, When the driving device drives the display screen to move, the loudness parameter of the electronic device is detected at predetermined intervals.
4. The method according to claim 1, wherein detecting the loudness parameter of the electronic device comprises: Detecting a first sound loudness and a second sound loudness of an electronic device, wherein the first sound loudness represents the loudness of an external environment in which the electronic device is located, and the second sound loudness represents the loudness of a sound generated by a component of the electronic device; A loudness parameter of the electronic device is determined according to the first sound loudness and the second sound loudness.
5. The method according to claim 4, wherein determining the loudness parameter of the electronic device according to the first sound loudness and the second sound loudness comprises: When the electronic device plays audio through the first audio module, the loudness of the first sound and the loudness of the second sound are fused according to a first weight coefficient to obtain a loudness parameter of the electronic device; When the electronic device plays audio through the second audio module, the first sound loudness and the second sound loudness are fused according to a second weight coefficient to obtain a loudness parameter of the electronic device.
6. The method according to claim 1, further comprising: Detecting the actual movement distance of the display screen; In the case where the actual movement distance does not match the expected movement distance of the display screen, status prompt information indicating abnormal movement of the display screen is output, and the expected movement distance is determined according to the rotation amplitude of the driving device.
7. The method according to claim 6, wherein the outputting of the status prompt information indicating abnormal motion of the display screen comprises: In the case where the expected movement direction of the display screen deviates from the driving device, if the actual movement distance is greater than the expected movement distance, outputting first state prompt information, wherein the first state prompt information indicates that the display screen is stretched; If the actual movement distance is less than the expected movement distance, the real-time current parameter of the driving device is greater than the current threshold, or the real-time temperature parameter of the driving device is greater than the temperature threshold, a second status prompt information is output, and the second status prompt information indicates that the display screen is pressed or encounters a fixed obstacle.
8. The method according to claim 7, further comprising: If the actual movement distance is less than the expected movement distance, the real-time current parameter of the driving device is greater than a current threshold, or the real-time temperature parameter of the driving device is greater than a temperature threshold, power off and restart the driving device at least once; When the actual movement distance of the display screen does not match the expected movement distance after each power failure and restart, obstacle prompt information is output, wherein the obstacle prompt information indicates that a fixed obstacle exists on the movement path of the display screen.
9. The method according to claim 6, wherein the outputting of status prompt information indicating abnormal motion of the display screen comprises: Determine a change rate of the distance deviation parameter according to the distance deviation parameter of the display screen this time and the historical distance deviation parameter of the display screen, wherein the distance deviation parameter represents a deviation between an actual movement distance of the display screen and an expected movement distance; When the change rate is less than a preset change rate threshold, a third state prompt information is output, wherein the third state prompt information indicates that the degree of wear of the driving device and / or related components for supporting the movement of the display screen exceeds an allowable range.
10. An electronic device comprising a driving device, a display screen, and a processor; The driving device is used to drive the display screen of the electronic device to move in a first direction or a second direction, wherein the first direction is opposite to the second direction; The movement of the display screen causes the display size of the display screen to change; The processor is used to: detecting a loudness parameter of the electronic device; determining a first rotation speed of the driving device according to the detected first loudness parameter, The driving device is controlled to rotate at the first speed.