CN115407885A - Connection control method of stylus and electronic equipment - Google Patents

Connection control method of stylus and electronic equipment Download PDF

Info

Publication number
CN115407885A
CN115407885A CN202110578582.1A CN202110578582A CN115407885A CN 115407885 A CN115407885 A CN 115407885A CN 202110578582 A CN202110578582 A CN 202110578582A CN 115407885 A CN115407885 A CN 115407885A
Authority
CN
China
Prior art keywords
electronic device
wireless connection
stylus
electronic equipment
stylus pen
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202110578582.1A
Other languages
Chinese (zh)
Inventor
罗诚
段潇潇
刘开罩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202110578582.1A priority Critical patent/CN115407885A/en
Priority to PCT/CN2022/092249 priority patent/WO2022247638A1/en
Publication of CN115407885A publication Critical patent/CN115407885A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04162Control or interface arrangements specially adapted for digitisers for exchanging data with external devices, e.g. smart pens, via the digitiser sensing hardware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

A connection control method of a stylus pen and an electronic device are provided. The method is applied to first electronic equipment, the stylus pen and second electronic equipment establish a first wireless connection, and the first wireless connection is used for realizing general service data transmission; the method comprises the following steps: the first electronic equipment receives a screen projection request sent by the second electronic equipment; the first electronic equipment responds to the screen projection request and displays a screen projection interface of the second electronic equipment; the first electronic device automatically establishes the first wireless connection with the stylus. According to the technical scheme, the first electronic device does not need to be manually managed by a user to be connected with the stylus pen, the operation process of the user when the stylus pen is used is reduced, and therefore user experience is improved.

Description

