Connection control method and device and storage medium
By receiving and matching the identification and downlink configuration parameters sent by electronic devices, the problem of low connection delay and switching efficiency of stylus on multiple devices is solved, fast switching and efficient communication are achieved, and user experience is improved.
Patent Information
- Application Number
- CN202310806562.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-30
- Publication Date
- 2024-12-31
AI Technical Summary
When the stylus performs touch operation on multiple electronic devices, the connection is delayed or unstable, and downlink configuration parameters need to be frequently sent when the device switches, resulting in low transmission efficiency and poor user experience.
By receiving the uplink signal sent by the electronic device, obtaining the corresponding downlink configuration parameters based on the identification, and sending the downlink signal through the communication connection protocol, the matching of the identification and configuration parameters is achieved, avoiding the need to send downlink configuration parameters for each communication, and quickly switching between different devices. or parameters of the same device.
It improves the communication noise immunity and channel resource utilization of the stylus pen and electronic devices, simplifies the transmission process, and improves user experience and switching efficiency.
Smart Images

Figure CN119233435A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a connection control method, device and storage medium. Background Art
[0002] As the application scenarios of styluses continue to expand, the demand for a stylus to work on multiple electronic devices is growing.
[0003] In the related art, the technology of using a stylus pen to perform touch operations on multiple electronic devices is limited by the connection between different devices, and when switching devices, the stylus pen may experience connection delays or unstable connections. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a connection control method, device and storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, a connection control method is provided, comprising: receiving a first uplink signal sent by a first electronic device, the first uplink signal comprising a first identifier, the first identifier being used to identify a display frame rate of the first electronic device, or being used to identify the first electronic device, the first electronic device being an electronic device that is communicatively connected to a stylus; obtaining a first downlink configuration parameter corresponding to the first identifier based on a correspondence between the identifier and the downlink configuration parameter; generating a first downlink signal based on the first downlink configuration parameter, and sending the first downlink signal to the first electronic device through a communication connection protocol.
[0006] In one embodiment, the method also includes: receiving a second uplink signal sent by a target device, the second uplink signal including a second identifier, the second identifier being used to identify a second downlink configuration parameter, the target device including a second electronic device or a first electronic device, the second downlink configuration parameter including at least one of the following: a downlink configuration parameter of the second electronic device and a downlink configuration parameter of a different display frame rate of the first electronic device; switching from the first identifier to the second identifier, and obtaining a second downlink configuration parameter corresponding to the second identifier based on a correspondence between the identifier and the downlink configuration parameter; generating a second downlink signal based on the second downlink configuration parameter, and sending the second downlink signal to the target device via a communication connection protocol with the target device.
[0007] In one embodiment, the second downlink configuration parameter includes a downlink configuration parameter of a second electronic device, and the method further includes: determining the number of connected electronic devices; if the number of connected electronic devices reaches a number threshold, disconnecting the electronic device that first established a connection among the connected electronic devices.
[0008] In one embodiment, the correspondence between the identifier and the downlink configuration parameters is determined in the following manner: in response to establishing a communication connection between the stylus and the electronic device, an identifier allocation request sent by the electronic device is obtained, and an identifier is allocated; the downlink configuration parameters configured by the electronic device for the identifier are obtained, and a correspondence between the downlink configuration parameters and the identifier is established.
[0009] In one implementation, the method further includes: based on the communication address of the communication connection, dividing the correspondences with the same communication address into the same correspondence group, wherein the correspondence group includes different correspondences of the same electronic device.
[0010] In one embodiment, the method further includes: in response to the touch pen being triggered to perform a frequency hopping / voltage operation setting change operation, changing the settings corresponding to the identification information in each corresponding relationship in the same corresponding relationship group.
[0011] According to a second aspect of an embodiment of the present disclosure, a connection control method is provided, the connection control method comprising: in response to receiving a second uplink signal sent by a target device during a process of sending a third downlink signal to a first electronic device, the second uplink signal comprising a second identifier; the target device comprises a second electronic device or a first electronic device, the first electronic device being an electronic device for communication connection with a stylus, the second identifier being used to identify second downlink configuration parameters, the second downlink configuration parameters comprising at least one of the following: downlink configuration parameters of the second electronic device and downlink configuration parameters of different display frame rates of the first electronic device; based on a correspondence between the identifier and the downlink configuration parameter, obtaining the second downlink configuration parameter corresponding to the second identifier; generating a second downlink signal based on the second downlink configuration parameter, and sending the second downlink signal to the target device via a communication connection protocol.
[0012] According to a third aspect of an embodiment of the present disclosure, a connection control method is provided, the connection control method comprising: sending a first uplink signal to a stylus pen, the first uplink signal comprising a first identifier, the first identifier being used to identify a display frame rate of the electronic device, or being used to identify the electronic device, the electronic device being an electronic device that is communicatively connected to the stylus pen; receiving a first downlink signal through a communication connection protocol, the first downlink signal being generated based on a first downlink configuration parameter, the first downlink configuration parameter corresponding to the first identifier.
[0013] In one embodiment, the method further includes: sending an identification allocation request in response to establishing a communication connection with the stylus; obtaining an identification allocated by the stylus to the electronic device; and updating a default identification of the electronic device based on the identification.
[0014] According to a fourth aspect of an embodiment of the present disclosure, a connection control device is provided, including: a receiving unit, used to receive a first uplink signal sent by a first electronic device, the first uplink signal including a first identifier, the first identifier being used to identify a display frame rate of the first electronic device, or being used to identify the first electronic device, the first electronic device being an electronic device that is communicatively connected to a stylus; a processing unit, used to obtain a first downlink configuration parameter corresponding to the first identifier based on a correspondence between the identifier and the downlink configuration parameter; and a sending unit, used to generate a first downlink signal based on the first downlink configuration parameter, and send the first downlink signal to the first electronic device through a communication connection protocol.
[0015] In one embodiment, the receiving unit is further used to receive a second uplink signal sent by a target device, the second uplink signal includes a second identifier, the second identifier is used to identify a second downlink configuration parameter, the target device includes a second electronic device or a first electronic device, and the second downlink configuration parameter includes at least one of the following: a downlink configuration parameter of the second electronic device and a downlink configuration parameter of a different display frame rate of the first electronic device; the processing unit is further used to switch from the first identifier to the second identifier, and based on the correspondence between the identifier and the downlink configuration parameter, obtain the second downlink configuration parameter corresponding to the second identifier; the sending unit is further used to generate a second downlink signal based on the second downlink configuration parameter, and send the second downlink signal to the target device through a communication connection protocol with the target device.
[0016] In one embodiment, the second downlink configuration parameter includes a downlink configuration parameter of a second electronic device, and the processing unit is further used to: determine the number of connected electronic devices; if the number of connected electronic devices reaches a quantity threshold, disconnect the electronic device that first established a connection among the connected electronic devices.
[0017] In one embodiment, the processing unit determines the correspondence between the identifier and the downlink configuration parameters in the following manner: in response to establishing a communication connection between the stylus and the electronic device, obtains an identifier allocation request sent by the electronic device and allocates an identifier; obtains the downlink configuration parameters configured by the electronic device for the identifier, and creates a correspondence between the downlink configuration parameters and the identifier.
[0018] In one implementation, the processing unit is further configured to: based on the communication address of the communication connection, divide the correspondences having the same communication address into the same correspondence group, wherein the correspondence group includes different correspondences of the same electronic device.
[0019] In one implementation, the processing unit is further configured to: in response to the touch pen being triggered to perform a setting change operation, change the settings corresponding to the identification information in each corresponding relationship in the same corresponding relationship group.
[0020] According to a fifth aspect of an embodiment of the present disclosure, a connection control device is provided, the connection control device comprising: a receiving unit, for responding to receiving a second uplink signal sent by a target device in the process of sending a third downlink signal to a first electronic device, the second uplink signal comprising a second identifier; the target device comprises a second electronic device or a first electronic device, the first electronic device is an electronic device for communication connection with a stylus, the second identifier is used to identify second downlink configuration parameters, the second downlink configuration parameters comprising at least one of the following: downlink configuration parameters of the second electronic device and downlink configuration parameters of different display frame rates of the first electronic device; a processing unit, for obtaining the second downlink configuration parameters corresponding to the second identifier based on the correspondence between the identifier and the downlink configuration parameters; a sending unit, for generating a second downlink signal based on the second downlink configuration parameters, and sending the second downlink signal to the target device through a communication connection protocol.
[0021] According to a sixth aspect of an embodiment of the present disclosure, a connection control device is provided, comprising: a sending unit, used to send a first uplink signal to a stylus pen, the first uplink signal comprising a first identifier, the first identifier being used to identify a display frame rate of an electronic device, or being used to identify the electronic device, the electronic device being an electronic device that is communicatively connected to the stylus pen; and a receiving unit, used to receive a first downlink signal through a communication connection protocol, the first downlink signal being generated based on a first downlink configuration parameter, and the first downlink configuration parameter corresponding to the first identifier.
[0022] In one embodiment, the sending unit is further used to: send an identification allocation request in response to establishing a communication connection with the stylus; obtain an identification allocated by the stylus to the electronic device; and update a default identification of the electronic device based on the identification.
[0023] According to the seventh aspect of an embodiment of the present disclosure, a connection control device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to: execute the connection control method described in the first aspect or any one of the embodiments of the first aspect.
[0024] According to an eighth aspect of an embodiment of the present disclosure, a connection control device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to: execute the connection control method described in the second aspect or any one of the embodiments of the second aspect.
[0025] According to the ninth aspect of an embodiment of the present disclosure, a connection control device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to: execute the connection control method described in the third aspect or any one of the implementations of the third aspect.
[0026] According to the tenth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the connection control method described in the first aspect or any one of the embodiments of the first aspect.
[0027] According to the eleventh aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the connection control method described in the second aspect or any one of the embodiments of the second aspect.
[0028] According to the twelfth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the connection control method described in the third aspect or any one of the embodiments of the third aspect.
[0029] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: the stylus end receives an uplink signal sent by the electronic device, and obtains corresponding downlink configuration parameters based on the identifier in the uplink signal. A downlink signal is generated based on the downlink configuration parameters, and is sent to the electronic device through a communication connection protocol. By matching the corresponding downlink configuration parameters with the identifier, the problem of having to send the downlink configuration parameters every time the device communicates with the stylus is avoided. And by transmitting the identification information through the uplink signal, the stylus can quickly switch between different electronic devices or different parameters of the same electronic device, thereby improving the user experience.
[0030] 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 present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] 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.
[0032] Figure 1 The figure is a flow chart of a connection control method according to an exemplary embodiment.
[0033] Figure 2The figure is a flow chart of a method for switching a stylus pen according to an exemplary embodiment.
[0034] Figure 3 The invention is a flowchart showing a method for determining the number of connected electronic devices by a stylus according to an exemplary embodiment.
[0035] Figure 4 The present invention is a flowchart of a method for determining a corresponding relationship between an identifier and a downlink configuration parameter according to an exemplary embodiment.
[0036] Figure 5 The diagram is a schematic diagram showing a process of identifier allocation and parameter configuration according to an exemplary embodiment.
[0037] Figure 6 The figure is a flow chart of a connection control method according to an exemplary embodiment.
[0038] Figure 7 The figure is a flow chart of a connection control method according to an exemplary embodiment.
[0039] Figure 8 The present invention is a flowchart of updating a default identification according to an exemplary embodiment.
[0040] Fig. 9 is a schematic diagram showing a process of assigning and configuring parameters of a stylus pen and an electronic device and switching the stylus pen and the electronic device according to an exemplary embodiment
[0041] Fig.10 The diagram is a schematic diagram showing a process of a stylus pen communicating with different types of electronic devices according to an exemplary embodiment.
[0042] Fig.11 The figure is a block diagram of a connection control device according to an exemplary embodiment.
[0043] Fig.12 The figure is a block diagram of a connection control device according to an exemplary embodiment.
[0044] Fig.13 The figure is a block diagram of a connection control device according to an exemplary embodiment.
[0045] Fig.14 The figure is a block diagram of a connection control device according to an exemplary embodiment. DETAILED DESCRIPTION
[0046] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.
[0047] The connection control method provided in the embodiments of the present disclosure can be applied to the application scenario where a stylus pen switches between different parameters of multiple electronic devices or the same electronic device. For example, it can be applied to the scenario where different display frame rates are switched between electronic devices such as mobile phones, tablet computers, and laptop computers, or the same electronic device.
[0048] If a stylus pen is to be switched between multiple electronic devices, the stylus pen needs to establish connections with multiple electronic devices and send downlink signals corresponding to different electronic devices. In the related art, there are problems such as reduced noise resistance of the stylus pen and slow switching speed between multiple electronic devices when transmitting configuration parameters with large amounts of information of different devices.
[0049] In view of this, an embodiment of the present disclosure provides a connection control method. In the connection control method provided by the present disclosure, the stylus receives an uplink signal containing an identifier, switches corresponding downlink configuration parameters based on the identifier, and sends the downlink signal to the corresponding electronic device.
[0050] Figure 1 The figure is a flow chart of a connection control method according to an exemplary embodiment.
[0051] In step S11, a first uplink signal sent by a first electronic device is received, where the first uplink signal includes a first identifier.
[0052] The first identifier is used to identify a display frame rate of the first electronic device, or to identify the first electronic device.
[0053] The uplink signal is a signal sent from the electronic device to the stylus. The uplink signal usually refers to an electric field signal sent from the detection electrode of the device touch screen to the stylus, which has the characteristics of low latency and real-time performance.
[0054] In the embodiment of the present disclosure, the uplink signal may be transmitted by carrying the uplink signal. For example, the electric field signal may be transmitted by carrying the electric field signal, such as electromagnetic waves.
[0055] In the disclosed embodiment, the identifier may be a number used to identify different electronic devices or different display frame rates of the same electronic device. For example, the identifier may be an identity document (ID). The identifier of device 1 with a display frame rate of 60 Hz is ID1, the identifier of device 1 with a display frame rate of 120 Hz is ID2, and the identifier of device 2 with a display frame rate of 60 Hz is ID3.
[0056] In step S12, based on the correspondence between the identifier and the downlink configuration parameter, a first downlink configuration parameter corresponding to the first identifier is obtained.
[0057] The downlink configuration parameter is a signal that specifies what waveform the stylus pen tip electrode produces at what time, and is related to factors such as the electronic device screen type, model, display frame rate, etc. For example, the downlink configuration parameter may be a downlink waveform signal timing format (time table).
[0058] In step S13, a first downlink signal is generated based on the first downlink configuration parameter, and the first downlink signal is sent to the first electronic device through the communication connection protocol.
[0059] The stylus generates a corresponding downlink signal according to the downlink configuration parameters corresponding to the identification information in the uplink signal and sends it to the corresponding electronic device through a communication connection protocol. The communication connection protocol may be near field communication (NFC), ultra wide band (UWB), Bluetooth, etc. The first downlink signal may be used to display the handwriting on the touch screen of the first electronic device.
[0060] In the disclosed embodiment, in response to receiving an uplink signal sent by an electronic device, the stylus pen sends a corresponding downlink signal using corresponding downlink configuration parameters based on an identifier in the uplink signal, thereby enabling the stylus pen to quickly switch between different electronic devices or different parameters of the same electronic device, thereby improving the user experience.
[0061] Figure 2 The figure is a flow chart of a method for switching a stylus pen according to an exemplary embodiment.
[0062] In step S21, a second uplink signal is received, and a second identifier is included in the second uplink signal, where the second identifier is used to identify a second downlink configuration parameter. The target device includes a second electronic device or a first electronic device, and the second downlink configuration parameter includes at least one of the following: a downlink configuration parameter of the second electronic device and a downlink configuration parameter of a different display frame rate of the first electronic device.
[0063] When the stylus is switched to a different electronic device for touch operation or the display frame rate of the electronic device currently being touched by the stylus changes, the electronic device sends an uplink signal containing an identifier to the stylus, wherein the identifier corresponds to a downlink configuration parameter required for the display frame rate of the different electronic device or the current electronic device to change.
[0064] In step S22, the first identifier is switched to the second identifier, and based on the corresponding relationship between the identifier and the downlink configuration parameter, the second downlink configuration parameter corresponding to the second identifier is obtained.
[0065] The stylus end stores multiple sets of downlink configuration parameters corresponding to different identifiers, and switches the corresponding downlink configuration parameters according to the received identifier.
[0066] In step S23, a second downlink signal is generated based on the second downlink configuration parameter, and the second downlink signal is sent through the communication connection protocol with the target device.
[0067] The stylus pen sends a corresponding downlink signal to the electronic device through a communication connection protocol according to the downlink configuration parameters corresponding to the identifier. The second downlink signal can be used to display the handwriting on the touch screen of the target electronic device.
[0068] Among them, the communication connection protocol can be near field communication (NFC), ultra wide band (Ultra Wide Band, UWB) technology, Bluetooth, etc.
[0069] In the disclosed embodiment, the stylus pen is connected to the electronic device through a communication connection protocol, and during the connection process, identification information and corresponding downlink configuration parameters. Such signals with large data volume and low real-time requirements are distributed and transmitted through the communication connection protocol, which can improve the anti-noise ability of the communication between the stylus pen and the electronic device and improve the utilization rate of channel resources.
[0070] Furthermore, the correspondence between multiple groups of downlink configuration parameters and identification information of the electronic device is stored by the stylus pen, thereby avoiding the problem of needing to obtain the corresponding downlink configuration parameters each time when the stylus pen communicates with the electronic device, thereby improving the transmission efficiency.
[0071] Figure 3 The invention is a flowchart showing a method for determining the number of connected electronic devices by a stylus according to an exemplary embodiment.
[0072] In step S31, the number of connected electronic devices is determined.
[0073] In step S32, if the number of connected electronic devices reaches the number threshold, the electronic device that first establishes a connection among the connected electronic devices is disconnected.
[0074] In the disclosed embodiment, by setting a threshold for the stylus pen to connect to an electronic device, the maximum number of connections between the stylus pen and the electronic device can be controlled. This can avoid performance degradation and communication conflicts caused by the stylus pen being connected to too many electronic devices at the same time. When the number of electronic device connections exceeds the threshold, the electronic device that first establishes a connection among the connected electronic devices is automatically disconnected to release connection resources, thereby ensuring the stability of subsequent connections and communication quality.
[0075] Figure 4 The present invention is a flowchart of a method for determining a corresponding relationship between an identifier and a downlink configuration parameter according to an exemplary embodiment.
[0076] In step S41, in response to the establishment of a communication connection between the stylus pen and the electronic device, an identifier allocation request sent by the electronic device is obtained, and an identifier is allocated.
[0077] After the stylus pen and the electronic device establish a communication connection through the communication connection protocol, the identification allocation request sent by the electronic device sub-device is obtained through the communication connection protocol used and an identification is allocated to the electronic device. For example, after the stylus pen and the electronic device are connected through Bluetooth pairing, in response to the identity document (ID) allocation request sent by the electronic device Bluetooth, ID1 is allocated to the electronic device.
[0078] In step S42, the downlink configuration parameters configured by the electronic device for the identifier are obtained, and a corresponding relationship between the downlink configuration parameters and the identifier is established.
[0079] After receiving the identifier sent by the stylus through the communication connection protocol, the electronic device combines the required downlink configuration parameters with the identifier and sends them to the stylus. The stylus creates a correspondence between the downlink configuration parameters and the identifier based on the received identifier and the corresponding downlink configuration parameters. Multiple sets of correspondences and corresponding downlink configuration parameters are stored on the stylus.
[0080] In the disclosed embodiment, by storing multiple sets of correspondences and corresponding downlink configuration parameters, the stylus can quickly switch to different configurations. When it is necessary to switch to another electronic device or the display frame rate of the same electronic device changes, there is no need to re-acquire the corresponding downlink configuration parameters, but directly use the stored corresponding combination to achieve fast switching. This can reduce the frequency and data volume of communication and improve communication efficiency.
[0081] In one embodiment, based on the communication address of the communication connection, the correspondences with the same communication address are divided into the same correspondence group, and the correspondence group includes different correspondences of the same electronic device.
[0082] For example, the stylus determines whether the stored downlink configuration parameters and corresponding relationships belong to the same electronic device according to the Media Access Control Address (MAC) address, and divides the corresponding relationships with the same communication address into the same corresponding relationship group. The same corresponding relationship group may include the corresponding relationships of downlink configuration parameters and identifiers of different display frame rates of the same electronic device.
[0083] In the disclosed embodiment, the correspondences with the same communication address are grouped into the same correspondence group, so that mutual interference between them can be avoided. When the stylus pen communicates with different electronic devices, communication failure or performance degradation will not occur due to channel conflict or interference.
[0084] In one embodiment of the present disclosure, during the communication process between the stylus pen and the electronic device, the electronic device needs to change the setting of the stylus pen, wherein the setting change operation can be a frequency hopping / voltage operation, which changes the frequency of the stylus pen communication signal or the voltage of the downlink signal. The identifier of the same electronic device in the same corresponding relationship group will respond to the setting change request operation of the electronic device.
[0085] During the communication between the stylus and the electronic device, frequency hopping / voltage operation will be performed. If the identification of the frequency hopping / voltage operation and the corresponding downlink configuration parameters do not belong to the same correspondence group and correspond to the same electronic device, it may cause the electronic device that sends the setting change request and the identification and corresponding downlink configuration parameters of the stylus that need to be changed to be inconsistent during the frequency hopping / voltage process, resulting in the failure of the frequency hopping / voltage operation.
[0086] This method can avoid interference from signals from other devices when the stylus responds to a setting change request from an electronic device.
[0087] Figure 5 The diagram is a schematic diagram showing a process of identifier allocation and parameter configuration according to an exemplary embodiment.
[0088] In the disclosed embodiment, the stylus pen and the electronic device perform identification assignment and parameter configuration via a communication connection protocol. For example, the stylus pen and the electronic device perform identification assignment and parameter configuration via Bluetooth.
[0089] After the first electronic device and the stylus are paired and connected via Bluetooth, the first electronic device Bluetooth sends an identification allocation request to the stylus Bluetooth, and the stylus Bluetooth allocates the first identification information to the first electronic device Bluetooth. After receiving the first identification information, the first electronic device is driven to combine it with the corresponding display frame rate a / b. For example, the display frame rate of the first device at this time can be 60HZ.
[0090] The first electronic device driver sends the first identifier to the touch firmware, and the touch firmware configures the identifier in the uplink signal according to the first identifier sent by the driver. The touch firmware has a default identifier, and when the device driver sends the first identifier to the touch firmware, the first identifier will replace the default identifier.
[0091] The first electronic device Bluetooth sends the first downlink configuration parameter corresponding to the first identifier and the MAC address of the device to the stylus Bluetooth.
[0092] The stylus Bluetooth saves the first downlink configuration parameter corresponding to the first identifier and the corresponding relationship for sending a downlink signal to the first electronic device using the first downlink configuration parameter when an uplink signal including the first identifier is received.
[0093] When the display frame rate of the first electronic device changes, the first electronic device Bluetooth sends an identification information allocation request to the stylus Bluetooth, and the stylus Bluetooth allocates a second identification to the first electronic device Bluetooth.
[0094] After receiving the second identifier, the first electronic device is driven to combine with the corresponding display frame rate a / b. For example, the device display frame rate may be 60HZ / 120HZ. For example, the display frame rate of the first device at this time may be 120HZ.
[0095] The first electronic device driver sends the second identifier to the touch firmware, and the touch firmware configures the identifier in the uplink signal according to the second identifier sent by the driver. The touch firmware has a default identifier, and when the device driver sends the second identifier to the touch firmware, the second identifier will replace the default identifier.
[0096] The first electronic device Bluetooth sends the second downlink configuration parameter corresponding to the second identifier and the MAC address of the device to the stylus Bluetooth.
[0097] The stylus Bluetooth saves the second downlink configuration parameter corresponding to the first identifier and the corresponding relationship for sending a downlink signal to the first electronic device using the second downlink configuration parameter when an uplink signal including the second identifier is received.
[0098] Figure 6 The figure is a flow chart of a connection control method according to an exemplary embodiment.
[0099] In step S71, in response to receiving a second uplink signal sent by a target device during the process of sending a third downlink signal to a first electronic device, the second uplink signal includes a second identifier.
[0100] Among them, the target device includes a second electronic device or a first electronic device, the first electronic device is an electronic device that is connected to communicate with the stylus, the second identifier is used to identify a second downlink configuration parameter, and the second downlink configuration parameter includes at least one of the following: a downlink configuration parameter of the second electronic device and a downlink configuration parameter of a different display frame rate of the first electronic device.
[0101] The third downlink signal may be the first downlink signal sent on the first electronic device according to the first downlink configuration parameter.
[0102] For example, the third downlink signal may be used to display handwriting on a touch screen of the first electronic device.
[0103] In step S72, based on the correspondence between the identifier and the downlink configuration parameter, a second downlink configuration parameter corresponding to the second identifier is obtained.
[0104] Since the stylus segment stores correspondence groups of different devices, which include correspondences between different downlink configuration parameters and identifiers, upon receiving the second uplink signal including the representation, the corresponding downlink configuration parameters are obtained according to the identifier.
[0105] In step S73, a second downlink signal is generated based on the second downlink configuration parameter, and the second downlink signal is sent through the communication connection protocol.
[0106] The second downlink parameter instructs the stylus to generate a corresponding second downlink signal, which is sent to the corresponding electronic device through the signal channel of different electronic devices established by the communication connection protocol. The second downlink signal can be used to display the handwriting on the touch screen of the target electronic device.
[0107] In the disclosed embodiment, in response to receiving an uplink signal sent by an electronic device to indicate switching, the stylus switches the corresponding downlink configuration parameters based on the identifier in the uplink signal and sends the corresponding downlink signal, without the need for the electronic device to repeatedly send the downlink configuration parameters in each communication. Through the method in the disclosed embodiment, the stylus can quickly switch between different electronic devices or different parameters of the same electronic device, thereby improving the user experience.
[0108] Figure 7 The figure is a flow chart of a connection control method according to an exemplary embodiment.
[0109] In step S81, a first uplink signal is sent to the stylus; the first uplink signal includes a first identifier; the first identifier is used to identify the display frame rate of the electronic device, or to identify the electronic device; the electronic device is an electronic device that is connected to the stylus for communication.
[0110] The electronic device can send an uplink signal to the stylus to instruct the stylus to perform a corresponding switch in response to the stylus switching device performing a touch operation or display frame rate change. The uplink signal includes an identifier that corresponds to the downlink configuration parameter of the electronic device.
[0111] In step S82, a first downlink signal is received through a communication connection protocol, the first downlink signal is generated based on a first downlink configuration parameter, and the first downlink configuration parameter corresponds to the first identifier.
[0112] Among them, the electronic device establishes different signal channels with different devices through the communication connection protocol for receiving downlink signals.
[0113] In the disclosed embodiment, by sending an uplink signal including an identifier having a corresponding relationship with the downlink configuration parameters of the electronic device, the electronic device can promptly notify the stylus to send a corresponding downlink signal according to the downlink parameter configuration corresponding to the device switching or display frame rate change. Such real-time indication can ensure that the stylus can respond quickly and make corresponding adjustments to adapt to the changes in the switching or display requirements of the electronic device without waiting for delays or other complex communication processes, thereby improving the efficiency and response speed of the switching.
[0114] Figure 8 The present invention is a flowchart of updating a default identification according to an exemplary embodiment.
[0115] In step S91 , in response to establishing a communication connection with the stylus, an identification allocation request is sent.
[0116] In step S92, an identifier assigned by the stylus pen to the electronic device is obtained.
[0117] In step S93, the default identification of the electronic device is updated based on the identification.
[0118] In the disclosed embodiment, the uplink signal reserves set data bits for real-time transmission of identification information, wherein the initial identification is a default identification configured for the touch layer of the device by the electronic device during the manufacturing process, and during the identification assignment and parameter configuration process of the stylus and the electronic device, the electronic device updates the default identification in the uplink signal through the touch firmware to be the identification assigned by the stylus to the electronic device.
[0119] By reserving a set data bit in the uplink signal for real-time transmission of identification information, the design and analysis process of the communication protocol can be simplified, and no additional message fields or protocols are required to transmit identification information, reducing the amount of communication data and the complexity of the communication protocol. In addition, sending the identification through the uplink signal can save communication resources and bandwidth and improve communication efficiency and real-time performance.
[0120] Fig. 9The figure is a schematic diagram showing a process of assigning identifications and configuring parameters of a stylus and an electronic device and switching the identifications according to an exemplary embodiment.
[0121] In one embodiment, the connection control method in the disclosed embodiment is used to switch the display frame rate of the same device and the stylus on different devices.
[0122] In the present disclosure, Figure 8 As shown, the stylus pen is paired and connected with the first electronic device and the second electronic device respectively via Bluetooth.
[0123] After the connection is established, the first electronic device requests the stylus pen for identification assignment according to different display frame rates, corresponding to different first downlink configuration parameters and second downlink configuration parameters, where the identifications may be ID1 and ID2. The second electronic device requests the stylus pen for identification assignment according to different third downlink configuration parameters, where the identification may be ID3. Identification assignment and parameter configuration of the stylus pen, the first electronic device, and the second electronic device are completed via Bluetooth.
[0124] In the application scenario of the stylus, the first electronic device responds to a change in display frame rate by sending identification ID2 to the stylus via an uplink signal. The stylus switches the corresponding downlink configuration parameters according to ID2 and sends a corresponding downlink signal through the Bluetooth signal channel with the first electronic device.
[0125] When the stylus performs a touch operation on the second electronic device, the second electronic device sends the identifier ID3 to the stylus via an uplink signal, and the stylus switches the corresponding downlink configuration parameters according to ID3 and sends a corresponding downlink signal through the Bluetooth signal channel with the second electronic device.
[0126] In the disclosed embodiment, by using an uplink signal including an identifier, switching between different electronic devices and fast switching of the display frame rate of the same electronic device are achieved, and the correspondence between multiple groups of identifiers and downlink configurations is stored on the stylus end, reducing the need to re-specify configuration parameters each time switching, simplifying the user's operating process, and improving the convenience of use and user experience.
[0127] Fig.10 The diagram is a schematic diagram showing a process of a stylus pen communicating with different types of electronic devices according to an exemplary embodiment.
[0128] In the disclosed embodiment, the stylus pen and the tablet computer and the personal computer (PC) are connected via Bluetooth Low Energy (BLE). When the display frame rate of the tablet computer changes or the stylus pen switches to the PC for touch operation, the stylus pen is notified to switch via an uplink signal. The method in the disclosed embodiment reduces the steps of re-specifying configuration parameters each time the switch is made, simplifies the user's operation process, and improves the convenience of use and user experience.
[0129] Based on the same concept, an embodiment of the present disclosure also provides a connection control device.
[0130] It is understandable that the connection control device provided in the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.
[0131] Fig.11 FIG. 1 is a block diagram of a connection control device according to an exemplary embodiment. Fig.11 The device includes a receiving unit 101, a processing unit 102 and a sending unit 103.
[0132] The receiving unit 101 is used to receive a first uplink signal sent by a first electronic device; the first uplink signal includes a first identifier; the first identifier is used to identify the display frame rate of the first electronic device, or to identify the first electronic device; the first electronic device is an electronic device that is connected to communicate with the stylus.
[0133] The processing unit 102 is configured to obtain a first downlink configuration parameter corresponding to the first identifier based on a correspondence between the identifier and the downlink configuration parameter.
[0134] The sending unit 103 is configured to generate a first downlink signal based on the first downlink configuration parameter, and send the first downlink signal to the first electronic device through a communication connection protocol.
[0135] In one embodiment, the receiving unit is further used to receive a second uplink signal, the second uplink signal includes a second identifier, the second identifier is used to identify a second downlink configuration parameter, the target device includes a second electronic device or a first electronic device, and the second downlink configuration parameter includes at least one of the following: a downlink configuration parameter of the second electronic device and a downlink configuration parameter of a different display frame rate of the first electronic device; the processing unit is further used to switch from the first identifier to the second identifier, and based on the correspondence between the identifier and the downlink configuration parameter, obtain the second downlink configuration parameter corresponding to the second identifier; the sending unit is further used to generate a second downlink signal based on the second downlink configuration parameter, and send the second downlink signal through a communication connection protocol.
[0136] In one embodiment, the second downlink configuration parameter includes a downlink configuration parameter of the second electronic device, and the processing unit is further used to: determine the number of connected electronic devices; if the number of connected electronic devices reaches a quantity threshold, disconnect the electronic device that first established a connection among the connected electronic devices.
[0137] In one embodiment, the processing unit determines the correspondence between the identifier and the downlink configuration parameters in the following manner: in response to establishing a communication connection between the stylus and the electronic device, obtains an identifier allocation request sent by the electronic device and allocates the identifier; obtains the downlink configuration parameters configured by the electronic device for the identifier, and creates a correspondence between the downlink configuration parameters and the identifier.
[0138] In one embodiment, the processing unit is further configured to: based on the communication address of the communication connection, divide the correspondences having the same communication address into the same correspondence group, wherein the correspondence group includes different correspondences of the same electronic device.
[0139] In one embodiment, the processing unit is further configured to: in response to the touch pen being triggered to perform a setting change operation, change the settings corresponding to the identification information in each corresponding relationship in the same corresponding relationship group.
[0140] Fig.12 FIG. 1 is a block diagram of a connection control device according to an exemplary embodiment. Fig.12 The device includes a receiving unit 201, a processing unit 202 and a sending unit 203.
[0141] A receiving unit 201 is used to respond to receiving a second uplink signal sent by a target device in the process of sending a third downlink signal to a first electronic device, wherein the second uplink signal includes a second identifier; the target device includes a second electronic device or a first electronic device, the first electronic device is an electronic device that is connected to communicate with the stylus, and the second identifier is used to identify second downlink configuration parameters, wherein the second downlink configuration parameters include at least one of the following: downlink configuration parameters of the second electronic device and downlink configuration parameters of different display frame rates of the first electronic device.
[0142] The processing unit 202 is configured to obtain a second downlink configuration parameter corresponding to the second identifier based on a correspondence between the identifier and the downlink configuration parameter.
[0143] The sending unit 203 is configured to generate a second downlink signal based on the second downlink configuration parameter, and send the second downlink signal to the target device through the communication connection protocol.
[0144] Fig.13 FIG. 1 is a block diagram of a connection control device according to an exemplary embodiment. Fig.13 , the device includes a sending unit 301 and a receiving unit 302.
[0145] The sending unit 301 is used to send a first uplink signal to the stylus pen, wherein the first uplink signal includes a first identifier, and the first identifier is used to identify a display frame rate of the electronic device, or to identify the electronic device, and the electronic device is an electronic device that is connected to the stylus pen for communication.
[0146] The receiving unit 302 is used to receive a first downlink signal through a communication connection protocol, where the first downlink signal is generated based on a first downlink configuration parameter, and the first downlink configuration parameter corresponds to a first identifier. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method and will not be elaborated here.
[0147] In one embodiment, the sending unit is further used to: send an identification allocation request in response to establishing a communication connection with the stylus; obtain an identification allocated by the stylus to the electronic device; and update a default identification of the electronic device based on the identification.
[0148] Fig.14 4 is a block diagram of a device 400 for connection control according to an exemplary embodiment. For example, the device 400 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.
[0149] Reference Fig.14 , the device 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .
[0150] The processing component 402 generally controls the overall operation of the device 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 402 may include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.
[0151] The memory 404 is configured to store various types of data to support operations on the device 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 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.
[0152] The power component 406 provides power to the various components of the device 400. The power component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 400.
[0153] The multimedia component 408 includes a screen that provides an output interface between the device 400 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 touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the device 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0154] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the device 400 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.
[0155] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0156] The sensor assembly 414 includes one or more sensors for providing various aspects of the status assessment of the device 400. For example, the sensor assembly 414 can detect the open / closed state of the device 400, the relative positioning of components, such as the display and keypad of the device 400, and the sensor assembly 414 can also detect the position change of the device 400 or a component of the device 400, the presence or absence of user contact with the device 400, the orientation or acceleration / deceleration of the device 400, and the temperature change of the device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0157] The communication component 416 is configured to facilitate wired or wireless communication between the device 400 and other devices. The device 400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 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 416 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.
[0158] In an exemplary embodiment, the apparatus 400 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 to perform the above method.
[0159] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, and the instructions can be executed by a processor 420 of the device 400 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0160] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.
[0161] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0162] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.
[0163] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0164] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.
[0165] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.
Claims
1. A connection control method, characterized in that: include: Receiving a first uplink signal sent by a first electronic device; The first uplink signal includes a first identifier; The first identifier is used to identify a display frame rate of the first electronic device, or is used to identify the first electronic device; the first electronic device is an electronic device that is in communication connection with the stylus; Based on the correspondence between the identifier and the downlink configuration parameter, obtain a first downlink configuration parameter corresponding to the first identifier; A first downlink signal is generated based on the first downlink configuration parameter, and the first downlink signal is sent to the first electronic device through a communication connection protocol.
2. The method according to claim 1, characterized in that The method further comprises: receiving a second uplink signal sent by a target device, wherein the second uplink signal includes a second identifier, the second identifier is used to identify a second downlink configuration parameter, the target device includes a second electronic device or a first electronic device, and the second downlink configuration parameter includes at least one of the following: a downlink configuration parameter of the second electronic device and a downlink configuration parameter of a different display frame rate of the first electronic device; Switching from the first identifier to the second identifier, and obtaining a second downlink configuration parameter corresponding to the second identifier based on a correspondence between the identifier and the downlink configuration parameter; A second downlink signal is generated based on the second downlink configuration parameter, and the second downlink signal is sent to the target device through a communication connection protocol with the target device.
3. The method according to claim 2, characterized in that The second downlink configuration parameter includes a downlink configuration parameter of the second electronic device, and the method further includes: Determine the number of connected electronic devices; If the number of connected electronic devices reaches a threshold, the electronic device that first establishes a connection among the connected electronic devices is disconnected.
4. The method according to any one of claims 1 to 3, characterized in that The correspondence between the identifier and the downlink configuration parameter is determined in the following manner: In response to establishing a communication connection between the stylus pen and the electronic device, obtaining an identification allocation request sent by the electronic device and allocating an identification; The downlink configuration parameters configured by the electronic device for the identifier are obtained, and a corresponding relationship between the downlink configuration parameters and the identifier is established.
5. The method according to claim 4, characterized in that The method further comprises: Based on the communication address of the communication connection, the correspondences with the same communication address are divided into the same correspondence group, and the correspondence group includes different correspondences of the same electronic device.
6. The method according to claim 5, characterized in that The method further comprises: In response to the touch pen being triggered to perform a setting change operation, the settings corresponding to the identification information in each corresponding relationship in the same corresponding relationship group are changed.
7. A connection control method, characterized in that: include: In response to receiving a second uplink signal sent by a target device during the process of sending a third downlink signal to the first electronic device, the second uplink signal includes a second identifier; The target device includes a second electronic device or a first electronic device, the first electronic device is an electronic device that is connected to the stylus for communication, the second identifier is used to identify a second downlink configuration parameter, and the second downlink configuration parameter includes at least one of the following: a downlink configuration parameter of the second electronic device and a downlink configuration parameter of a different display frame rate of the first electronic device; Based on the correspondence between the identifier and the downlink configuration parameter, obtain a second downlink configuration parameter corresponding to the second identifier; A second downlink signal is generated based on the second downlink configuration parameter, and the second downlink signal is sent to the target device through a communication connection protocol.
8. A connection control method, characterized in that: include: Sending a first uplink signal to the stylus pen, wherein the first uplink signal includes a first identifier, the first identifier is used to identify a display frame rate of the electronic device, or is used to identify the electronic device, and the electronic device is an electronic device that is connected to the stylus pen for communication; A first downlink signal is received through a communication connection protocol, where the first downlink signal is generated based on a first downlink configuration parameter, and the first downlink configuration parameter corresponds to a first identifier.
9. The method according to claim 8, characterized in that The method further comprises: In response to establishing a communication connection with the stylus, sending an identification allocation request; Obtaining an identifier assigned by the stylus pen to the electronic device; A default identification of the electronic device is updated based on the identification.
10. A connection control device, characterized in that: include: A receiving unit, configured to receive a first uplink signal sent by a first electronic device; The first uplink signal includes a first identifier; The first identifier is used to identify a display frame rate of the first electronic device, or is used to identify the first electronic device; the first electronic device is an electronic device that is in communication connection with the stylus; A processing unit, configured to obtain a first downlink configuration parameter corresponding to the first identifier based on a correspondence between the identifier and the downlink configuration parameter; A sending unit is used to generate a first downlink signal based on the first downlink configuration parameter, and send the first downlink signal to the first electronic device through a communication connection protocol.
11. A connection control device, characterized in that: include: a receiving unit, configured to, in response to receiving a second uplink signal sent by a target device during a process of sending a third downlink signal to a first electronic device, wherein the second uplink signal includes a second identifier; The target device includes a second electronic device or a first electronic device, the first electronic device is an electronic device that is connected to the stylus for communication, the second identifier is used to identify a second downlink configuration parameter, and the second downlink configuration parameter includes at least one of the following: a downlink configuration parameter of the second electronic device and a downlink configuration parameter of a different display frame rate of the first electronic device; A processing unit, configured to obtain a second downlink configuration parameter corresponding to the second identifier based on a correspondence between the identifier and the downlink configuration parameter; A sending unit is used to generate a second downlink signal based on the second downlink configuration parameter, and send the second downlink signal to the target device through a communication connection protocol.
12. A connection control device, characterized in that: include: a sending unit, configured to send a first uplink signal to the stylus pen, wherein the first uplink signal includes a first identifier, and the first identifier is used to identify a display frame rate of the electronic device, or to identify the electronic device, wherein the electronic device is an electronic device that is in communication connection with the stylus pen; The receiving unit is configured to receive a first downlink signal through a communication connection protocol, where the first downlink signal is generated based on a first downlink configuration parameter, and the first downlink configuration parameter corresponds to a first identifier.
13. A connection control device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to: execute the method described in any one of claims 1 to 7 or claim 8 or claim 9.
14. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to execute the method of any one of claims 1 to 7 or claim 8 or claim 9.
