Frequency hopping control method, device and equipment, stylus, medium and program product

By concurrently controlling the frequency hopping operation of the display screen and the stylus, the problem of disconnection of the stylus when writing on the display screen is solved, ensuring frequency synchronization and improving user experience.

CN120523348APending Publication Date: 2025-08-22BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410198593.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-22
Publication Date
2025-08-22

AI Technical Summary

Technical Problem

During the frequency hopping process of the stylus and the display screen, disconnection is prone to occur, affecting the user experience.

Method used

By concurrently controlling the frequency hopping operation of the display and stylus, ensure that they are on the same frequency, including delay control and timely adjustment of frequency based on frequency information.

Benefits of technology

It effectively shortens the frequency jump time difference between the display screen and the stylus, reduces the disconnection of the stylus writing, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120523348A_ABST
    Figure CN120523348A_ABST
Patent Text Reader

Abstract

The invention relates to a frequency hopping control method and device, electronic equipment, a touch pen, a storage medium and a computer program product, and the method comprises the steps: controlling a display screen to execute a first frequency hopping operation when it is detected that the working frequency of the display screen of the electronic equipment needs to be adjusted; the first frequency hopping operation is used for adjusting the working frequency of a display screen; when the electronic equipment initiates frequency hopping control on the display screen, controlling a stylus connected with the electronic equipment to execute a second frequency hopping operation; the second frequency hopping operation is used for adjusting the working frequency of the stylus; acquiring first frequency information of the display screen and second frequency information of the stylus; the first frequency information indicates the working frequency of the display screen; the second frequency information indicates the working frequency of the touch pen; and under the condition that the working frequency of the display screen is the same as the working frequency of the touch pen, determining that both the display screen and the touch pen successfully execute frequency hopping.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of terminal technology, and in particular to a frequency hopping control method, device, equipment, stylus, medium, and program product. Background Art

[0002] With the continuous development of terminal technology, more and more terminals are adopting touch-screen technology for human-computer interaction. In addition to using mobile phone touch operations, the touch screen of the terminal can also be operated with a stylus. By touching or writing on the terminal with the stylus, the terminal can perform corresponding functions.

[0003] Considering the noise interference of the terminal's display itself or the noise interference in the environment, the terminal usually adjusts the display's operating frequency (i.e., frequency hopping) to reduce noise interference. The terminal also controls the stylus to hop frequencies to ensure touch interaction between the display and the stylus. However, during the frequency hopping process between the stylus and the display, the stylus can easily break while writing on the display, affecting the user experience. Summary of the Invention

[0004] To overcome the problems existing in the related art, the present disclosure provides a frequency hopping control method, device, electronic device, stylus, storage medium and computer program product.

[0005] According to a first aspect of an embodiment of the present disclosure, a frequency hopping control method is provided, including:

[0006] When it is detected that the operating frequency of the display screen of the electronic device needs to be adjusted, controlling the display screen to perform a first frequency hopping operation; the first frequency hopping operation is used to adjust the operating frequency of the display screen;

[0007] When the electronic device initiates frequency hopping control of the display screen, controlling the stylus connected to the electronic device to perform a second frequency hopping operation; the second frequency hopping operation is used to adjust the operating frequency of the stylus;

[0008] Acquire first frequency information of the display screen and second frequency information of the stylus pen; the first frequency information indicates the operating frequency of the display screen; the second frequency information indicates the operating frequency of the stylus pen;

[0009] In a case where the operating frequency of the display screen and the operating frequency of the stylus are the same, it is determined that both the display screen and the stylus have successfully performed frequency hopping.

[0010] In some embodiments, when it is detected that the operating frequency of the display screen of the electronic device needs to be adjusted, controlling the display screen to perform a first frequency hopping operation includes:

[0011] Initiating delayed frequency hopping control of the display screen when it is detected that the operating frequency of the display screen needs to be adjusted; the delayed frequency hopping control is used by the electronic device to control the display screen to perform the first frequency hopping operation when the initiation time of the delayed frequency hopping control exceeds a first preset time;

[0012] When the electronic device initiates frequency hopping control of the display screen, controlling the stylus pen connected to the electronic device to perform a second frequency hopping operation includes:

[0013] When the electronic device initiates the delayed frequency hopping control, the stylus is controlled to perform the second frequency hopping operation.

[0014] In some embodiments, when the electronic device initiates frequency hopping control of the display screen, controlling the stylus connected to the electronic device to perform a second frequency hopping operation includes:

[0015] When it is detected that the operating frequency of the display screen needs to be adjusted and the stylus is not in contact with the display screen, frequency hopping control of the display screen and the stylus is initiated simultaneously.

[0016] In some embodiments, the method further comprises:

[0017] When it is detected that the operating frequency of the display screen of the electronic device needs to be adjusted and the stylus is in contact with the display screen, suspending the initiation of the frequency hopping control;

[0018] When the stylus pen is out of contact with the display screen, frequency hopping control of the display screen and the stylus pen is initiated simultaneously.

[0019] In some embodiments, the method further comprises:

[0020] In a case where the initiated duration of the frequency hopping control exceeds a second preset duration, if the display screen and / or the stylus pen fails to frequency hop successfully, the frequency hopping control of the display screen and / or the stylus pen is re-initiated.

[0021] In some embodiments, the method further comprises:

[0022] If the number of times the electronic device initiates frequency hopping control reaches a preset maximum number and the stylus fails to successfully hop frequency, the display screen is controlled to perform a third frequency hopping operation according to the operating frequency of the stylus; wherein the third frequency hopping operation is used to adjust the operating frequency of the display screen to the operating frequency of the stylus.

[0023] In some embodiments, the method further comprises:

[0024] Receive a pressure data packet sent by the stylus; wherein the pressure data packet is a data packet periodically sent by the stylus within the signal detection height range supported by the display screen; the pressure data packet includes: pressure information and the second frequency information.

[0025] In some embodiments, the method further comprises:

[0026] When the operating frequency of another stylus connected to the electronic device is different from the operating frequency of the display screen, the other stylus is controlled to perform a fourth frequency hopping operation according to the operating frequency of the display screen; wherein the fourth frequency hopping operation is used to adjust the operating frequency of the other stylus to the operating frequency of the display screen.

[0027] According to a second aspect of an embodiment of the present disclosure, a frequency hopping control method is provided, including:

[0028] In response to the frequency hopping control initiated by the electronic device, adjusting the current operating frequency of the stylus;

[0029] When the stylus enters the signal detection height range supported by the display screen of the electronic device, the stylus periodically sends a pressure data packet to the electronic device; the pressure data packet includes at least: pressure information and second frequency information; the second frequency information indicates the current operating frequency of the stylus; the second frequency information is used by the electronic device to determine whether the frequency hopping control of the stylus is completed.

[0030] According to a third aspect of an embodiment of the present disclosure, a frequency hopping control device is provided, including:

[0031] A first control module is configured to control the display screen of the electronic device to perform a first frequency hopping operation when it is detected that the operating frequency of the display screen needs to be adjusted; the first frequency hopping operation is used to adjust the operating frequency of the display screen;

[0032] a second control module configured to control the stylus connected to the electronic device to perform a second frequency hopping operation when the electronic device initiates frequency hopping control of the display screen; the second frequency hopping operation is used to adjust the operating frequency of the stylus;

[0033] an acquisition module configured to acquire first frequency information of the display screen and second frequency information of the stylus pen; the first frequency information indicates the operating frequency of the display screen; the second frequency information indicates the operating frequency of the stylus pen;

[0034] The determination module is configured to determine that the frequency hopping control of the display screen and the stylus is completed when the operating frequency of the display screen and the operating frequency of the stylus are the same.

[0035] In some embodiments, the first control module is configured to initiate delayed frequency hopping control of the display screen when it is detected that the operating frequency of the display screen needs to be adjusted; the delayed frequency hopping control is used by the electronic device to control the display screen to perform the first frequency hopping operation when the initiation duration of the delayed frequency hopping control exceeds a first preset duration;

[0036] The second control module is configured to control the stylus to perform the second frequency hopping operation when the electronic device initiates the delayed frequency hopping control.

[0037] In some embodiments, the second control module is configured to simultaneously initiate frequency hopping control of the display screen and the stylus when detecting that the operating frequency of the display screen needs to be adjusted and the stylus is not in contact with the display screen.

[0038] In some embodiments, the second control module is configured to suspend initiating the frequency hopping control when it detects that the operating frequency of the display screen of the electronic device needs to be adjusted and the stylus is in contact with the display screen; and to initiate frequency hopping control of the display screen and the stylus at the same time when the stylus is not in contact with the display screen.

[0039] In some embodiments, the determination module is configured to re-initiate frequency hopping control of the display screen and / or stylus if the initiated duration of the frequency hopping control exceeds a second preset duration and the display screen and / or stylus fails to frequency hop successfully.

[0040] In some embodiments, the determination module is configured to control the display screen to perform a third frequency hopping operation according to the operating frequency of the stylus if the number of times the electronic device initiates frequency hopping control reaches a preset maximum number and the stylus fails to successfully hop frequency; wherein the third frequency hopping operation is used to adjust the operating frequency of the display screen to the operating frequency of the stylus.

[0041] In some embodiments, the acquisition module is configured to receive a pressure data packet sent by the stylus; wherein the pressure data packet is a data packet periodically sent by the stylus within the signal detection height range supported by the display screen; the pressure data packet includes: pressure information and the second frequency information.

[0042] In some embodiments, the second control module is configured to control the other stylus to perform a fourth frequency hopping operation according to the operating frequency of the display screen when the operating frequency of the other stylus connected to the electronic device is different from the operating frequency of the display screen; wherein the fourth frequency hopping operation is used to adjust the operating frequency of the other stylus to the operating frequency of the display screen.