Connection control method of stylus and electronic equipment
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of terminals, in particular to a connection control method of a stylus and electronic equipment.
[ background of the invention ]
With the development of touch technology, more and more electronic devices realize a human-computer interaction function in a touch manner. In addition to the touch operation on the electronic device by the finger, the user may perform the touch operation on the electronic device by the stylus pen. Generally, a user has only one stylus pen, but has a plurality of electronic devices with touch screens, such as mobile phones, tablet computers, and the like. A stylus may support the connection of one electronic device or the connection of multiple electronic devices simultaneously.
The stylus pen and the electronic equipment are matched for use for the first time, and the user can normally use the stylus pen on the electronic equipment after the pairing is successful. At present, a user must pair a stylus pen and an electronic device in a manual operation mode, and if the stylus pen is used in various screen projection scenes, the user needs to manually manage operations such as connection and disconnection of the stylus pen, so that the operation is complex, the operation flow of using the stylus pen by the user is increased, and the user experience is reduced.
[ summary of the invention ]
In view of this, the present invention provides a connection control method for a stylus pen and an electronic device, so as to reduce an operation procedure when a user uses the stylus pen, and improve user experience.
A first aspect provides a method for controlling connection of a stylus, where the method is applied to a first electronic device, the stylus establishes a first wireless connection with a second electronic device, and the first wireless connection is used to implement general service data transmission; the method comprises the following steps: the first electronic equipment receives a screen projection request sent by the second electronic equipment; the first electronic equipment responds to the screen projection request and displays a screen projection interface of the second electronic equipment; the first electronic device automatically establishes the first wireless connection with the stylus.
In a possible implementation manner, before the first electronic device automatically establishes the first wireless connection with the stylus pen, the method further includes:
if the first electronic equipment is not matched with the stylus pen, the first electronic equipment firstly performs matching with the stylus pen and then performs establishment of the first wireless connection with the stylus pen; and/or if the first electronic device is paired with the stylus pen, directly establishing the first wireless connection between the first electronic device and the stylus pen.
In a possible implementation manner, after the first electronic device automatically establishes the first wireless connection with the stylus pen, the method further includes: the first electronic equipment records wireless connection establishment information, and the wireless connection establishment information is used for indicating that the first wireless connection between the first electronic equipment and the stylus pen is established when being triggered by screen projection operation.
In one possible implementation manner, the automatically establishing, by the first electronic device, the first wireless connection with the stylus includes: and the first electronic equipment establishes the first wireless connection with the stylus pen according to the physical address of the stylus pen acquired from the second electronic equipment in the screen projection operation process.
In one possible implementation, the screen-cast request includes a physical address of the stylus.
In a possible implementation manner, after the first electronic device automatically establishes the first wireless connection with the stylus pen, the method further includes: the first electronic equipment receives a screen-throwing disconnection instruction sent by the second electronic equipment; the first electronic equipment responds to a screen-projection disconnection instruction and stops displaying a screen-projection interface of the second electronic equipment; the first electronic equipment inquires that the first wireless connection between the first electronic equipment and the handwriting pen is established when being triggered by screen projection operation, and automatically disconnects the first wireless connection from the handwriting pen.
In one possible implementation manner, the querying that the first wireless connection between itself and the stylus pen is established by being triggered by a screen-casting operation includes: and the first electronic equipment inquires that the first wireless connection between the first electronic equipment and the handwriting pen is established by being triggered by screen-casting operation according to the recorded wireless connection establishment information.
In one possible implementation, the automatically disconnecting the first wireless connection from the stylus includes: and the first electronic equipment automatically disconnects the first wireless connection with the handwriting pen according to the physical address of the handwriting pen acquired from the second electronic equipment in the process of executing screen projection disconnection.
In one possible implementation, the screen shot disconnect instruction includes a physical address of the stylus.
In a possible implementation manner, the stylus pen establishes a second wireless connection with the second electronic device, where the second wireless connection is used to implement data transmission of a human-computer interaction service;
after the first electronic device automatically establishes the first wireless connection with the stylus pen, the method further includes: and the first electronic equipment automatically establishes the second wireless connection with the stylus pen after the second wireless connection between the stylus pen and the second electronic equipment is disconnected.
In one possible implementation, the first wireless connection is a generic attribute protocol GATT connection.
In one possible implementation, the second wireless connection is a GATT-based human interface device protocol, HOGP, connection.
A second aspect provides a connection control method for a stylus pen, where the method is applied to a first electronic device, the stylus pen establishes a first wireless connection with a second electronic device, and the first wireless connection is used to implement general service data transmission; the method comprises the following steps: the first electronic equipment sends a screen projection request to the second electronic equipment so as to display a screen projection interface of the first electronic equipment on the second electronic equipment; the first electronic equipment receives a screen projection success message returned by the second electronic equipment; the first electronic device automatically establishes the first wireless connection with the stylus.
In a possible implementation manner, before the first electronic device automatically establishes the first wireless connection with the stylus pen, the method further includes: if the first electronic equipment is not paired with the stylus pen, the first electronic equipment firstly performs pairing with the stylus pen and then performs establishment of the first wireless connection with the stylus pen; and/or if the first electronic device is paired with the stylus pen, directly establishing the first wireless connection between the first electronic device and the stylus pen.
In a possible implementation manner, after the first electronic device automatically establishes the first wireless connection with the stylus pen, the method further includes: the first electronic equipment records wireless connection establishment information, and the wireless connection establishment information is used for indicating that the first wireless connection between the first electronic equipment and the stylus pen is established when being triggered by screen projection operation.
In one possible implementation, the automatically establishing, by the first electronic device, the first wireless connection with the stylus includes: and the first electronic equipment automatically establishes the first wireless connection with the stylus pen according to the physical address of the stylus pen acquired from the second electronic equipment in the screen projection operation process.
In one possible implementation, the screen-shot success message includes a physical address of the stylus.
In a possible implementation manner, after the first electronic device automatically establishes the first wireless connection with the stylus pen, the method further includes: the first electronic equipment sends a screen projection disconnection instruction to the second electronic equipment so that a screen projection interface of the first electronic equipment stops being displayed on the second electronic equipment; the first electronic equipment receives a screen-casting disconnection success message returned by the second electronic equipment; the first electronic equipment inquires that the first wireless connection between the first electronic equipment and the handwriting pen is established when being triggered by screen projection operation, and automatically disconnects the first wireless connection with the handwriting pen.
In one possible implementation manner, the querying that the first wireless connection between itself and the stylus pen is established by being triggered by a screen-casting operation includes:
and the first electronic equipment inquires that the first wireless connection between the first electronic equipment and the handwriting pen is established by being triggered by screen projection operation according to the recorded wireless connection establishment information.
In one possible implementation, the automatically disconnecting the first wireless connection from the stylus includes: and the first electronic equipment automatically disconnects the first wireless connection with the handwriting pen according to the physical address of the handwriting pen acquired from the second electronic equipment in the screen projection disconnection process.
In one possible implementation, the screen-on disconnection success message includes a physical address of the stylus.
In a possible implementation manner, the stylus pen establishes a second wireless connection with the second electronic device, where the second wireless connection is used to implement data transmission of a human-computer interaction service;
after the first electronic device establishes the first wireless connection with the stylus pen, the method further includes: and the first electronic equipment automatically establishes the second wireless connection with the stylus pen after the stylus pen is disconnected from the second electronic equipment.
In one possible implementation, the first wireless connection is a GATT connection.
In one possible implementation, the second wireless connection is a HOGP connection.
A first wireless connection is established between the stylus and the second electronic device, and the first wireless connection is used for realizing general service data transmission;
the first electronic device includes: a display screen; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the first electronic device, cause the first electronic device to perform the first aspect or the method for connection control of a stylus in any of its possible implementations.
A fourth aspect provides a first electronic device, where a stylus pen establishes a first wireless connection with a second electronic device, and the first wireless connection is used to implement general service data transmission;
the first electronic device includes: a display screen; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the first electronic device, cause the first electronic device to perform the method for connection control of a stylus in the second aspect or any possible implementation of the second aspect.
A fifth aspect provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, where the program, when executed, controls an apparatus in which the computer-readable storage medium is located to execute a method for controlling connection of a stylus pen in the first aspect or any possible implementation manner of the first aspect, or controls the apparatus in which the computer-readable storage medium is located to execute a method for controlling connection of a stylus pen in the second aspect or any possible implementation manner of the second aspect.
A sixth aspect provides a computer program product comprising instructions which, when run on a computer or any at least one processor, cause the computer to perform the method for connection control of a stylus in the first aspect or any of the possible implementations of the first aspect, or cause the computer to perform the method for connection control of a stylus in the second aspect or any of the possible implementations of the second aspect.
In the technical scheme provided by the embodiment of the invention, the first wireless connection is established between the stylus pen and the second electronic equipment, the first electronic equipment responds to the received screen projection request sent by the second electronic equipment and displays the screen projection interface of the second electronic equipment, and then the first wireless connection is automatically established between the first electronic equipment and the stylus pen without manually managing the connection between the first electronic equipment and the stylus pen by a user, so that the operation flow of using the stylus pen by the user is reduced, and the user experience is improved.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a schematic diagram of a stylus communication system in some embodiments;
FIG. 2 is a schematic diagram of a hardware configuration of an electronic device in some embodiments;
FIG. 3 is a block diagram of the software architecture of the stylus and electronic device in some embodiments;
FIG. 4 is a schematic view of a screen projection in some embodiments;
FIGS. 5 a-5 d are schematic diagrams of a stylus establishing a first wireless connection and a second wireless connection with an electronic device in some embodiments;
FIG. 5e is a schematic diagram of the stylus being disconnected from the electronic device by a first wireless connection in some embodiments;
FIG. 6a is a flow chart of a stylus connection control method in some embodiments;
FIG. 6b is a flowchart of a method for a first electronic device to pair with a stylus and establish a first wireless connection in some embodiments;
FIG. 6c is a flow chart of a stylus pen connection control method in further embodiments;
FIG. 6d is a flowchart illustrating a method for establishing a HOGP connection with the electronic device in accordance with some embodiments;
FIG. 7a is a flow chart of a stylus pen connection control method in further embodiments;
FIG. 7b is a flow chart of a stylus pen connection control method in further embodiments;
FIGS. 8 a-8 d are schematic diagrams of a stylus establishing a first wireless connection and a second wireless connection with an electronic device in further embodiments;
FIG. 8e is a schematic diagram of another embodiment of a stylus being disconnected from a first wireless connection with an electronic device;
FIG. 9a is a flow chart of a stylus pen connection control method in further embodiments;
FIG. 9b is a flow chart of a stylus pen connection control method in further embodiments;
FIG. 10a is a flow chart of a stylus pen connection control method in further embodiments;
FIG. 10b is a flow chart of a stylus pen connection control method in further embodiments.
[ detailed description ] embodiments
In order to better understand the technical scheme of the invention, the following detailed description of the embodiments of the invention is made with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the description of the invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., A and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter associated objects are in an "or" relationship.
FIG. 1 is a schematic diagram of a stylus communication system in some embodiments, as shown in FIG. 1, comprising: stylus 200 and at least two electronic devices, each electronic device and stylus 200 may be paired with each other, and stylus 200 may simultaneously maintain a first wireless connection with multiple electronic devices. In some embodiments, stylus 200 may be paired with an electronic device via Bluetooth (BT), near Field Communication (NFC), or USB-C interface.
Exemplarily, fig. 1 illustrates 4 electronic devices, which are, in turn, a mobile phone 100a, a notebook computer 100b, a tablet computer 100c, and a mobile phone 100d. Fig. 1 shows an application scenario of "one pen and multiple links", where the "one pen and multiple links" technology refers to that one stylus pen 200 can maintain connection with multiple electronic devices at the same time, and can perform a free switching operation between the multiple electronic devices. Any suitable standard may be observed between stylus 200 and the electronic device, for example, huawei Pen Protocol (HPP) 3.X, HPP 3.X is a fusion Protocol that includes a compatible version of HPP2. X.
The electronic device is a device with a touch screen. In some embodiments, the electronic device includes, but is not limited to, a mount
Figure BDA0003085361670000051
Figure BDA0003085361670000052
Or other operating system device. Electronic devices include, but are not limited to, cell phones, tablet computers, notebook computers, desktop computers, smart screens, and the like. As shown in fig. 1, the stylus pen 200 simultaneously maintains a first wireless connection with the mobile phone 100a, the notebook computer 100b, the tablet computer 100c, and the mobile phone 100d, and can perform a free switching operation among the mobile phone 100a, the notebook computer 100b, the tablet computer 100c, and the mobile phone 100d.
The stylus may include an active stylus or a passive stylus. In the embodiment of the present invention, the stylus pen 200 may be an active stylus pen. In some embodiments, the active stylus is an active capacitive stylus, the active capacitive stylus can emit a voltage driving signal to change an electric field at a touch point of the touch screen, so as to change an electrode capacitance at the touch point, and a control chip of the touch screen can determine a position of the touch point by detecting a change in the electrode capacitance. In other embodiments, the active stylus may also be an active electromagnetic stylus, the active electromagnetic stylus may emit an electromagnetic driving signal to change magnetic flux at a touch point of the touch screen, and the control chip of the touch screen may determine the position of the touch point through the change of the magnetic flux. In addition, in order to achieve a natural writing effect in an active stylus, a pressure sensor is usually added to a pen point, so that different pen points under different forces can be achieved to simulate real handwriting of a human.
Illustratively, as shown in fig. 2, a schematic diagram of a hardware structure of the electronic device in fig. 1 is provided, and the mobile phone 100a, the notebook computer 100b, the tablet computer 100c, and the mobile phone 100d in fig. 1 may all adopt the hardware structure of the electronic device in fig. 2. As shown in fig. 2, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the electronic device 100. In other embodiments of the invention, the electronic device 100 may include more or fewer components than illustrated, or some components may be combined, 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.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. The different processing units may be separate devices or may be integrated into one or more processors. The controller can generate an operation control signal according to the instruction operation code and the time sequence signal to complete the control of instruction fetching and instruction execution. A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose-input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc. It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative and is not limited to the structure of the electronic device 100. In other embodiments of the present invention, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive a charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like. The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including wireless communication of 2G/3G/4G/5G/6G, etc. applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110. The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), general Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), wideband Code Division Multiple Access (WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long Term Evolution (LTE), 5G and subsequent evolution standards, BT, GNSS, WLAN, NFC, FM, and/or IR technology, and the like. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute instructions to generate or change display information. The electronic device 101 may implement a capture function via the ISP, one or more cameras 193, video codec, GPU, one or more display screens 194, and application processor, among others.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in the external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like. The touch sensor 180K is also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided via the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards can be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
Illustratively, as shown in FIG. 3, a software architecture block diagram of the stylus 200 and the electronic device 100 is provided. The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface.
In some embodiments, the system of the electronic device 100 is divided into three layers, an application layer, a service layer, and a driver layer from top to bottom. As shown in FIG. 3, the application layer may include a series of application packages, which may include a collaborative office application and a screen projection application; the service layer can comprise a stylus pen management service, a screen projection management service and a near field communication management service; the driving layer may include a Touch Panel (TP) driver, a Human Interface Device (HID) driver, and a near field communication driver. For example, the near field communication management service may include a bluetooth management service, an NFC management service, a Wi-Fi management service, and the like; the close range communication driver may include a bluetooth driver, an NFC driver, a Wi-Fi driver, and the like.
In some embodiments, the system of stylus 200 is divided into three layers, an application layer, a service layer, and a driver layer, from top to bottom. As shown in FIG. 3, the application layer may include a series of application packages, and the application layer may include a host-side communication agent; the service layer may include touch management and connection management; the actuation layer may comprise a pen tip actuation.
In some embodiments, stylus 200 includes, but is not limited to, a mount
Figure BDA0003085361670000081
Figure BDA0003085361670000091
Or other operating system device. Illustratively, stylus 200 is carried
Figure BDA0003085361670000092
For example, hong Meng light-weight system, the electronic device 100 is mounted with
Figure BDA0003085361670000093
Currently, when a user owns a plurality of electronic devices 100, in addition to performing touch operations on the plurality of electronic devices 100 using the stylus pen 200, a screen-projection operation may be performed among the plurality of electronic devices 100. In some embodiments, a Source device may project a screen projection interface to a destination device (Sink) in a wired or wireless manner, where the Source device is a central device for projecting a screen, and the destination device is a device to be projected.
In some embodiments, the source device is a first electronic device, the destination device is a second electronic device, and the first electronic device projects a screen to the second electronic device. In other embodiments, if the source device is a second electronic device and the destination device is a first electronic device, the second electronic device casts a screen to the first electronic device. The first electronic device and the second electronic device may both adopt the hardware structure of the electronic device 100 shown in fig. 2, and the first electronic device and the second electronic device may both adopt the software structure of the electronic device 100 shown in fig. 3, which is not described herein again.
Exemplarily, when the first electronic device is a mobile phone and the second electronic device is a tablet computer or when the second electronic device is a mobile phone and the first electronic device is a tablet computer, the mobile phone screens the screen projection interface to the tablet computer, so as to display the content displayed on the screen projection interface of the mobile phone on the tablet computer. Or when the first electronic device is a mobile phone and the second electronic device is a notebook computer or when the second electronic device is a mobile phone and the first electronic device is a notebook computer, the mobile phone screens the screen projection interface to the notebook computer so as to display the content displayed by the screen projection interface of the mobile phone on the tablet computer; or when the first electronic device is a tablet computer and the second electronic device is a notebook computer or the second electronic device is a tablet computer and the first electronic device is a notebook computer, the tablet computer projects the screen projection interface to the notebook computer, so as to display the content displayed on the screen projection interface of the tablet computer on the notebook computer.
In the embodiment of the invention, the first electronic device and the second electronic device can realize screen projection through a homologous screen projection technology or a heterologous screen projection technology. If the screen projection is carried out between the first electronic device and the second electronic device by adopting the homologous screen projection technology, the first electronic device and the second electronic device synchronously display screen projection contents. If a heterogeneous screen projection technology is adopted between the first electronic device and the second electronic device for screen projection, the first electronic device and the second electronic device can display screen projection contents asynchronously.
In some embodiments, a first electronic device is used to project a screen to a second electronic device through a same source projection technique. The screen projection interface of the first electronic equipment displayed on the second electronic equipment is a display interface of the first electronic equipment. For example, if the display interface of the first electronic device is a display interface of a video application, the collaboration window of the second electronic device also displays the display interface of the video application; and if the first electronic equipment exits from the video application and displays the main interface, the cooperative window of the second electronic equipment also displays the main interface of the first electronic equipment.
In other embodiments, the first electronic device may project the screen to the second electronic device by a heterogeneous projection technology. The method comprises the steps that a first electronic device currently displays a display interface of a video application, the first electronic device projects the display interface of the video application to a second electronic device so that a collaboration window of the second electronic device displays the display interface of the video application, and at the moment, the screen projecting interface of the first electronic device is the display interface of the video application; and then, the first electronic device switches the video application to the background operation, the foreground displays the main interface or the display interface of other applications, and the collaboration window of the second electronic device can still display the display interface of the video application, namely the first electronic device and the second electronic device display asynchronously.
Illustratively, as shown in FIG. 4, a schematic view of a screen shot is provided. Fig. 4 shows an application scenario in which the second electronic device 300 projects the screen projection interface to the first electronic device 400. For example, the second electronic device 300 is a mobile phone, and the first electronic device 400 is a tablet computer.
As shown in fig. 4, the screen-casting interface of the second electronic device 300 illustratively includes a status bar 301 and a menu bar 302. Status bar 301 includes a signal shapeState, network state, power supply capacity, current geographic location, current time, and local weather. The signal state is a full signal, and the current signal is stronger; the network state comprises a Wi-Fi network and a Bluetooth network; the black part in the power supply capacity may represent the remaining capacity of the electronic device; the current geographic location is Tianjin; the current time is 4 months, 17 days, saturday, three months, first six and 08:08; tianjin weather is cloudy and the temperature is 8 ℃. In addition, a camera is arranged at the upper left corner of the status bar 301 and on the left side of the signal status. Menu bar 302 includes icons for at least one application, e.g., one row above
Figure BDA0003085361670000101
And a gallery, a phone, information, settings, and camera located in the bottom row. The position of the icon of the application program and the name of the corresponding application program may be adjusted according to the preference of the user, which is not limited in the embodiment of the present invention.
As shown in fig. 4, the screen-projection interface of the first electronic device 400 illustratively includes icons of at least one application, e.g., settings, camera, and gallery. The position of the icon of the application program and the name of the corresponding application program may be adjusted according to the preference of the user, which is not limited in the embodiment of the present invention.
As shown in fig. 4, a wireless connection is established between the second electronic device 300 and the first electronic device 400, for example, the wireless connection between the second electronic device 300 and the first electronic device 400 may be established through Huawei Share-touch-and-transmit (Huawei Share OneHop) technology, the second electronic device 300 projects a screen projection interface to the first electronic device 400, the first electronic device 400 displays a collaboration window 500 generated by the second electronic device 300 projecting on the first electronic device 400, the collaboration window 500 includes the screen projection interface of the second electronic device 300, so as to implement a "multi-screen collaboration" function, and the content of the collaboration window 500 changes correspondingly with the operation of the user on the second electronic device 300. Illustratively, as shown in fig. 4, a top title bar is further disposed above the screen projection interface of the second electronic device 300 in the collaboration window 500, and the top title bar includes a device name "huabei Mate 40Pro" of the second electronic device 300 and a plurality of function buttons, for example, a plurality of function buttons are a minimize button, a maximize button and a close button in sequence; a bottom function bar is further disposed below the screen-casting interface of the second electronic device 300 in the collaboration window 500, where the bottom function bar includes a return key, a main desktop key, and a menu key, the return key is used to return to a previous level, the main desktop key is used to return to the main desktop, and the menu key is used to display a plurality of background applications.
In the embodiment of the present invention, as another alternative, an electronic device serving as a source device may simultaneously project a screen to multiple other electronic devices serving as destination devices. This is not specifically shown.
In the related art, when a user projects a screen of a first electronic device to a second electronic device or projects a screen of a second electronic device to the first electronic device, if a stylus needs to be used on the first electronic device and the second electronic device, the stylus needs to be manually paired with the first electronic device and the second electronic device respectively, and then operations such as connection and disconnection of the stylus need to be manually managed in a using process, so that the operation is complicated, the operation flow of using the stylus by the user is increased, and the user experience is reduced.
In order to solve the problems of increasing the operation flow of using the stylus pen by the user and reducing the user experience in the related art, the embodiment of the invention provides a connection control method of the stylus pen and an electronic device. In some embodiments, the first wireless connection is established between the stylus pen and the second electronic device, and the first electronic device displays a screen projection interface of the second electronic device in response to a received screen projection request sent by the second electronic device, so that the first wireless connection is automatically established between the first electronic device and the stylus pen without manually managing the connection between the first electronic device and the stylus pen by a user, thereby reducing an operation process of using the stylus pen by the user and improving user experience. In other embodiments, the first electronic device stops displaying the screen-projecting interface of the second electronic device in response to a received screen-projecting disconnection instruction sent by the second electronic device, and then the first electronic device inquires that the first wireless connection between itself and the stylus pen is established when triggered by a screen-projecting operation, and automatically disconnects the first wireless connection from the stylus pen without manually managing the disconnection between the first electronic device and the stylus pen by a user, so that the operation flow of using the stylus pen by the user is reduced, and the user experience is improved.
Illustratively, fig. 5a to 5d provide schematic diagrams of a stylus establishing a first wireless connection and a second wireless connection with an electronic device. Fig. 5a to 5d illustrate the stylus pen 200, the second electronic device 300 and the first electronic device 400, for example, the second electronic device 300 is a mobile phone, and the first electronic device 400 is a tablet computer.
In the embodiment of the present invention, the first wireless connection is used to implement general service data transmission, for example, the general service data may include service data such as an attribute of a stylus pen and a screen parameter; the second wireless connection is used for realizing the transmission of man-machine interaction service data, for example, the man-machine interaction service data may include service data such as the attribute of the stylus, the screen parameter and the pressure data of the stylus.
As shown in fig. 5a, if a user uses the stylus pen 200 to perform a touch operation on the second electronic device 300, first, a first wireless connection between the stylus pen 200 and the second electronic device 300 needs to be established. The second electronic device 300 and the stylus 200 may establish the first wireless connection through a near field communication technology, which may include, but is not limited to, bluetooth, wi-Fi, or NFC. The second electronic device 300 and the stylus pen 200 may establish the first wireless connection through bluetooth, and the established first wireless connection may be Generic Attribute protocol (GATT) connection. Wherein GATT is a general specification for transmitting and receiving very short data segments over a bluetooth connection. It should be noted that: in the embodiment of the present invention, the first wireless connection is described as GATT connection.
If the user uses the stylus pen 200 on the second electronic device 300 for the first time, before establishing the GATT connection, the second electronic device 300 needs to perform pairing with the stylus pen 200, specifically, the second electronic device 300 and the stylus pen 200 may be paired through a bluetooth interface, an NFC interface, or a USB-C interface. Then, the second electronic device 300 performs the establishment of the GATT connection with the stylus pen 200 again. After the second electronic device 300 and the stylus pen 200 are paired and the GATT connection is established, the stylus pen 200 may establish a second wireless connection with the second electronic device 300, and the user may use the stylus pen 200 to perform a touch operation on the second electronic device 300, for example, the second wireless connection is a human interface device Protocol (HID Over GATT Protocol, abbreviated as HOGP) connection based on GATT, where it needs to be described that: in the embodiment of the present invention, the second wireless connection is taken as a hog connection as an example for description. Specifically, when the tip of the stylus pen 200 touches the screen of the second electronic device 300 for the first time, the HOGP connection is established with the second electronic device 300. As shown in fig. 5a, the second electronic device 300 exemplarily presents a handwriting interface on which a user can perform a writing operation using the handwriting pen 200, for example, writing a "hua-yi" typeface. The GATT connection can support the transmission of business data such as the attribute and the screen parameter of the stylus pen, but does not support the transmission of pressure data of the stylus pen; the HOGP connection may support the transmission of service data, such as the properties of the stylus, screen parameters, and pressure data of the stylus.
As shown in fig. 5b, the first electronic device 400 and the second electronic device 300 perform a screen-projecting operation, and the screen-projecting operation is successful. Specifically, the second electronic device 300 projects a screen projection interface to the first electronic device 400, the first electronic device 400 displays a collaboration window 500 generated by the second electronic device 300 projecting a screen on the first electronic device 400, and the collaboration window 500 includes the screen projection interface of the second electronic device 300, so as to implement a "multi-screen collaboration" function. As shown in fig. 5b, the screen-projection interface is a main interface of the second electronic device 300. The content of the collaboration window 500 changes correspondingly with the operation of the user on the second electronic device 300, for example, the content displayed by the second electronic device 300 changes from the main interface to the handwriting interface in fig. 5a, and the content displayed by the collaboration window 500 in fig. 5b also changes to the handwriting interface in fig. 5a, which is not specifically shown.
As shown in fig. 5c, the first electronic device 400 displays the screen-projection interface of the second electronic device 300, which may indicate that the screen-projection operation is successful, and then the first electronic device 400 automatically establishes the first wireless connection with the stylus 200. The first electronic device 400 and the stylus 200 may automatically establish the first wireless connection through a near field communication technology, which may include, but is not limited to, bluetooth, wi-Fi, or NFC. Illustratively, the first electronic device 400 and the stylus pen 200 may automatically establish the first wireless connection through bluetooth, and at this time, the established first wireless connection may be a GATT connection. Before establishing the GATT connection, the first electronic device 400 queries whether the GATT connection with the stylus pen 200 is established, and if the GATT connection with the stylus pen 200 is determined, it indicates that the first electronic device 400 has established the GATT connection with the stylus pen 200 before the screen is projected; if it is found that the GATT connection with the stylus pen 200 is not established, the establishment of the GATT connection with the stylus pen 200 may be directly performed. In addition, if the user uses the stylus pen 200 on the first electronic device 400 for the first time, before establishing the GATT connection, the first electronic device 400 needs to perform pairing with the stylus pen 200, for example, the first electronic device 400 may perform pairing with the stylus pen 200 through bluetooth or NFC, so that automatic pairing between the first electronic device 100 and the stylus pen 200 is achieved, manual operation by the user is not needed, and user experience is improved. As shown in fig. 5c, in the process of establishing the GATT connection between the first electronic device 400 and the stylus pen 200, the first electronic device 400 pops up the prompt box, the user clicks the "connect" button in the prompt box to indicate that the GATT connection is approved, and then the first electronic device 400 establishes the GATT connection with the stylus pen 200. As shown in fig. 5c, if the user clicks "cancel" in the prompt box, it indicates that the GATT connection is not agreed to be established, and the first electronic device 400 fails to establish the GATT connection with the stylus pen 200.
As shown in fig. 5d, after the first electronic device 400 and the stylus pen 200 have been paired and the GATT connection is established, the first electronic device 400 may automatically establish a second wireless connection with the stylus pen 200, and the user may perform a touch operation on the first electronic device 400 using the stylus pen 200, for example, the second wireless connection is a hog connection. Specifically, when the pen tip of the stylus pen 200 contacts the screen of the first electronic device 400 for the first time, the stylus pen 200 disconnects the HOGP connection established with the second electronic device 300 and automatically establishes the HOGP connection with the first electronic device 400, so that the user can perform a touch operation on the first electronic device 400 using the stylus pen 200. As shown in fig. 5d, for example, the first electronic device 400 presents a handwriting interface on which a user can perform a writing operation using the handwriting pen 200, for example, writing a "hua yi" character on the handwriting interface.
Illustratively, FIG. 5e provides a schematic diagram of the stylus being disconnected from the electronic device by a first wireless connection. After the process of establishing the first wireless connection between the stylus and the electronic device shown in fig. 5a to 5d is executed, the first electronic device 400 and the second electronic device 300 have established screen-casting, and the second electronic device 300 and the first electronic device 400 have established GATT connection with the stylus 200. As shown in fig. 5e, the first electronic device 400 and the second electronic device 300 perform screen-on disconnection, and the screen-on disconnection is successful. Specifically, the second electronic device 300 sends a screen-projection disconnection instruction to the first electronic device 400, so that the first electronic device 400 stops displaying the screen-projection interface of the second electronic device 300, at this time, the collaboration window 500 is no longer displayed on the first electronic device 400, and a communication channel established when the first electronic device 400 and the second electronic device 300 project screens is disconnected. Since the GATT connection between the first electronic device 400 and the stylus pen 200 is established by being triggered by the screen-casting operation, the first electronic device 400 automatically disconnects the GATT connection from the stylus pen 200 when the screen-casting is disconnected between the first electronic device 400 and the second electronic device 300. However, since the GATT connection between the second electronic device 300 and the stylus pen 200 is not established by being triggered by the screen-throwing operation, the GATT connection between the second electronic device 300 and the stylus pen 200 is not affected by the screen-throwing disconnection, and the GATT connection between the second electronic device 300 and the stylus pen 200 is still maintained. Since the GATT of the stylus pen 200 is disconnected from the first electronic device 400, the HOGP of the stylus pen 200 is disconnected from the first electronic device 400, and the user cannot perform a touch operation using the stylus pen 200 on the first electronic device 400. The stylus pen 200 may establish a HOGP connection with the second electronic device 300 so that a user may perform a touch operation on the second electronic device 300 using the stylus pen 200, for example, as shown in FIG. 5e, the user clicks a gallery icon on the second electronic device 300 using the stylus pen 200. In another case, if the GATT connection between the first electronic device 400 and the stylus pen 200 is not established in response to the trigger of the screen-throwing operation, the GATT connection between the first electronic device 400 and the stylus pen 200 is not affected by the screen-throwing disconnection, the GATT connection between the first electronic device 400 and the stylus pen 200 is still maintained, and the user may continue to perform the touch operation on the first electronic device 400 by using the stylus pen 200, which is not specifically shown.
In summary, if the GATT connection between the first electronic device 400 and the stylus pen 200 is established by being triggered by the screen-projecting operation, the connection life cycle of the stylus pen 200 and the first electronic device 400 is consistent with the screen-projecting cycle. Namely: during the screen projection process, the stylus pen 200 is connected with the first electronic device 400 and the second electronic device 300 through the GATT, and the stylus pen 200 can be freely switched between touch operations on the first electronic device 400 and the second electronic device 300; when the screen is dropped, the stylus pen 200 is disconnected from the first electronic device 400 by the GATT connection, and the touch operation cannot be performed on the first electronic device 400, but since the GATT connection between the stylus pen 200 and the second electronic device 300 is not established by the trigger of the screen-dropping operation and is not affected by the screen-dropping disconnection, the stylus pen 200 may further continue to maintain the GATT connection with the second electronic device 300, and the touch operation may be performed on the second electronic device 300. Therefore, management of the connection life cycle between the stylus and the electronic equipment is realized.
It should be noted that the interface schematic diagrams of the electronic device shown in fig. 4 and fig. 5a to fig. 5e are exemplary illustrations of an embodiment of the present invention, and the interface schematic diagrams of the electronic device may also be in other forms, which is not limited in the embodiment of the present invention.
The following describes an exemplary workflow of a stylus pen connection control method according to a specific embodiment. Fig. 6a is a flowchart of a connection control method of a stylus pen in some embodiments, and the workflow shown in fig. 6a may be used to implement the connection control method of the stylus pen shown in fig. 5a to 5c, as shown in fig. 6a, the method includes:
and 102, establishing a first wireless connection between the second electronic equipment and the stylus pen.
Illustratively, as shown in FIG. 5a, the second electronic device 300 establishes a first wireless connection with the stylus 200 via Bluetooth, wi-Fi or NFC. For example, the first wireless connection is a GATT connection.
If the user uses the stylus 200 in the second electronic device 300 for the first time, step 102 may further include: step 100, the second electronic device 300 performs pairing with the stylus 200. Then, the second electronic device 300 performs the establishment of the first wireless connection with the stylus pen 200, i.e. performs step 102.
If the user needs to perform a touch operation on the second electronic device 300 by using the stylus pen 200, after step 102, the method may further include: the second electronic device 300 establishes a second wireless connection with the stylus 200, for example, the second wireless connection is a HOGP connection.
And step 104, the second electronic equipment and the first electronic equipment establish a communication channel.
After the communication channel is established, the second electronic device and the first electronic device can transmit data in the screen projection process through the communication channel.
And 106, the second electronic equipment sends a screen projection request to the first electronic equipment, wherein the screen projection request comprises the physical address of the stylus pen.
The physical address of the stylus is used to uniquely identify a stylus and can be used to ensure the uniqueness of the stylus. Illustratively, the physical address of the stylus includes a Media Access Control (MAC) address of the stylus, e.g., a Bluetooth MAC address.
The second electronic device sends the physical address of the handwriting pen to the first electronic device through the screen projection request in the screen projection process of the first electronic device, so that the first electronic device obtains the physical address of the handwriting pen from the second electronic device in the screen projection operation process of the first electronic device and the second electronic device. As another alternative, after the communication channel is established in step 104, the second electronic device may also separately transmit the physical address of the stylus pen to the first electronic device, for example, after the second electronic device transmits a screen-casting request to the first electronic device, the second electronic device transmits the physical address of the stylus pen to the first electronic device.
The screen projection request includes screen projection parameters including one or more of a screen projection resolution, a transmission rate, an encoding compression rate, or a key frame interval time.
And step 108, responding to the screen projection request by the first electronic equipment, and displaying a screen projection interface of the second electronic equipment.
Specifically, as shown in fig. 5b, after the first electronic device 400 analyzes the screen projection parameters and determines that the capability of accepting the screen projection of the second electronic device 300 is available, the screen projection request is accepted, and the screen projection interface of the second electronic device 300 is displayed, so that the screen projection is successful.
And 110, the first electronic equipment returns a screen-casting success message to the second electronic equipment.
And step 112, the first electronic device automatically establishes a first wireless connection with the stylus pen according to the physical address of the stylus pen.
When a screen projection interface of the second electronic device is displayed on the first electronic device, that is, the screen projection operation of the second electronic device on the first electronic device is successful, a process that the first electronic device automatically establishes a first wireless connection with the stylus pen can be triggered. For example, fig. 6b provides a flowchart of a method for pairing the first electronic device and the stylus pen and establishing a first wireless connection in some embodiments, where the first electronic device and the stylus pen may perform the first wireless connection through Bluetooth Low Energy (BLE) technology. As shown in fig. 6b, step 112 may specifically include:
step 1122, the first electronic device receives a broadcast packet (Adv) broadcast by the stylus pen.
Step 1124, the first electronic device sends a connection Request (Page Request) to the stylus pen according to the physical address of the stylus pen.
Step 1126, the stylus returns a connection Response (Page Response) to the first electronic device.
Step 1128, the stylus pen sends a Connection establishment (Connection establishment) message to the first electronic device.
In some embodiments, before step 112, further comprising: the first electronic device queries whether the first electronic device is paired with the stylus pen, and if the first electronic device is paired with the stylus pen, directly executing step 112; if the pairing with the stylus pen is not performed, step 111 is performed, the first electronic device performs the pairing with the stylus pen, and step 112 is performed after the pairing is successful.
In particular, the first electronic device may store paired device information, which may include the name and type of the paired device, e.g., the name of the paired device is "huamei PEN" and the type is a stylus. In step 112, the first electronic device may query whether the paired device information includes the name and the type of the stylus pen, if so, it indicates that the first electronic device and the stylus pen are paired, and directly perform step 112; if not, it indicates that the first electronic device and the stylus pen are not paired, step 111 is executed first, and step 112 is executed after pairing is successful.
Exemplarily, as shown in fig. 6b, step 111 may specifically include:
step 1112, the first electronic device sends a Pairing Request (Pairing Request) to the stylus pen according to the physical address of the stylus pen.
Step 1114, the stylus returns a Pairing Response (Pairing Response) to the first electronic device.
Step 1116, the stylus pen sends a pairing message based on a Secure Manager Protocol (SMP) to the first electronic device.
Wherein, the SMP based pairing message is a "pairing Over SMP" message.
According to the embodiment of the invention, the automatic pairing of the first electronic equipment and the handwriting pen is realized, the manual operation of a user is not needed, and the user experience is improved.
In some embodiments, if the first electronic device queries that the first electronic device is paired with the stylus pen, the following steps may be performed: the first electronic device queries whether a first wireless connection with the stylus pen has been established, and directly performs step 112 if it is determined that the first wireless connection with the stylus pen has not been established; if it is determined that the first wireless connection with the stylus pen is established, then the process does not need to continue to step 112.
In particular, the first electronic device may store connected device information, which may include the name and type of connected device, e.g., the name of connected device "HUAWEI PEN" of type stylus. The first electronic device may query whether the connected device information includes the name and type of the stylus pen, if not, it indicates that the first electronic device and the stylus pen do not establish the first wireless connection, and directly perform step 112; if yes, it indicates that the first electronic device and the stylus pen have established the first wireless connection, and step 112 is not required to be executed again.
And step 114, the first electronic device records wireless connection establishment information, where the wireless connection establishment information is used to indicate that the first wireless connection between the first electronic device and the stylus pen is established when being triggered by a screen-casting operation.
In some embodiments, the wireless connection establishment information may be used to indicate whether a first wireless connection between the first electronic device and the stylus is established as triggered by a screen-casting operation.
In step 112, the first electronic device automatically establishes the first wireless connection with the stylus pen, and then the wireless connection establishment information recorded by the first electronic device in step 114 is used to indicate that the first wireless connection between the first electronic device and the stylus pen is established by being triggered by the screen-casting operation.
If the first wireless connection between the first electronic device and the stylus pen is not established triggered by the screen-casting operation, for example, the first wireless connection between the first electronic device and the stylus pen is established before the screen-casting operation, the wireless connection establishment information is used to indicate that the first wireless connection between the first electronic device and the stylus pen is not established triggered by the screen-casting operation. In some embodiments, with respect to the software structure block diagram of the stylus and the electronic device shown in fig. 3, the stylus may include a connection management unit, the first electronic device may include a screen-projection management service unit and a stylus management service unit, and the second electronic device may include a screen-projection management service unit and a stylus management service unit. Then exemplarily, fig. 6c provides a flowchart of a connection control method of a stylus pen in other embodiments, and the workflow shown in fig. 6c may be used to implement the connection control method of a stylus pen shown in fig. 5a to 5c, as shown in fig. 6c, the method includes:
step 202, establishing a first wireless connection between a stylus pen management service unit of the second electronic device and a connection management unit of the stylus pen.
If the user uses the stylus at the second electronic device for the first time, step 202 may further include: and 200, pairing the handwriting pen management service unit of the second electronic device with the connection management unit of the handwriting pen. Then, the handwriting pen management service unit of the second electronic device establishes the first wireless connection with the connection management unit of the handwriting pen, that is, step 202 is executed.
If the user needs to perform a touch operation on the second electronic device by using the stylus pen, after step 202, the method may further include: and the handwriting pen management service unit of the second electronic equipment establishes HOGP connection with the connection management unit of the handwriting pen.
And step 204, establishing a communication channel between the screen projection management service unit of the second electronic device and the screen projection management service unit of the first electronic device.
And step 206, the screen projection management service unit of the second electronic device sends a screen projection request to the screen projection management service unit of the first electronic device, wherein the screen projection request comprises the physical address of the stylus pen.
And step 208, responding to the screen projection request by the screen projection management service unit of the first electronic device, and displaying a screen projection interface of the second electronic device.
Step 210, the screen-casting management service unit of the first electronic device returns a screen-casting success message to the screen-casting management service unit of the second electronic device.
Step 212, the screen-throwing management service unit of the first electronic device sends a stylus connection establishment notification to the stylus management service unit of the first electronic device, where the stylus connection establishment notification includes a physical address of the stylus.
Step 214, the handwriting pen management service unit of the first electronic device automatically establishes a first wireless connection with the connection management unit of the handwriting pen according to the physical address of the handwriting pen.
In some embodiments, step 214 is preceded by: the stylus pen management service unit of the first electronic device inquires whether the stylus pen is paired, and if the stylus pen is paired, step 214 is directly executed; if the handwriting pen is not matched with the handwriting pen, the following steps are firstly executed: the stylus pen management service unit of the first electronic device and the connection management unit of the stylus pen perform pairing, and step 214 is performed after the pairing is successful.
In some embodiments, if the stylus pen management service unit of the first electronic device queries that the stylus pen is paired, the following steps may be performed: the first electronic device stylus management service unit queries whether a first wireless connection with the stylus has been established, and if it is determined that the first wireless connection with the stylus has not been established, directly performs step 214; if it is determined that the first wireless connection with the stylus has been established, step 214 need not be executed.
Step 216, the stylus pen management service unit of the first electronic device records wireless connection establishment information, where the wireless connection establishment information is used to indicate that the first wireless connection between the first electronic device and the stylus pen is established by being triggered by a screen-casting operation.
To this end, the present embodiment realizes that a first wireless connection is established between the first electronic device 400 and the stylus 200 as shown in fig. 5 c. At this time, the first electronic device 400 and the second electronic device 300 both establish a first wireless connection with the stylus pen 200. If the stylus pen 200 needs to perform a touch operation on the electronic device, a second wireless connection needs to be established with the electronic device, for example, the second wireless connection is a hog connection. And the stylus pen 200 can perform a free switching operation between the first electronic device 400 and the second electronic device 300 by establishing the HOGP connection. Fig. 6d is a flowchart illustrating a method for establishing a HOGP connection with an electronic device using a stylus pen in some embodiments. Taking the example of establishing the HOGP connection between the stylus pen 200 and the first electronic device 400 as an example, as shown in FIG. 6d, the method includes:
step 302, the stylus pen and the first electronic device execute a process of establishing a GATT connection, and if the GATT connection is successfully established, step 304 is executed; if the GATT connection is failed to be established, the process is ended.
Step 304, the stylus touches the screen of the first electronic device to read the screen parameters of the first electronic device.
When a pen point of the stylus pen touches the screen for the first time, screen parameters of the first electronic device are read, where the screen parameters may include a screen type and/or a code-printing frequency point, and the screen type may include an in-cell (in cell) or an out-cell (on cell), and the code-printing frequency point is used to indicate that frequency hopping is required when interference exists.
Step 306, the stylus determines a first working mode according to the screen parameter of the first electronic device, and the first working mode is a working mode of the stylus and the first electronic device.
For example, the handwriting pen determines that the first working mode is the HPP 3.X mode according to the screen type and the frequency point of the code. Namely: the first operating mode is the HPP 3.x mode, i.e. the stylus is connected to the first electronic device in the HPP 3.x mode.
Step 308, the stylus pen inquires whether HOGP connection is established with other electronic equipment, if yes, step 310 is executed; if not, go to step 318.
In the embodiment of the present invention, the other electronic device may be the second electronic device, or the other electronic device may be an electronic device other than the first electronic device and the second electronic device.
And step 310, disconnecting the HOGP connection between the stylus pen and other electronic equipment.
For example, if the stylus queries that the HOGP connection with the second electronic device is established, step 310 is executed, and the stylus disconnects the HOGP connection with the second electronic device.
And step 312, establishing HOGP connection between the stylus and the first electronic device.
Step 314, the stylus pen judges whether the first working mode is the same as the second working mode, the second working mode is the working mode of the stylus pen and other electronic equipment, if yes, the process is ended; if not, go to step 316.
For example, when the second operation mode is the HPP 3.X mode, the stylus pen is connected to the other electronic device in the HPP 3.X mode; or, when the second operation mode is the HPP2.X mode, the stylus pen is connected to the other electronic device in the HPP2.X mode. It should be noted that: a stylus cannot be connected to the first electronic device in HPP 3.x mode and at the same time to the other electronic devices in HPP2.x mode. Therefore, for the same stylus, when the first operation mode and the second operation mode are different, for example, the first operation mode is the HPP 3.X mode, and the second operation mode is the HPP2.X mode, if the stylus and the first electronic device are connected in the HPP 3.X mode, the stylus and the other electronic device cannot be connected in the HPP2.X mode.
For example, the first operating mode may be an HPP 3.X mode and the second operating mode may be an HPP 3.X mode, indicating that the stylus is connected to the first electronic device in the HPP 3.X mode, and may also be connected to other electronic devices in the HPP 3.X mode, without disconnecting the GATT connection between the stylus and the other electronic devices, and the stylus remains GATT connected to the other electronic devices.
For example, if the first operating mode is an HPP 3.X mode and the second operating mode is an HPP2.X mode, indicating that the stylus is connected to the first electronic device in the HPP 3.X mode but cannot be simultaneously connected to other electronic devices in the HPP2.X mode, the stylus disconnects the GATT from the other electronic devices.
And step 316, disconnecting the GATT connection between the stylus and the other electronic equipment, and ending the process.
Step 318, establishing the HOGP connection between the stylus pen and the first electronic device, and ending the process.
After the HOGP connection is established between the stylus and the first electronic device, the stylus can perform touch operation on the first electronic device.
The workflow of the stylus pen connection control method is exemplified by another specific embodiment. Fig. 7a is a flowchart of a connection control method of a stylus pen in other embodiments, and the workflow shown in fig. 7a may be used to implement the connection control method of the stylus pen shown in fig. 5e, as shown in fig. 7a, the method including:
step 402, the first electronic device receives a screen-projection disconnection instruction sent by the second electronic device, where the screen-projection disconnection instruction includes a physical address of the stylus.
Illustratively, the physical address of the stylus includes a MAC address of the stylus, e.g., a Bluetooth MAC address.
The second electronic device sends the physical address of the handwriting pen to the first electronic device through the screen-throwing disconnection instruction, so that the first electronic device obtains the physical address of the handwriting pen from the second electronic device in the screen-throwing disconnection process with the second electronic device.
And step 404, the first electronic device responds to the screen-projection disconnection instruction and stops displaying the screen-projection interface of the second electronic device.
Specifically, as shown in fig. 5e, the first electronic device 400 no longer displays the screen-projection interface of the second electronic device 300.
And step 406, the first electronic device returns a screen-casting disconnection success message to the second electronic device.
Step 408, the first electronic device queries that the first wireless connection between itself and the stylus pen is established by being triggered by the screen-casting operation.
And step 410, the first electronic device automatically disconnects the first wireless connection with the stylus pen according to the physical address of the stylus pen.
In step 408, the first electronic device queries whether a first wireless connection between itself and the stylus pen is established by being triggered by a screen-casting operation; if it is found that the first wireless connection between the stylus pen and the user is established by being triggered by the screen-casting operation, step 410 is executed; if it is determined that the first wireless connection between the electronic device and the stylus pen is not established by the trigger of the screen-casting operation, step 410 is not executed, and the first electronic device maintains the first wireless connection with the stylus pen.
Specifically, the first electronic device inquires whether the first wireless connection between the first electronic device and the stylus pen is established or not triggered by screen-casting operation according to the recorded wireless connection establishment information.
Before inquiring whether the first wireless connection between the user and the stylus pen is established triggered by the screen-throwing operation in step 408, the method further comprises the following steps: the first electronic device queries whether the first electronic device is in a state of establishing a first wireless connection with the stylus pen, and if so, performs step 408; if not, indicating that the first electronic device is disconnected from the first wireless connection with the stylus, steps 408 and 410 may not be performed.
So far, the present embodiment realizes that the first wireless connection is disconnected between the first electronic device 400 and the stylus 200 as shown in fig. 5 e.
In some embodiments, with respect to the software structure block diagram of the stylus and the electronic device shown in fig. 3, the stylus may include a connection management unit, the first electronic device may include a screen-projection management service unit and a stylus management service unit, and the second electronic device may include a screen-projection management service unit and a stylus management service unit. Then, for example, fig. 7b provides a flowchart of a connection control method of a stylus pen in another embodiment, and the workflow shown in fig. 7b may be used to implement the connection control method of a stylus pen shown in fig. 5e, as shown in fig. 7b, the method includes:
step 502, a screen-casting management service unit of a first electronic device receives a screen-casting disconnection instruction sent by a screen-casting management service unit of a second electronic device, where the screen-casting disconnection instruction includes a physical address of a stylus pen.
And step 504, the screen projection management service unit of the first electronic device responds to the screen projection disconnection instruction and stops displaying the screen projection interface of the second electronic device.
Step 506, the screen-casting management service unit of the first electronic device returns a screen-casting disconnection success message to the screen-casting management service unit of the second electronic device.
Step 508, the screen-throwing management service unit of the first electronic device sends a handwriting pen disconnection notification to the handwriting pen management service unit of the first electronic device, where the handwriting pen disconnection notification includes a physical address of the handwriting pen.
Step 510, the stylus pen management service unit of the first electronic device queries that the first wireless connection between itself and the stylus pen is established when being triggered by the screen-casting operation.
In some embodiments, before step 510, further comprising: the stylus pen management service unit of the first electronic device inquires whether the stylus pen is in a state of establishing a first wireless connection with the stylus pen, if so, directly executing step 510; if not, indicating that the first electronic device is disconnected from the first wireless connection with the stylus pen, steps 510 and 512 may not be performed.
Step 512, the handwriting pen management service unit of the first electronic device automatically disconnects the first wireless connection with the connection management unit of the handwriting pen according to the physical address of the handwriting pen.
The scheme shown in fig. 5a to 5e described above provides a scenario: the method comprises the steps that a first wireless connection is established between a handwriting pen and second electronic equipment serving as source end equipment, and when the second electronic equipment successfully projects a screen projection interface to first electronic equipment serving as destination end equipment, the first electronic equipment is triggered to actively establish the first wireless connection with the handwriting pen; when the second electronic device is successfully disconnected from the first electronic device for screen projection, the first electronic device is triggered to actively disconnect the first wireless connection with the stylus pen.
In other embodiments, another scenario is provided: the method comprises the steps that a first wireless connection is established between a handwriting pen and second electronic equipment serving as destination equipment, and when the first electronic equipment serving as source equipment successfully projects a screen projection interface to the second electronic equipment, the first electronic equipment is triggered to actively establish the first wireless connection with the handwriting pen; when the second electronic equipment and the first electronic equipment are successfully disconnected and screen-thrown, the first electronic equipment is triggered to actively disconnect the first wireless connection with the stylus. Fig. 8a to 8d provide schematic diagrams of another stylus establishing a first wireless connection and a second wireless connection with an electronic device. Fig. 8a to 8d illustrate the stylus pen 200, the first electronic device 600 and the second electronic device 700, for example, the first electronic device 600 is a mobile phone, and the second electronic device 700 is a tablet computer.
As shown in fig. 8a, if a user uses the stylus pen 200 to perform a touch operation on the second electronic device 700, first, the stylus pen 200 needs to establish a first wireless connection with the second electronic device 700. Second electronic device 700 and stylus 200 may establish a first wireless connection via a near field communication technology, which may include, but is not limited to, bluetooth, wi-Fi, or NFC. Illustratively, the second electronic device 700 and the stylus pen 200 may establish the first wireless connection through bluetooth, and at this time, the established first wireless connection may be a GATT connection.
If the user uses the stylus pen 200 on the second electronic device 700 for the first time, before establishing the GATT connection, the second electronic device 700 needs to perform pairing with the stylus pen 200, specifically, the second electronic device 700 and the stylus pen 200 may be paired through a bluetooth interface, an NFC interface, or a USB-C interface. Then, the second electronic device 700 performs the establishment of the GATT connection with the stylus pen 200 again. After the second electronic device 700 and the stylus pen 200 have been paired and a GATT connection is established, the stylus pen 200 may establish a second wireless connection with the second electronic device 700, and the user may perform a touch operation on the second electronic device 700 using the stylus pen 200, for example, the second wireless connection is a hog connection. Specifically, when the pen tip of the stylus pen 200 touches the screen of the second electronic device 700 for the first time, the HOGP connection is established with the second electronic device 700. As shown in fig. 8a, the second electronic device 700 illustratively presents a handwriting interface on which a user can perform a writing operation using the stylus 200, e.g., writing a "hua yi" typeface.
As shown in fig. 8b, the first electronic device 600 and the second electronic device 700 perform the screen-casting operation, and the screen-casting operation is successful. Specifically, the first electronic device 600 projects a screen projection interface to the second electronic device 700, the second electronic device 700 displays the collaboration window 500 generated by the first electronic device 600 projecting a screen on the second electronic device 700, and the collaboration window 500 includes the screen projection interface of the first electronic device 600, so as to implement a "multi-screen collaboration" function. As shown in fig. 8b, the screen-projection interface is exemplarily a main interface of the first electronic device 600. The contents of the collaboration window 500 change accordingly as the user operates on the first electronic device 600.
As shown in fig. 8b, the second electronic device 700 displays the screen-projection interface of the first electronic device 600, which indicates that the screen-projection operation is successful. Then as shown in fig. 8c, the first electronic device 600 automatically establishes a first wireless connection with the stylus 200, and the first electronic device 600 and the stylus 200 may automatically establish the first wireless connection through a near field communication technology, which may include, but is not limited to, bluetooth, wi-Fi, or NFC. Illustratively, the first electronic device 600 and the stylus pen 200 may automatically establish the first wireless connection through bluetooth, and at this time, the established first wireless connection may be a GATT connection. Before establishing the GATT connection, the first electronic device 600 queries whether the GATT connection with the stylus pen 200 has been established, and if the GATT connection with the stylus pen 200 has been queried, it indicates that the first electronic device 600 has established the GATT connection with the stylus pen 200 before the screen is dropped; if it is found that the GATT connection with the stylus pen 200 is not established, the establishment of the GATT connection with the stylus pen 200 may be directly performed. In addition, if the user uses the stylus pen 200 on the first electronic device 600 for the first time, before establishing the GATT connection, the first electronic device 600 needs to perform pairing with the stylus pen 200, for example, the first electronic device 600 may perform pairing with the stylus pen 200 through bluetooth or NFC, so that automatic pairing between the first electronic device 600 and the stylus pen 200 is realized, manual operation by the user is not required, and user experience is improved. As shown in fig. 8c, in the process of establishing the GATT connection between the first electronic device 600 and the stylus pen 200, the first electronic device 600 pops up the prompt box, the user clicks the "connect" button in the prompt box to indicate that the GATT connection is approved, and then the first electronic device 600 establishes the GATT connection with the stylus pen 200. As shown in fig. 8c, if the user clicks "cancel" in the prompt box, it indicates that the GATT connection is not agreed to be established, and the first electronic device 600 and the stylus pen 200 fail to establish the GATT connection.
As shown in fig. 8d, after the first electronic device 600 and the stylus pen 200 have been paired and the GATT connection is established, the first electronic device 600 and the stylus pen 200 may automatically establish a second wireless connection, and the user may perform a touch operation on the first electronic device 600 using the stylus pen 200, for example, the second wireless connection is a hog connection. Specifically, when the pen tip of the stylus pen 200 contacts the screen of the first electronic device 600 for the first time, the stylus pen 200 disconnects the HOGP connection established with the second electronic device 700 and automatically establishes the HOGP connection with the first electronic device 600, so that the user may perform a touch operation on the first electronic device 600 using the stylus pen 200. As shown in fig. 8d, the first electronic device 600 exemplarily presents a handwriting interface on which a user can perform a writing operation using the handwriting pen 200, for example, writing a "hua yi" typeface.
Illustratively, FIG. 8e provides another illustration of a stylus being disconnected from a first wireless connection with an electronic device. After the process of establishing the first wireless connection between the stylus pen and the electronic device shown in fig. 8a to 8d is executed, the first electronic device 600 and the second electronic device 700 have established screen projection, and both the first electronic device 600 and the second electronic device 700 have established GATT connection with the stylus pen 200. As shown in fig. 8e, the first electronic device 600 and the second electronic device 700 perform screen-on disconnection, and the screen-on disconnection is successful. Specifically, the first electronic device 600 sends a screen-projection disconnection instruction to the second electronic device 700, so that the second electronic device 700 stops displaying the screen-projection interface of the first electronic device 600, at this time, the collaboration window 500 is no longer displayed on the second electronic device 700, and a communication channel established when the first electronic device 600 and the second electronic device 700 project screens is disconnected. Since the GATT connection between the first electronic device 600 and the stylus pen 200 is established by being triggered by the screen-casting operation, the first electronic device 600 automatically disconnects the GATT connection from the stylus pen 200 when the screen casting is disconnected between the first electronic device 600 and the second electronic device 700. However, since the GATT connection of the second electronic device 700 with the stylus pen 200 is not established by being triggered by the screen-throwing operation, the GATT connection of the second electronic device 700 with the stylus pen 200 is not affected by the screen-throwing disconnection, and the GATT connection of the second electronic device 700 with the stylus pen 200 is still maintained. Since the GATT of the stylus pen 200 is disconnected from the first electronic device 600, the HOGP of the stylus pen 200 is disconnected from the first electronic device 600, and the user cannot perform a touch operation on the first electronic device 600 using the stylus pen 200. The stylus pen 200 may establish a HOGP connection with the second electronic device 700 so that a user may perform a touch operation on the second electronic device 700 using the stylus pen 200, for example, as shown in FIG. 8e, the user clicks a gallery icon on the second electronic device 700 using the stylus pen 200. In another case, if the GATT connection between the first electronic device 600 and the stylus pen 200 is not established triggered by the screen-projection operation, the GATT connection between the first electronic device 600 and the stylus pen 200 is not affected by the screen-projection disconnection, the first electronic device 600 and the stylus pen 200 still maintain the GATT connection, and the user can continue to use the stylus pen 200 to perform the touch operation on the first electronic device 600, which is not specifically shown.
It should be noted that the interface schematic diagrams of the electronic devices shown in fig. 8a to fig. 8e are exemplary illustrations of an embodiment of the present invention, and the interface schematic diagrams of the electronic devices may also be in other forms, which are not limited in the embodiment of the present invention.
The following describes an exemplary workflow of a stylus pen connection control method according to a specific embodiment. Fig. 9a is a flowchart of a connection control method of a stylus pen in another embodiment, and the workflow shown in fig. 9a may be used to implement the connection control method of the stylus pen shown in fig. 8a to 8c, as shown in fig. 9a, the method includes:
step 602, the second electronic device establishes a first wireless connection with the stylus pen.
Step 604, the second electronic device establishes a communication channel with the first electronic device.
Step 606, the first electronic device sends a screen projection request to the second electronic device.
And step 608, the second electronic device responds to the screen projection request and displays a screen projection interface of the first electronic device.
And step 610, the second electronic device returns a screen projection success message to the first electronic device, wherein the screen projection success message comprises the physical address of the stylus pen.
In the process of screen projection to the second electronic device, the second electronic device sends the physical address of the handwriting pen to the first electronic device through the screen projection success message, so that the first electronic device obtains the physical address of the handwriting pen from the second electronic device in the process of screen projection operation between the first electronic device and the second electronic device. Alternatively, after establishing the communication channel in step 604, the second electronic device may also send the physical address of the stylus to the first electronic device separately, for example, before the second electronic device sends a screen-shot success message to the first electronic device.
And step 612, the first electronic device automatically establishes a first wireless connection with the stylus pen according to the physical address of the stylus pen.
And 614, the first electronic device records wireless connection establishment information, wherein the wireless connection establishment information is used for indicating that the first wireless connection between the first electronic device and the stylus pen is established by being triggered by screen-casting operation.
In some embodiments, with respect to the software structure block diagram of the stylus and the electronic device shown in fig. 3, the stylus may include a connection management unit, the first electronic device may include a screen-projection management service unit and a stylus management service unit, and the second electronic device may include a screen-projection management service unit and a stylus management service unit. Then, for example, fig. 9b provides a flowchart of a connection control method of a stylus pen in another embodiment, and the workflow shown in fig. 9b may be used to implement the connection control method of a stylus pen shown in fig. 8a to 8c, as shown in fig. 9b, the method includes:
step 702, the stylus pen management service unit of the second electronic device establishes a first wireless connection with the connection management unit of the stylus pen.
Step 704, the screen projection management service unit of the second electronic device and the screen projection management service unit of the first electronic device establish a communication channel.
Step 706, the screen projection management service unit of the first electronic device sends a screen projection request to the screen projection management service unit of the second electronic device.
And step 708, the screen projection management service unit of the second electronic device responds to the screen projection request and displays a screen projection interface of the first electronic device.
And 710, the screen projection management service unit of the second electronic device returns a screen projection success message to the screen projection management service unit of the first electronic device, wherein the screen projection success message comprises the physical address of the stylus pen.
Step 712, the screen-casting management service unit of the first electronic device sends a stylus pen connection establishment notification to the stylus pen management service unit of the first electronic device, and the stylus pen connection establishment notification includes a physical address of the stylus pen.
Step 714, the handwriting pen management service unit of the first electronic device automatically establishes a first wireless connection with the connection management unit of the handwriting pen according to the physical address of the handwriting pen.
In some embodiments, before step 714, further comprising: the stylus pen management service unit of the first electronic device queries whether the stylus pen is paired, and if the stylus pen is paired, directly performs step 714; if the handwriting pen is not paired with the handwriting pen, the following steps are executed: the stylus pen management service unit of the first electronic device and the connection management unit of the stylus pen perform pairing, and step 714 is performed after the pairing is successful.
In some embodiments, if the stylus pen management service unit of the first electronic device queries that the stylus pen is paired, the following steps may be performed: the first electronic device stylus management service unit queries whether a first wireless connection with the stylus pen has been established, and directly performs step 714 if it is determined that the first wireless connection with the stylus pen has not been established; if the first wireless connection with the stylus is found, then step 714 need not be performed.
In step 716, the stylus pen management service unit of the first electronic device records wireless connection establishment information, where the wireless connection establishment information is used to indicate that the first wireless connection between the first electronic device and the stylus pen is established by being triggered by a screen-casting operation.
To this end, the present embodiment realizes that a first wireless connection is established between the first electronic device 600 and the stylus pen 200 as shown in fig. 8 c. At this time, the first electronic device 600 and the second electronic device 700 both establish a first wireless connection with the stylus pen 200. If the stylus pen 200 needs to perform a touch operation on the electronic device, a second wireless connection needs to be established with the electronic device, where the second wireless connection is a hop connection. And the stylus pen 200 can perform a free switching operation between the first electronic device 600 and the second electronic device 700 by establishing the HOGP connection. For example, a flowchart of a method for establishing the HOGP connection between the stylus and the first electronic device may be shown in fig. 6 d.
The following describes an exemplary workflow of a stylus pen connection control method according to another embodiment. Fig. 10a is a flowchart of a connection control method of a stylus pen in other embodiments, and the workflow shown in fig. 10a may be used to implement the connection control method of the stylus pen shown in fig. 8e, as shown in fig. 10a, the method including:
step 802, the second electronic device receives a screen-throwing disconnection instruction sent by the first electronic device.
And step 804, the second electronic device responds to the screen-projection disconnection instruction and stops displaying the screen-projection interface of the first electronic device.
And 806, the second electronic device returns a screen-throwing disconnection success message to the second electronic device, wherein the screen-throwing disconnection success message comprises the physical address of the stylus pen.
The second electronic device sends the physical address of the handwriting pen to the first electronic device through the screen-projection disconnection success message, so that the first electronic device obtains the physical address of the handwriting pen from the second electronic device in the screen-projection disconnection process with the second electronic device.
Step 808, the first electronic device queries that the first wireless connection between itself and the stylus pen is established by being triggered by the screen-casting operation.
Step 810, the first electronic device automatically disconnects the first wireless connection with the stylus pen according to the physical address of the stylus pen.
In step 808, the first electronic device queries whether a first wireless connection between itself and the stylus pen is established by being triggered by a screen-casting operation; if the first wireless connection between the user and the stylus pen is established by being triggered by the screen-throwing operation, executing step 810; if it is found that the first wireless connection between the first electronic device and the stylus pen is not established by the triggering of the screen-casting operation, step 810 is not executed, and the first electronic device maintains the first wireless connection with the stylus pen.
Specifically, the first electronic device inquires whether the first wireless connection between the first electronic device and the stylus pen is established or not triggered by screen-throwing operation according to the recorded wireless connection establishment information.
Before inquiring whether the first wireless connection between the user and the stylus pen is established in response to the successful screen-throwing operation in step 808, the method further comprises the following steps: the first electronic device queries whether the first electronic device is in a state of establishing a first wireless connection with the stylus pen, if so, step 808 is executed; if not, indicating that the first electronic device is disconnected from the stylus pen, steps 808 and 810 may not be executed.
To this end, the present embodiment implements the disconnection of the first wireless connection between the first electronic device 400 and the stylus pen 200 as shown in fig. 8 e.
In some embodiments, with respect to the software architecture block diagram of the stylus and the electronic device shown in fig. 3, the stylus may include a connection management unit, the first electronic device may include a screen-shot management service unit and a stylus management service unit, and the second electronic device may include a screen-shot management service unit and a stylus management service unit. Fig. 10b provides a flowchart of a connection control method of the stylus pen in other embodiments, and the workflow shown in fig. 10b may be used to implement the connection control method of the stylus pen shown in fig. 8e, as shown in fig. 10b, the method includes:
step 902, the screen projection management service unit of the second electronic device receives a screen projection disconnection instruction sent by the screen projection management service unit of the first electronic device.
And 904, the screen projection management service unit of the second electronic device responds to the screen projection disconnection instruction and stops displaying the screen projection interface of the first electronic device.
Step 906, the screen-casting management service unit of the second electronic device returns a screen-casting disconnection success message to the screen-casting management service unit of the first electronic device, wherein the screen-casting disconnection success message includes the physical address of the stylus pen.
Step 908, the screen-throwing management service unit of the first electronic device sends a disconnection stylus pen connection notification to the stylus pen management service unit of the first electronic device, where the disconnection stylus pen connection notification includes a physical address of the stylus pen.
Step 910, the stylus pen management service unit of the first electronic device queries that the first wireless connection between itself and the stylus pen is established when being triggered by the screen-casting operation.
In some embodiments, before step 910, further comprising: the stylus pen management service unit of the first electronic device inquires whether the stylus pen is in a state of establishing a first wireless connection with the stylus pen, if so, directly executing step 910; if not, indicating that the first electronic device is disconnected from the first wireless connection with the stylus pen, steps 910 and 912 may not be executed again.
Step 912, the handwriting pen management service unit of the first electronic device automatically disconnects the first wireless connection with the connection management unit of the handwriting pen according to the physical address of the handwriting pen.
In the embodiment of the invention, the first wireless connection is established between the stylus pen and the second electronic equipment, the first electronic equipment responds to the received screen projection request sent by the second electronic equipment and displays the screen projection interface of the second electronic equipment, and then the first wireless connection is automatically established between the first electronic equipment and the stylus pen without manually managing the connection between the first electronic equipment and the stylus pen by a user, so that the operation process of using the stylus pen by the user is reduced, and the user experience is improved.
In the embodiment of the invention, the first electronic device responds to the received screen-projecting disconnection instruction sent by the second electronic device and stops displaying the screen-projecting interface of the second electronic device, so that the first electronic device inquires that the first wireless connection between the first electronic device and the handwriting pen is established when being triggered by screen-projecting operation, the first wireless connection between the first electronic device and the handwriting pen is automatically disconnected, and the first electronic device does not need to be manually disconnected from the handwriting pen by a user, so that the operation process of using the handwriting pen by the user is reduced, and the user experience is improved.
The embodiment of the invention provides first electronic equipment which can be terminal equipment or circuit equipment arranged in the terminal equipment. The electronic device includes: a display screen; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, make the apparatus available for performing the steps in the above-described stylus connection control method embodiments.
Embodiments of the present invention provide a computer-readable storage medium, in which instructions are stored, and when the instructions are executed on a computer, the instructions cause the computer to perform the steps in the above embodiment of the connection control method for a stylus pen.
Embodiments of the present invention provide a computer program product comprising instructions, which, when run on a computer or any at least one processor, cause the computer to perform the steps of the above-mentioned method for connection control of a stylus.
In the embodiments of the present invention, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, and means that there may be three relationships, for example, a and/or B, and may mean that a exists alone, a and B exist simultaneously, and B exists alone. Wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" and the like, refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
Those of ordinary skill in the art will appreciate that the various elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of electronic hardware and computer software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided by the present invention, any function, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only an embodiment of the present invention, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present invention, and all such changes or substitutions are included in the protection scope of the present invention. The protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (27)

1. A connection control method of a stylus pen is characterized in that the method is applied to first electronic equipment, the stylus pen and second electronic equipment establish a first wireless connection, and the first wireless connection is used for realizing general service data transmission;
the method comprises the following steps:
the first electronic equipment receives a screen projection request sent by the second electronic equipment;
the first electronic equipment responds to the screen projection request and displays a screen projection interface of the second electronic equipment;
the first electronic device automatically establishes the first wireless connection with the stylus.
2. The method of claim 1, wherein before the first electronic device automatically establishes the first wireless connection with the stylus, further comprising:
if the first electronic equipment is not matched with the stylus pen, the first electronic equipment firstly performs matching with the stylus pen and then performs establishment of the first wireless connection with the stylus pen; and/or the presence of a gas in the atmosphere,
and if the first electronic equipment is paired with the handwriting pen, directly establishing the first wireless connection between the first electronic equipment and the handwriting pen.
3. The method according to claim 1 or 2, wherein after the first electronic device automatically establishes the first wireless connection with the stylus, further comprising:
the first electronic equipment records wireless connection establishment information, and the wireless connection establishment information is used for indicating that the first wireless connection between the first electronic equipment and the stylus pen is established when being triggered by screen projection operation.
4. The method of any of claims 1-3, wherein the first electronic device automatically establishing the first wireless connection with the stylus comprises:
and the first electronic equipment automatically establishes the first wireless connection with the handwriting pen according to the physical address of the handwriting pen acquired from the second electronic equipment in the process of executing screen projection operation.
5. The method of any of claims 1 to 4, wherein the screen-shot request comprises a physical address of the stylus.
6. The method according to any one of claims 1 to 5, wherein after the first electronic device automatically establishes the first wireless connection with the stylus, further comprising:
the first electronic equipment receives a screen-throwing disconnection instruction sent by the second electronic equipment;
the first electronic equipment responds to a screen projection disconnection instruction and stops displaying a screen projection interface of the second electronic equipment;
the first electronic equipment inquires that the first wireless connection between the first electronic equipment and the handwriting pen is established when being triggered by screen projection operation, and automatically disconnects the first wireless connection with the handwriting pen.
7. The method of claim 6, wherein querying that the first wireless connection with the stylus is established triggered by a screen-drop operation comprises:
and the first electronic equipment inquires that the first wireless connection between the first electronic equipment and the handwriting pen is established by being triggered by screen-casting operation according to the recorded wireless connection establishment information.
8. The method of claim 6 or 7, wherein automatically disconnecting the first wireless connection from the stylus comprises:
and the first electronic equipment automatically disconnects the first wireless connection with the handwriting pen according to the physical address of the handwriting pen acquired from the second electronic equipment in the screen projection disconnection process.
9. The method of any one of claims 6 to 8, wherein the screen shot disconnect command comprises a physical address of the stylus.
10. The method according to any one of claims 1 to 9, wherein the stylus pen establishes a second wireless connection with the second electronic device, and the second wireless connection is used for realizing man-machine interaction service data transmission;
after the first electronic device automatically establishes the first wireless connection with the stylus pen, the method further includes:
and the first electronic equipment automatically establishes the second wireless connection with the stylus pen after the second wireless connection between the stylus pen and the second electronic equipment is disconnected.
11. Method according to any of claims 1 to 10, wherein said first radio connection is a generic attribute protocol GATT connection.
12. The method according to any of the claims 1 to 11, wherein the second wireless connection is a GATT based human interface device protocol, HOGP, connection.
13. A connection control method of a stylus pen is characterized in that the method is applied to first electronic equipment, the stylus pen and second electronic equipment establish a first wireless connection, and the first wireless connection is used for realizing general service data transmission;
the method comprises the following steps:
the first electronic equipment sends a screen projection request to the second electronic equipment so as to display a screen projection interface of the first electronic equipment on the second electronic equipment;
the first electronic equipment receives a screen-casting success message returned by the second electronic equipment;
the first electronic device automatically establishes the first wireless connection with the stylus.
14. The method of claim 13, wherein before the first electronic device automatically establishes the first wireless connection with the stylus, further comprising:
if the first electronic equipment is not paired with the stylus pen, the first electronic equipment firstly performs pairing with the stylus pen and then performs establishment of the first wireless connection with the stylus pen; and/or the presence of a gas in the atmosphere,
and if the first electronic equipment is matched with the handwriting pen, directly establishing the first wireless connection between the first electronic equipment and the handwriting pen.
15. The method according to claim 13 or 14, wherein after the first electronic device automatically establishes the first wireless connection with the stylus, further comprising:
the first electronic equipment records wireless connection establishment information, and the wireless connection establishment information is used for indicating that the first wireless connection between the first electronic equipment and the stylus pen is established by being triggered by screen projection operation.
16. The method of any of claims 13-15, wherein the first electronic device automatically establishing the first wireless connection with the stylus comprises:
and the first electronic equipment automatically establishes the first wireless connection with the stylus pen according to the physical address of the stylus pen acquired from the second electronic equipment in the screen projection operation process.
17. The method of any of claims 13 to 16, wherein the screen-shot success message comprises a physical address of the stylus.
18. The method according to any one of claims 13 to 17, wherein after the first electronic device automatically establishes the first wireless connection with the stylus, further comprising:
the first electronic equipment sends a screen projection disconnection instruction to the second electronic equipment so that a screen projection interface of the first electronic equipment stops being displayed on the second electronic equipment;
the first electronic equipment receives a screen-throwing disconnection success message returned by the second electronic equipment;
the first electronic equipment inquires that the first wireless connection between the first electronic equipment and the handwriting pen is established when being triggered by screen projection operation, and automatically disconnects the first wireless connection from the handwriting pen.
19. The method of claim 18, wherein querying that the first wireless connection with the stylus is established triggered by a screen-drop operation comprises:
and the first electronic equipment inquires that the first wireless connection between the first electronic equipment and the handwriting pen is established by being triggered by screen-casting operation according to the recorded wireless connection establishment information.
20. The method of claim 18 or 19, wherein automatically disconnecting the first wireless connection from the stylus comprises:
and the first electronic equipment automatically disconnects the first wireless connection with the handwriting pen according to the physical address of the handwriting pen acquired from the second electronic equipment in the process of executing screen projection disconnection.
21. The method of any of claims 18 to 20, wherein the screen-shot disconnect success message comprises a physical address of the stylus.
22. The method according to any one of claims 13 to 21, wherein the stylus pen establishes a second wireless connection with the second electronic device, and the second wireless connection is used for implementing man-machine interaction service data transmission;
after the first electronic device establishes the first wireless connection with the stylus pen, the method further includes:
and the first electronic equipment automatically establishes the second wireless connection with the stylus pen after the second wireless connection between the stylus pen and the second electronic equipment is disconnected.
23. The method according to any of claims 13 to 22, wherein the first wireless connection is a GATT connection.
24. The method according to any of the claims 13 to 23, characterized in that the second wireless connection is a HOGP connection.
25. A first electronic device, comprising: a display screen; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the connection control method of a stylus of any one of claims 1 to 12 or the connection control method of a stylus of any one of claims 13 to 24.
26. A computer-readable storage medium, comprising a stored program, wherein when the program runs, the computer-readable storage medium controls an apparatus to execute a connection control method of a stylus pen according to any one of claims 1 to 12 or a connection control method of a stylus pen according to any one of claims 13 to 24.
27. A computer program product comprising instructions for causing a computer to perform the method of connection control of a stylus according to any one of claims 1 to 12 or the method of connection control of a stylus according to any one of claims 13 to 24 when the computer program product is run on the computer or any at least one processor.
CN202110578582.1A 2021-05-26 2021-05-26 Connection control method of stylus and electronic equipment Pending CN115407885A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110578582.1A CN115407885A (en) 2021-05-26 2021-05-26 Connection control method of stylus and electronic equipment
PCT/CN2022/092249 WO2022247638A1 (en) 2021-05-26 2022-05-11 Method for controlling connection of stylus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110578582.1A CN115407885A (en) 2021-05-26 2021-05-26 Connection control method of stylus and electronic equipment

Publications (1)

Publication Number Publication Date
CN115407885A true CN115407885A (en) 2022-11-29

Family

ID=84156051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110578582.1A Pending CN115407885A (en) 2021-05-26 2021-05-26 Connection control method of stylus and electronic equipment

Country Status (2)

Country Link
CN (1) CN115407885A (en)
WO (1) WO2022247638A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117135602A (en) * 2023-04-25 2023-11-28 荣耀终端有限公司 Data interaction method for handwriting pen multi-connection scene, handwriting pen and Bluetooth system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200095739A (en) * 2019-02-01 2020-08-11 삼성전자주식회사 Electronic device and method for mapping function of electronic device and action of stylus pen
CN110347269B (en) * 2019-06-06 2022-02-15 华为技术有限公司 Empty mouse mode realization method and related equipment

Also Published As

Publication number Publication date
WO2022247638A1 (en) 2022-12-01

Similar Documents

Publication Publication Date Title
EP3917210A1 (en) Network card switching method and electronic device
CN113613238B (en) SIM module management method and electronic equipment
US11683850B2 (en) Bluetooth reconnection method and related apparatus
WO2022042656A1 (en) Interface display method, and device
US20220086735A1 (en) Method and Device for Controlling Connection to Network
CN114089901B (en) Cross-device object dragging method and device
EP3993460A1 (en) Method, electronic device and system for realizing functions through nfc tag
WO2022048500A1 (en) Display method, and device
CN112130788A (en) Content sharing method and device
EP3883299A1 (en) Method for smart home appliance to access network and related device
CN114885442A (en) Input device connection method, device and system
CN114089900A (en) Cross-device object dragging method and device
CN113672133A (en) Multi-finger interaction method and electronic equipment
JP7204902B2 (en) File transfer method and electronic device
CN114201738B (en) Unlocking method and electronic equipment
CN114356195B (en) File transmission method and related equipment
WO2022247638A1 (en) Method for controlling connection of stylus, and electronic device
CN114363678A (en) Screen projection method and equipment
EP4102927A1 (en) Dual wifi connection method and electronic device
CN113676902B (en) System, method and electronic equipment for providing wireless internet surfing
WO2023051204A1 (en) Cross-device connection method, electronic device and storage medium
US20240196454A1 (en) File sharing method and terminal device
WO2024104128A1 (en) Data display method, system, electronic device
CN115703006A (en) Equipment connection method, device and system
CN117289807A (en) Communication method, communication system and mouse

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination