WO2022222552A1 - Procédé de connexion de stylet et système bluetooth - Google Patents

Procédé de connexion de stylet et système bluetooth Download PDF

Info

Publication number
WO2022222552A1
WO2022222552A1 PCT/CN2022/070856 CN2022070856W WO2022222552A1 WO 2022222552 A1 WO2022222552 A1 WO 2022222552A1 CN 2022070856 W CN2022070856 W CN 2022070856W WO 2022222552 A1 WO2022222552 A1 WO 2022222552A1
Authority
WO
WIPO (PCT)
Prior art keywords
stylus
electronic device
connection
bluetooth
response
Prior art date
Application number
PCT/CN2022/070856
Other languages
English (en)
Chinese (zh)
Inventor
李晓睿
Original Assignee
荣耀终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2022222552A1 publication Critical patent/WO2022222552A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Definitions

  • the present application relates to the field of terminals, and in particular, to a method for connecting a stylus and a Bluetooth system.
  • Stylus also known as smart stylus. Because the stylus has the characteristics of high accuracy, low latency, and the thickness of handwriting can be determined according to the pressure, it can usually be used by users as an input device for electronic devices to perform operations such as writing and drawing on electronic devices.
  • conventional styluses on the market include single-connection styluses and multi-connection styluses.
  • the single-connection stylus if the single-connection stylus has been paired and connected to the first electronic device (eg tablet A), if the user wishes the single-connection stylus to reconnect to the second electronic device (eg tablet B) ), you need to magnetically attract the single-connection stylus to the side of tablet B, or firstly attach the stylus to a magnetic rod connected to tablet B, and then connect.
  • the multi-connection stylus the user can first long press the button on the multi-connection stylus body or use the universal serial bus (USB) interface of the multi-connection stylus to insert the tablet B before connecting.
  • USB universal serial bus
  • the user can connect the multi-connection stylus pen magnetically to a magnetic stick connected to tablet B.
  • the present application provides a method for connecting a stylus and a Bluetooth system, which can trigger the stylus and a new electronic device (an electronic device that has not been connected) through a convenient and quick preset operation (such as a double-click, triple-click or long-press operation). Pairing connection, simple, convenient and adaptable.
  • the present application provides a method for connecting a stylus, which is applied to a Bluetooth system.
  • the Bluetooth system includes a first stylus, a first electronic device and a second electronic device.
  • the first stylus has been paired with the first electronic device, and the first stylus is paired with the first electronic device.
  • a stylus is not paired with the second electronic device, the first stylus, the first electronic device and the second electronic device all enable the Bluetooth function, and the method includes:
  • the first stylus In response to detecting the target event, the first stylus sends a Bluetooth broadcast; wherein, the Bluetooth broadcast carries first indication information and second indication information, the first indication information is used to indicate that the first stylus can be paired, and the second indication information is used for pairing.
  • the target event includes a double-click event, a triple-click event or a long-press event;
  • the second electronic device displays a connection prompt box; the connection prompt box includes a first option, the first The option is used to instruct the second electronic device to establish a Bluetooth connection with the first stylus;
  • the second electronic device In response to the user's manipulation of the first option, the second electronic device is paired with the first stylus and establishes a Bluetooth connection with the first stylus.
  • the stylus when the stylus has been paired with an electronic device (the first electronic device), the user can use the stylus to perform any operation such as double-click, triple-click, or long-press to trigger the stylus and the unconnected stylus.
  • the electronic device (second electronic device) is paired and connected, which is simple and convenient, and can be realized without a stylus having functions such as a USB interface and a magnetic attraction, and has strong adaptability.
  • the first stylus in response to detecting the target event, sends a Bluetooth broadcast, including: if the first stylus detects the target event and the first stylus is not connected to the first electronic device, the first stylus The stylus sends bluetooth broadcasts.
  • the stylus pen is not connected to the first electronic device, it can be considered that the target event is not initiated by the stylus pen to the first electronic device. In this way, by restricting the conditions for the stylus to send the Bluetooth broadcast, the situation that the stylus sends the Bluetooth broadcast by mistake can be avoided.
  • the first stylus in response to detecting the target event, sends a Bluetooth broadcast, including:
  • the first stylus detects the target event and the first stylus is connected to the first electronic device, the first stylus sends a first command to the first electronic device, and the first command is used to query whether the first electronic device detects the target event ; the first stylus receives a first response from the first electronic device, where the first response is used to indicate that the first electronic device does not detect the target event; the first stylus sends a Bluetooth broadcast.
  • the stylus when the stylus is connected to the first electronic device, but the first response fed back by the first electronic device indicates that the first electronic device does not detect the target event, it can also be considered that the target event is not the effect of the stylus on the first electronic device. device initiated. In this way, the situation that the stylus sends the Bluetooth broadcast by mistake can also be avoided.
  • the second electronic device in response to scanning the Bluetooth broadcast, displays a connection prompt box, including: if the second electronic device scans the Bluetooth broadcast and the second electronic device enables the stylus function, the second electronic device A connection prompt box is displayed; wherein, the stylus function is used to instruct the second electronic device to display the connection prompt box when the first stylus pen that can be connected is found.
  • the stylus function when the second electronic device scans the Bluetooth broadcast, the stylus function is enabled at the same time (the function of instructing the second electronic device to display a connection prompt box when a connectable stylus is found), the connection prompt can be displayed. frame.
  • the second electronic device can only display the connection prompt box when scanning the stylus Bluetooth broadcast, which can avoid the error prompt caused by the second electronic device scanning other Bluetooth devices (such as other mobile phones, tablets) to send the Bluetooth broadcast and popping up the connection prompt box. .
  • the method further includes: if the first stylus is a single-connection device and the first stylus is connected to the first electronic device, the first stylus sends a disconnection request to the first electronic device, and disconnects the
  • the connection opening request includes the identification of the first stylus; the first electronic device receives the disconnection request and disconnects the first stylus.
  • the first stylus needs to be disconnected from the first electronic device to ensure that the first stylus can be paired with the second electronic device.
  • the method further includes: if the first stylus is a multi-connection device and the first stylus is connected to the first electronic device, the first stylus sets the second electronic device as an activation device, and the first stylus The stylus sets the first electronic device as an inactive device; when the second electronic device is set as an active device, the first stylus sends pressure-sensitive data to the second electronic device, and the second electronic device receives the pressure-sensitive data; When an electronic device is set as an inactive device, the first stylus does not send pressure-sensitive data to the first electronic device, and the first electronic device does not receive pressure-sensitive data.
  • the second electronic device can be set as an activation device, so as to transmit pressure-sensitive data to the second electronic device, so that the first electronic device can be activated.
  • the trajectory of the stylus can be normally displayed on the screen of the second electronic device; by setting the first electronic device as an inactive device, the first stylus will no longer send pressure-sensitive data to the first electronic device, preventing the first stylus from sending pressure-sensitive data to the first electronic device. A problem with the trajectory being displayed on multiple electronic devices.
  • the method further includes: after the second electronic device is successfully connected with the first stylus, displaying reminder information, where the reminder information is used to prompt the user that the second electronic device and the first stylus are successfully connected.
  • sending the Bluetooth broadcast by the first stylus includes: sending the Bluetooth broadcast by the first stylus within a first preset time.
  • the power consumption of the first stylus can be reduced.
  • the method further includes: within a first preset time, after the first stylus is successfully connected to the second electronic device, the first stylus stops sending Bluetooth broadcasts.
  • the first electronic device or the second electronic device is in a screen-off state or a screen-on state; when the first electronic device or the second electronic device is in a screen-on state, it is in the lock screen interface, the main interface or the screen-on state.
  • the corresponding interface of the application is in a screen-off state or a screen-on state; when the first electronic device or the second electronic device is in a screen-on state, it is in the lock screen interface, the main interface or the screen-on state.
  • the first stylus in response to detecting the target event, sends a Bluetooth broadcast, including:
  • the first stylus After the first stylus detects the target event, it is determined whether the first stylus is connected to the first electronic device; wherein, the target event includes a double-click event, a triple-click event or a long-press event;
  • the first stylus If the first stylus is not connected to the first electronic device, the first stylus sends a Bluetooth broadcast;
  • the first stylus If the first stylus is connected to the first electronic device, the first stylus sends a first command to the first electronic device, and the first command is used to query whether the first electronic device detects a target event; The device receives a first response, and the first response is used to indicate that the first electronic device does not detect the target event; the first stylus sends a Bluetooth broadcast;
  • the second electronic device In response to scanning the Bluetooth broadcast, the second electronic device displays a connection prompt box, including:
  • the second electronic device scans the Bluetooth broadcast, determine whether the second electronic device is connected to the second stylus
  • the second electronic device If the second electronic device is not connected to the second stylus, it is determined whether the second electronic device has the stylus function enabled; wherein, the stylus function is used to instruct the second electronic device to display the first stylus when it finds a connectable first stylus. connection prompt box;
  • the second electronic device displays a connection prompt box
  • the second electronic device In response to the user's operation on the first option, the second electronic device is paired with the first stylus, and establishes a Bluetooth connection with the first stylus, including:
  • the second electronic device After the second electronic device is successfully paired with the first stylus, the second electronic device establishes a Bluetooth connection with the first stylus.
  • the first stylus can send a Bluetooth broadcast when it is not connected to the first electronic device, or send a Bluetooth broadcast when it is connected to the first electronic device but the first electronic device does not detect the target event; and the second When the electronic device is not connected to the second stylus and the stylus function is turned on, a connection prompt box can be displayed in response to the scanned Bluetooth broadcast, and in response to the user's operation of the first option, the second electronic device and the first handwriting The pen is paired and a Bluetooth connection is established with the first stylus.
  • the whole process only requires a simple operation (double-click, triple-click or long-press, etc.) to trigger the pairing and connection of the first stylus with the second electronic device, without the need for the user to perform cumbersome operations, improving user experience, and adaptability powerful.
  • the present application also provides a method for connecting a stylus, which is applied to a Bluetooth system.
  • the Bluetooth system includes a first stylus, a first electronic device, and a second electronic device.
  • the first stylus has been paired with the first electronic device.
  • the first stylus is not paired with the second electronic device, the first stylus, the first electronic device and the second electronic device all turn on the Bluetooth function, and the method includes:
  • the second electronic device In response to detecting the target event, the second electronic device sends a Bluetooth broadcast, the Bluetooth broadcast carries first indication information and second indication information, the first indication information is used to indicate that the second electronic device can be paired, and the second indication information is used to indicate The second electronic device can be connected, and the target event includes a double-click event, a triple-click event or a long-press event;
  • the first stylus In response to detecting the target event and scanning the Bluetooth broadcast, the first stylus is paired with the second electronic device and establishes a Bluetooth connection with the second electronic device.
  • the user only needs to use the stylus to perform a preset operation (eg, double-click, triple-click, long-press, etc.) on the electronic device (eg, the second electronic device) with which electronic device he wants to connect the stylus
  • a preset operation eg, double-click, triple-click, long-press, etc.
  • the triggering stylus is paired and connected with the electronic device, and the operation is simple and convenient.
  • the whole process does not require the user to select the electronic device to be connected with the stylus through the connection prompt box, which further simplifies the user operation.
  • the first stylus in response to detecting the target event and scanning the Bluetooth broadcast, is paired with the second electronic device, and establishes a Bluetooth connection with the second electronic device, including:
  • the first stylus is not connected to the first electronic device, in response to detecting the target event and scanning the Bluetooth broadcast, the first stylus is paired with the second electronic device and establishes a Bluetooth connection with the second electronic device.
  • the stylus in the case where the stylus is not connected to the first electronic device, it can be considered that the target event is initiated by the user in order to connect to a new electronic device. Pair connection. In this way, as long as the stylus detects a target event (even if the target event is initiated by the first stylus to the first electronic device), the problem of misoperation caused by the pairing and connection operation can be avoided.
  • the first stylus in response to detecting the target event and scanning the Bluetooth broadcast, is paired with the second electronic device, and establishes a Bluetooth connection with the second electronic device, including:
  • the first stylus If the first stylus is connected to the first electronic device, in response to detecting the target event and scanning the Bluetooth broadcast, the first stylus sends a first command to the first electronic device, and the first command is used to query whether the first electronic device detects the detection to the target event; the first stylus receives a first response from the first electronic device, and the first response is used to indicate that the first electronic device does not detect the target event; the first stylus is paired with the second electronic device, and is paired with the second electronic device.
  • the electronic device establishes a Bluetooth connection.
  • the stylus when the stylus is connected to the first electronic device, but the first response fed back by the first electronic device indicates that the first electronic device has not detected the target event, it can also be considered that the target event is the user’s attempt to connect a new electronic device. and initiated, at this time, it is paired and connected with the new electronic device. In this way, as long as the stylus detects a target event (even if the target event is initiated by the first stylus to the first electronic device), the problem of misoperation caused by the pairing and connection operation can be avoided.
  • the method further includes: if the first stylus is a single-connection device and the first stylus is connected to the first electronic device, the first stylus sends a disconnection request to the first electronic device, and disconnects the
  • the connection opening request includes the identification of the first stylus; the first electronic device receives the disconnection request and disconnects the first stylus.
  • the first stylus needs to be disconnected from the first electronic device to ensure that the first stylus can be paired with the second electronic device.
  • the method further includes: if the first stylus is a multi-connection device and the first stylus is connected to the first electronic device, the first stylus sets the second electronic device as an activation device, and the first stylus The stylus sets the first electronic device as an inactive device; when the second electronic device is set as an active device, the first stylus sends pressure-sensitive data to the second electronic device, and the second electronic device receives the pressure-sensitive data; When an electronic device is set as an inactive device, the first stylus does not send pressure-sensitive data to the first electronic device, and the first electronic device does not receive pressure-sensitive data.
  • the second electronic device can be set as an activation device, so as to transmit pressure-sensitive data to the second electronic device, so that the first electronic device can be activated.
  • the trajectory of the stylus can be normally displayed on the screen of the second electronic device; by setting the first electronic device as an inactive device, the first stylus will no longer send pressure-sensitive data to the first electronic device, preventing the first stylus from sending pressure-sensitive data to the first electronic device. A problem with the trajectory being displayed on multiple electronic devices.
  • the method further includes: after the second electronic device is successfully connected with the first stylus, displaying reminder information, where the reminder information is used to prompt the user that the second electronic device and the first stylus are successfully connected.
  • sending the Bluetooth broadcast by the second electronic device includes: sending the Bluetooth broadcast by the second electronic device within a first preset time.
  • the power consumption of the second electronic device can be reduced.
  • the method further includes: within the first preset time, after the second electronic device is successfully connected with the first stylus, the second electronic device stops sending the Bluetooth broadcast.
  • the second electronic device when the second electronic device is successfully connected with the first stylus, it stops sending the Bluetooth broadcast, which can further reduce the power consumption of the first stylus.
  • the first electronic device or the second electronic device is in a screen-off state or a screen-on state; when the first electronic device or the second electronic device is in a screen-on state, it is in the lock screen interface, the main interface or the screen-on state.
  • the corresponding interface of the application is in a screen-off state or a screen-on state; when the first electronic device or the second electronic device is in a screen-on state, it is in the lock screen interface, the main interface or the screen-on state.
  • the second electronic device in response to detecting the target event, sends a Bluetooth broadcast, including:
  • the second electronic device After the second electronic device detects the target event, it determines whether the second electronic device is connected to the second stylus; wherein, the target event includes a double-click event, a triple-click event or a long-press event;
  • the second electronic device If the second electronic device is connected to the second stylus, then determine whether the target event is initiated by the second stylus;
  • the second electronic device disconnects the connection with the second stylus and sends a Bluetooth broadcast
  • the second electronic device determines whether the second electronic device has the stylus function enabled; wherein, the stylus function is used to instruct the second electronic device to take the initiative to initiate the target event after detecting the target event.
  • the stylus is paired and connected;
  • the second electronic device If the second electronic device enables the stylus function, the second electronic device sends a Bluetooth broadcast;
  • the first stylus is paired with the second electronic device and establishes a Bluetooth connection with the second electronic device, including:
  • the first stylus After the first stylus detects the target event, determine whether the first stylus is connected to the first electronic device;
  • the first stylus If the first stylus is not connected to the first electronic device, the first stylus enters the scanning state
  • the first stylus If the first stylus is connected to the first electronic device, the first stylus sends a first command to the first electronic device, and the first command is used to query whether the first electronic device detects a target event; The device receives the first response, and the first response is used to indicate that the first electronic device does not detect the target event; the first stylus enters the scanning state;
  • the first stylus scans the Bluetooth broadcast, the first stylus is paired with the second electronic device;
  • the stylus After the first stylus is successfully paired with the second electronic device, the stylus establishes a Bluetooth connection with the second electronic device.
  • the second electronic device can be paired and connected with the stylus that initiated the target event when the target event is detected and the stylus function is turned on; if the second electronic device is connected to the second handwriting pen A pen connection, which can be disconnected from the second stylus and paired with the stylus that initiated the target event when the target event is detected and the stylus function is turned on. That is, no matter whether the second electronic device is connected with another stylus (eg, the second stylus), it can be paired and connected with the first stylus, which is easy to operate and can improve user experience.
  • another stylus eg. the second stylus
  • the present application also provides a Bluetooth system.
  • the Bluetooth system includes a first stylus, a first electronic device, and a second electronic device.
  • the first stylus has been paired with the first electronic device, and the first stylus has not been paired with the first stylus.
  • Two electronic devices are paired, and the first stylus, the first electronic device and the second electronic device all have the Bluetooth function turned on;
  • the first stylus is used to send a Bluetooth broadcast in response to detecting a target event; wherein, the Bluetooth broadcast carries first indication information and second indication information, the first indication information is used to indicate that the first stylus can be paired, and the second indication The information is used to indicate that the first stylus can be connected, and the target event includes a double-click event, a triple-click event or a long-press event;
  • the second electronic device is configured to display a connection prompt box in response to scanning the Bluetooth broadcast;
  • the connection prompt box includes a first option, and the first option is used to instruct the second electronic device to establish a Bluetooth connection with the first stylus;
  • the second electronic device is configured to pair with the first stylus and establish a Bluetooth connection with the first stylus in response to the user's operation of the first option.
  • the present application also provides a Bluetooth system.
  • the Bluetooth system includes a first stylus, a first electronic device, and a second electronic device.
  • the first stylus has been paired with the first electronic device, and the first stylus has not been paired with the first stylus.
  • Two electronic devices are paired, and the first stylus, the first electronic device and the second electronic device all have the Bluetooth function turned on;
  • the second electronic device is used for sending a Bluetooth broadcast in response to detecting the target event, and the Bluetooth broadcast carries first indication information and second indication information, the first indication information is used to indicate that the second electronic device can be paired, and the second indication information is used for In order to indicate that the second electronic device can be connected, the target event includes a double-click event, a triple-click event or a long-press event;
  • the first stylus is used for pairing with the second electronic device and establishing a Bluetooth connection with the second electronic device in response to detecting the target event and scanning the Bluetooth broadcast.
  • the present application also provides a method for connecting a stylus, which is applied to a first stylus of a Bluetooth system, where the Bluetooth system further includes a first electronic device and a second electronic device, and the first stylus has been paired with the first electronic device , the first stylus is not paired with the second electronic device, the first stylus, the first electronic device and the second electronic device all turn on the Bluetooth function, and the method includes:
  • the first stylus In response to detecting the target event, the first stylus sends a bluetooth broadcast, so that the second electronic device displays a connection prompt box in response to scanning the bluetooth broadcast; wherein the bluetooth broadcast carries the first indication information and the second indication information, the first One indication information is used to indicate that the first stylus can be paired, the second indication information is used to indicate that the first stylus can be connected, the target event includes a double-click event, a triple-click event or a long-press event; the connection prompt box includes the first option , the first option is used to instruct the second electronic device to establish a Bluetooth connection with the first stylus.
  • the present application further provides a method for connecting a stylus, which is applied to a second electronic device of a Bluetooth system.
  • the Bluetooth system further includes a first stylus and a first electronic device, and the first stylus has been paired with the first electronic device. , the first stylus is not paired with the second electronic device, the first stylus, the first electronic device and the second electronic device all turn on the Bluetooth function, and the method includes:
  • the second electronic device In response to scanning the Bluetooth broadcast, the second electronic device displays a connection prompt box; wherein the connection prompt box includes a first option, and the first option is used to instruct the second electronic device to establish a Bluetooth connection with the first stylus; the Bluetooth broadcast is the first Sent by the stylus in response to detecting the target event; wherein, the Bluetooth broadcast carries first indication information and second indication information, the first indication information is used to indicate that the first stylus can be paired, and the second indication information is used to indicate the first indication information.
  • a stylus can be connected, and target events include double-click events, triple-click events, or long-press events;
  • the second electronic device In response to the user's operation of the first option, the second electronic device is paired with the first stylus and establishes a Bluetooth connection with the first stylus.
  • the present application further provides a method for connecting a stylus, which is applied to a first stylus of a Bluetooth system, where the Bluetooth system further includes a first electronic device and a second electronic device, and the first stylus has been paired with the first electronic device , the first stylus is not paired with the second electronic device, the first stylus, the first electronic device and the second electronic device all turn on the Bluetooth function, and the method includes:
  • the second electronic device In response to detecting the target event, the second electronic device sends a Bluetooth broadcast, so that the first stylus is paired with the second electronic device and establishes a Bluetooth connection with the second electronic device in response to detecting the target event and scanning the Bluetooth broadcast ;
  • Bluetooth broadcast carries first indication information and second indication information, the first indication information is used to indicate that the second electronic device can be paired, the second indication information is used to indicate that the second electronic device can be connected, and the target event includes a double-click event, Triple-click events or long-press events.
  • the present application further provides a method for connecting a stylus, which is applied to a second electronic device of a Bluetooth system.
  • the Bluetooth system further includes a first stylus and a first electronic device, and the first stylus has been paired with the first electronic device. , the first stylus is not paired with the second electronic device, the first stylus, the first electronic device and the second electronic device all turn on the Bluetooth function, and the method includes:
  • the first stylus is paired with the second electronic device and establishes a Bluetooth connection with the second electronic device; wherein the Bluetooth broadcast is the second electronic device responding to the detection of the target event. sent; the Bluetooth broadcast carries first indication information and second indication information, the first indication information is used to indicate that the second electronic device can be paired, the second indication information is used to indicate that the second electronic device can be connected, and the target event includes double-clicking events, triple-click events, or long-press events.
  • the present application provides a Bluetooth system, comprising a first stylus, a first electronic device and a second electronic device, the first stylus has been paired with the first electronic device, and the first stylus has not been paired with the second electronic device
  • the first stylus, the first electronic device, and the second electronic device all turn on the Bluetooth function, and the first stylus executes the method according to any one of the first aspect, the second aspect, the fifth aspect, and the seventh aspect.
  • the second electronic device performs the method of any one of the first aspect, the second aspect, the sixth aspect, and the eighth aspect.
  • the present application provides a computer-readable storage medium, comprising computer instructions
  • the first stylus is caused to perform the method of any one of the first aspect, the second aspect, the fifth aspect, and the seventh aspect;
  • the computer instructions when executed on the second electronic device, cause the second electronic device to perform the method of any one of the first aspect, the second aspect, the sixth aspect, and the eighth aspect.
  • an embodiment of the present application provides a chip system, where the chip system includes one or more interface circuits and one or more processors.
  • the interface circuit and the processor are interconnected by wires.
  • the chip system can be applied to electronic equipment including a communication module and a memory.
  • the interface circuit can read the instructions stored in the memory of the first stylus, and send the instructions to the processor.
  • the instructions when executed by the processor, can cause the first stylus to perform the method of any one of the first aspect, the second aspect, the fifth aspect, and the seventh aspect.
  • the interface circuit can also read the instructions stored in the memory in the second electronic device and send the instructions to the processor. When executed by the processor, the instructions can cause the second electronic device to perform the method of any one of the first aspect, the second aspect, the sixth aspect, and the eighth aspect.
  • the beneficial effects that can be achieved may refer to the beneficial effects of the corresponding methods provided above, and details are not repeated here.
  • FIG. 1 is a schematic structural diagram of a Bluetooth system according to an embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a stylus according to an embodiment of the present application.
  • FIG. 3 provides a schematic diagram of a Bluetooth protocol framework according to an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a stylus connected to an electronic device in the prior art
  • FIG. 6 is a schematic diagram of another stylus connected to an electronic device in the prior art
  • FIG. 7 is a schematic diagram of a stylus connected to an electronic device provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an interface provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of an interface provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of an interface provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of an interface provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of an interface provided by an embodiment of the present application.
  • FIG. 13 is a schematic diagram of an interface provided by an embodiment of the present application.
  • FIG. 14 is a schematic diagram of an interface provided by an embodiment of the present application.
  • FIG. 15 is a schematic diagram of an interface provided by an embodiment of the present application.
  • 16 is a schematic diagram of an interface provided by an embodiment of the present application.
  • 17 is a schematic diagram of an interface provided by an embodiment of the present application.
  • FIG. 19 is a schematic diagram of an interface provided by an embodiment of the present application.
  • FIG. 21 is a schematic diagram of an interface provided by an embodiment of the present application.
  • 22 is a schematic diagram of an interface provided by an embodiment of the present application.
  • FIG. 23 is a flowchart of a method for connecting a stylus provided by an embodiment of the present application.
  • FIG. 24 is a flowchart of another method for connecting a stylus provided by an embodiment of the present application.
  • 25 is a flowchart of another method for connecting a stylus provided by an embodiment of the present application.
  • 26 is a flowchart of still another method for connecting a stylus provided by an embodiment of the present application.
  • FIG. 27 is a signaling diagram of a stylus connection method provided by an embodiment of the present application.
  • FIG. 28 is a signaling diagram of another stylus connection method provided by an embodiment of the present application.
  • FIG. 29 is a schematic structural diagram of a chip system provided by an embodiment of the present application.
  • FIG. 1 shows a schematic structural diagram of a Bluetooth system 10 provided by an embodiment of the present application.
  • the Bluetooth system 10 may include a stylus 100 , a first electronic device 200 and a second electronic device 300 .
  • the communication between the stylus 100 and the first electronic device 200 and the second electronic device 300 can be performed through Bluetooth technology (including classic Bluetooth BR/EDR (basic rate/enhanced data rate) and low power Bluetooth (bluetooh low energy, BLE)) communication.
  • Bluetooth technology including classic Bluetooth BR/EDR (basic rate/enhanced data rate) and low power Bluetooth (bluetooh low energy, BLE)
  • BLE Bluetooth Low energy
  • the first electronic device 200 and the second electronic device 300 may specifically be a mobile phone, a tablet computer, a notebook computer, an Ultra-mobile Personal Computer (UMPC), a handheld computer, a netbook, a personal digital assistant (Personal Digital Assistant, PDA) and other terminal devices supporting the Bluetooth function, and this embodiment of the present application does not impose any restrictions on this.
  • UMPC Ultra-mobile Personal Computer
  • PDA Personal Digital Assistant
  • FIG. 2 shows a schematic structural diagram of the stylus 100 .
  • the stylus pen 100 will be described in detail below. It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the stylus 100 . In other embodiments, the stylus 100 may include more or fewer components than in FIG. 2, or some components may be combined, or some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the stylus 100 may include a processor 110 , a memory 120 , a pressure sensor 130 , a Bluetooth communication module 140 and an antenna 150 .
  • the processor 110 may be used to read and execute computer readable instructions.
  • the processor 110 may include a controller, an operator and a register.
  • the controller is mainly responsible for instruction decoding, and sends out control signals for the operations corresponding to the instructions.
  • the arithmetic unit is mainly responsible for saving the register operands and intermediate operation results temporarily stored during the execution of the instruction.
  • the hardware architecture of the processor 110 may be an application specific integrated circuit (ASIC) architecture, a MIPS (microprocessor without interlocked piped stages) architecture, an ARM (advanced Siemens) architecture, or a network processor (net processor, NP) architecture and so on.
  • ASIC application specific integrated circuit
  • MIPS microprocessor without interlocked piped stages
  • ARM advanced ARM
  • NP network processor
  • Memory 120 is coupled to processor 110 for storing various software programs and/or sets of instructions.
  • memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
  • the memory 120 may store operating systems, such as embedded operating systems such as uCOS, VxWorks, RTLinux, and the like.
  • the pressure sensor 130 can be used to acquire the motion track signal of the tip of the stylus 100, and to sense the contact surface (eg, the screen of the first electronic device 200 and the second electronic device 300) that is matched with the stylus on the tip of the stylus 100. pressure signal.
  • pressure sensors 130 there are many types of pressure sensors 130, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, and the like.
  • the capacitive pressure sensor may include at least two parallel plates of conductive material. When a force is applied to the pressure sensor 130, the capacitance between the electrodes changes. The stylus 100 can determine the intensity of the pressure according to the change in capacitance.
  • the Bluetooth communication module 140 may include a Classic Bluetooth (BR/EDR) module and a Bluetooth Low Energy (BLE) module.
  • BR/EDR Classic Bluetooth
  • BLE Bluetooth Low Energy
  • the Bluetooth communication module 140 can monitor signals transmitted by other devices (such as the first electronic device 200, the second electronic device 300), such as probe requests, scan signals, etc., and can send response signals, scan responses, etc. etc., so that other devices (such as the first electronic device 200, the second electronic device 300) can discover the stylus 100, and establish a wireless communication connection with other devices (such as the first electronic device 200, the second electronic device 300), and through Bluetooth communicates with other devices (eg, the first electronic device 200 and the second electronic device 300 ).
  • the Bluetooth communication module 140 can also transmit signals, such as broadcasting BLE signals, so that other devices (eg, the first electronic device 200 and the second electronic device 300 ) can discover the stylus 100 and communicate with other devices (eg, the first electronic device 200 and the second electronic device 300 )
  • the first electronic device 200 and the second electronic device 300) establish a wireless communication connection, and communicate with other devices (eg, the first electronic device 200 and the second electronic device 300) through Bluetooth.
  • the wireless communication function of the second electronic device 200 may be implemented by the antenna 150, the Bluetooth communication module 140, a modem processor, and the like.
  • the antenna 150 may be used to transmit and receive electromagnetic wave signals.
  • Each antenna in the second electronic device 200 may be used to cover a single or multiple communication frequency bands.
  • the Bluetooth communication module 140 may have one or more antennas.
  • an embodiment of the present application provides a schematic diagram of a Bluetooth protocol framework, including but not limited to a Host (host) protocol stack, a host controller interface (host controller interface, HCI), and a controller (controller).
  • host host
  • HCI host controller interface
  • controller controller
  • the Host protocol stack defines multiple application protocols (profiles) and core protocols (protocols) in the Bluetooth framework, each profile defines its own corresponding message format and application rules, and a profile is a Bluetooth service (Application).
  • the Bluetooth protocol has formulated specifications for various possible and general application scenarios, such as the Bluetooth audio distribution profile (advanced audio distribution profile, A2DP), hands-free Specification (hands-free profile, HFP), human interface equipment common attribute communication protocol (hid over GATT profile, HOGP) and so on.
  • the core protocols include, but are not limited to, the Bluetooth basic service protocol SDP (service discover protocol), the logical link control and adaptation protocol L2CAP (logical link control and adaptation protocol), the Generic Attribute (GATT) protocol, etc.
  • SDP service discover protocol
  • L2CAP logical link control and adaptation protocol
  • GATT Generic Attribute
  • the core protocol is essential in the Bluetooth protocol stack.
  • HCI provides a unified interface for the upper layer protocol to enter the link manager and a unified way to enter the baseband.
  • the bluetooth special interest group stipulates four physical bus ways to connect with hardware, namely four HCI transport layers: USB, RS232, UART and PC card.
  • the controller defines the underlying hardware, including radio frequency (RF), baseband (BB) and link management (Link Manager, LM).
  • the RF layer passes through the 2.4GHz unlicensed ISM (industrial scientific medical)
  • ISM industrial scientific medical
  • the microwave of the frequency band realizes the filtering and transmission of the data bit stream, and mainly defines the conditions that the Bluetooth transceiver needs to meet to work normally in this frequency band.
  • the baseband is responsible for frequency hopping and the transmission of Bluetooth data and information frames.
  • Link management is responsible for connecting, establishing and tearing down links and for security control.
  • the LM layer is the link management layer protocol of the Bluetooth protocol stack.
  • the Link Control (LC) layer is responsible for responding to upper-layer LM commands (such as LM commands for establishing a transmission link for data packets, maintaining a link, etc.) during the transmission of a batch of data packets.
  • LM commands such as LM commands for establishing a transmission link for data packets, maintaining a link, etc.
  • FIG. 4 shows a schematic structural diagram of an electronic device. It should be noted that the electronic device may refer to the first electronic device 200 or the second electronic device 300 .
  • the electronic device will be described in detail below. It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than in FIG. 4, or some components may be combined, or some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the electronic device may include: a processor 210 , an external memory interface 220 , an internal memory 221 , a universal serial bus (USB) interface 230 , a charge management module 240 , a power management module 241 , and a battery 242 , antenna 250, wireless communication module 260, audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone jack 270D, sensor module 280, buttons 290, motor 291, indicator 292, camera 293 and display screen 294, etc.
  • USB universal serial bus
  • the above sensor module 280 may include sensors such as pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor and bone conduction sensor.
  • sensors such as pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor and bone conduction sensor.
  • the processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • a controller can be the nerve center and command center of an electronic device.
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 210 for storing instructions and data.
  • the memory in processor 210 is cache memory.
  • the memory may hold instructions or data that have just been used or recycled by the processor 210 . If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided, and the waiting time of the processor 210 is reduced, thereby improving the efficiency of the system.
  • the processor 210 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration, and does not constitute a structural limitation of the electronic device.
  • the electronic device may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 240 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger. While the charging management module 240 charges the battery 242 , the power management module 241 can also supply power to the electronic device.
  • the power management module 241 is used to connect the battery 242 , the charging management module 240 and the processor 210 .
  • the power management module 241 receives input from the battery 242 and/or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the external memory, the display screen 294, the camera 293, and the wireless communication module 260.
  • the power management module 241 and the charging management module 240 may also be provided in the same device.
  • the wireless communication function of the electronic device may be implemented by the antenna 250, the wireless communication module 260, a modem processor, a baseband processor, and the like.
  • the antenna 250 and the wireless communication module 260 are coupled so that the electronic device can communicate with the network and other devices through wireless communication techniques.
  • the antenna 250 is used to transmit and receive electromagnetic wave signals.
  • Each antenna 250 in an electronic device may be used to cover a single or multiple communication frequency bands.
  • Different antennas 250 can also be multiplexed to improve the utilization of the antennas 250 .
  • the antenna 250 can be multiplexed into the diversity antenna 250 of the wireless local area network.
  • the antenna 250 may be used in conjunction with a tuning switch.
  • the wireless communication module 260 can provide applications on electronic devices including WLAN (such as (wireless fidelity, Wi-Fi) network), BT, global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), Solutions for wireless communication such as near field communication (NFC) and infrared technology (IR).
  • WLAN such as (wireless fidelity, Wi-Fi) network
  • BT global navigation satellite system
  • GNSS global navigation satellite system
  • FM frequency modulation
  • Solutions for wireless communication such as near field communication (NFC) and infrared technology (IR).
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 260 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 260 receives electromagnetic waves via the antenna 250 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210 .
  • the wireless communication module 260 can also receive the signal to be sent from the processor 210 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 250 .
  • the electronic device realizes the display function through the GPU, the display screen 294, and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 294 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 294 is used to display images, videos, and the like.
  • the display screen 294 includes a display panel.
  • the display screen 294 may be used to display the movement track of the stylus.
  • the electronic device can realize the shooting function through the ISP, the camera 293, the video codec, the GPU, the display screen 294 and the application processor.
  • the ISP is used to process the data fed back by the camera 293 .
  • Camera 293 is used to capture still images or video.
  • the electronic device may include 1 or N cameras 293 , where N is a positive integer greater than 1.
  • the external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.
  • the external memory card communicates with the processor 210 through the external memory interface 220 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 221 may be used to store computer executable program code, which includes instructions.
  • the processor 210 executes various functional applications and data processing of the electronic device by executing the instructions stored in the internal memory 221 .
  • the processor 210 may execute instructions stored in the internal memory 221, and the internal memory 221 may include a program storage area and a data storage area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the electronic device.
  • the internal memory 221 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the electronic device can implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, and an application processor. Such as music playback, recording, etc.
  • the keys 290 include a power-on key, a volume key, and the like. Keys 290 may be mechanical keys. It can also be a touch key. Motor 291 can generate vibrating cues. Motor 291 can be used for touch vibration feedback. The indicator 292 can be an indicator light, which can be used to indicate the charging status, the change of power, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the Bluetooth protocol framework used by the first electronic device 200 and the second electronic device 300 can be referred to as shown in FIG. 3 above, and details are not repeated here.
  • the user may need to use one stylus to scribble on multiple electronic devices.
  • the user needs to switch the electronic device connected to the stylus, so that the electronic device can be used as the input device of the electronic device desired by the user.
  • the single-connection stylus only supports the connection of one electronic device; while the multi-connection stylus can support the connection of multiple electronic devices, but only one electronic device is in the active state, and the multi-connection stylus can be connected with the active state.
  • Electronic devices to communicate wherein, if the multi-connected stylus is connected to multiple electronic devices, the multi-connected stylus will only transmit pressure-sensitive data to the electronic device in the active state, so as to prevent the track of the stylus from being displayed on the screens of the multiple electronic devices.
  • the stylus 100 is a single-connection stylus, if the stylus 100 has been paired and connected with the first electronic device 200, if the user wishes the stylus 100 to reconnect to the second electronic device 300, The stylus 100 needs to be magnetically attracted to the side of the second electronic device 300 first, or the stylus must be magnetically attracted to a magnetic rod connected to the second electronic device 300 before connecting.
  • the stylus 100 is a multi-connection stylus, the user can use the USB interface of the stylus 100 to insert the second electronic device 300 before connecting.
  • a button is provided on the body of the stylus 100 , the user can connect after long pressing the button on the body of the stylus 100 .
  • the multi-connection stylus without buttons and USB interfaces the user can connect the multi-connection stylus after magnetically attracting the multi-connection stylus to a magnetic stick connected to the second electronic device 300 .
  • the methods for connecting different types of styluses to the new electronic device are usually different, and each method requires the user to perform relatively cumbersome operations, which not only affects the user experience, but also affects the user experience. It also reduces the efficiency of the stylus to connect to new electronic devices.
  • an embodiment of the present application provides a method for connecting a stylus, through a convenient and quick preset operation (such as a double-click, triple-click or long-press operation), the stylus can be triggered to connect with a new electronic device (not connected before). electronic equipment) pairing connection, simple, convenient and adaptable.
  • the following describes a schematic diagram of a user interface of a method for connecting a stylus provided by an embodiment of the present application.
  • the stylus 100 and the first electronic device 200 are in a paired state, and the stylus 100 and the second electronic device 300 are in an unpaired state.
  • the user can use the stylus 100 to perform the first operation.
  • the first operation includes, but is not limited to, the user using the stylus 100 to double-click, triple-click, long-press the screen of the second electronic device 300, the desktop, or any other position (except the screen of the first electronic device 200) operate.
  • the first operation may also be an operation of the user using the stylus 100 to slide up, slide down, or draw a specific shape (eg, a circle, a triangle, etc.), which is not specifically limited herein.
  • the stylus 100 may inquire whether the first electronic device 200 also detects the first operation.
  • the stylus 100 may send a query instruction to the first electronic device 200 .
  • the query instruction is used to instruct the first electronic device 200 to query whether the first operation is detected.
  • the first electronic device 200 may feed back the query result.
  • the stylus 100 can determine whether the first electronic device 200 also detects the first operation through the query result. Understandably, if the stylus 100 determines that the first electronic device 200 detects the first operation, it can be determined that the first operation is actually an operation performed by the stylus 100 on the first electronic device 200 , and the first operation can be considered to be the stylus 100 .
  • the stylus 100 determines that the first electronic device 200 does not detect the first operation, it can be determined that the first operation is not the operation of the stylus 100 on the first electronic device 200, It can be considered that the first operation is an operation initiated by the user wishing to replace the device connected to the stylus 100 .
  • the stylus 100 may send Bluetooth broadcasts (including BLE broadcasts and classic Bluetooth broadcasts), or scan for Bluetooth broadcasts (including BLE broadcasts and classic Bluetooth broadcasts).
  • the Bluetooth broadcast is used to inform other devices that the stylus 100 is in a pairable and connectable state.
  • the second electronic device 300 scans the Bluetooth broadcast, the second electronic device 300 can actively initiate pairing and connection operations to the stylus 100 .
  • the stylus 100 scans the Bluetooth broadcast sent by the second electronic device 300 , the stylus 100 can actively initiate pairing and connection operations to the second electronic device 300 .
  • the stylus 100 may send a Bluetooth broadcast when the first electronic device 200 does not detect the first operation.
  • the second electronic device 300 has the Bluetooth function turned on and the stylus is not connected, it can scan the surrounding Bluetooth broadcasts. If the second electronic device 300 scans the Bluetooth broadcast sent by the stylus 100, a connection prompt box 310 as shown in FIG. 8 may be displayed.
  • the connection prompt box 310 can be used to remind the user that the second electronic device 300 finds the stylus 100 and can establish a connection with the stylus 100 .
  • the connection prompt box 310 may include a cancel button 311 and a connection button 312 . If the user does not wish to establish a connection between the second electronic device 300 and the stylus 100 , the user can click the cancel button 311 .
  • the second electronic device 300 may close the connection prompt box 310 . If the user wishes to establish a connection between the second electronic device 300 and the stylus 100, the connection button 312 can be clicked. In this way, if the second electronic device 300 detects the user's operation on the connection button 312 (eg, a click operation), in response to the operation, the second electronic device 300 can pair with the stylus 100 and establish a BT connection after the pairing is successful .
  • an operation eg, a click operation
  • a reminder message 313 may be displayed on the connection prompt box 310 .
  • the reminder information 313 is used to remind the user that the Pencil has been connected, indicating that the second electronic device 300 has established a connection with the stylus 100 .
  • the reminder information 313 may be presented in the form of text, icons and the like.
  • Connection prompt 310 may also include a "got it" button 314 .
  • the second electronic device 300 may receive the user's operation of the "got” button 314, and in response to the operation, the second electronic device 300 may close the connection prompt box 310.
  • the second electronic device 300 may also automatically close the connection prompt box 310 .
  • the connection prompt box 310 may also display a countdown reminder 315 (for example, "the prompt box will disappear in 5 seconds").
  • the countdown reminder 315 is used to remind the user to operate in time.
  • the second electronic device 300 if the second electronic device 300 does not receive the user's operation on the connection button 312 for more than 5 seconds, the second electronic device 300 will automatically close the connection prompt box 310 and will not perform pairing and connection operations with the stylus 100 .
  • the 5 seconds can also be replaced with any other time, which is not specifically limited here.
  • the second electronic device 300 can also actively scan for surrounding Bluetooth devices when the stylus is not connected, the Bluetooth function is turned on, and the stylus function is turned on.
  • the stylus function is used to provide the second electronic device 300 with a new way of connecting the stylus.
  • the second electronic device 300 can be triggered to connect to the stylus through a preset operation (a double-click operation, a triple-click operation, a long-press operation, etc.). In this case, if the second electronic device 300 scans the Bluetooth broadcast sent by the stylus 100, a connection prompt box 310 as shown in FIG. 8 may be displayed.
  • the second electronic device 300 may display a setting interface 320, and the setting interface 320 may include a plurality of setting options, such as WLAN options, Bluetooth options, mobile network options, and accessibility options 321.
  • the second electronic device 300 may receive the user's operation on the auxiliary function option 321 , and in response to the operation, as shown in FIG. 12 , the second electronic device 300 may display the function interface 330 .
  • the function interface 330 may include options for various auxiliary functions, such as "one-handed mode", “quick start and gesture”, “smart split screen”, “holster operation”, “stylus” 331 and so on.
  • the second electronic device 300 may receive the user's operation of the "stylus" 331, and in response to the operation, the second electronic device 300 may display the stylus function interface 340 as shown in FIG. 13 or FIG. 14 . It should be noted that, according to different connection states between the second electronic device 300 and the stylus, the stylus function interface 340 may display different prompt texts.
  • the second electronic device 300 may be connected with a stylus, so in response to the user's operation of the "stylus" 331, the second electronic device 300 may display prompt text 342 as shown in FIG. 13 .
  • the prompt text 342 may be "when the stylus function is turned on, the screen can be turned off by double-clicking the screen to enter the notepad application". It can be seen that when the second electronic device 300 is connected to the stylus, the stylus function is used to indicate: if the second electronic device 300 receives a double-tap (or triple-tap on the screen) when the (second electronic device 300) screen is off , long press on the screen, etc.) to enter a specific application (for example, the Notepad application).
  • the second electronic device 300 may not be connected to any stylus, so in response to the user's operation of the "stylus" 331, the second electronic device 300 may display prompt text 343 as shown in FIG. 14 .
  • the prompt text 343 can be "After the stylus function is turned on, it will actively scan the surrounding stylus devices, and when a connectable stylus device is found, a pairing box will pop up for you to choose.” It can be seen that when the second electronic device 300 is not connected to the stylus, the stylus function is used to indicate that: the second electronic device 300 actively scans the surrounding stylus devices, and when a connectable stylus is found, it will actively pop up the pairing box for user selection.
  • the stylus function interface 340 may include a switch button 341, and the second electronic device 300 may receive a user's operation on the switch button 341 (for example, a click operation, a sliding operation, etc.), and in response to the operation, as shown in FIG. 15, the first The second electronic device 300 can switch the switch button 341 to an on state to enable the stylus function of the second electronic device 300 .
  • the prompt text 342 or the prompt text 343 may also be displayed according to the state of the second electronic device 300 connected to the stylus.
  • the second electronic device 300 may display a lock screen interface 350 and display a connection prompt box 351 on the lock screen interface 350 .
  • the connection prompt box 351 includes a search result prompt 352 (eg, searched for pencil).
  • search result prompt 352 eg, searched for pencil
  • the second electronic device 300 may display the search in the form of a push message Result prompt 352 (for example, add the search result prompt 352 to the notification bar); if the second electronic device 300 receives the user's unlocking operation, in response to the operation, the second electronic device 300 may display a connection prompt as shown in FIG. 8 Block 310.
  • connection prompt box 310 provided in this embodiment of the present application may also be displayed on other interfaces, such as an interface of a video application, an interface of a picture application, etc., which is not specifically limited here.
  • the stylus 100 may also search for Bluetooth broadcasts when the first electronic device 200 does not detect the first operation.
  • the first operation includes the operation of the stylus 100 on the screen of the second electronic device 300 .
  • the second electronic device 300 may determine its own connection status and whether to enable the Bluetooth function after detecting the first operation. If it is determined that no other stylus is connected to itself and the Bluetooth function is turned on, the second electronic device 300 can send a Bluetooth broadcast.
  • the Bluetooth broadcast is used to enable other devices (eg, the stylus 100 ) to discover the second electronic device 300 , so that other devices (eg, the stylus 100 ) can establish a wireless communication connection with the second electronic device 300 and communicate via Bluetooth.
  • the second electronic device 300 may directly display a connection prompt box 310 as shown in FIG. 9 after establishing a Bluetooth connection with the stylus 100 .
  • Reminder information 313 may be displayed on the connection prompt box 310 .
  • the reminder information 313 is used to remind the user that the Pencil has been connected, indicating that the second electronic device 300 has established a connection with the stylus 100 .
  • the second electronic device 300 may display a function prompt box 360 as shown in FIG. 17 if it determines that the Bluetooth function is not enabled by itself.
  • the function prompt box 360 includes a reminder text 361, and the reminder text 361 is used to remind the user that the Bluetooth function of the second electronic device 300 is not turned on.
  • the function prompt box 360 may further include a "unturn on” button 362, and the "unturn on” button 362 is used to provide the user with a way to quickly turn on the Bluetooth function.
  • the second electronic device 300 may also determine its own connection status, whether to enable the Bluetooth function, and whether to enable the stylus function. If it is determined that no other stylus is connected to itself, the Bluetooth function is turned on, and the stylus function is turned on, the second electronic device 300 can send a Bluetooth broadcast. In addition, the second electronic device 300 may directly display a connection prompt box 310 as shown in FIG. 9 after establishing a Bluetooth connection with the stylus 100 .
  • the second electronic device 300 may also display a function prompt box 370 as shown in FIG. 18 when judging that the stylus function is not enabled by itself.
  • the function prompt box 370 includes a reminder text 371, and the reminder text 371 is used to remind the user that the stylus pen function is not enabled on the second electronic device 300.
  • the function prompt box 370 may further include a "deactivate” button 372, and the "deactivate” button 372 is used to provide the user with a way to quickly activate the stylus function.
  • the second electronic device 300 may receive a user's operation (eg, a click operation) on the "unturn on” button 372, and in response to the operation, the second electronic device 300 may jump to the stylus function interface 380 as shown in FIG. 19 .
  • the stylus function interface 380 may include a switch button 381 and a prompt text 382.
  • the second electronic device 300 may receive a user's operation on the switch button 381 (eg, a click operation, a sliding operation, etc.), and in response to the operation, the second electronic device 300
  • the switch button 381 can be switched to an on state to enable the stylus function of the second electronic device 300 .
  • the prompt text 382 is used to instruct the user: 1. When the stylus is not connected to the host, after the stylus function is turned on, if a stylus double-clicks the screen, the host and the stylus will be automatically paired and connected; 2. When the host and the stylus are connected , After the stylus function is turned on, if another stylus double-clicks the screen, the host will disconnect the previously connected stylus and pair it with the double-click stylus.
  • the user can also choose to enable the stylus function in the manner shown in FIG. 11 to FIG. 15 , which is not limited herein.
  • the stylus function described in the embodiments of the present application may refer to the function of quickly connecting the stylus to the electronic device.
  • the stylus 100 which can be connected to surrounding stylus devices (such as the stylus 100) only when the stylus is not connected and the Bluetooth function is turned on
  • the stylus can be quickly connected by limiting the scene (that is, when the stylus function is turned on). below), which can effectively avoid the problem of frequent pop-up of the connection prompt box 310 caused by too many active Bluetooth devices (ie, devices sending Bluetooth broadcasts) around the second electronic device 300, and can avoid the problem of false touches of the surrounding stylus devices.
  • FIG. 7 to FIG. 19 show the situation that there is only one unmatched electronic device (the second electronic device 300 ) around the stylus 100 .
  • the stylus 100 may be in a paired state with the first electronic device 200
  • the stylus 100 is in an unpaired state with the second electronic device 300 and the third electronic device 400 . If the user wishes to pair the stylus 100 with the second electronic device 300 and establish a connection, the user can use the stylus 100 to perform the first operation.
  • the stylus 100 may ask the first electronic device 200 whether the first operation is also detected after the stylus 100 detects the first operation, and the process of the stylus 100 asking the first electronic device 200 whether the first operation has been detected may be as described above. described, and will not be repeated here.
  • the second electronic device 300 and the third electronic device 400 receive the Bluetooth broadcast sent by the stylus 100, and the second electronic device 300 is not connected to another stylus and the stylus function is turned on, and the third electronic device 400 is not connected If there is another stylus and the stylus function is enabled, as shown in FIG. 21 , the second electronic device 300 may display a connection prompt box 310 , and the third electronic device 400 may display a connection prompt box 410 . If the user wishes to establish a connection between the stylus 100 and the second electronic device 300 , the user may operate the connection button 312 of the connection prompt box 310 .
  • the second electronic device 300 receives the user's operation on the connect button 312, in response to the operation, the second electronic device 300 can initiate pairing and connection operations on the stylus 100, and after the stylus 100 is successfully connected, as shown in FIG. 22 As shown, a reminder message 313 is displayed in the connection prompt box 310 .
  • the third electronic device 400 can close the connection prompt box 410 .
  • the third electronic device may close the connection prompt box 410 when the user's operation on the connection button of the connection prompt box 410 is not received for a preset time.
  • FIGS. 20 to 22 only briefly illustrate that when there are multiple unpaired devices around the stylus 100, the basic principle and the resulting technical effects are the same as those of the above-mentioned embodiment. For the sake of brief description, this embodiment does not mention For details, reference may be made to the content described in the above-mentioned FIG. 7 to FIG. 19 , which will not be repeated here.
  • the stylus pen connection method provided by the embodiment of the present application may include the following two ways: (1) the electronic device initiates the connection actively; (2) the stylus pen initiates the connection; Actively initiate a connection. It should be noted that the electronic devices (electronic device A, electronic device B, electronic device C, electronic device D) and stylus (stylus A and stylus B) mentioned later have the Bluetooth function turned on, so the Not described again in the flowchart.
  • the stylus connection method includes:
  • the Bluetooth pairing may include classic Bluetooth pairing and BLE pairing.
  • the electronic device A may also be in a Bluetooth connection state with the stylus A, or may be in a state of disconnecting the Bluetooth connection due to reasons such as being too far away.
  • the stylus A receives a double-click operation.
  • the double-click operation may refer to the operation of the user double-clicking the screen or desktop of the electronic device B (electronic device 300 ) with the stylus A (stylus 100 ) as shown in FIG. 7 .
  • the double-click operation may also be a triple-click operation, a long-press operation, or the like.
  • the stylus A detects a double-click event.
  • a corresponding hardware interrupt can be sent to the kernel layer (the kernel layer includes sensor drivers, display drivers, etc.), and the kernel layer can process the double-click operation into Double-click event (including information such as the timestamp of the double-click operation).
  • the stylus A inquires about the connection status, and determines whether the electronic device is connected.
  • S105 may be executed; if the stylus A inquires that it is not connected to an electronic device, then S108 may be executed.
  • the stylus A can read the identification information corresponding to the connection state. For example, if the identification information is 1, it means that the stylus A is connected to an electronic device; if the identification information is 0, it means that the stylus is connected to an electronic device. ANo electronic device is connected. After the stylus A finds out that there is a connected electronic device, the device name, MAC address, etc. of the connected electronic device can be further inquired. Exemplarily, the stylus A can query and find that the electronic device connected to it is the electronic device A.
  • the stylus A sends a query instruction to the electronic device A.
  • the query instruction may be used to instruct the electronic device A to query whether a double-click event is detected.
  • the electronic device A feeds back the query result to the stylus A.
  • the electronic device A After receiving the query instruction, the electronic device A can query whether a double-click event is detected in response to the query instruction, and feed back the query result to the stylus A.
  • the stylus A determines whether the electronic device A detects a double-click event.
  • the stylus A can determine whether the electronic device A detects a double-click event based on the query result. If the double-click operation in S102 is initiated by the user using the stylus A to the electronic device A, the electronic device A can detect the double-click event; otherwise, the electronic device A cannot detect the double-click event. In this way, by judging whether the electronic device A detects a double-click event, it can be determined whether the double-click operation in S102 occurs between the stylus pen A and the electronic device A.
  • the double-click operation occurs between the stylus A and the electronic device A, it can be considered that the double-click operation may be caused by the user double-clicking the screen of the electronic device A with the stylus A, and it is a normal operation between the stylus A and the electronic device A. Interaction, the process can be ended without replacing the electronic device connected to the stylus A. If the double-click operation does not occur between the stylus A and the electronic device A, it can be considered that the double-click operation may be initiated by the user wishing to replace the electronic device connected to the stylus A. Therefore, the electronic device connected to the stylus A needs to be replaced. , you can continue to execute S108.
  • the stylus A sends a Bluetooth broadcast.
  • Bluetooth broadcast is used to enable other devices (eg, electronic device B) to discover stylus A, establish a wireless communication connection with other devices (eg, electronic device B), and communicate with other devices (eg, electronic device B) through Bluetooth .
  • the Bluetooth broadcast may carry a device name, a device address and a device type (class of device, CoD).
  • the Bluetooth broadcast may also carry the first indication information and the second indication information.
  • the first indication information is used to indicate that the stylus A can be paired, and the second indication information is used to indicate that the stylus A can be connected.
  • the Bluetooth broadcast may also carry a universally unique identifier (UUID).
  • the device types can include computers, mobile phones, network access points, audio and video equipment (such as headphones, etc.), human-computer interaction devices (such as mice, keyboards, etc.), printers, digital cameras, etc., wearable devices (such as glasses, etc.) and toys and games.
  • the device type of the stylus A may be a human-computer interaction device.
  • the stylus A can send the Bluetooth broadcast within the first preset time.
  • a stylus can send a bluetooth broadcast for N seconds.
  • N can be any number such as 2, 3.5, 5.6, etc.
  • the electronic device B inquires about the connection status, and determines whether the stylus B is connected.
  • S111 can be executed; if the electronic device B finds that the stylus B is connected, the process can be ended. It should be noted that the stylus B can be any stylus that is different from the stylus A.
  • the electronic device B can query its own connection status to determine whether a stylus (eg, stylus B) is connected. In an optional implementation manner, the electronic device B can read the identification information of the connection state. For example, if the identification information is 1, it means that the electronic device B is connected to another stylus; if the identification information is 0, it means that the electronic device B has no other stylus connected.
  • a stylus eg, stylus B
  • the electronic device B inquires whether the stylus function is enabled.
  • S112 can be executed; if the electronic device B finds that the stylus function is not enabled, it can refer to the interfaces shown in FIGS. 11-15 to enable the stylus function.
  • S109-S110 may be executed first; or S108 may be executed first, and then S109-S110, which is not specifically limited here.
  • the electronic device B scans the Bluetooth broadcast.
  • the electronic device B can determine whether the Bluetooth broadcast is sent by a stylus according to the device type carried by the Bluetooth device. If the device indicated by the device type carried by the Bluetooth broadcast is a stylus (stylus A), and the Bluetooth broadcast carries first indication information and second indication information, the first indication information is used to indicate that the stylus A can be paired , the second indication information is used to indicate that the stylus A can be connected, and the electronic device B can be paired and connected with the stylus A.
  • the device indicated by the device type carried by the Bluetooth broadcast is a stylus (stylus A)
  • the Bluetooth broadcast carries first indication information and second indication information
  • the first indication information is used to indicate that the stylus A can be paired
  • the second indication information is used to indicate that the stylus A can be connected
  • the electronic device B can be paired and connected with the stylus A.
  • the electronic device B pops up a connection prompt box.
  • connection prompt box may be the connection prompt box 310 shown in FIG. 8 .
  • the electronic device B receives the operation of confirming the connection.
  • the operation of confirming the connection may be an operation of the user clicking the connection button 312 as shown in FIG. 8 .
  • the electronic device B establishes a Bluetooth connection with the stylus A.
  • the Bluetooth connection may include a classic Bluetooth connection and a BLE connection.
  • the electronic device B and the stylus A can establish a BLE connection.
  • electronic device B can first establish a GATT connection with the stylus to align the core protocols of electronic device B and stylus A; and then establish a HOGP connection to align the application specifications of electronic device B and stylus A.
  • the stylus A is a single-connection stylus, and the stylus A is connected to the electronic device A, before the Bluetooth connection between the electronic device B and the stylus A is established, the stylus A needs to be disconnected from the electronic device. Device A connection. If the stylus A is a multi-connection stylus, the stylus A can directly establish a Bluetooth connection with the electronic device B, and after the connection is established, the electronic device B is set as the active device and the electronic device A is set as the inactive device.
  • the stylus A can stop sending the Bluetooth broadcast.
  • the stylus connection method provided by the embodiment of the present application only requires double-clicking (or other operations) with the stylus tip on the screen of a non-connected device (such as electronic device B), and the electronic device (electronic device B) that enables the stylus function around the stylus pen. ), a connection prompt box will pop up, so that users can select devices for pairing and connection according to their needs.
  • the Bluetooth connection between the stylus and the non-connected device can be established only by the user's double-click operation. The process is simple and convenient, and different types of stylus can use the stylus connection method of the embodiment of the present application, which has high adaptability and is suitable for friendly user.
  • the embodiment of the present application further provides another method for connecting a stylus.
  • the stylus A is a multi-connection stylus and has been paired and connected with multiple electronic devices; in addition, there are multiple unpaired electronic devices around the stylus A.
  • the method includes:
  • the electronic device D is successfully paired with the stylus A via Bluetooth.
  • the stylus A receives a double-click operation.
  • the stylus A detects a double-click event.
  • the stylus A inquires about the connection status, and determines whether the electronic device is connected.
  • the stylus A may be a multi-connection stylus, which can detect that it is connected to multiple electronic devices (eg, electronic device A, electronic device D). In this way, if the stylus A inquires that it is connected to an electronic device, S206 and S208 may be executed; if the stylus A inquires that it is not connected to an electronic device, then S211 may be executed.
  • electronic devices eg, electronic device A, electronic device D.
  • S206 and S208 may be executed; if the stylus A inquires that it is not connected to an electronic device, then S211 may be executed.
  • the stylus A sends a query instruction to the electronic device A.
  • the stylus A sends a query instruction to the electronic device D.
  • S206 may be executed first and then S208 may be executed, or S208 may be executed first and then S206, or S206 and S208 may be executed simultaneously.
  • the electronic device D feeds back the query result to the stylus.
  • the stylus determines whether the electronic device A and the electronic device D detect a double-click event.
  • the query result indicates that any one of the electronic device A or the electronic device D detects a double-click event, it can be considered that the double-click event is an operation triggered during the user's normal use of the stylus A, and the process can be ended. Conversely, if the query result indicates that neither electronic device A nor electronic device D detects a double-click event, it can be considered that the double-click event is initiated by the user wishing to replace the electronic device connected to the stylus, and S211 can be executed.
  • the stylus sends a Bluetooth broadcast.
  • the electronic device B scans the Bluetooth broadcast.
  • the electronic device C scans the Bluetooth broadcast.
  • S212 may be executed first and then S213 may be executed, or S213 may be executed first and then S212 may be executed, or S212 and S213 may be executed simultaneously.
  • the electronic device B inquires about the connection status, and determines whether the stylus B is connected.
  • the stylus B and the stylus A are not the same stylus device.
  • the electronic device B inquires whether the stylus function is enabled.
  • the electronic device B pops up a connection prompt box.
  • connection prompt box may be the connection prompt box 310 shown in FIG. 8 or the connection prompt box 351 shown in FIG. 16 .
  • the electronic device C inquires about the connection status, and determines whether the stylus C is connected.
  • the stylus C and the stylus A are not the same stylus device.
  • the stylus C and the stylus B can be the same stylus device.
  • the electronic device C inquires whether the stylus function is enabled.
  • the electronic device C pops up a connection prompt box.
  • connection prompt box may be the connection prompt box 310 shown in FIG. 8 or the connection prompt box 351 shown in FIG. 16 .
  • the electronic device B receives the operation of confirming the connection.
  • the operation of confirming the connection may be an operation of clicking the connection button 312 of the connection prompt box 310 by the user as shown in FIG. 8 .
  • the electronic device B establishes a BT connection with the stylus A.
  • the stylus connection method provided by the embodiment of the present application. Just double-click (or other operations) with the tip of the stylus on the screen of a non-connected device (such as electronic device B, electronic device C, desktop), and the electronic devices (electronic device B, electronic device C) with the stylus function enabled around the stylus can pop up
  • a non-connected device such as electronic device B, electronic device C, desktop
  • the electronic devices electronic device B, electronic device C
  • the connection prompt box enables users to select devices for pairing and connection according to their needs.
  • the stylus connection method includes:
  • the stylus A detects a double-click event.
  • the stylus A inquires about the connection status, and determines whether the electronic device is connected.
  • S305 may be executed; if the stylus A finds that it is not connected to an electronic device, then S308 may be executed.
  • the stylus A sends a query instruction to the electronic device A.
  • the stylus A determines whether the electronic device A detects a double-click event.
  • S308 can be executed; if the stylus A determines that the electronic device A has detected a double-click event, the process ends.
  • S301 to S307 are the processes in which the stylus 100 determines whether the electronic device A has detected a double-click event.
  • S101 to S107 are the contents of S101 to S107 in the above embodiment.
  • 32 frequency points in the 2.402GHz-2.480GHz frequency band can be used as channels to perform Bluetooth scanning.
  • the stylus A can scan 32 channels at certain time intervals to see if there is a Bluetooth broadcast sent by other devices (such as electronic device B).
  • the electronic device B detects a double-click event.
  • the electronic device B can also detect the double-click event.
  • the electronic device B inquires about the connection status, and determines whether the stylus B is connected.
  • the electronic device B After the electronic device B detects the double-click event, it can query its own connection status to determine whether a stylus (eg, stylus B) is connected. In an optional implementation manner, the electronic device B can read the identification information of the connection state. For example, if the identification information is 1, it means that the electronic device B is connected to another stylus; if the identification information is 0, it means that the electronic device B has no other stylus connected.
  • a stylus eg, stylus B
  • S311 may be executed; if the electronic device B inquires that a stylus (eg, the stylus B) is connected, S312 may be executed.
  • the electronic device B determines whether to enable the stylus function.
  • S314 may be executed; if the electronic device B determines that the stylus function is not enabled, the process ends.
  • the electronic device B determines whether the double-click event is initiated by the stylus B.
  • the double-click event detected by the electronic device B may also be initiated by the stylus B. If the double-click event is initiated by the stylus B, it can be considered that the double-click operation may be caused by the user double-clicking the screen of the electronic device B with the stylus B. It is a normal interaction between the stylus B and the electronic device B, and there is no need to replace the handwriting.
  • the electronic device connected to Pen B can end the process.
  • the double-click operation is not initiated by the stylus B, it can be considered that the double-click operation may be initiated by the user wishing to replace the electronic device connected to the stylus A, and therefore the execution of S312 can be continued.
  • the electronic device B may send a query instruction to the stylus B, where the query instruction may be used to instruct the stylus B to query whether a double-click event is detected.
  • the stylus B can query whether a double-click event is detected in response to the query instruction, and feed back the query result to the electronic device B. In this way, the electronic device B can determine whether the double-click event is initiated by the stylus B based on the query result.
  • the double-click operation is not initiated by the stylus B, it can be considered that the double-click operation may be initiated by the user wishing to replace the electronic device connected to the stylus A. Therefore, the connection between the electronic device B and the stylus B is disconnected to establish The connection between electronic device B and stylus A.
  • the electronic device B sends a Bluetooth broadcast.
  • S303 to S308 show the flow of the stylus B entering the scan state
  • S309 to S315 show the flow of the electronic device B to send a Bluetooth broadcast.
  • serial numbers are only for explanation and description, and in fact there is no strict sequence between the two processes.
  • the electronic device B may send the Bluetooth broadcast within the second preset time.
  • a stylus can send a bluetooth broadcast for M seconds.
  • M can be any number such as 1, 2.5, 4.7, etc.
  • the stylus A scans the Bluetooth broadcast.
  • the stylus A is in the scan state, and the electronic device B is in the discoverable and connectable state. After the stylus A scans the Bluetooth broadcast of the electronic device B, it can be paired with the electronic device B.
  • the stylus A establishes a Bluetooth connection with the electronic device.
  • the stylus connection method provided by the embodiment of the present application, after the stylus double-clicks on the electronic device (for example, electronic device B) that enables the stylus function, the stylus can be automatically paired and connected to the electronic device, without the need for a connection prompt box; And even if other stylus (for example, stylus B) is connected to the electronic device before, it will actively disconnect the previous stylus.
  • the whole connection process is simpler, and there is no need for the user to make a second selection.
  • the embodiment of the present application further provides another method for connecting a stylus.
  • the method includes:
  • the stylus A detects a double-click event.
  • the stylus A inquires about the connection status, and determines whether the electronic device is connected.
  • S405 may be executed; if the stylus A inquires that it is not connected to an electronic device, then S408 may be executed.
  • the stylus A sends a query instruction to the electronic device A.
  • the electronic device A feeds back the query result to the stylus A.
  • the stylus A determines whether the electronic device A detects a double-click event.
  • S408 can be executed; if the stylus A determines that the electronic device A has detected a double-click event, the process ends.
  • S401 to S408 are the processes in which the stylus 100 enters the scanning state, and the basic principle and the resulting technical effects are the same as those in the above-mentioned embodiment. For the sake of brief description, this embodiment does not mention them. where, reference may be made to the contents of S401 to S408 in the above-mentioned embodiment.
  • the electronic device B detects a double-click event.
  • the electronic device B inquires about the connection status, and determines whether the stylus B is connected.
  • S413 may be executed; if the electronic device B inquires that a stylus (eg, the stylus B) is connected, S411 may be executed.
  • the electronic device B determines whether the double-click event is initiated by the stylus B.
  • the process can be ended. If the double-click operation is not initiated by the stylus B, S412 may be continued.
  • the double-click operation is not initiated by the stylus B, it can be considered that the double-click operation may be initiated by the user wishing to replace the electronic device connected to the stylus A. Therefore, the connection between the electronic device B and the stylus B is disconnected to establish an electronic The connection between device B and stylus A.
  • the electronic device B determines whether to enable the stylus function.
  • S416 may be performed; if the electronic device B determines that the stylus function has not been enabled, S412 may be performed.
  • the function prompt box may be the function prompt box 370 shown in FIG. 18 .
  • the function prompt box 370 is provided with a reminder text 371 , and the reminder text 371 is used to remind the user that the stylus pen function is not enabled on the second electronic device 300 .
  • the electronic device B receives the operation of enabling the stylus pen function.
  • the function prompt box 370 may also include a "de-enable" button 372 .
  • the operation of turning on the stylus function may include: the electronic device B receives the user's operation on the "unturn on” button 372, and in response to the operation, the second electronic device 300 jumps to the stylus function interface as shown in FIG. 19 .
  • the stylus function interface 380 is provided with a switch button 381.
  • the second electronic device 300 receives an operation (eg, a click operation, a sliding operation, etc.) of the switch button 381 by the user, and in response to the operation, the second electronic device 300 can switch the switch button 381 to an on state.
  • the electronic device B sends a Bluetooth broadcast.
  • S403 to S408 show the flow of the stylus B entering the scan state
  • S409 to S416 show the flow of the electronic device B to send a Bluetooth broadcast.
  • serial numbers are only for explanation and description, and in fact there is no strict sequence between the two processes.
  • the stylus A scans the Bluetooth broadcast.
  • the stylus A is paired with the electronic device B.
  • the stylus connection method provided by the embodiment of the present application can remind the user to enable the stylus function in time when the stylus function is not enabled on the electronic device, which can effectively reduce the failure of connection due to the failure of the stylus function. question.
  • FIG. 27 is a signaling diagram of a method for connecting a stylus pen provided by an embodiment of the present application.
  • the method includes:
  • a first stylus detects a target event.
  • the first stylus has been paired with the first electronic device, but has not been paired with the second electronic device.
  • the first stylus may be the stylus 100 (stylus A) in the Bluetooth system 10 shown in FIG. 1
  • the first electronic device may be the first electronic device 200 (electronic device A)
  • the second electronic device may be The second electronic device 300 (electronic device B).
  • the first stylus, the first electronic device and the second electronic device all have the Bluetooth function enabled.
  • Target events may include double-click events, triple-click events, long-press events, or slide-up events, slide-down events, and events of drawing a specific shape (eg, a circle, a triangle, etc.), which are not specifically limited here.
  • the first stylus In response to detecting the target event, the first stylus sends a Bluetooth broadcast.
  • the Bluetooth broadcast carries first indication information and second indication information, the first indication information is used to indicate that the first stylus can be paired, and the second indication information is used to indicate that the first stylus can be connected.
  • the first stylus if the first stylus detects the target event and the first stylus is not connected to the first electronic device, the first stylus sends a Bluetooth broadcast.
  • the first stylus detects the target event and the first stylus is connected to the first electronic device, the first stylus sends a first instruction to the first electronic device, and the first instruction is used to Inquire whether the first electronic device detects the target event; the first stylus receives a first response from the first electronic device, where the first response is used to indicate that the first electronic device does not detect the target event; the first stylus sends a Bluetooth broadcast.
  • the first instruction may be a query instruction
  • the first response may be a query result.
  • the first stylus sends a Bluetooth broadcast within a first preset time.
  • the first stylus stops sending Bluetooth broadcasts.
  • the second electronic device scans the Bluetooth broadcast.
  • the second electronic device In response to scanning the Bluetooth broadcast, the second electronic device displays a connection prompt box.
  • connection prompt box may be the connection prompt box 310 shown in FIG. 8 .
  • the connection prompt box includes a first option (eg, a connection button 312 ), and the first option is used to instruct the second electronic device to establish a Bluetooth connection with the first stylus.
  • the second electronic device if the second electronic device scans the Bluetooth broadcast and the second electronic device enables the stylus function, the second electronic device displays a connection prompt box; wherein the stylus function is used to instruct the second electronic device Show the connection prompt when the first stylus to connect is found.
  • the second electronic device In response to the user's operation on the first option, the second electronic device is paired with the first stylus, and establishes a Bluetooth connection with the first stylus.
  • the second electronic device may display reminder information, where the reminder information is used to prompt the user that the second electronic device is successfully connected to the first stylus .
  • the reminder information may be reminder information 313 as shown in FIG. 9 .
  • the first stylus is a single-connection device and the first stylus is connected to the first electronic device
  • the first stylus will The first electronic device sends a disconnection request, and the disconnection request includes the identification of the first stylus.
  • the first electronic device receives the disconnection request and disconnects the first stylus.
  • the first stylus is a multi-connection device and the first stylus is connected to the first electronic device
  • the second electronic device is paired with the first stylus
  • the first stylus will The second electronic device is set as an active device, and the first stylus is set as an inactive device.
  • the first stylus sends pressure-sensitive data to the second electronic device, and the second electronic device receives the pressure-sensitive data; when the first electronic device is set as the inactive device, The first stylus does not send pressure-sensitive data to the first electronic device, and the first electronic device does not receive pressure-sensitive data.
  • first electronic device or the second electronic device in the embodiments of the present application may be in a screen-off state or a screen-on state; when the first electronic device or the second electronic device is in a screen-on state, it is in the lock screen interface, The main interface or the interface corresponding to the application.
  • FIG. 28 is a signaling diagram of another method for connecting a stylus pen provided by an embodiment of the present application.
  • the method includes:
  • the second electronic device detects a target event.
  • the second electronic device is not paired with the first stylus, but the first stylus has been paired with the first electronic device.
  • the first stylus may be the stylus 100 (stylus A) in the Bluetooth system 10 shown in FIG. 1
  • the first electronic device may be the first electronic device 200 (electronic device A)
  • the second electronic device may be The second electronic device 300 (electronic device B).
  • the first stylus, the first electronic device and the second electronic device all have the Bluetooth function enabled.
  • Target events may include double-click events, triple-click events, long-press events, or slide-up events, slide-down events, and events of drawing a specific shape (eg, a circle, a triangle, etc.), which are not specifically limited here.
  • the second electronic device In response to detecting the target event, the second electronic device sends a Bluetooth broadcast.
  • the Bluetooth broadcast carries first indication information and second indication information, the first indication information is used to indicate that the second electronic device can be paired, the second indication information is used to indicate that the second electronic device can be connected, and the target event includes a double-click event, three Click event or long press event.
  • the second electronic device sends a Bluetooth broadcast within a first preset time.
  • the second electronic device stops sending the Bluetooth broadcast.
  • the first stylus detects the target event.
  • S2801 may be executed first and then S2803 may be executed, or S2803 may be executed first and then S2801 may be executed, or S2801 and S2803 may be executed simultaneously.
  • the first stylus scans the Bluetooth broadcast.
  • the first stylus In response to detecting the target event and scanning the Bluetooth broadcast, the first stylus is paired with the second electronic device, and establishes a Bluetooth connection with the second electronic device.
  • the first stylus is paired with the second electronic device and paired with the first stylus.
  • the two electronic devices establish a Bluetooth connection.
  • the first stylus if the first stylus is connected to the first electronic device, in response to detecting the target event and scanning the Bluetooth broadcast, the first stylus sends a first instruction to the first electronic device, and the first stylus sends a first instruction to the first electronic device.
  • the instruction is used to query whether the first electronic device detects the target event.
  • the first stylus receives a first response from the first electronic device, and the first response is used to indicate that the first electronic device does not detect the target event.
  • the first stylus is paired with the second electronic device, and establishes a Bluetooth connection with the second electronic device.
  • the first stylus is directed to the first stylus.
  • the first electronic device sends a disconnection request, and the disconnection request includes the identification of the first stylus.
  • the first electronic device receives the disconnection request and disconnects the first stylus.
  • the first stylus after the second electronic device is paired and connected to the first stylus, if the first stylus is a multi-connection device and the first stylus is connected to the first electronic device, the first stylus will The second electronic device is set as an active device, and the first stylus is set as an inactive device.
  • the first stylus when the second electronic device is set as the activation device, the first stylus sends pressure-sensitive data to the second electronic device, and the second electronic device receives the pressure-sensitive data; when the first electronic device is set as the inactive device, The first stylus does not send pressure-sensitive data to the first electronic device, and the first electronic device does not receive pressure-sensitive data.
  • the second electronic device may display reminder information.
  • the reminder information is used to prompt the user that the second electronic device is successfully connected with the first stylus.
  • a Bluetooth system including a first stylus, a first electronic device, and a second electronic device.
  • the first stylus has been paired with the first electronic device, and the first stylus has not been paired with the second electronic device.
  • the first stylus, the first electronic device, and the second electronic device all turn on the Bluetooth function, the first stylus executes each function or step of the stylus A in the above method embodiments, and the second electronic device executes the above methods.
  • Another embodiment of the present application provides a computer-readable storage medium including computer instructions.
  • the computer instruction is run on the first stylus, the first stylus is made to perform each function or step of the stylus A in the above method embodiments;
  • the computer instruction is run on the second electronic device, the second electronic device is made Execute each function or step of the electronic device B in the above method embodiments.
  • the chip system includes at least one processor 2901 and at least one interface circuit 2902.
  • the processor 2901 and the interface circuit 2902 may be interconnected by wires.
  • the interface circuit 2902 may be used to receive signals from other devices (eg, the memory of the first stylus or the memory of the second electronic device).
  • the interface circuit 2902 may be used to send signals to other devices (eg, the processor 2901).
  • the interface circuit 2902 may read the instructions stored in the memory in the first stylus and send the instructions to the processor 2901 .
  • the first stylus (the stylus 100 shown in FIG. 2) can be made to execute the steps in the above embodiments.
  • the interface circuit 2902 can read the instructions stored in the memory of the second electronic device, and send the instructions to the processor 2901 .
  • the second electronic device (such as the electronic device as shown in FIG. 4) can be made to execute each step in the above-mentioned embodiment.
  • the chip system may also include other discrete devices, which are not specifically limited in this embodiment of the present application.
  • the stylus connection method provided by the embodiment of the present application only requires the user to double-click to realize the pairing connection, which is simpler and more convenient. convenient.
  • the method is also suitable for a stylus device without a magnetic attraction function and without a USB interface, and has strong adaptability.
  • Each functional unit in each of the embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • a computer-readable storage medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Position Input By Displaying (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

La présente invention concerne un procédé de connexion de stylet et un système Bluetooth (BT). Au moyen d'une opération prédéfinie commode et rapide (telle qu'une opération de double clic, de triple clic ou d'appui long), un stylet peut être déclenché pour être appairé avec un dispositif électronique qui n'a pas été connecté auparavant, ce qui est simple, pratique et hautement adaptable. Le procédé comprend les étapes suivantes : un premier stylet émet une diffusion Bluetooth en réponse à la détection d'un événement cible, la diffusion Bluetooth transportant des premières informations d'indication et des secondes informations d'indication, les premières informations d'indication étant utilisées pour indiquer que le premier stylet peut être appairé, les secondes informations d'indication étant utilisées pour indiquer que le premier stylet peut être connecté, et l'événement cible comprenant un événement de double clic, un événement de triple clic, ou un événement d'appui long; en réponse à un balayage de la diffusion Bluetooth, un second dispositif électronique affiche une fenêtre d'invite de connexion, la fenêtre d'invite de connexion comprenant une première option utilisée pour ordonner au second dispositif électronique d'établir une connexion Bluetooth avec le premier stylet; et en réponse à une opération utilisateur sur la première option, le second dispositif électronique établit une connexion appairée avec le premier stylet.
PCT/CN2022/070856 2021-04-22 2022-01-07 Procédé de connexion de stylet et système bluetooth WO2022222552A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110436431.2 2021-04-22
CN202110436431.2A CN113115294B (zh) 2021-04-22 2021-04-22 一种手写笔连接方法及蓝牙系统

Publications (1)

Publication Number Publication Date
WO2022222552A1 true WO2022222552A1 (fr) 2022-10-27

Family

ID=76719584

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/070856 WO2022222552A1 (fr) 2021-04-22 2022-01-07 Procédé de connexion de stylet et système bluetooth

Country Status (2)

Country Link
CN (1) CN113115294B (fr)
WO (1) WO2022222552A1 (fr)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113115294B (zh) * 2021-04-22 2022-05-03 荣耀终端有限公司 一种手写笔连接方法及蓝牙系统
CN113518336B (zh) * 2021-07-16 2024-06-21 Oppo广东移动通信有限公司 蓝牙连接的提示方法、装置、终端及存储介质
CN113645599A (zh) * 2021-08-13 2021-11-12 联想(北京)有限公司 基于电子设备交互的信息处理方法及第一电子设备
CN113810884B (zh) * 2021-09-15 2022-08-09 荣耀终端有限公司 一种电子设备连接方法、电子设备及介质
CN115884140A (zh) * 2021-09-29 2023-03-31 华为技术有限公司 跨设备连接方法、电子设备及存储介质
CN114217699B (zh) * 2021-11-02 2023-10-20 华为技术有限公司 一种检测手写笔笔尖方向的方法、电子设备及手写笔

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004038354A (ja) * 2002-07-01 2004-02-05 Toshiba Corp 情報端末
CN109871143A (zh) * 2019-02-12 2019-06-11 广州视源电子科技股份有限公司 触控笔与触控设备的配对方法及装置
WO2020024273A1 (fr) * 2018-08-03 2020-02-06 深圳市汇顶科技股份有限公司 Procédé et système de connexion de communication sans fil à courte distance, stylo actif et écran tactile
CN110968206A (zh) * 2019-11-21 2020-04-07 上海墨案智能科技有限公司 电磁手写笔的扩展功能按键方法及设备
CN113115294A (zh) * 2021-04-22 2021-07-13 荣耀终端有限公司 一种手写笔连接方法及蓝牙系统

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050073393A (ko) * 2004-01-09 2005-07-13 구대근 캐드 도면을 자동 생성, 저장, 관리 하는 디지털전자펜마우스
KR101623214B1 (ko) * 2010-01-06 2016-05-23 삼성전자주식회사 다기능 펜 및 다기능 펜의 사용 방법
US9265074B2 (en) * 2011-10-06 2016-02-16 Qualcomm Incorporated Pen-based content transfer system and method thereof
KR20150069969A (ko) * 2013-12-16 2015-06-24 최준호 Nfc 태그를 포함한 블루투스 스타일러스 펜
CN103744555B (zh) * 2014-01-06 2017-11-10 溢洋光电(深圳)有限公司 即时通信手写笔迹双向显示还原方法及相关系统和方法
US10782799B2 (en) * 2014-05-13 2020-09-22 Lenovo (Singapore) Pte. Ltd. Smart pen pairing and connection
CN205302216U (zh) * 2015-12-29 2016-06-08 广州磐信计算机科技有限公司 一种蓝牙通讯手写笔
CN105898678B (zh) * 2016-03-29 2018-12-14 联想(北京)有限公司 一种配对方法和电子设备
CN106131971A (zh) * 2016-06-20 2016-11-16 乐视控股(北京)有限公司 蓝牙设备的连接方法及装置
CN108919983B (zh) * 2018-06-15 2021-10-26 广州视源电子科技股份有限公司 基于智能笔操作的书写启动方法及系统
CN110347269B (zh) * 2019-06-06 2022-02-15 华为技术有限公司 一种空鼠模式实现方法及相关设备
CN110582078B (zh) * 2019-08-28 2023-01-20 RealMe重庆移动通信有限公司 一种蓝牙配对方法、装置、存储介质及电子设备
CN111679755A (zh) * 2020-04-29 2020-09-18 上海奇初教育科技有限公司 一种手写笔迹大数据收集系统
CN112527134A (zh) * 2020-12-03 2021-03-19 维沃移动通信有限公司 触控笔及其控制方法和电子设备
CN112637826A (zh) * 2020-12-14 2021-04-09 深圳市皓丽智能科技有限公司 一种触控笔与触控设备连接方法及相关设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004038354A (ja) * 2002-07-01 2004-02-05 Toshiba Corp 情報端末
WO2020024273A1 (fr) * 2018-08-03 2020-02-06 深圳市汇顶科技股份有限公司 Procédé et système de connexion de communication sans fil à courte distance, stylo actif et écran tactile
CN109871143A (zh) * 2019-02-12 2019-06-11 广州视源电子科技股份有限公司 触控笔与触控设备的配对方法及装置
CN110968206A (zh) * 2019-11-21 2020-04-07 上海墨案智能科技有限公司 电磁手写笔的扩展功能按键方法及设备
CN113115294A (zh) * 2021-04-22 2021-07-13 荣耀终端有限公司 一种手写笔连接方法及蓝牙系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MASTER LU: "Do you know how to use the Huawei M-Pencil stylus?", 12 December 2019 (2019-12-12), pages 1 - 6, XP055977954, Retrieved from the Internet <URL:https://t.cj.sina.com.cn/articles/view/1652903123/62854cd300100lpjj?autocallup=no&isfromsina=yes> [retrieved on 20221104] *

Also Published As

Publication number Publication date
CN113115294A (zh) 2021-07-13
CN113115294B (zh) 2022-05-03

Similar Documents

Publication Publication Date Title
WO2022222552A1 (fr) Procédé de connexion de stylet et système bluetooth
US9473233B2 (en) Method and apparatus for transmitting data using relay device
AU2023203591A1 (en) Display method and apparatus
WO2022042656A1 (fr) Procédé et dispositif d&#39;affichage d&#39;interface
KR101901720B1 (ko) 더미 장치와의 연동 방법 및 그 전자 장치
EP3905786A1 (fr) Procédé et dispositif de commande de mise en réseau de dispositif domestique intelligent
WO2023279814A1 (fr) Procédé de connexion d&#39;appariement de dispositif bluetooth, dispositif électronique, dispositif bluetooth et système terminal
WO2022022490A1 (fr) Procédé et dispositif de glissement d&#39;objets entre plusieurs dispositifs
WO2020132878A1 (fr) Procédé d&#39;interrogation d&#39;un service bluetooth et dispositif électronique
WO2023179425A1 (fr) Procédé, dispositif et système de connexion de dispositif d&#39;entrée
WO2022048500A1 (fr) Procédé d&#39;affichage et dispositif
WO2021104246A1 (fr) Procédé de connexion de réseaux et dispositif électronique
WO2020135091A1 (fr) Procédé de traitement de fichier et dispositif terminal
WO2024109259A1 (fr) Procédé de réveil de veille, dispositif électronique, périphérique bluetooth et support de stockage
WO2022228028A1 (fr) Procédé de partage de fichier et dispositif électronique
WO2023040602A1 (fr) Procédé de connexion d&#39;un dispositif électronique et dispositif électronique
CN113853754A (zh) 在蓝牙tm网络环境中显示外部电子设备查询列表的电子设备和方法
WO2023160222A1 (fr) Procédé et appareil de connexion d&#39;un dispositif externe et d&#39;un terminal, dispositif, et support de stockage
CN109471841B (zh) 一种文件分类方法和装置
WO2024046315A1 (fr) Procédé et appareil de traitement d&#39;événement pour dispositif d&#39;entrée
CN114143906B (zh) 一种电子设备连接方法及电子设备
CN110086814B (zh) 一种数据获取的方法、装置及存储介质
WO2022206848A1 (fr) Procédé et dispositif d&#39;affichage d&#39;un gadget logiciel d&#39;application
US20200117350A1 (en) Screen Locking Method and Apparatus
CN115802325A (zh) 一种手写笔连接方法及蓝牙系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22790662

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22790662

Country of ref document: EP

Kind code of ref document: A1