[0043] According to a fourth aspect of an embodiment of the present disclosure, a frequency hopping control device is provided, including:

[0044] an adjustment module configured to adjust a current operating frequency of the stylus in response to a frequency hopping control initiated by the electronic device;

[0045] A sending module is configured to periodically send a pressure data packet to the electronic device when the stylus enters a signal detection height range supported by the display screen of the electronic device; the pressure data packet includes at least: pressure information and second frequency information; the second frequency information indicates the current operating frequency of the stylus; the second frequency information is used by the electronic device to determine whether the frequency hopping control of the stylus is completed.

[0046] According to a fifth aspect of the embodiments of the present disclosure, there is provided an electronic device, including:

[0047] processor;

[0048] memory for storing computer programs or instructions;

[0049] The processor executes the computer program or instruction to implement the frequency hopping control method shown in the first aspect of the embodiment of the present disclosure.

[0050] According to a sixth aspect of an embodiment of the present disclosure, there is provided a stylus pen, including:

[0051] processor;

[0052] memory for storing computer programs or instructions;

[0053] The processor executes the computer program or instruction to implement the frequency hopping control method shown in the second aspect of the embodiment of the present disclosure.

[0054] According to the seventh aspect of the embodiments of the present disclosure, a non-temporary computer-readable storage medium is provided, which stores a computer program or instructions, and is characterized in that when the computer program or instructions in the storage medium are executed by a processor, the frequency hopping control method shown in the first aspect or the second aspect of the embodiments of the present disclosure is implemented.

[0055] According to an eighth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program or instructions. When the computer program or instructions are executed by a processor, the frequency hopping control method shown in the first aspect or the second aspect of the embodiment of the present disclosure is implemented.

[0056] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:

[0057] In the disclosed embodiment, when the electronic device detects that the operating frequency of the display screen needs to be adjusted, it controls the display screen to perform a first frequency hopping operation to adjust the operating frequency of the display screen. Furthermore, to achieve touch interaction between the display screen and the stylus, when the electronic device initiates frequency hopping control of the display screen, it controls the stylus to perform a second frequency hopping operation, thereby achieving concurrent execution of the frequency hopping control of the display screen and the stylus. This eliminates the need to wait for the display screen (or stylus) to complete the frequency hopping before notifying the stylus (or display screen) to perform the frequency hopping operation. This effectively shortens the time difference between the frequency hopping time of the display screen and the frequency hopping time of the stylus, thereby reducing the occurrence of stylus writing interruptions.

[0058] Furthermore, after initiating frequency hopping control of the display screen and stylus, the electronic device obtains the first frequency information of the display screen and the second frequency information of the stylus to determine whether the display screen and the stylus are operating at the same frequency, that is, whether both the display screen and the stylus have successfully executed frequency hopping. In this way, by monitoring the operating frequencies of the display screen and the stylus after initiating frequency hopping control of the display screen and the stylus, the electronic device can timely monitor the frequency hopping status of the stylus and the display screen, ensuring that the touch interaction between the display screen and the stylus is not affected, thereby improving the user experience.

[0059] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0061] Figure 1 A flow chart of a frequency hopping control method according to an exemplary embodiment is shown. Figure 1 .

[0062] Figure 2 A flow chart of a frequency hopping control method according to an exemplary embodiment is shown. Figure 2 .

[0063] Figure 3 This is a schematic diagram of an interactive process of a frequency hopping control method according to an exemplary embodiment. Figure 1 .

[0064] Figure 4 The figure is a schematic diagram showing a stylus sending a pressure data packet according to an exemplary embodiment.

[0065] Figure 5 This is a schematic diagram of an interactive process of a frequency hopping control method according to an exemplary embodiment. Figure 2 .

[0066] Figure 6 This is a schematic diagram of an interactive process of a frequency hopping control method according to an exemplary embodiment. Figure 3 .

[0067] Figure 7 This is a schematic diagram of an interactive process of a frequency hopping control method according to an exemplary embodiment. Figure 4 .

[0068] Figure 8 This is a schematic diagram of an interactive process of a frequency hopping control method according to an exemplary embodiment. Figure 5 .

[0069] Figure 9 A frequency hopping control device frame according to an exemplary embodiment is shown Figure 1 .

[0070] Figure 10 A frequency hopping control device frame according to an exemplary embodiment is shown Figure 2 .

[0071] Figure 11 is a structural block diagram of an electronic device 1100 according to an exemplary embodiment. DETAILED DESCRIPTION

[0072] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0073] Figure 1 A flow chart of a frequency hopping control method according to an exemplary embodiment is shown. Figure 1 .like Figure 1 As shown, the method includes the following steps:

[0074] Step S101: When it is detected that the operating frequency of the display screen of the electronic device needs to be adjusted, the display screen is controlled to perform a first frequency hopping operation; the first frequency hopping operation is used to adjust the operating frequency of the display screen;

[0075] Step S102, when the electronic device initiates frequency hopping control of the display screen, controlling the stylus pen connected to the electronic device to perform a second frequency hopping operation; the second frequency hopping operation is used to adjust the operating frequency of the stylus pen;

[0076] Step S103, obtaining first frequency information of the display screen and second frequency information of the stylus; the first frequency information indicates the operating frequency of the display screen; the second frequency information indicates the operating frequency of the stylus;

[0077] Step S104 : When the operating frequency of the display screen and the operating frequency of the stylus are the same, it is determined that both the display screen and the stylus have successfully performed frequency hopping.

[0078] The frequency hopping control method shown in the embodiment of the present disclosure can be applied to an electronic device with a touch display screen; the electronic device may include a mobile terminal and a fixed terminal, the mobile terminal may be a smart phone, a tablet computer, a laptop computer, etc.; the fixed terminal may be a desktop computer, a smart large screen, etc.

[0079] In the embodiment of the present disclosure, a communication connection is established between the electronic device and the stylus pen, and the communication connection may be a short-range communication connection.

[0080] In some embodiments, the communication connection may include at least one of the following: WIFI communication connection, Bluetooth communication connection, infrared communication connection, near field communication (NFC) connection, ultra wideband (UWB) communication connection, etc.

[0081] It is understandable that the user can write on the display screen of the electronic device using a stylus pen to input corresponding information into the electronic device.

[0082] In step S101, when the electronic device detects that the operating frequency of a display screen of the electronic device needs to be adjusted, that is, when it is detected that the display screen has a frequency hopping requirement, the electronic device controls the display screen to perform a first frequency hopping operation.

[0083] Here, the operating frequency of the display screen may be the display frequency or the display frame rate of the display screen, that is, the number of refreshes of the image displayed on the display screen per second.

[0084] It should be noted that there are many reasons why the operating frequency of the display screen needs to be adjusted during the use of the electronic device, for example, the adjustment of the operating frequency of the display screen is manually triggered by the user; or the operating frequency of the display screen needs to be adjusted due to noise interference, etc.

[0085] Therefore, when it is detected that the display screen has a frequency hopping requirement, the electronic device can initiate frequency hopping control of the display screen, so that the display screen performs a first frequency hopping operation and switches the operating frequency of the display screen.

[0086] In some embodiments, when it is detected that the operating frequency of a display screen of an electronic device needs to be adjusted, controlling the display screen to perform a first frequency hopping operation includes:

[0087] In response to a frequency hopping request initiated by the display screen, a driving module of the electronic device sends a first frequency hopping instruction to the display screen; the frequency hopping request is used to request adjustment of the operating frequency of the display screen; the first frequency hopping instruction is used to control the display screen to perform a first frequency hopping operation.

[0088] It should be noted that the first frequency hopping operation is an operation performed by the display screen, for example, the display screen switches from a first frequency to a second frequency. The electronic device controls the display screen to perform the first frequency hopping operation by performing a control operation (e.g., frequency hopping control). For example, the electronic device transmits a first frequency hopping instruction so that the display screen performs the first frequency hopping operation according to the first frequency hopping instruction.

[0089] It is worth noting that the initiation time of the frequency hopping control for the display screen can be understood as the execution time of the electronic device performing the frequency hopping control, that is, the sending time of the electronic device sending the first frequency hopping instruction to the display screen.

[0090] It should be noted that the electronic device may include: a display screen and a driving module.

[0091] When the driving module receives a frequency hopping request initiated by the display screen, the driving module may send a first frequency hopping instruction to the display screen to control the display screen to perform a first frequency hopping operation.

[0092] Here, the frequency hopping request is used to request adjustment of the operating frequency of the display screen.

[0093] In some embodiments, the frequency hopping request is sent when the display screen is interfered by noise.

[0094] It should be noted that if the frequency difference between the operating frequency of the display screen and the signal frequency of the received noise signal is within a preset range, it is determined that the display screen is interfered by noise.

[0095] It should be noted that interference noise is likely to occur during the use of the terminal, making it difficult for the display screen to respond to the user's touch. For example, a terminal with a capacitive touch display screen is likely to generate interference noise during the charging process.

[0096] To avoid noise interference, the display screen may initiate a frequency hopping request to the terminal to request switching of the current operating frequency of the display screen so that the frequency difference between the operating frequency of the display screen and the signal frequency of the received noise signal is not within a preset range.

[0097] In some embodiments, the frequency hopping request may carry information indicating the target frequency.

[0098] In some embodiments, the frequency hopping request may carry a frequency number; different frequency numbers correspond to different frequencies.

[0099] It should be noted that the electronic device pre-stores the mapping relationship between frequency numbers and frequencies. When the display screen has a frequency hopping requirement, the display screen can determine the target frequency and the frequency number corresponding to the target frequency; and initiate a frequency hopping request carrying the frequency number.

