Signal interaction method and touch pen
By identifying the preamble of the uplink signal and determining the target interaction protocol, the problem of difficulty in identifying the stylus when receiving uplink signals of different lengths is solved, achieving better interaction performance and protocol compatibility.
Patent Information
- Application Number
- CN202411534524.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-02-14
AI Technical Summary
When the stylus receive uplink signals of different lengths, it is difficult to correctly identify, resulting in poor interaction performance.
By identifying the preamble of the uplink signal between the stylus and the display device, a target interaction protocol is determined, and the data portion of the uplink signal is processed according to the protocol to achieve effective interaction with the display device.
This method makes the stylus compatible with multiple interactive protocols, automatically switches different protocols, and improves the interactive performance when receiving different uplink signals.
Smart Images

Figure CN119440288A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of signal interaction, and in particular to a signal interaction method and a stylus. Background Art
[0002] With the continuous development of electronic devices, touch screens are increasingly widely used. As an input tool used in conjunction with a touch screen, a stylus can receive uplink signals from the touch screen and feed back downlink signals to the touch screen, thereby achieving interaction between the stylus and the touch screen. The interactive performance of the stylus is crucial to the user experience.
[0003] In the related art, the stylus may receive uplink signals of different lengths that are sent based on different interaction protocols. Sometimes the stylus cannot correctly identify these signals, resulting in poor interaction performance of the stylus. Summary of the invention
[0004] To this end, this application discloses the following technical solutions:
[0005] A first aspect of the present application provides a signal interaction method, which is applied to a stylus pen, and the method includes:
[0006] When the stylus pen and the display device meet a first target condition, receiving a first uplink signal sent by the display device, wherein the first uplink signal includes a first preamble portion and a first data portion;
[0007] When the stylus pen and the display device meet a second target condition, receiving a second uplink signal sent by the display device, where the second uplink signal includes a second preamble part and a second data part;
[0008] The first preamble part and the second preamble part have the same length, and the first data part and the second data part have different lengths;
[0009] Identifying, based on the preamble of the uplink signal, a target interaction protocol corresponding to the uplink signal received by the stylus;
[0010] Interact with the display device according to the target interaction protocol.
[0011] Optionally, the first preamble part includes a plurality of first preamble code elements, the second preamble part includes a plurality of second preamble code elements, and the first preamble code elements and the second preamble code elements have the same code element length;
[0012] The first data symbol of the first data portion has a first symbol length, and the second data symbol of the second data portion has a second symbol length, and the first symbol length and the second symbol length are different.
[0013] Optionally, the first data codeword is used to implement a first interactive function, and the second data codeword is used to implement a second interactive function, and the second interactive function includes the first interactive function.
[0014] Optionally, the interacting with the display device according to the target interaction protocol includes:
[0015] In a case where the target interactive protocol is a first interactive protocol, processing a first data portion of the first uplink signal based on a first symbol length to obtain a first processing result, so as to provide the first interactive function based on the first processing result;
[0016] In the case where the target interactive protocol is a second interactive protocol, a second data portion of the second uplink signal is processed based on a second symbol length to obtain a second processing result, so as to provide the second interactive function based on the second processing result.
[0017] Optionally, the interacting with the display device according to the target interaction protocol includes:
[0018] interacting with the display device through a first communication channel according to the target interaction protocol, where the first communication channel is a channel based on touch electrodes of a touch screen of the display device;
[0019] The stylus pen and the display device meet the first target condition, including:
[0020] The stylus pen is not in communication connection with the display device through the second communication channel, and the distance between the tip of the stylus pen and the touch screen of the display device is less than a distance threshold;
[0021] The stylus pen and the display device meet the second target condition, including:
[0022] The stylus pen and the display device are communicatively connected via the second communication channel, and a distance between a tip of the stylus pen and a touch screen of the display device is less than a distance threshold.
[0023] Optionally, also include:
[0024] When the stylus pen and another display device meet the first target condition, receiving a third uplink signal sent by the other display device, wherein the third uplink signal has the same format as the first uplink signal;
[0025] identifying a target interaction protocol corresponding to the third uplink signal based on a third preamble in the third uplink signal;
[0026] Interact with the other display device according to the target interaction protocol.
[0027] A second aspect of the present application provides a signal interaction method, applied to a display device, the method comprising:
[0028] When the display device and the stylus satisfy a first target condition, sending a first uplink signal to the stylus, wherein the first uplink signal includes a first preamble portion and a first data portion;
[0029] When the display device and the stylus satisfy a second target condition, sending a second uplink signal to the stylus, wherein the second uplink signal includes a second preamble portion and a second data portion;
[0030] The first preamble and the second preamble have the same length, and the first data portion and the second data portion have different lengths; the preamble of the uplink signal represents the target interaction protocol corresponding to the uplink signal;
[0031] Interact with the stylus pen according to the target interaction protocol corresponding to the uplink signal sent to the stylus pen.
[0032] Optionally, sending a first uplink signal to the stylus includes:
[0033] Determine a first interactive protocol as a target interactive protocol, send a first uplink signal to the stylus based on a first code element length corresponding to the first interactive protocol, and the first data code element of the first data part has the first code element length;
[0034] The sending a second uplink signal to the stylus includes:
[0035] Determine a second interactive protocol as a target interactive protocol, send a second uplink signal to the stylus based on a second code element length corresponding to the second interactive protocol, and the second data code element of the second data part has the second code element length;
[0036] The first codeword length is different from the second codeword length, and the first preamble codeword of the first preamble part and the second preamble codeword of the second preamble part have the same codeword length.
[0037] Optionally, the first data code element is used by the stylus pen to implement a first interactive function, and the second data code element is used by the stylus pen to implement a second interactive function, and the second interactive function includes the first interactive function.
[0038] A third aspect of the present application provides a stylus pen, comprising:
[0039] Communication modules and processors;
[0040] The communication module is used for:
[0041] When the stylus pen and the display device meet a first target condition, receiving a first uplink signal sent by the display device, wherein the first uplink signal includes a first preamble portion and a first data portion;
[0042] When the stylus pen and the display device meet a second target condition, receiving a second uplink signal sent by the display device, where the second uplink signal includes a second preamble part and a second data part;
[0043] The first preamble part and the second preamble part have the same length, and the first data part and the second data part have different lengths;
[0044] The processor is used to:
[0045] Identifying, based on the preamble of the uplink signal, a target interaction protocol corresponding to the uplink signal received by the stylus;
[0046] Interact with the display device according to the target interaction protocol.
[0047] A fourth aspect of the present application provides a display device, including a touch screen and a processor;
[0048] The processor is used to:
[0049] When the display device and the stylus satisfy a first target condition, sending a first uplink signal to the stylus, wherein the first uplink signal includes a first preamble portion and a first data portion;
[0050] When the display device and the stylus satisfy a second target condition, sending a second uplink signal to the stylus, wherein the second uplink signal includes a second preamble portion and a second data portion;
[0051] The first preamble and the second preamble have the same length, and the first data portion and the second data portion have different lengths; the preamble of the uplink signal represents the target interaction protocol corresponding to the uplink signal;
[0052] Interact with the stylus pen according to the target interaction protocol corresponding to the uplink signal sent to the stylus pen. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0054] Figure 1 is a flow chart of a signal interaction method provided in an embodiment of the present application;
[0055] Figure 2 This is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0056] Figure 3 is a schematic diagram of the working principle of a stylus provided in an embodiment of the present application;
[0057] Figure 4 is a flow chart of another signal interaction method provided in an embodiment of the present application;
[0058] Figure 5 is a schematic structural diagram of a stylus provided in an embodiment of the present application;
[0059] Figure 6 It is a structural schematic diagram of a display device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0061] The present application embodiment provides a signal interaction method applied to a stylus, see Figure 1 , is a flow chart of the method, and the method may include the following steps.
[0062] S101, when the stylus pen and the display device meet a first target condition, receiving a first uplink signal sent by the display device, where the first uplink signal includes a first preamble part and a first data part.
[0063] The display device may have at least one touch screen, and the touch screen may have a plurality of touch electrodes.
[0064] like Figure 2 As shown, after the display device is started, the touch screen can continuously send an uplink signal to the surrounding environment through the touch electrodes.
[0065] When the stylus moves toward the touch screen and the distance between the tip of the stylus and the touch screen is less than a certain threshold, the stylus can receive an uplink signal sent by the touch screen.
[0066] In this embodiment, according to different target conditions satisfied between the stylus pen and the display device, the stylus pen can receive different uplink signals sent by the display device.
[0067] For example, in step S101, when the stylus pen and the display device meet the first target condition, the stylus pen can receive a first uplink signal sent by the display device.
[0068] The stylus pen and the display device satisfying the first target condition may include:
[0069] The stylus pen is not in communication connection with the display device through the second communication channel, and the distance between the tip of the stylus pen and the touch screen of the display device is less than a distance threshold.
[0070] In this embodiment, the stylus pen can receive the uplink signal sent by the display device through the touch electrode, and can also send the downlink signal that the touch electrode can receive through the pen tip. Therefore, the channel between the stylus pen and the display device based on the touch electrode of the touch screen of the display device can be recorded as the first communication channel.
[0071] The second communication channel may be a channel different from the first communication channel. Figure 2 For example, the second communication channel can be a Bluetooth communication channel, that is, the stylus pen and the display device meet the first target condition, which may include: the stylus pen has not established a Bluetooth connection with the display device, and the distance between the tip of the stylus pen and the touch screen of the display device is less than a distance threshold.
[0072] The stylus pen and the display device meet the first target condition and may also include:
[0073] The stylus supports the first interaction protocol but does not support the second interaction protocol, and the distance between the tip of the stylus and the touch screen of the display device is less than a distance threshold;
[0074] Or include:
[0075] The display device supports the first interaction protocol but does not support the second interaction protocol, and the distance between the tip of the stylus pen and the touch screen of the display device is less than a distance threshold.
[0076] The first interactive protocol is an interactive protocol for sending a first uplink signal, that is, the display device can send the first uplink signal to the stylus based on the first interactive protocol.
[0077] The distance threshold may be related to the sensitivity and signal power of the stylus pen tip and the touch electrode of the touch screen, which is not limited in this embodiment.
[0078] S102, when the stylus pen and the display device meet a second target condition, receiving a second uplink signal sent by the display device, where the second uplink signal includes a second preamble part and a second data part.
[0079] In step S102, the stylus pen and the display device meet the second target condition, which may include:
[0080] The stylus pen and the display device are communicatively connected via a second communication channel, and a distance between a tip of the stylus pen and a touch screen of the display device is less than a distance threshold.
[0081] When the second communication channel is a Bluetooth communication channel, the stylus pen and the display device meet the second target condition, which may include: the stylus pen has established a Bluetooth connection with the display device, and the distance between the tip of the stylus pen and the touch screen of the display device is less than a distance threshold.
[0082] The stylus pen and the display device meet the second target condition, which may also include:
[0083] The stylus does not support the first interaction protocol but supports the second interaction protocol, and the distance between the tip of the stylus and the touch screen of the display device is less than a distance threshold;
[0084] Or include:
[0085] The display device does not support the first interaction protocol but supports the second interaction protocol, and the distance between the tip of the stylus pen and the touch screen of the display device is less than a distance threshold.
[0086] The second interactive protocol is an interactive protocol for sending a second uplink signal, that is, the display device can send the second uplink signal to the stylus based on the second interactive protocol.
[0087] S103, identifying a target interaction protocol corresponding to the uplink signal received by the stylus based on the preamble of the uplink signal; the first preamble and the second preamble have the same length, and the first data and the second data have different lengths.
[0088] Each uplink signal sent by the display device includes a preamble part and a data part, wherein the preamble part may include a fixed-length signal at the beginning of the uplink signal, and the data part may include the part of the uplink signal other than the preamble part.
[0089] For example, the preamble may include a 93 microsecond (us) portion of the signal at the beginning of the uplink signal, and the rest of the signal is used as the data portion.
[0090] Since the lengths of the preambles of different uplink signals are the same, the display device can encode the preamble of the uplink signal based on a fixed code element length, the stylus can identify the preamble of the uplink signal based on the fixed code element length, and further can identify the target interaction protocol corresponding to the uplink signal according to the information represented by the preamble.
[0091] That is, the first preamble part may include multiple first preamble symbols, the second preamble part may include multiple second preamble symbols, and the first preamble symbol and the second preamble symbol have the same symbol length. The first preamble symbol and the second preamble symbol may represent different codes, for example, the first preamble symbol may represent the code 001, and the second preamble symbol may represent the code 011.
[0092] As an example, the code element length of the preamble may be 31us, that is, a signal segment of every 31us in the preamble may represent a 0 or 1. Thus, a preamble of 93 microseconds may carry three code elements. The stylus recognizes the preamble of the uplink signal based on the code element length of 31us, and may obtain a three-bit binary code corresponding to the preamble, such as 110, 100, 010, 001, etc. This code may be called the leading code of the uplink signal.
[0093] When the display device sends an uplink signal, it can obtain a preamble code representing the target interaction protocol corresponding to the uplink signal and encode the preamble code in the leading part of the uplink signal. After the stylus receives the uplink signal, it can identify the preamble code based on the fixed code length of the leading code element, and then determine the target interaction protocol corresponding to the uplink signal.
[0094] Exemplarily, if the leading code recognized by the stylus from the preamble part is 100, it can be determined that the target interaction protocol corresponding to the uplink signal is the first interaction protocol, and the uplink signal is the first uplink signal; if the leading code recognized by the stylus from the preamble part is 011, it can be determined that the target interaction protocol corresponding to the uplink signal is the second interaction protocol, and the uplink signal is the second uplink signal.
[0095] The above first interaction protocol and the second interaction protocol are only examples. In some embodiments, the identified target interaction protocol may be any one of three or more interaction protocols, and is not limited to the first interaction protocol and the second interaction protocol.
[0096] S104, interacting with the display device according to the target interaction protocol.
[0097] After the target interaction protocol is determined, the stylus pen can interact with the display device through the first communication channel according to the target interaction protocol.
[0098] For example, if the target interaction protocol is the first interaction protocol, the stylus pen may send a downlink signal to the display device through the first communication channel according to the first interaction protocol, and simultaneously recognize the data portion of the first uplink signal sent by the display device according to the first interaction protocol, so as to realize the interaction between the stylus pen and the display device;
[0099] If the target interaction protocol is the second interaction protocol, the stylus can send a downlink signal to the display device through the first communication channel according to the second interaction protocol, and at the same time recognize the data part of the second uplink signal sent by the display device according to the second interaction protocol to achieve interaction between the stylus and the display device.
[0100] When the stylus pen is actually used, the stylus pen and the display device may always meet the first target condition, or always meet the second target condition, or may first meet the first target condition and then meet the second target condition, or may first meet the second target condition and then meet the first target condition. Depending on the actual scenario, the stylus pen may not execute step S101, or may not execute step S102, or may first execute S102 and then S101, or may first execute S101 and then S102.
[0101] In one example, when the stylus pen is in contact with the touch screen of a display device, the Bluetooth function of the display device is in an off state, and no Bluetooth connection is established between the stylus pen and the display device. At this time, the first target condition is met, the stylus pen receives a first uplink signal, and interacts with the display device based on a first interaction protocol corresponding to the first uplink signal. After a period of time, the Bluetooth function of the display device is turned on, and the stylus pen and the display device establish a Bluetooth connection. At this time, the second target condition is met, the stylus pen receives a second uplink signal, and interacts with the display device based on a second interaction protocol corresponding to the second uplink signal.
[0102] In another example, when the stylus pen touches the touch screen of a display device, the stylus pen has established a Bluetooth connection with the display device. At this time, the second target condition is met, the stylus pen receives a second uplink signal, and interacts with the display device based on a second interaction protocol corresponding to the second uplink signal. After a period of time, the Bluetooth connection between the display device and the stylus pen is disconnected. At this time, the first target condition is met, the stylus pen receives a first uplink signal, and interacts with the display device based on a first interaction protocol corresponding to the first uplink signal.
[0103] The beneficial effects of this embodiment are described as follows.
[0104] During use, the stylus may receive uplink signals of different lengths based on different interaction protocols. For example, when the stylus is used on one touch screen, it receives an uplink signal based on a first interaction protocol, and when it is used on another touch screen, it receives an uplink signal based on a second interaction protocol; or, when it is used on the same touch screen, if the touch screen's Bluetooth is not connected, it may receive an uplink signal based on the first interaction protocol, and if the touch screen's Bluetooth is connected, it may receive an uplink signal based on the second interaction protocol.
[0105] In the related art, some styluses are not compatible with multiple interactive protocols, resulting in the inability to recognize uplink signals based on some interactive protocols. For example, when the stylus is not compatible with the first interactive protocol, the uplink signal based on the first interactive protocol cannot be recognized; some styluses are compatible with multiple interactive protocols, but require users to manually switch between different protocols. For example, users need to manually connect the stylus to the Bluetooth of the touch screen before switching from the first interactive protocol to the second interactive protocol. Without manual connection, the signal based on the second interactive protocol cannot be recognized. The above situations will obviously cause the stylus to be unable to correctly recognize these signals, making the interactive performance of the stylus poor.
[0106] In the solution of this embodiment, under different target conditions, after the stylus receives any uplink signal (the first uplink signal or the second uplink signal), it can identify the target interaction protocol corresponding to the uplink signal according to the fixed-length preamble part in the uplink signal, and then can interact with the display device based on the target interaction protocol of the uplink signal. Based on the method of this embodiment, the stylus is not only compatible with multiple interaction protocols, but also can automatically switch between different interaction protocols according to the received uplink signal, thereby improving the interaction performance of the stylus when receiving uplink signals based on different interaction protocols.
[0107] The data part of the uplink signal may also be composed of multiple data symbols. The first data part may include multiple first data symbols, and the first data symbols of the first data part have a first symbol length, the second data part may include multiple second data symbols, and the second data symbols of the second data part have a second symbol length, and the first symbol length and the second symbol length are different.
[0108] For example, the first symbol length may be greater than the second symbol length, or may be less than the second symbol length.
[0109] Data symbols of different symbol lengths can be used to implement different interactive functions. For example, the first data symbol can be used to implement the first interactive function, and the second data symbol can be used to implement the second interactive function. Further, in the case where the first symbol length is greater than the second symbol length, the smaller symbol length enables the second data portion to carry more information within a signal of limited length, so that the second interactive function can include the first interactive function.
[0110] See also Figure 3 After receiving the uplink signal, the stylus can process the data part of the uplink signal based on different code element lengths according to different target interaction protocols, and then provide different interaction functions based on the data part.
[0111] For example, when the target interactive protocol is a first interactive protocol, a first data portion of a first uplink signal is processed based on a first symbol length to obtain a first processing result, so as to provide a first interactive function based on the first processing result;
[0112] When the target interactive protocol is the second interactive protocol, the second data portion of the second uplink signal is processed based on the second symbol length to obtain a second processing result, so as to provide a second interactive function based on the second processing result.
[0113] When the target interactive protocol is the first interactive protocol, the first symbol length may be 31 us, and the first uplink signal received by the stylus pen may be represented by the following Table 1. The duration of the first uplink signal may be 372 us.
[0114] Table 1
[0115]
[0116] The stylus can identify the 8 binary codes of the first data part based on the first code element length, namely Bit3 to Bit10 in Table 1. Each code can be 1 or 0. After obtaining these codes, the stylus can obtain the first processing result based on these codes. The first processing result may include the screen type and refresh rate of the touch screen.
[0117] The first interactive function provided by the stylus based on the first processing result may be:
[0118] The stylus determines the time interval for sending downlink signals to the touch screen based on the screen type and refresh rate, and then periodically sends downlink signals to the display device at this time interval. The display device can determine the position of the stylus tip relative to the touch screen based on the received downlink signal, and perform corresponding operations based on the position, for example, displaying the interactive interface of the application at that position, displaying the movement trajectory of the pen tip based on the position of the pen tip over a period of time, etc.
[0119] When the target interactive protocol is the second interactive protocol, the second symbol length may be 15 us, and the second uplink signal received by the stylus pen may be represented by the following Table 2. The duration of the second uplink signal may be 363 us.
[0120] Table 2
[0121]
[0122] In the example of Table 2, the stylus can identify multiple binary codes of the second data part based on the second code element length, namely Bit3 to Bit20 in Table 2. After obtaining these codes, the stylus can obtain the second processing result according to these codes. The second processing result may include the screen type, refresh rate, and movement speed and tilt angle of the stylus relative to the stylus. For example, Bit9 and Bit10 represent the tilt angle of the stylus in the Y-axis direction, and Bit11 and Bit12 represent the tilt angle of the stylus in the X-axis direction. In Bit13 to Bit18, the first three binary codes and the last three binary codes can represent the movement speed of the stylus in the X-axis direction and the Y-axis direction of the touch screen, respectively, and Bit19 and Bit20 are used as check bits.
[0123] In other examples, the second data portion may also include more second data symbols to represent more binary codes, not limited to Bit3 to Bit18 in the above example, so that more binary codes may be used to represent the information in the second processing result. For example, the moving speed of the stylus in the X-axis direction and the Y-axis direction may be represented by 6 binary codes respectively, and 3 or more binary codes may be used as check bits, etc., which will not be described in detail.
[0124] The second interactive function provided by the stylus based on the second processing result may include:
[0125] On the one hand, the stylus determines the time interval for sending downlink signals to the touch screen according to the screen type and refresh rate, and then periodically sends downlink signals to the display device according to the time interval. The display device can determine the position of the stylus tip relative to the touch screen according to the received downlink signal, and perform corresponding operations according to the position, for example, displaying the interactive interface of the application at the position, and displaying the movement track of the stylus tip based on the position of the stylus tip within a period of time;
[0126] On the other hand, the stylus controls the vibration module installed on the stylus to output a corresponding vibration signal according to information such as the moving speed and tilt angle of the stylus relative to the stylus in the second processing result, thereby providing vibration feedback to the user of the stylus.
[0127] During use, the stylus pen of this embodiment can also interact with different display devices in sequence according to the user's operation.
[0128] For example, the stylus can be based on Figure 1 The corresponding embodiment interacts with a display device. After a period of time, based on the user's operation, the stylus can interact with another display device in the following manner:
[0129] When the stylus pen and another display device meet the first target condition, receiving a third uplink signal sent by another display device, where the third uplink signal has the same format as the first uplink signal;
[0130] identifying a target interaction protocol corresponding to the third uplink signal based on a third preamble portion in the third uplink signal;
[0131] Interact with another display device according to the target interaction protocol.
[0132] The implementation of the above steps can refer to the part about the first uplink signal and the first interactive protocol in the above embodiment, which will not be described in detail.
[0133] As an example, an application scenario of the above embodiment may be:
[0134] The user uses the stylus to perform a touch operation on the first display device, such as clicking, drawing, writing, etc. At this time, the stylus and the first display device have established a Bluetooth connection. Therefore, when the stylus is used to perform a touch operation on the first display device, the stylus and the first display device meet the second target condition, and the stylus receives the second uplink signal, and interacts with the first display device based on the second interaction protocol corresponding to the second uplink signal to provide a second interaction function;
[0135] After a period of time, the user moves the stylus away from the first display device, and uses the stylus to perform touch operations on the second display device. At this time, the stylus and the first display device do not meet the first target condition and the second target condition, and the stylus does not receive the uplink signal sent by the first display device. When performing touch operations on the second display device, the stylus and the second display device do not establish a Bluetooth connection. Therefore, the stylus and the second display device meet the first target condition, and the stylus receives the third uplink signal sent by the second display device, and interacts with the second display device based on the first interaction protocol corresponding to the third uplink signal to provide the first interaction function.
[0136] Optionally, the stylus may also receive a fourth uplink signal sent by another display device when the stylus and the other display device meet the second target condition, the fourth uplink signal having the same format as the second uplink signal; identify a target interaction protocol corresponding to the fourth uplink signal based on a fourth preamble in the fourth uplink signal; and interact with the other display device according to the target interaction protocol.
[0137] Optionally, the stylus may first interact with another display device and then interact with Figure 1 Interact with the display device in an embodiment.
[0138] In this embodiment, when the stylus is used to perform touch operations on different display devices, it can identify the target interaction protocol of the uplink signal sent by different display devices according to different target conditions met, so as to interact with the display device currently being touched according to the target interaction protocol to provide corresponding interactive functions. Therefore, the stylus of this solution can automatically be compatible with different uplink signals sent by different display devices without manual operation by the user, thereby improving the interactive performance of the stylus.
[0139] The present application also provides a signal interaction method, which is applied to a display device. Figure 4 , is a flow chart of the method, and the method may include the following steps.
[0140] S401, when the display device and the stylus satisfy a first target condition, sending a first uplink signal to the stylus, where the first uplink signal includes a first preamble portion and a first data portion.
[0141] S402 : When the display device and the stylus satisfy a second target condition, send a second uplink signal to the stylus, where the second uplink signal includes a second preamble portion and a second data portion.
[0142] S403, interacting with the stylus according to the target interaction protocol corresponding to the uplink signal sent to the stylus, the first preamble part and the second preamble part have the same length, and the first data part and the second data part have different lengths; the preamble part of the uplink signal represents the target interaction protocol corresponding to the uplink signal.
[0143] In this embodiment, the display device may choose to transmit the first uplink signal or the second uplink signal to the surrounding environment according to whether the display device is connected to the stylus through the second communication channel. For example, the display device may transmit the first uplink signal when it is not connected to the stylus through the second communication channel, and transmit the second uplink signal when it is connected to the stylus through the second communication channel. In this way, when the distance between the tip of the stylus and the touch screen of the display device is less than a distance threshold, the first target condition or the second target condition may be met between the stylus and the display device, and the stylus may receive the first uplink signal or the second uplink signal transmitted by the display device.
[0144] Alternatively, the display device may also determine whether to transmit the first uplink signal or the second uplink signal based on the interaction protocol it supports. For example, if the display device supports the first interaction protocol but does not support the second interaction protocol, the display device transmits the first uplink signal based on the first interaction protocol. When the display device supports the second interaction protocol but does not support the first interaction protocol, the display device transmits the second uplink signal based on the second interaction protocol.
[0145] After determining which uplink signal to send, the display device may encode a preamble code representing an interactive protocol corresponding to the uplink signal and information to be carried in the uplink signal to obtain a corresponding uplink signal.
[0146] For example, when determining to send a first uplink signal, the display device can determine the first interactive protocol as the target interactive protocol, send the first uplink signal to the stylus based on the first code element length corresponding to the first interactive protocol, and the first data code element of the first data part has the first code element length.
[0147] Among them, the display device can encode the leading code representing the first interactive protocol to form the first preamble part of the first uplink signal, and encode the screen type and refresh rate of the touch screen into each first data code element contained in the first data part based on the first code element length, thereby obtaining the first uplink signal composed of the first preamble part and the first data part, and then the first uplink signal can be transmitted to the surrounding environment.
[0148] When determining to send a second uplink signal, the display device can determine the second interactive protocol as the target interactive protocol, and send a second uplink signal to the stylus based on a second code element length corresponding to the second interactive protocol, wherein the second data code element of the second data part has a second code element length.
[0149] Among them, the display device can encode the leading code representing the second interactive protocol to form the second preamble part of the second uplink signal, and encode the screen type, refresh rate, movement speed and tilt angle of the stylus relative to the stylus into each second data code element contained in the second data part based on the second code element length, thereby obtaining the second uplink signal composed of the second preamble part and the second data part, and then the second uplink signal can be transmitted to the surrounding environment.
[0150] The first codeword length and the second codeword length are different, and the first preamble codeword of the first preamble part and the second preamble codeword of the second preamble part have the same codeword length.
[0151] When encoding the uplink signal, the display device may encode based on a direct sequence spread spectrum code (DSSS) or based on other encoding methods.
[0152] The length of the first code element may be greater than the length of the second code element. The first data code element is used for the stylus to implement a first interactive function. The second data code element is used for the stylus to implement a second interactive function. The second interactive function includes the first interactive function.
[0153] For the implementation of each step in the above embodiment, reference can be made to the relevant content in the above embodiment about the stylus pen, which will not be described in detail.
[0154] The present application also provides a stylus pen, see Figure 5, is a schematic diagram of the structure of the stylus pen, which may include a communication module 501 and a processor 502.
[0155] like Figure 5 As shown, the communication module may be an electrode located at the tip of the stylus.
[0156] The communication module 501 can be used for:
[0157] When the stylus pen and the display device meet the first target condition, receiving a first uplink signal sent by the display device, where the first uplink signal includes a first preamble part and a first data part;
[0158] When the stylus pen and the display device meet the second target condition, receiving a second uplink signal sent by the display device, where the second uplink signal includes a second preamble part and a second data part;
[0159] The first preamble part and the second preamble part have the same length, and the first data part and the second data part have different lengths;
[0160] The processor 502 may be used to:
[0161] Identifying a target interaction protocol corresponding to the uplink signal received by the stylus based on the preamble of the uplink signal;
[0162] Interact with the display device according to the target interaction protocol.
[0163] Optionally, the first preamble part includes a plurality of first preamble code elements, the second preamble part includes a plurality of second preamble code elements, and the first preamble code elements and the second preamble code elements have the same code element length;
[0164] The first data symbol of the first data portion has a first symbol length, and the second data symbol of the second data portion has a second symbol length, and the first symbol length and the second symbol length are different.
[0165] Optionally, the first data codeword is used to implement a first interactive function, and the second data codeword is used to implement a second interactive function, and the second interactive function includes the first interactive function.
[0166] Optionally, when the processor 502 interacts with the display device according to the target interaction protocol, it can be used to:
[0167] When the target interactive protocol is the first interactive protocol, processing a first data portion of the first uplink signal based on the first symbol length to obtain a first processing result, so as to provide a first interactive function based on the first processing result;
[0168] When the target interactive protocol is the second interactive protocol, the second data portion of the second uplink signal is processed based on the second symbol length to obtain a second processing result, so as to provide a second interactive function based on the second processing result.
[0169] Optionally, when the processor 502 interacts with the display device according to the target interaction protocol, it can be used to:
[0170] Interacting with the display device through a first communication channel according to a target interaction protocol, where the first communication channel is a channel based on touch electrodes of a touch screen of the display device;
[0171] The stylus pen and display device meet the first target condition, including:
[0172] The stylus pen is not in communication connection with the display device through the second communication channel, and the distance between the tip of the stylus pen and the touch screen of the display device is less than a distance threshold;
[0173] The stylus pen and display device meet the second target condition, including:
[0174] The stylus pen and the display device are communicatively connected via a second communication channel, and a distance between a tip of the stylus pen and a touch screen of the display device is less than a distance threshold.
[0175] Optionally, the communication module 501 may also be used for:
[0176] When the stylus pen and another display device meet the first target condition, receiving a third uplink signal sent by another display device, where the third uplink signal has the same format as the first uplink signal;
[0177] The processor 502 may also be used to:
[0178] identifying a target interaction protocol corresponding to the third uplink signal based on a third preamble portion in the third uplink signal;
[0179] Interact with another display device according to the target interaction protocol.
[0180] The working principle of the stylus pen of this embodiment can refer to the relevant steps of the aforementioned interaction method applied to the stylus pen, which will not be described in detail.
[0181] The present application also provides a display device. Figure 6 , is a schematic diagram of the structure of the electronic device, which may include a touch screen 601 and a processor 602.
[0182] The processor 602 is used to:
[0183] When the display device and the stylus satisfy a first target condition, sending a first uplink signal to the stylus, where the first uplink signal includes a first preamble portion and a first data portion;
[0184] When the display device and the stylus satisfy the second target condition, sending a second uplink signal to the stylus, where the second uplink signal includes a second preamble portion and a second data portion;
[0185] The first preamble part and the second preamble part have the same length, and the first data part and the second data part have different lengths; the preamble part of the uplink signal represents the target interaction protocol corresponding to the uplink signal;
[0186] Interact with the stylus according to the target interaction protocol corresponding to the uplink signal sent to the stylus.
[0187] Optionally, when the processor 602 sends the first uplink signal to the stylus pen, it may be configured to:
[0188] Determine the first interactive protocol as the target interactive protocol, send a first uplink signal to the stylus based on a first code element length corresponding to the first interactive protocol, and the first data code element of the first data part has the first code element length;
[0189] Sending a second uplink signal to the stylus, including:
[0190] Determine the second interactive protocol as the target interactive protocol, send a second uplink signal to the stylus based on a second code element length corresponding to the second interactive protocol, and the second data code element of the second data part has the second code element length;
[0191] The first codeword length and the second codeword length are different, and the first preamble codeword of the first preamble part and the second preamble codeword of the second preamble part have the same codeword length.
[0192] Optionally, the first data code element is used by the stylus pen to implement a first interactive function, and the second data code element is used by the stylus pen to implement a second interactive function, where the second interactive function includes the first interactive function.
[0193] The working principle of the display device of this embodiment can refer to the relevant steps of the interactive method applied to the display device in the above-mentioned embodiment, which will not be described in detail.
[0194] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0195] For the convenience of description, the above system or device is described by dividing it into various modules or units according to its functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0196] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0197] Finally, it should be noted that, in this article, relational terms such as first, second, third and fourth are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0198] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A signal interaction method, applied to a stylus, comprising: When the stylus pen and the display device meet a first target condition, receiving a first uplink signal sent by the display device, wherein the first uplink signal includes a first preamble portion and a first data portion; When the stylus pen and the display device meet a second target condition, receiving a second uplink signal sent by the display device, where the second uplink signal includes a second preamble part and a second data part; The first preamble part and the second preamble part have the same length, and the first data part and the second data part have different lengths; Identifying, based on the preamble of the uplink signal, a target interaction protocol corresponding to the uplink signal received by the stylus; Interact with the display device according to the target interaction protocol.
2. The method according to claim 1, wherein the first preamble part comprises a plurality of first preamble symbols, the second preamble part comprises a plurality of second preamble symbols, and the first preamble symbols and the second preamble symbols have the same symbol length; The first data symbol of the first data portion has a first symbol length, and the second data symbol of the second data portion has a second symbol length, and the first symbol length and the second symbol length are different.
3. According to the method of claim 2, the first data codeword is used to implement a first interactive function, the second data codeword is used to implement a second interactive function, and the second interactive function includes the first interactive function.
4. The method according to claim 3, wherein the interacting with the display device according to the target interaction protocol comprises: In a case where the target interactive protocol is a first interactive protocol, processing a first data portion of the first uplink signal based on a first symbol length to obtain a first processing result, so as to provide the first interactive function based on the first processing result; In the case where the target interactive protocol is a second interactive protocol, a second data portion of the second uplink signal is processed based on a second symbol length to obtain a second processing result, so as to provide the second interactive function based on the second processing result.
5. The method according to claim 1, wherein the interacting with the display device according to the target interaction protocol comprises: interacting with the display device through a first communication channel according to the target interaction protocol, where the first communication channel is a channel based on touch electrodes of a touch screen of the display device; The stylus pen and the display device meet the first target condition, including: The stylus pen is not in communication connection with the display device through the second communication channel, and the distance between the tip of the stylus pen and the touch screen of the display device is less than a distance threshold; The stylus pen and the display device meet the second target condition, including: The stylus pen and the display device are communicatively connected via the second communication channel, and a distance between a tip of the stylus pen and a touch screen of the display device is less than a distance threshold.
6. The method according to claim 1, further comprising: When the stylus pen and another display device meet the first target condition, receiving a third uplink signal sent by the other display device, wherein the third uplink signal has the same format as the first uplink signal; identifying a target interaction protocol corresponding to the third uplink signal based on a third preamble in the third uplink signal; Interact with the other display device according to the target interaction protocol.
7. A signal interaction method, applied to a display device, the method comprising: When the display device and the stylus satisfy a first target condition, sending a first uplink signal to the stylus, wherein the first uplink signal includes a first preamble portion and a first data portion; When the display device and the stylus satisfy a second target condition, sending a second uplink signal to the stylus, wherein the second uplink signal includes a second preamble portion and a second data portion; The first preamble and the second preamble have the same length, and the first data portion and the second data portion have different lengths; the preamble of the uplink signal represents the target interaction protocol corresponding to the uplink signal; Interact with the stylus pen according to the target interaction protocol corresponding to the uplink signal sent to the stylus pen.
8. The method according to claim 7, wherein sending a first uplink signal to the stylus comprises: Determine a first interactive protocol as a target interactive protocol, send a first uplink signal to the stylus based on a first code element length corresponding to the first interactive protocol, and the first data code element of the first data part has the first code element length; The sending a second uplink signal to the stylus includes: Determine a second interactive protocol as a target interactive protocol, send a second uplink signal to the stylus based on a second code element length corresponding to the second interactive protocol, and the second data code element of the second data part has the second code element length; The first codeword length is different from the second codeword length, and the first preamble codeword of the first preamble part and the second preamble codeword of the second preamble part have the same codeword length.
9. According to the method of claim 8, the first data code element is used by the stylus pen to implement a first interactive function, and the second data code element is used by the stylus pen to implement a second interactive function, and the second interactive function includes the first interactive function.
10. A touch pen, comprising: Communication modules and processors; The communication module is used for: When the stylus pen and the display device meet a first target condition, receiving a first uplink signal sent by the display device, wherein the first uplink signal includes a first preamble portion and a first data portion; When the stylus pen and the display device meet a second target condition, receiving a second uplink signal sent by the display device, where the second uplink signal includes a second preamble part and a second data part; The first preamble part and the second preamble part have the same length, and the first data part and the second data part have different lengths; The processor is used to: Identifying, based on the preamble of the uplink signal, a target interaction protocol corresponding to the uplink signal received by the stylus; Interact with the display device according to the target interaction protocol.