[0100] After receiving the frequency hopping request containing the frequency number, the driver module can send a first frequency hopping instruction containing the frequency number to the display. It is worth noting that the frequency number contained in the first frequency hopping instruction can be the same as the frequency number contained in the frequency hopping request. This allows the display to hop to the requested target frequency.

[0101] In step S102, when the electronic device initiates frequency hopping control of the display screen, the electronic device controls the stylus pen to perform a second frequency hopping operation.

[0102] Here, the second frequency hopping operation is used to adjust the operating frequency of the stylus.

[0103] In some embodiments, controlling a stylus connected to the electronic device to perform a second frequency hopping operation includes:

[0104] The driving module sends a second frequency hopping instruction to the stylus via short-range communication; the second frequency hopping instruction is used to control the stylus to perform a second frequency hopping operation.

[0105] The driving module may send a second frequency hopping instruction to the stylus via short-range communication to control the stylus to perform the second frequency hopping operation.

[0106] It should be noted that the short-range communication mode can be determined based on the communication connection between the electronic device and the stylus. For example, the communication connection between the electronic device and the stylus is a Bluetooth connection; the driver module can send the second frequency hopping instruction to the stylus via the Bluetooth communication module.

[0107] It should be noted that the second frequency hopping operation is an operation performed by the stylus, for example, the stylus performs a switching operation from the first frequency to the second frequency. The electronic device controls the stylus to perform the second frequency hopping operation by performing a control operation (e.g., frequency hopping control). For example, the electronic device performs a sending operation of the second frequency hopping instruction so that the stylus can perform the second frequency hopping operation according to the second frequency hopping instruction.

[0108] It is worth noting that the initiation time of the frequency hopping control for the stylus can be understood as the execution time of the electronic device performing the frequency hopping control, that is, the sending time of the electronic device sending the second frequency hopping instruction to the stylus.

[0109] It is worth noting that the initiation time of the frequency hopping control for the display screen can be understood as the sending time of the electronic device sending the first frequency hopping instruction to the display screen.

[0110] In some embodiments, the second frequency hopping instruction may carry a frequency number.

[0111] It is worth noting that the frequency number carried by the first frequency hopping instruction is the same as the frequency number carried by the second frequency hopping instruction, so as to ensure that the display screen and the stylus can hop to the same operating frequency.

[0112] It should be noted that in order to achieve touch interaction between the stylus and the terminal display, it is necessary to maintain frame synchronization between the stylus and the display, that is, the stylus and the display operate at the same frequency to ensure that the display can accurately obtain touch information from the stylus.

[0113] Typically, while a display screen displays a frame of image, only a portion of the time is available for downlink signal acquisition. Furthermore, the time period during which the display screen acquires downlink signals from the stylus may also vary depending on the display screen's operating frequency. Because the stylus and terminal are two independent systems, by aligning the stylus and display screen with the same frequency, the stylus can send downlink signals to the display screen during the time period during which the display screen can acquire downlink signals.

[0114] It is worth noting that in the embodiments of the present disclosure, the frequency hopping control of the display screen by the electronic device and the frequency hopping control of the stylus by the electronic device are executed concurrently. In other words, during the frequency hopping control process initiated by the electronic device, the execution time of the frequency hopping control of the stylus by the electronic device and the execution time of the frequency hopping control of the display screen by the electronic device overlap to a certain extent.

[0115] In related technologies, after receiving a frequency hopping request from a display, a terminal typically sends a frequency hopping instruction to the stylus to control the frequency hopping. Once the stylus completes the frequency hopping, it notifies the terminal. The terminal then sends a frequency hopping instruction to the display to control the frequency hopping. Alternatively, the terminal first sends a frequency hopping instruction to the display to control the frequency hopping. Once the display completes the frequency hopping, it notifies the terminal. The terminal then sends a frequency hopping instruction to the stylus to control the frequency hopping. This ensures that the stylus and display continue to operate at the same frequency after the frequency hopping.

[0116] In other words, the frequency hopping control of the display screen and the stylus by the electronic device is serial control, that is, the electronic device can perform frequency hopping control on either the display screen or the stylus only after completing the frequency hopping control on the other device.

[0117] However, this frequency hopping control method will result in a large time difference between the frequency hopping time of the display screen and the frequency hopping time of the stylus. That is, there will be a long period of time when the operating frequency of the display screen is inconsistent with the operating frequency of the stylus, which will affect the display screen's detection of the downlink signal sent by the stylus, causing the stylus to easily break when writing on the display screen, affecting the user experience.

[0118] In step S103 , the electronic device may obtain first frequency information from the display screen and obtain second frequency information from the stylus pen.

[0119] Here, the first frequency information indicates the operating frequency of the display screen; and the second frequency information indicates the operating frequency of the stylus pen.

[0120] It is understandable that the display screen and the stylus pen may send information indicating the operating frequency to the terminal after completing the frequency hopping, so as to inform the electronic device of the switched operating frequency.

[0121] In some embodiments, the display screen may periodically send first frequency information to the terminal; and the stylus pen may periodically send second frequency information to the terminal.

[0122] In step S104, the electronic device may determine whether the operating frequency of the display screen and the operating frequency of the stylus are the same based on the first frequency information and the second frequency information, thereby determining whether both the display screen and the stylus have successfully performed frequency hopping.

[0123] It is worth noting that the display screen that successfully performs frequency hopping and the stylus pen that successfully performs frequency hopping have the same operating frequency.

[0124] It can be understood that in the embodiment of the present disclosure, the frequency hopping control of the display screen by the electronic device and the frequency hopping control of the stylus by the electronic device are executed concurrently; there may be a situation where the display screen or the stylus does not receive the frequency hopping instruction, or the display screen or the stylus cannot perform the frequency hopping operation for various reasons, resulting in the operating frequency of one device in the display screen and the stylus being switched to the target frequency, while the operating frequency of the other device is not switched to the target frequency; that is, the operating frequency of the display screen is inconsistent with the operating frequency of the stylus, affecting the touch interaction between the display screen and the stylus.

[0125] Therefore, after initiating frequency hopping control of the display screen and the stylus, the electronic device can obtain the first frequency information of the display screen and the second frequency information of the stylus, so as to determine whether both the display screen and the stylus have successfully performed frequency hopping, that is, whether both the display screen and the stylus have successfully switched the operating frequency to the target frequency based on the first frequency information and the second frequency information.

[0126] In this way, if the operating frequency of one device among the display screen and the stylus is switched to the target frequency while the operating frequency of the other device is not switched to the target frequency, the electronic device can be informed in time so as to take some remedial measures.

[0127] When the electronic device detects that the operating frequency of the display needs to be adjusted, it controls the display to perform a first frequency hopping operation to adjust the display's operating frequency. Furthermore, to enable touch interaction between the display and the stylus, when the electronic device initiates frequency hopping control of the display, it controls the stylus to perform a second frequency hopping operation, thereby achieving concurrent execution of the frequency hopping control of the display and the stylus. This eliminates the need to wait for the display (or stylus) to complete the frequency hopping before notifying the stylus (or display) to perform the frequency hopping operation. This effectively shortens the time difference between the display's frequency hopping operation and the stylus's frequency hopping operation, thereby reducing the risk of stylus writing interruptions.

[0128] Furthermore, after initiating frequency hopping control of the display screen and stylus, the electronic device obtains the first frequency information of the display screen and the second frequency information of the stylus to determine whether the display screen and the stylus are operating at the same frequency, that is, whether both the display screen and the stylus have successfully executed frequency hopping. In this way, by monitoring the operating frequencies of the display screen and the stylus after initiating frequency hopping control of the display screen and the stylus, the electronic device can timely monitor the frequency hopping status of the stylus and the display screen, ensuring that the touch interaction between the display screen and the stylus is not affected, thereby improving the user experience.

[0129] When it is detected that the operating frequency of a display screen of the electronic device needs to be adjusted, controlling the display screen to perform a first frequency hopping operation includes:

[0130] Initiating delayed frequency hopping control of the display screen when it is detected that the operating frequency of the display screen needs to be adjusted; the delayed frequency hopping control is used for the electronic device to control the display screen to perform a first frequency hopping operation when the delayed frequency hopping control has been initiated for a period exceeding a first preset period;

[0131] When the electronic device initiates frequency hopping control of the display screen, controlling the stylus pen connected to the electronic device to perform a second frequency hopping operation includes:

[0132] When the electronic device initiates the delayed frequency hopping control, the stylus is controlled to perform a second frequency hopping operation.

[0133] It should be noted that delayed frequency hopping control can be a delayed control operation performed by an electronic device; it can be understood that the electronic device performs a delayed control operation to perform a control operation (such as frequency hopping control) after a first preset time length at the current moment (the moment of performing the delayed control operation) to control the display screen to perform the first frequency hopping operation.

[0134] For example, when the electronic device detects that the operating frequency of the display screen needs to be adjusted, the electronic device starts a timer, and after the timing duration of the timer reaches a first preset duration, the electronic device executes the sending operation of the first frequency hopping instruction so that the display screen can perform the first frequency hopping operation according to the first frequency hopping instruction.

[0135] In an embodiment of the present disclosure, when the electronic device detects that the operating frequency of the display screen needs to be adjusted, it initiates delayed frequency hopping control of the display screen; and while initiating the delayed frequency hopping control, it controls the stylus to perform a second frequency hopping operation.

[0136] It's understandable that the electronic device initiates frequency hopping control of the stylus at the same time as it initiates delayed frequency hopping control of the display. From the perspective of the timing of sending the frequency hopping instructions, the electronic device first sends the second frequency hopping instruction to the stylus, and then sends the first frequency hopping instruction to the display after sending the second frequency hopping instruction for a first preset duration. That is, the first frequency hopping instruction is sent later than the second frequency hopping instruction.

[0137] It should be noted that the display screen is part of the electronic device, and the stylus is independent of the electronic device. Therefore, the transmission time required for the first frequency hopping instruction to be transmitted to the display screen will be longer than the transmission time required for the second frequency hopping instruction to be transmitted to the stylus.

[0138] In this case, if the electronic device sends the first frequency hopping instruction and the second frequency hopping instruction at the same time, the display screen will receive the first frequency hopping instruction earlier than the stylus will receive the second frequency hopping instruction, and the display screen's frequency hopping time will also be earlier than the stylus's frequency hopping time.

[0139] In order to reduce the time difference between the frequency hopping time of the display screen and the frequency hopping time of the stylus, the electronic device first sends a second frequency hopping instruction to the stylus, and then sends a first frequency hopping instruction to the display screen after sending the second frequency hopping instruction for a first preset time.

[0140] Here, the first preset duration can be set according to actual needs.

[0141] In some embodiments, the first preset duration may be determined according to a duration difference between a transmission duration required for the first frequency hopping instruction and a transmission duration required for the second frequency hopping instruction.

[0142] It can be understood that the first preset duration is determined based on the difference between the transmission duration required for the first frequency hopping instruction and the transmission duration required for the second frequency hopping instruction; after the electronic device sends the second frequency hopping instruction for the first preset duration, it sends the first frequency hopping instruction again, so that the time when the display screen receives the first frequency hopping instruction is the same as or similar to the time when the stylus receives the second frequency hopping instruction; so that the display screen and the stylus can perform frequency hopping synchronously.

[0143] The disclosed embodiment initiates frequency hopping control of the stylus pen at the same time as initiating delayed frequency hopping control of the display screen, thereby making the time for the display screen to perform the first frequency hopping operation the same as or similar to the time for the stylus pen to perform the second frequency hopping operation, shortening the time difference between the frequency hopping time of the display screen and the frequency hopping time of the stylus pen, reducing the occurrence of stylus pen writing disconnections, and improving the user experience.

[0144] In some embodiments, when the electronic device initiates frequency hopping control of the display screen, controlling a stylus connected to the electronic device to perform a second frequency hopping operation includes:

[0145] When it is detected that the operating frequency of the display screen needs to be adjusted and the stylus is not in contact with the display screen, frequency hopping control of the display screen and the stylus is initiated simultaneously.

[0146] In an embodiment of the present disclosure, when it is detected that the operating frequency of the display screen needs to be adjusted, the electronic device determines the relative position relationship between the stylus pen and the display screen.

[0147] It should be noted that the relative position relationship between the stylus pen and the display screen may include: the stylus pen is in contact with the display screen, and the stylus pen is not in contact with the display screen.

[0148] In some embodiments, the electronic device may determine the relative position relationship between the stylus and the display screen based on pressure information sent by the stylus.

[0149] Here, the pressure information may be used to indicate a pressure value sensed by the stylus pen.

[0150] It is worth noting that a stylus pen is usually equipped with a pressure sensor to obtain pressure information. It is understood that when the tip of the stylus pen contacts an object (such as a display screen), the pressure sensor can generate pressure information based on the pressure received.

[0151] The electronic device receives pressure information sent by the stylus pen and determines the relative position relationship between the stylus pen and the display screen according to the pressure value indicated by the pressure information.

[0152] It is understandable that if the pressure value indicated by the pressure information is zero, it is determined that the stylus is not in contact with the display screen; if the pressure value indicated by the pressure information is not zero, it is determined that the stylus is in contact with the display screen.

[0153] When the electronic device determines that the stylus pen is not in contact with the display screen, it can initiate frequency hopping control of the display screen and the stylus pen at the same time.

[0154] It is worth noting that in the disclosed embodiment, when it is detected that the operating frequency of the display screen needs to be adjusted and the stylus is not in contact with the display screen, the first frequency hopping instruction and the second frequency hopping instruction are sent simultaneously. It is understandable that although the transmission time required for the first frequency hopping instruction is shorter than the transmission time required for the second frequency hopping instruction, sending the first and second frequency hopping instructions simultaneously will cause the display screen to receive the first frequency hopping instruction earlier than the stylus receives the second frequency hopping instruction, thereby causing the display screen's frequency hopping time to also be earlier than the stylus's frequency hopping time.

[0155] However, since the stylus is not in contact with the display screen, even if the display screen's frequency hopping time is earlier than the stylus's frequency hopping time, the stylus writing will not be interrupted, that is, the user cannot perceive the frequency hopping time difference between the display screen and the stylus.

[0156] The embodiment of the present disclosure simultaneously initiates frequency hopping control of the stylus pen and the display screen when it is detected that the operating frequency of the display screen needs to be adjusted and the stylus pen is not in contact with the display screen. As a result, even if the frequency hopping time of the stylus pen and the frequency hopping time of the display screen are inconsistent, the inconsistency in the operating frequencies of the stylus pen and the display screen will not be perceived by the user because the stylus pen and the display screen are not in contact.

[0157] In some embodiments, the method further comprises:

[0158] When it is detected that the operating frequency of the display screen of the electronic device needs to be adjusted and the stylus is in contact with the display screen, suspending the initiation of frequency hopping control;

[0159] When the stylus pen is not in contact with the display screen, frequency hopping control of the display screen and the stylus pen is initiated simultaneously.

[0160] In an embodiment of the present disclosure, when it is detected that the operating frequency of the display screen needs to be adjusted and the stylus is in contact with the display screen, the electronic device may suspend frequency hopping control of the display screen and the stylus.

[0161] It is understandable that since the transmission time required for the first frequency hopping instruction is different from the transmission time required for the second frequency hopping instruction, if the electronic device sends the first frequency hopping instruction and the second frequency hopping instruction at the same time, it will cause a certain time difference between the frequency hopping time of the display screen and the frequency hopping time of the stylus; if the stylus is currently in contact with the display screen, the display screen and the stylus cannot achieve touch interaction within this time difference.

[0162] In order to reduce the occurrence of the above situation, the electronic device can suspend the frequency hopping control of the display screen and the stylus when it detects that the operating frequency of the display screen needs to be adjusted and the stylus is in contact with the display screen. In this way, the stylus and the display screen continue to operate at the current frequency to maintain frame synchronization between the stylus and the display screen.

[0163] In addition, the electronic device can detect the relative position relationship between the stylus and the display screen in real time. When it is detected that the stylus is separated from the display screen, that is, when the stylus is not in contact with the display screen, frequency hopping control of the display screen and the stylus is initiated simultaneously.

[0164] The disclosed embodiment of the present invention can suspend the initiation of frequency hopping control of the display screen and the stylus when it is detected that the operating frequency of the display screen needs to be adjusted and the stylus is in contact with the display screen, and then initiate frequency hopping control of the stylus and the display screen when it is detected that the stylus and the display screen are not in contact. Therefore, even if the frequency hopping time of the stylus and the display screen are inconsistent, the inconsistency of the operating frequencies of the stylus and the display screen will not be perceived by the user because the stylus and the display screen are not in contact.

[0165] In some embodiments, the method further comprises:

[0166] When the initiated duration of the frequency hopping control exceeds the second preset duration, if the display screen and / or the stylus pen fails to frequency hop successfully, the frequency hopping control of the display screen and / or the stylus pen is re-initiated.

[0167] In an embodiment of the present disclosure, when the duration of the initiated frequency hopping control of the display screen and / or stylus by the electronic device exceeds a second preset duration, the electronic device can determine whether the display screen and / or stylus has successfully frequency-hopped based on the first frequency information and the second frequency information.

[0168] Here, the second preset duration can be set according to actual needs.

[0169] When initiating frequency hopping control of a display screen and / or stylus, the electronic device may start a timer. During the timer's timing, the terminal may receive first frequency information sent by the display screen and second frequency information sent by the stylus, thereby determining whether the stylus and display screen have successfully executed the first frequency hopping instruction based on the first and second frequency information.

[0170] If the electronic device determines based on the first frequency information and the second frequency information that the display screen and / or stylus has not successfully hopped frequency and the initiated time of the frequency hopping control exceeds the second preset time length, the electronic device re-initiates the frequency hopping control of the display screen and / or stylus.

[0171] It should be noted that during the timer's timing process, the electronic device may receive multiple first frequency information and multiple second frequency information; if the timer reaches the second preset duration and determines that the stylus has not successfully jumped frequency based on the most recently received second frequency information, the electronic device can re-initiate frequency hopping control of the display screen and stylus.

[0172] During the process of the electronic device initiating frequency hopping control of the stylus pen and display, if the communication connection between the stylus pen and the electronic device is abnormal, or the display screen is turned off, the display screen and / or stylus may fail to perform the frequency hopping operation, resulting in the current operating frequency of the display screen being different from the current operating frequency of the stylus pen.

[0173] Based on this, in order to enable both the display screen and the stylus to operate at the target frequency, the electronic device may re-initiate frequency hopping control of the display screen and / or the stylus.

[0174] In some embodiments, within a second preset time period after initiating frequency hopping control of the display screen and / or stylus, if both the display screen and the stylus successfully perform frequency hopping, it is determined that the electronic device completes frequency hopping control of the display screen and the stylus.

[0175] It is understood that within the second preset time period after the electronic device initiates frequency hopping control of the display screen and / or stylus, if the electronic device determines based on the first frequency information and the second frequency information that both the display screen and the stylus are operating at the target frequency, it can be determined that both the display screen and the stylus have successfully frequency-hopped. The electronic device completes frequency hopping control of the display screen and the stylus.

[0176] When the electronic device initiates frequency hopping control of the display screen and / or the stylus, or when the electronic device re-initiates frequency hopping control of the display screen and / or the stylus, the electronic device starts a timer. During the timer's timing, the terminal can obtain the first frequency information of the display screen and the second frequency information of the stylus, so as to determine whether the stylus and the display screen have successfully frequency-hopped based on the first frequency information and the second frequency information. If it is determined that both the display screen and the stylus have successfully frequency-hopped and the timer has not reached the second preset duration, the terminal can stop the timer.

[0177] The disclosed embodiment can determine whether the display screen and the stylus have successfully frequency-hopped when the initiated duration of the frequency-hopping control exceeds a second preset duration; and re-initiate frequency-hopping control of the display screen and / or the stylus when the display screen and / or the stylus have not successfully frequency-hopped; in this way, when the display screen and / or the stylus fail to frequency-hop, the frequency-hopping control of the display screen and / or the stylus can be re-initiated in time to remedy the situation, thereby ensuring that the stylus and the display screen can operate at the same frequency.

[0178] In some embodiments, the method further comprises:

[0179] If the electronic device initiates frequency hopping control a maximum number of times and the stylus fails to hop frequency successfully, the display screen is controlled to perform a third frequency hopping operation according to the operating frequency of the stylus; wherein the third frequency hopping operation is used to adjust the operating frequency of the display screen to the operating frequency of the stylus.

[0180] In an embodiment of the present disclosure, when the electronic device determines that the stylus pen and / or display screen has not successfully hopped frequency, the electronic device will re-initiate frequency hopping control of the display screen and / or stylus pen; and after a preset time period of re-initiating frequency hopping control, it will again determine whether the stylus pen and / or display screen has successfully hopped frequency.

[0181] If the stylus pen and / or display screen still fails to successfully hop frequency, the electronic device will continue to initiate frequency hopping control of the display screen and / or stylus pen.

[0182] Considering that in the process of continuously initiating frequency hopping control of the display screen and / or stylus, the operating frequencies of the stylus and the display screen remain different, the stylus may be disconnected for a long time when the user uses it, seriously affecting the user experience.

[0183] In this regard, the electronic device can pre-set a maximum number of times. When the number of times the electronic device re-initiates frequency hopping control to the display screen and / or stylus reaches the maximum number, if the stylus still fails to successfully hop frequency, the electronic device will not continue to initiate frequency hopping control of the stylus; instead, it will control the display screen to perform a third frequency hopping operation, so that the operating frequency of the display screen is adjusted to the operating frequency of the stylus, thereby ensuring that the display screen and the stylus can operate at the same frequency.

[0184] Here, the maximum number of times can be set according to actual needs, for example, 5 times.

[0185] It is understandable that since the operating frequency of the display screen will have a certain impact on the image display effect of the display screen, when the electronic device determines that the stylus pen has not successfully jumped the frequency, it will usually re-initiate the frequency hopping control of the stylus pen so that the stylus pen can adjust the operating frequency to be consistent with the display screen.

[0186] However, when the electronic device initiates frequency hopping control a maximum number of times and the stylus still fails to successfully execute frequency hopping, it can be determined that the stylus has a certain fault and cannot receive or respond to the second frequency hopping instruction.

[0187] Based on this, in order to achieve frame synchronization between the stylus and the display, the electronic device can control the display to perform a third frequency hopping operation so that the operating frequency of the display is adjusted to the operating frequency of the stylus, thereby ensuring that the display and the stylus can operate at the same frequency.

[0188] In the embodiment of the present disclosure, when the electronic device has initiated frequency hopping control for a maximum number of times and the stylus has still failed to successfully hop frequency, the display screen is controlled to perform a third frequency hopping operation, so that the operating frequency of the display screen is adjusted to the operating frequency of the stylus, so that the display screen and the stylus work at the same frequency again; this ensures that touch interaction can be achieved between the display screen and the stylus.

[0189] In some embodiments, the method further comprises:

[0190] Receive a pressure data packet sent by the stylus; wherein the pressure data packet is a data packet periodically sent by the stylus within the signal detection height range supported by the display screen; the pressure data packet includes: pressure information and second frequency information.

[0191] In the embodiment of the present disclosure, the pressure data packet is a data packet periodically sent when the stylus enters the signal detection height range supported by the display screen. The pressure data packet may include: pressure information and second frequency information.

[0192] Here, the signal detection height range supported by the display screen may be a detection height range in which the display screen can detect the uplink signal of the stylus.

[0193] It is understandable that the stylus packages the pressure information and the second frequency information into a pressure data packet, and thus can inform the terminal of the pressure information and the second frequency information by sending the pressure data packet, thereby effectively saving communication resources.

[0194] The electronic device can receive the pressure data packet sent by the stylus to obtain the pressure information and second frequency information carried in the pressure data, so as to perform corresponding processing according to the pressure information and / or the second frequency information in subsequent processing.

[0195] After sending the second frequency hopping instruction to the stylus, the electronic device may receive a pressure data packet sent by the stylus, thereby determining whether the stylus has successfully frequency-hopped based on the second frequency information in the pressure data packet.

[0196] When the electronic device detects that the operating frequency of the display screen needs to be adjusted, it can determine the relative position relationship between the stylus and the display screen based on the pressure information in the pressure data packet sent by the stylus, so as to initiate frequency hopping control of the display screen and the stylus at the same time when the stylus and the display screen are not in contact.

[0197] In some embodiments, the method further comprises:

[0198] When the operating frequency of another stylus pen connected to the electronic device is different from the operating frequency of the display screen, the other stylus pen is controlled to perform a fourth frequency hopping operation according to the operating frequency of the display screen; wherein the fourth frequency hopping operation is used to adjust the operating frequency of the other stylus pen to the operating frequency of the display screen.

[0199] In an embodiment of the present disclosure, the electronic device may be connected to at least two styluses; after the electronic device completes frequency hopping control of one stylus and a display screen, the electronic device may obtain third frequency information of another stylus, so as to determine whether the operating frequency of the other stylus is the same as the operating frequency of the display screen based on the third frequency information.

[0200] When the operating frequency of the other stylus is different from the operating frequency of the display screen, the electronic device may control the other stylus to perform a fourth frequency hopping operation so that the other stylus adjusts its operating frequency to the operating frequency of the display screen.

[0201] It should be noted that when an electronic device that is already connected to a stylus (i.e., the first stylus) establishes a communication connection with another stylus (i.e., the second stylus), since the display screen of the electronic device and the first stylus are already operating at the same frequency, when the operating frequency of the second stylus is different from the operating frequency of the display screen, the electronic device can control the second stylus to perform a fourth frequency hopping operation, so that the second stylus adjusts its own operating frequency according to the operating frequency of the display screen; thereby achieving frame synchronization between the second stylus and the display screen without affecting the display screen and the first stylus.

[0202] In an embodiment of the present disclosure, when the operating frequency of another stylus connected to the electronic device is inconsistent with the operating frequency of the display screen, the other stylus is controlled to perform a fourth frequency hopping operation so that the other stylus performs frequency hopping according to the operating frequency of the display screen. This can not only make the stylus and the display screen operate at the same frequency, thereby realizing touch interaction between the stylus and the display screen; but also reduce the number of frequency hopping times between the display screen and at least one stylus previously connected, thereby reducing the power of the display screen and the at least one stylus previously connected to the display screen.

[0203] Figure 2 A flow chart of a frequency hopping control method according to an exemplary embodiment is shown. Figure 2 .like Figure 2 As shown, the method mainly includes the following steps:

[0204] Step S201, in response to the frequency hopping control initiated by the electronic device, adjusting the current operating frequency of the stylus;

[0205] In step S202, when the stylus enters the signal detection height range supported by the display screen of the electronic device, the stylus periodically sends a pressure data packet to the electronic device; the pressure data packet includes at least: pressure information and second frequency information; the second frequency information indicates the current operating frequency of the stylus; the second frequency information is used by the electronic device to determine whether the frequency hopping control of the stylus is completed.

[0206] The frequency hopping control method shown in the embodiment of the present disclosure can be applied to a stylus pen, which can provide input to a connected electronic device, and the electronic device performs an operation in response to the input based on the input of the stylus pen.

[0207] The stylus pen may include but is not limited to an inductive stylus and a capacitive stylus, wherein the capacitive stylus may include a passive capacitive stylus and an active capacitive stylus.

[0208] In step S201, when the stylus receives a first frequency hopping instruction sent by the electronic device, in response to the first frequency hopping instruction, the stylus adjusts the operating frequency to the target frequency indicated by the first frequency hopping instruction.

[0209] It should be noted that the first frequency hopping instruction may be the first frequency hopping instruction sent by the electronic device to the stylus when it detects that the operating frequency of the display screen needs to be adjusted; or, the first frequency hopping instruction may be the frequency hopping instruction resent by the electronic device after determining that the stylus has not successfully hopped frequency.

[0210] In step S202 , after the stylus completes frequency hopping, when the stylus enters the signal detection height range supported by the display screen, the stylus may periodically send pressure data packets to the electronic device.

[0211] It should be noted that when the stylus pen enters the signal detection height range supported by the display screen, it can be understood that the stylus pen is able to receive the uplink signal of the display screen.

[0212] The stylus can detect the distance between the stylus and the display screen. If the distance between the stylus and the display screen is less than or equal to a preset height threshold, it means that the stylus has entered the signal detection height range supported by the display screen.

[0213] The pressure data packet may include: pressure information and second frequency information.

[0214] It is understandable that the stylus packages the pressure information and the second frequency information into a pressure data packet, and thus can inform the electronic device of the pressure information and the second frequency information by sending the pressure data packet, thereby effectively saving communication resources.

[0215] The pressure information may be used to indicate the pressure value sensed by the stylus.

[0216] It is worth noting that a stylus pen is usually equipped with a pressure sensor to obtain pressure information. It is understood that when the tip of the stylus pen contacts an object (such as a display screen), the pressure sensor can generate pressure information based on the pressure received.

[0217] It should be noted that the pressure information can be used by the electronic device to determine the relative position relationship between the stylus pen and the display screen.

[0218] It is understandable that if the pressure value indicated by the pressure information is zero, it is determined that the stylus is not in contact with the display screen; if the pressure value indicated by the pressure information is not zero, it is determined that the stylus is in contact with the display screen.

[0219] The second frequency information indicates the operating frequency of the stylus pen, and the second frequency information can be used by the electronic device to determine whether the frequency hopping control of the stylus pen is completed. Alternatively, the second frequency information can be used by the electronic device to determine whether the frequency hopping of the stylus pen is successful.

[0220] It should be noted that when the stylus enters the signal detection height range supported by the display screen, the stylus can use the pressure sensor to obtain pressure information and determine the second frequency information based on the current operating frequency, thereby packaging the pressure information and the second frequency information to send the packaged pressure data packet to the electronic device; so that the electronic device can perform corresponding processing based on the second frequency information and / or pressure information in the pressure data packet.

[0221] In some embodiments, when the stylus is not within the signal detection height range supported by the display screen, the stylus stops sending pressure data packets to the electronic device.

[0222] If the stylus is not within the signal detection height range supported by the display, it means that the stylus is far away from the electronic device, which means that the user may not need to use the stylus. In this case, to reduce the power consumption of the stylus, the stylus can stop sending pressure data packets to the electronic device.

[0223] In the embodiment of the present disclosure, the stylus carries the second frequency information in the pressure data packet so that when the stylus sends the pressure data packet to the electronic device, it informs the electronic device of the current operating frequency of the stylus; thereby, the stylus does not need to send the pressure information and the second frequency information to the electronic device separately, thereby reducing the number of information exchanges between the stylus and the electronic device and saving communication resources.

[0224] In addition, when the stylus enters the signal detection height range supported by the display, that is, when the user is about to touch or write on the display with the stylus, it sends a pressure data packet to the electronic device so that the electronic device can determine whether the stylus and the display are operating at the same frequency. If it does not enter the signal detection height range supported by the display, the electronic device stops sending pressure data packets, thereby reducing unnecessary pressure data packet transmission and lowering the power consumption of the stylus.

[0225] In some embodiments, when the stylus enters a signal detection height range supported by the display screen, periodically sending a pressure data packet to the electronic device includes:

[0226] When the stylus enters a signal detection height range supported by the display screen and the stylus is not in contact with the display screen, periodically sending a pressure data packet to the terminal at a first time interval;

[0227] When the stylus enters the signal detection height range supported by the display screen and the stylus is in contact with the display screen, a pressure data packet is periodically sent to the terminal at a second time interval; wherein the first time interval is greater than the second time interval.

[0228] In an embodiment of the present disclosure, when the stylus enters the signal detection height range supported by the display screen, the stylus may first determine the relative position relationship between the stylus and the display screen, so as to determine the time interval for periodically sending pressure data packets to the electronic device based on the relative position relationship between the stylus and the display screen.

[0229] It should be noted that the relative position relationship between the stylus pen and the display screen may include: the stylus pen is in contact with the display screen, and the stylus pen is not in contact with the display screen.

[0230] The stylus can determine the relative position relationship between the stylus and the display screen according to the pressure value sensed by the pressure sensor.

[0231] It can be understood that when the stylus enters the signal detection height range supported by the display screen and the stylus is not in contact with the display screen, the stylus periodically sends pressure data packets to the electronic device at longer time intervals; when the stylus is in contact with the display screen, the stylus periodically sends pressure data packets to the electronic device at shorter time intervals.

[0232] Because when the stylus is in contact with the display, the operating frequency of the stylus is different from the operating frequency of the display, the stylus may be disconnected when writing on the display, affecting the user experience. When the stylus is not in contact with the display, even if the operating frequency of the stylus is different from the operating frequency of the display, it will not affect the normal display of the display.

[0233] Therefore, after the electronic device initiates frequency hopping control of the stylus and display, in order to effectively shorten the time difference between the stylus's frequency hopping time and the display's frequency hopping time, the stylus can periodically send pressure data packets to the electronic device at different time intervals based on the relative position of the stylus and the display. In this way, when the stylus is in contact with the display, the stylus periodically sends pressure data packets at a shorter time interval, allowing the electronic device to determine whether the stylus has successfully hopped.

[0234] In some embodiments, the time interval for sending the pressure data packets is proportional to the distance between the stylus and the display screen.

[0235] It is understandable that when the stylus enters the signal detection height range supported by the display screen, the stylus periodically sends pressure data packets to the electronic device.

[0236] If the distance between the stylus and the display screen is large, the stylus can periodically send pressure data packets to the electronic device at a larger sending time interval; as the distance between the stylus and the display screen gradually decreases, the time interval for the stylus to send pressure data packets also gradually decreases.

[0237] As a result, the stylus begins to enter the signal detection height range supported by the display screen, and the electronic device can promptly learn the current operating frequency of the stylus until the stylus contacts the display screen.

[0238] For example, the present disclosure also provides a frequency hopping control method, such as Figure 3 As shown, Figure 3 This is a schematic diagram of an interactive process of a frequency hopping control method according to an exemplary embodiment. Figure 1 .

[0239] Depend on Figure 3 It can be seen that when the touch screen detects that the signal strength of the noise signal accumulates to a certain level, it can initiate a frequency hopping request to the touch screen driver. Here, the frequency hopping request carries the touch screen identifier and frequency number.

[0240] The touch screen driver sends a frequency hopping instruction to the stylus in response to the frequency hopping request initiated by the touch screen; and after sending the frequency hopping instruction to the stylus, it sends the frequency hopping instruction to the touch screen at an interval of T2.

[0241] The touch screen driver sends the frequency parameter corresponding to the frequency number to the stylus via Bluetooth; and after the stylus driver sends the frequency parameter to the stylus, the stylus driver sends a frequency hopping instruction to the touch screen at an interval of T2.

[0242] In the disclosed embodiment, the stylus pen drives and controls the stylus pen and the touch screen to perform parallel frequency hopping, that is, the stylus pen and the touch screen perform frequency hopping operations separately, and there is no need to wait until the stylus pen frequency hopping is completed before notifying the touch screen to hop frequency.

[0243] It's worth noting that after the stylus driver sends the frequency hopping command to the stylus, it delays before sending the frequency hopping command to the touchscreen, ensuring that the difference between the stylus's frequency hopping time and the touchscreen's frequency hopping time is within one frame. This allows for seamless frequency hopping, meaning that frequency hopping occurs while the user is writing with the stylus without affecting the stylus's writing.

[0244] After receiving the frequency parameter, the stylus updates the operating frequency according to the frequency parameter, and after completing the operating frequency update, sends a pressure data packet carrying the current operating frequency of the stylus to the touch screen driver.

[0245] It is understandable that the stylus can send a pressure data packet carrying the current operating frequency of the stylus to the touch screen driver via Bluetooth.

[0246] In some embodiments, in order to balance power consumption and the immediacy of stylus frequency transmission, a pressure data packet carrying the current operating frequency of the stylus is sent to the touch screen driver when the stylus is able to receive an uplink signal; and a pressure data packet carrying the current operating frequency of the stylus is not sent to the touch screen driver when the stylus is unable to receive an uplink.

[0247] Usually the uplink detection height is usually 20mm. When a user wants to write on the terminal with a stylus, there will inevitably be a process of approaching from far to near. There is a period of time when the stylus is suspended above the touch screen but has not yet touched the touch screen. The stylus can complete the transmission of pressure data packets during this period. Figure 4 As shown, Figure 4 The figure is a schematic diagram showing a stylus sending a pressure data packet according to an exemplary embodiment.

[0248] After receiving the frequency hopping instruction, the touch screen updates the operating frequency according to the frequency hopping instruction; and after completing the operating frequency update, the touch screen sends a data packet carrying the current operating frequency of the touch screen to the touch screen driver.

[0249] The touch screen driver determines that the operating frequencies of the touch screen and the stylus are consistent within a preset time period after sending the frequency hopping instruction, and ends the frequency hopping control.

[0250] Here, the preset duration can be set according to actual needs, for example, the preset duration can be 300ms.

[0251] It is worth noting that the comparison of the operating frequencies of the stylus pen and touch screen is performed in real time, not at the 300ms mark. If the operating frequencies of the stylus pen and touch screen are determined to be consistent at the 100ms mark, the frequency hopping is considered complete and the frequency hopping control ends early.

[0252] If the frequency comparison result of the touch screen and stylus is inconsistent within 300ms, the touch screen driver will not immediately initiate a new frequency hopping; if the operating frequencies of the touch screen and stylus are still inconsistent after this time, it can be considered that the frequency hopping has failed. At this time, the touch screen driver needs to initiate a second frequency hopping to the stylus. Figure 5 As shown, Figure 5 This is a schematic diagram of an interactive process of a frequency hopping control method according to an exemplary embodiment. Figure 2 .

[0253] After receiving the frequency parameter, the stylus updates the operating frequency according to the frequency parameter, and after completing the operating frequency update, sends a pressure data packet carrying the current operating frequency of the stylus to the touch screen driver.

[0254] The touch screen driver determines within a preset time period after initiating the second frequency hopping to the stylus that the operating frequencies of the touch screen and the stylus are consistent, and ends the frequency hopping control.

[0255] If it is determined within the preset time period after the second frequency hopping is initiated to the stylus that the operating frequencies of the touch screen and the stylus are still inconsistent, the touch screen driver initiates frequency hopping to the stylus again.

[0256] If the stylus driver continuously initiates frequency hopping to the stylus, and the operating frequencies of the touch screen and the stylus are still inconsistent, the stylus driver can send a frequency hopping instruction to the touch screen to request the touch screen to adjust to the operating frequency of the stylus. After receiving the frequency hopping instruction, the touch screen will hop according to the operating frequency of the stylus, so that the touch screen and the stylus work at the same frequency. Figure 6 As shown, Figure 6 This is a schematic diagram of an interactive process of a frequency hopping control method according to an exemplary embodiment. Figure 3 .

[0257] For example, the present disclosure also provides a frequency hopping control method, such as Figure 7 As shown, Figure 7 This is a schematic diagram of an interactive process of a frequency hopping control method according to an exemplary embodiment. Figure 4 .

[0258] Depend on Figure 7It can be seen that when the touch screen detects that the signal strength of the noise signal accumulates to a certain level, it can initiate a frequency hopping request to the touch screen driver. Here, the frequency hopping request carries the touch screen identifier and frequency number.

[0259] When the touch screen driver receives the frequency hopping request initiated by the touch screen, if the stylus is in the lifted state, that is, the stylus is not in contact with the touch screen, the touch screen driver immediately sends a frequency hopping request for the stylus; at the same time, the touch screen driver sends a frequency hopping instruction to the touch screen.

[0260] In the disclosed embodiment, the stylus pen drives and controls the stylus pen and the touch screen to perform parallel frequency hopping, that is, the stylus pen and the touch screen perform frequency hopping operations separately, and there is no need to wait until the stylus pen frequency hopping is completed before notifying the touch screen to hop frequency.

[0261] It's worth noting that in this disclosed embodiment, the stylus driver simultaneously sends frequency hopping commands to the stylus and touchscreen, eliminating the need for a delay between sending the frequency hopping command to the stylus and sending it to the touchscreen. This allows the user to write with the stylus while the frequency hopping is complete, even when the stylus is lifted, without disrupting the user's writing.

[0262] If the touch screen driver receives a frequency hopping request from the touch screen while the stylus is in a non-lifted state, that is, the stylus is in contact with the touch screen, the touch screen driver will wait until the stylus switches to the lifted state before sending a frequency hopping instruction to both the stylus and the touch screen. Figure 8 As shown, Figure 8 This is a schematic diagram of an interactive process of a frequency hopping control method according to an exemplary embodiment. Figure 5 .

[0263] It is understood that upon receiving a frequency hopping request from the touchscreen, the touchscreen driver can determine whether the stylus is in the lifted state based on the pressure information in the pressure data packet sent by the stylus. If the pressure value indicated by the pressure information is not zero, it indicates that the stylus is not lifted, and the touchscreen driver will not send a frequency hopping instruction to the stylus or touchscreen.

[0264] When the pressure value indicated by the pressure information in the pressure data packet sent by the stylus is 0, the stylus sends a frequency hopping instruction to the stylus and the touch screen simultaneously.

[0265] After receiving the frequency parameter, the stylus updates the operating frequency according to the frequency parameter, and after completing the operating frequency update, sends a pressure data packet carrying the current operating frequency of the stylus to the touch screen driver.

[0266] After receiving the frequency hopping instruction, the touch screen updates the operating frequency according to the frequency hopping instruction; and after completing the operating frequency update, the touch screen sends a data packet carrying the current operating frequency of the touch screen to the touch screen driver.

[0267] The touch screen driver determines that the operating frequencies of the touch screen and the stylus are consistent within a preset time period after sending the frequency hopping instruction, and ends the frequency hopping control.

[0268] Here, the preset duration can be set according to actual needs, for example, the preset duration can be 300ms.

[0269] If the touch screen driver determines that the operating frequencies of the touch screen and the stylus are inconsistent within a preset time period after sending the frequency hopping instruction, the touch screen driver can immediately initiate a second frequency hopping to the stylus.

[0270] The touch screen driver determines within a preset time period after initiating the second frequency hopping to the stylus that the operating frequencies of the touch screen and the stylus are consistent, and ends the frequency hopping control.

[0271] If it is determined within the preset time period after the second frequency hopping is initiated to the stylus that the operating frequencies of the touch screen and the stylus are still inconsistent, the touch screen driver initiates frequency hopping to the stylus again.

[0272] If the stylus driver reaches the maximum number of retransmissions after initiating frequency hopping to the stylus, and the operating frequencies of the touchscreen and stylus are still inconsistent, the stylus driver can send a frequency hopping command to the touchscreen, requesting it to adjust to the stylus's operating frequency. Upon receiving this frequency hopping command, the touchscreen will hop to the stylus's operating frequency, ensuring that both operate at the same frequency.

[0273] Figure 9 A frequency hopping control device frame according to an exemplary embodiment is shown Figure 1 .like Figure 9 As shown, the device includes:

[0274] The first control module 901 is configured to control the display screen to perform a first frequency hopping operation when it is detected that the operating frequency of the display screen of the electronic device needs to be adjusted; the first frequency hopping operation is used to adjust the operating frequency of the display screen;

[0275] The second control module 902 is configured to control the stylus connected to the electronic device to perform a second frequency hopping operation when the electronic device initiates frequency hopping control of the display screen; the second frequency hopping operation is used to adjust the operating frequency of the stylus;

[0276] An acquisition module 903 is configured to acquire first frequency information of the display screen and second frequency information of the stylus; the first frequency information indicates the operating frequency of the display screen; the second frequency information indicates the operating frequency of the stylus;

[0277] The determination module 904 is configured to determine whether the frequency hopping control of the display screen and the stylus is completed when the operating frequency of the display screen and the operating frequency of the stylus are the same.

[0278] In some embodiments, the first control module 901 is configured to initiate delayed frequency hopping control of the display screen when it is detected that the operating frequency of the display screen needs to be adjusted; the delayed frequency hopping control is used for the electronic device to control the display screen to perform a first frequency hopping operation when the delayed frequency hopping control has been initiated for a period exceeding a first preset period;

[0279] The second control module 902 is configured to control the stylus to perform a second frequency hopping operation when the electronic device initiates delayed frequency hopping control.

[0280] In some embodiments, the second control module 902 is configured to simultaneously initiate frequency hopping control of the display screen and the stylus when detecting that the operating frequency of the display screen needs to be adjusted and the stylus is not in contact with the display screen.

[0281] In some embodiments, the second control module 902 is configured to suspend initiating frequency hopping control when it detects that the operating frequency of the display screen of the electronic device needs to be adjusted and the stylus is in contact with the display screen; and to initiate frequency hopping control of the display screen and the stylus at the same time when the stylus is not in contact with the display screen.

[0282] In some embodiments, the determination module 904 is configured to re-initiate frequency hopping control of the display screen and / or stylus if the initiated duration of the frequency hopping control exceeds a second preset duration and the display screen and / or stylus fails to frequency hop successfully.

[0283] In some embodiments, the determination module 904 is configured to control the display screen to perform a third frequency hopping operation according to the operating frequency of the stylus if the number of times the electronic device initiates frequency hopping control reaches a preset maximum number and the stylus fails to successfully hop frequency; wherein the third frequency hopping operation is used to adjust the operating frequency of the display screen to the operating frequency of the stylus.

[0284] In some embodiments, the acquisition module 903 is configured to receive a pressure data packet sent by the stylus; wherein the pressure data packet is a data packet periodically sent by the stylus within the signal detection height range supported by the display screen; the pressure data packet includes: pressure information and second frequency information.

[0285] In some embodiments, the second control module 902 is configured to control another stylus connected to the electronic device to perform a fourth frequency hopping operation according to the operating frequency of the display screen when the operating frequency of the other stylus is different from the operating frequency of the display screen; wherein the fourth frequency hopping operation is used to adjust the operating frequency of the other stylus to the operating frequency of the display screen.

[0286] Figure 10 A frequency hopping control device frame according to an exemplary embodiment is shown Figure 2.like Figure 10 As shown, the frequency hopping control state is applied to a stylus, and the device includes:

[0287] An adjustment module 1001 is configured to adjust the current operating frequency of the stylus in response to the frequency hopping control initiated by the electronic device;

[0288] The sending module 1002 is configured to periodically send a pressure data packet to the electronic device when the stylus enters the signal detection height range supported by the display screen of the electronic device; the pressure data packet includes at least: pressure information and second frequency information; the second frequency information indicates the current operating frequency of the stylus; the second frequency information is used by the electronic device to determine whether the frequency hopping control of the stylus is completed.

[0289] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0290] Figure 11 1 is a block diagram of a device 1100 according to an exemplary embodiment. For example, the electronic device 1100 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0291] Reference Figure 11 , the electronic device 1100 may include one or more of the following components: a processing component 1102 , a memory 1104 , a power component 1106 , a multimedia component 1108 , an audio component 1110 , an input / output (I / O) interface 1112 , a sensor component 1114 , and a communication component 1116 .

[0292] The processing component 1102 generally controls the overall operation of the electronic device 1100, such as operations associated with at least one of display, phone calls, data communications, camera operation, and recording operations. The processing component 1102 may include one or more processors 1120 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 1102 may include one or more modules to facilitate interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.

[0293] The memory 1104 is configured to store various types of data to support operations on the electronic device 1100. Examples of such data include at least one of the following: instructions for any application or method operating on the electronic device 1100, contact data, phone book data, messages, pictures, and videos. The memory 1104 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0294] The power supply component 1106 provides power to various components of the electronic device 1100. The power supply component 1106 may include at least one of the following: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1100.

[0295] The multimedia component 1108 includes a screen that provides an output interface between the electronic device 1100 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1108 includes a front camera and / or a rear camera. When the electronic device 1100 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

[0296] The audio component 1110 is configured to output and / or input audio signals. For example, the audio component 1110 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 1100 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio component 1110 also includes a speaker for outputting audio signals.

[0297] I / O interface 1112 provides an interface between processing component 1102 and peripheral interface modules, such as a keyboard, click wheel, and buttons. These buttons may include, but are not limited to, a home button, volume buttons, a start button, and a lock button.

[0298] Sensor assembly 1114 includes one or more sensors for providing various aspects of the status assessment of electronic device 1100. For example, sensor assembly 1114 can detect the open / closed state of electronic device 1100, the relative positioning of components, such as the display and keypad of electronic device 1100. Sensor assembly 1114 can also detect changes in the position of electronic device 1100 or a component thereof, the presence or absence of user contact with electronic device 1100, the orientation or acceleration / deceleration of electronic device 1100, and changes in the temperature of electronic device 1100. Sensor assembly 1114 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 1114 can also include an optical sensor, such as a complementary metal oxide semiconductor (CMOS) or charge coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, sensor assembly 1114 can also include, but is not limited to, at least one of the following: an accelerometer, a gyroscope, a magnetic sensor, a pressure sensor, and a temperature sensor.

[0299] The communication component 1116 is configured to facilitate communication between the electronic device 1100 and other devices in a wired or wireless manner. The electronic device 1100 can access a wireless network based on a communication standard, such as Wi-Fi, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0300] In an exemplary embodiment, the electronic device 1100 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0301] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is further provided, such as a memory 1104 including executable instructions or a computer program. The instructions or computer program can be executed by the processor 1120 of the electronic device 1100 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0302] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform any of the above-mentioned frequency hopping control methods of the embodiments of the present disclosure. For example, the method includes:

[0303] When it is detected that the operating frequency of the display screen of the electronic device needs to be adjusted, controlling the display screen to perform a first frequency hopping operation; the first frequency hopping operation is used to adjust the operating frequency of the display screen;

[0304] When the electronic device initiates frequency hopping control of the display screen, controlling the stylus connected to the electronic device to perform a second frequency hopping operation; the second frequency hopping operation is used to adjust the operating frequency of the stylus;

[0305] Acquire first frequency information of the display screen and second frequency information of the stylus; the first frequency information indicates the operating frequency of the display screen; the second frequency information indicates the operating frequency of the stylus;

[0306] In a case where the operating frequency of the display screen and the operating frequency of the stylus are the same, it is determined that both the display screen and the stylus have successfully performed frequency hopping.

[0307] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the stylus pen, enables the stylus pen to perform any of the above-mentioned frequency hopping control methods of the embodiments of the present disclosure. For example, the method includes:

[0308] In response to the frequency hopping control initiated by the electronic device, adjusting the current operating frequency of the stylus;

[0309] When the stylus enters the signal detection height range supported by the display screen, the stylus periodically sends a pressure data packet to the electronic device; the pressure data packet includes at least: pressure information and second frequency information; the second frequency information indicates the current operating frequency of the stylus; the second frequency information is used by the electronic device to determine whether the frequency hopping control of the stylus is completed.

[0310] The present disclosure provides a computer program product comprising a computer program or executable instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer program or executable instructions from the computer-readable storage medium and executes the computer program or executable instructions, causing the computer device to perform any of the frequency hopping control methods described above in the present disclosure. Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered merely as exemplary; the true scope and spirit of the present disclosure are indicated by the following claims.

[0311] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A frequency hopping control method, characterized in that: The method comprises: When it is detected that the operating frequency of the display screen of the electronic device needs to be adjusted, controlling the display screen to perform a first frequency hopping operation; the first frequency hopping operation is used to adjust the operating frequency of the display screen; When the electronic device initiates frequency hopping control of the display screen, controlling the stylus connected to the electronic device to perform a second frequency hopping operation; the second frequency hopping operation is used to adjust the operating frequency of the stylus; Acquire first frequency information of the display screen and second frequency information of the stylus pen; the first frequency information indicates the operating frequency of the display screen; the second frequency information indicates the operating frequency of the stylus pen; In a case where the operating frequency of the display screen and the operating frequency of the stylus are the same, it is determined that both the display screen and the stylus have successfully performed frequency hopping.

2. The method according to claim 1, characterized in that When it is detected that the operating frequency of the display screen of the electronic device needs to be adjusted, controlling the display screen to perform a first frequency hopping operation includes: Initiating delayed frequency hopping control of the display screen when it is detected that the operating frequency of the display screen needs to be adjusted; the delayed frequency hopping control is used by the electronic device to control the display screen to perform the first frequency hopping operation when the initiation time of the delayed frequency hopping control exceeds a first preset time; When the electronic device initiates frequency hopping control of the display screen, controlling the stylus pen connected to the electronic device to perform a second frequency hopping operation includes: When the electronic device initiates the delayed frequency hopping control, the stylus is controlled to perform the second frequency hopping operation.

3. The method according to claim 1, characterized in that When the electronic device initiates frequency hopping control of the display screen, controlling the stylus pen connected to the electronic device to perform a second frequency hopping operation includes: When it is detected that the operating frequency of the display screen needs to be adjusted and the stylus is not in contact with the display screen, frequency hopping control of the display screen and the stylus is initiated simultaneously.

4. The method according to claim 3, characterized in that The method further comprises: When it is detected that the operating frequency of the display screen of the electronic device needs to be adjusted and the stylus is in contact with the display screen, suspending the initiation of the frequency hopping control; When the stylus pen is out of contact with the display screen, frequency hopping control of the display screen and the stylus pen is initiated simultaneously.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: In a case where the initiated duration of the frequency hopping control exceeds a second preset duration, if the display screen and / or the stylus pen fails to frequency hop successfully, the frequency hopping control of the display screen and / or the stylus pen is re-initiated.

6. The method according to claim 5, characterized in that The method further comprises: If the number of times the electronic device initiates frequency hopping control reaches a preset maximum number and the stylus fails to successfully hop frequency, the display screen is controlled to perform a third frequency hopping operation according to the operating frequency of the stylus; wherein the third frequency hopping operation is used to adjust the operating frequency of the display screen to the operating frequency of the stylus.

7. The method according to claim 1, characterized in that The method further comprises: Receive a pressure data packet sent by the stylus; wherein the pressure data packet is a data packet periodically sent by the stylus within the signal detection height range supported by the display screen; the pressure data packet includes: pressure information and the second frequency information.

8. The method according to claim 1, characterized in that The method further comprises: When the operating frequency of another stylus connected to the electronic device is different from the operating frequency of the display screen, the other stylus is controlled to perform a fourth frequency hopping operation according to the operating frequency of the display screen; wherein the fourth frequency hopping operation is used to adjust the operating frequency of the other stylus to the operating frequency of the display screen.

9. A frequency hopping control method, characterized in that: The method further comprises: In response to the frequency hopping control initiated by the electronic device, adjusting the current operating frequency of the stylus; When the stylus enters the signal detection height range supported by the display screen of the electronic device, the stylus periodically sends a pressure data packet to the electronic device; the pressure data packet includes at least: pressure information and second frequency information; the second frequency information indicates the current operating frequency of the stylus; the second frequency information is used by the electronic device to determine whether the frequency hopping control of the stylus is completed.

10. A frequency hopping control device, characterized in that: The device comprises: A first control module is configured to control the display screen of the electronic device to perform a first frequency hopping operation when it is detected that the operating frequency of the display screen needs to be adjusted; the first frequency hopping operation is used to adjust the operating frequency of the display screen; a second control module configured to control the stylus connected to the electronic device to perform a second frequency hopping operation when the electronic device initiates frequency hopping control of the display screen; the second frequency hopping operation is used to adjust the operating frequency of the stylus; an acquisition module configured to acquire first frequency information of the display screen and second frequency information of the stylus pen; the first frequency information indicates the operating frequency of the display screen; the second frequency information indicates the operating frequency of the stylus pen; The determination module is configured to determine that the frequency hopping control of the display screen and the stylus is completed when the operating frequency of the display screen and the operating frequency of the stylus are the same.

11. A frequency hopping control device, characterized in that: The device comprises: an adjustment module configured to adjust a current operating frequency of the stylus in response to a frequency hopping control initiated by the electronic device; A sending module is configured to periodically send a pressure data packet to the electronic device when the stylus enters a signal detection height range supported by the display screen of the electronic device; the pressure data packet includes at least: pressure information and second frequency information; the second frequency information indicates the current operating frequency of the stylus; the second frequency information is used by the electronic device to determine whether the frequency hopping control of the stylus is completed.

12. An electronic device, characterized in that: include: processor; memory for storing computer programs or instructions; The processor executes the computer program or instruction to implement the steps of the frequency hopping control method according to any one of claims 1 to 8.

13. A touch pen, characterized in that: include: processor; memory for storing computer programs or instructions; The processor executes the computer program or instruction to implement the steps of the frequency hopping control method according to claim 9.

14. A non-transitory computer-readable storage medium storing a computer program or instruction, characterized in that: When the computer program or instructions in the storage medium are executed by a processor, the steps of the frequency hopping control method according to any one of claims 1 to 8 or 9 are implemented.

15. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the frequency hopping control method according to any one of claims 1 to 8 or 9 are implemented.