WO2022247638A1 - Procédé de commande de connexion de stylet, et dispositif électronique - Google Patents

Procédé de commande de connexion de stylet, et dispositif électronique Download PDF

Info

Publication number
WO2022247638A1
WO2022247638A1 PCT/CN2022/092249 CN2022092249W WO2022247638A1 WO 2022247638 A1 WO2022247638 A1 WO 2022247638A1 CN 2022092249 W CN2022092249 W CN 2022092249W WO 2022247638 A1 WO2022247638 A1 WO 2022247638A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
stylus
wireless connection
screen projection
connection
Prior art date
Application number
PCT/CN2022/092249
Other languages
English (en)
Chinese (zh)
Inventor
罗诚
段潇潇
刘开罩
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022247638A1 publication Critical patent/WO2022247638A1/fr

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

Definitions

  • the present application relates to the technical field of terminals, and in particular to a connection control method of a stylus and an electronic device.
  • a stylus can support connecting to one electronic device or support connecting to multiple electronic devices at the same time.
  • the stylus When the stylus is used with the electronic device for the first time, it must be paired. After the pairing is successful, the user can use the stylus on the electronic device normally. At present, users must manually pair the stylus with the electronic device. If the stylus is used in various screen projection scenarios, the user needs to manually manage the connection and disconnection of the stylus, which makes the operation cumbersome. The operation process for the user to use the stylus is increased, and the user experience is reduced.
  • the present application provides a connection control method of a stylus and an electronic device, which are used to reduce the operation process when the user uses the stylus and improve user experience.
  • the first aspect provides a method for controlling the connection of a stylus, 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 universal Business data transmission; the method includes: the first electronic device receives a screen projection request sent by the second electronic device; the first electronic device responds to the screen projection request and displays the screen projection of the second electronic device Screen projection interface: the first electronic device automatically establishes the first wireless connection with the stylus.
  • the first electronic device before automatically establishing the first wireless connection with the stylus, the first electronic device further includes:
  • the first electronic device If the first electronic device is not paired with the stylus, the first electronic device first performs pairing with the stylus, and then performs the establishment of the first wireless connection with the stylus and/or, if the first electronic device is paired with the stylus, directly execute the establishment of the first wireless connection between the first electronic device and the stylus.
  • the first electronic device after the first electronic device automatically establishes the first wireless connection with the stylus, it further includes: the first electronic device records wireless connection establishment information, and the wireless connection establishment The information is used to indicate that the first wireless connection between itself and the stylus is triggered by a screen projection operation.
  • the first electronic device automatically establishes the first wireless connection with the stylus, including: The device acquires the physical address of the stylus, and establishes the first wireless connection with the stylus.
  • the screen projection request includes the physical address of the stylus.
  • the first electronic device further includes: the first electronic device receives the screen projection sent by the second electronic device Disconnect instruction; the first electronic device stops displaying the screen projection interface of the second electronic device in response to the screen projection disconnection instruction; the first electronic device inquires the first wireless connection between itself and the stylus The first wireless connection is automatically disconnected from the stylus by being triggered by the screen projection operation.
  • the querying that the establishment of the first wireless connection between itself and the stylus is triggered by a screen projection operation includes: the first electronic device establishes information according to the recorded wireless connection, It is found out that the first wireless connection between itself and the stylus is triggered by a screen projection operation.
  • the automatically disconnecting the first wireless connection with the stylus includes: the first electronic device obtains from the second electronic device according to the screen projection disconnection process. The physical address of the stylus is automatically disconnected from the first wireless connection with the stylus.
  • the screen projection disconnection instruction includes the physical address of the stylus.
  • the stylus establishes a second wireless connection with the second electronic device, and the second wireless connection is used to realize human-computer interaction service data transmission;
  • the method further includes: disconnecting the second wireless connection between the stylus and the second electronic device by the first electronic device Afterwards, the second wireless connection is automatically established with the stylus.
  • the first wireless connection is a general attribute protocol GATT connection.
  • the second wireless connection is a GATT-based HOGP connection.
  • the second aspect provides a connection control method of a stylus, 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 realize universal Business data transmission; the method includes: the first electronic device sends a screen projection request to the second electronic device to display its own screen projection interface on the second electronic device; the first electronic device receiving a successful screen projection message returned by the second electronic device; and automatically establishing the first wireless connection with the stylus by the first electronic device.
  • the first electronic device before the first electronic device automatically establishes the first wireless connection with the stylus, it further includes: if the first electronic device is not paired with the stylus, the The first electronic device performs pairing with the stylus first, and then performs the establishment of the first wireless connection with the stylus; and/or, if the first electronic device is paired with the stylus already paired, directly perform establishment of the first wireless connection between the first electronic device and the stylus.
  • the first electronic device after the first electronic device automatically establishes the first wireless connection with the stylus, it further includes: the first electronic device records wireless connection establishment information, and the wireless connection establishment The information is used to indicate that the first wireless connection between itself and the stylus is triggered by a screen projection operation.
  • the first electronic device automatically establishes the first wireless connection with the stylus, including: The device acquires the physical address of the stylus, and automatically establishes the first wireless connection with the stylus.
  • the screen casting success message includes the physical address of the stylus.
  • the first electronic device after the first electronic device automatically establishes the first wireless connection with the stylus, it further includes: the first electronic device sends a screen projection message to the second electronic device. open instruction, so that its own screen projection interface stops displaying on the second electronic device; the first electronic device receives the screen projection disconnection success message returned by the second electronic device; the first electronic device queries The first wireless connection between itself and the stylus is established by being triggered by the screen projection operation, and the first wireless connection with the stylus is automatically disconnected.
  • the inquiring that the establishment of the first wireless connection between itself and the stylus is triggered by a screen projection operation includes:
  • the first electronic device finds out that the first wireless connection between itself and the stylus is triggered by a screen projection operation.
  • the automatically disconnecting the first wireless connection with the stylus includes: the first electronic device obtains from the second electronic device according to the screen projection disconnection process. The physical address of the stylus is automatically disconnected from the first wireless connection with the stylus.
  • the screen projection disconnection success message includes the physical address of the stylus.
  • the stylus establishes a second wireless connection with the second electronic device, and the second wireless connection is used to realize human-computer interaction service data transmission;
  • the method further includes: after the first electronic device disconnects the second wireless connection between the stylus and the second electronic device , automatically establishing the second wireless connection with the stylus.
  • the first wireless connection is a GATT connection.
  • the second wireless connection is a HOGP connection.
  • the third aspect provides a first electronic device, the stylus establishes a first wireless connection with the second electronic device, and the first wireless connection is used to realize general service data transmission;
  • the first electronic device comprises: 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, and the one or more A computer program includes an instruction, and when the instruction is executed by the first electronic device, the first electronic device executes the connection control method of the stylus in the first aspect or any possible implementation manner of the first aspect.
  • the fourth aspect provides a first electronic device, the stylus establishes a first wireless connection with the second electronic device, and the first wireless connection is used to realize general service data transmission;
  • the first electronic device comprises: 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, and the one or more A computer program includes an instruction.
  • the instruction executes the connection control method of the stylus in the second aspect or any possible implementation manner of the second aspect.
  • a fifth aspect provides a computer-readable storage medium, the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the first aspect or the first A method for controlling the connection of a stylus in any possible implementation of the aspect, or controlling the device where the computer-readable storage medium is located when the program is running to execute the second aspect or handwriting in any possible implementation of the second aspect Pen connection control method.
  • a sixth aspect provides a computer program product containing instructions, when the computer program product runs on a computer or any at least one processor, the computer executes the first aspect or any possibility of the first aspect.
  • the stylus establishes a first wireless connection with the second electronic device, and the first electronic device responds to the screen projection request sent by the second electronic device and displays the screen projection of the second electronic device. screen interface, the first electronic device automatically establishes a first wireless connection with the stylus, without the need for the user to manually manage the connection between the first electronic device and the stylus, thereby reducing the user's operating procedures for using the stylus and improving user experience.
  • Fig. 1 is a schematic structural diagram of a stylus communication system in some embodiments
  • Fig. 2 is a schematic diagram of the hardware structure of an electronic device in some embodiments
  • Figure 3 is a block diagram of the software structure of the stylus and electronic equipment in some embodiments.
  • Fig. 4 is a schematic diagram of screen projection in some embodiments.
  • 5a to 5d are schematic diagrams of establishing a first wireless connection and a second wireless connection between a stylus and an electronic device in some embodiments;
  • Fig. 5e is a schematic diagram of disconnecting the first wireless connection between the stylus and the electronic device in some embodiments
  • Fig. 6a is a flowchart of a connection control method of a stylus in some embodiments
  • Fig. 6b is a flowchart of a method for pairing a first electronic device with a stylus and establishing a first wireless connection in some embodiments
  • Fig. 6c is a flowchart of a connection control method of a stylus in other embodiments.
  • Fig. 6d is a schematic flowchart of a method for establishing a HOGP connection between a stylus and an electronic device in some embodiments
  • Fig. 7a is a flowchart of a connection control method of a stylus in some other embodiments.
  • Fig. 7b is a flowchart of a connection control method of a stylus in some other embodiments.
  • 8a to 8d are schematic diagrams of establishing a first wireless connection and a second wireless connection between a stylus and an electronic device in other embodiments;
  • Fig. 8e is a schematic diagram of disconnecting the first wireless connection between the stylus and the electronic device in some other embodiments
  • Fig. 9a is a flowchart of a connection control method of a stylus in some other embodiments.
  • Fig. 9b is a flowchart of a connection control method of a stylus in other embodiments.
  • Fig. 10a is a flowchart of a connection control method of a stylus in other embodiments.
  • Fig. 10b is a flowchart of a connection control method of a stylus in some other embodiments.
  • FIG. 1 is a schematic structural diagram of a stylus communication system in some embodiments.
  • the system includes: a stylus 200 and at least two electronic devices, and pairing can be performed between the stylus 200 and each electronic device. And the stylus 200 can maintain the first wireless connection with multiple electronic devices at the same time.
  • the stylus 200 and the electronic device can be paired through Bluetooth (BT for short), Near Field Communication (NFC for short) or USB-C interface.
  • BT Bluetooth
  • NFC Near Field Communication
  • USB-C interface USB-C interface
  • FIG. 1 shows the application scenario of "one-stroke multi-connection".
  • the "one-stroke multi-connection" technology means that a stylus 200 can be connected to multiple electronic devices at the same time, and can be connected between multiple electronic devices. Switch operations freely. Any appropriate standard can be complied with between the stylus 200 and the electronic device, for example, Huawei Pen Protocol (Huawei Pen Protocol, HPP for short) 3.x, HPP 3.x is a fusion protocol, including the compatibility scheme of HPP2.x.
  • the electronic device is a device with a touch screen.
  • electronic devices include but are not limited to carrying or devices with other operating systems.
  • Electronic devices include but are not limited to mobile phones, tablet computers, laptops, desktop computers, smart screens, etc.
  • the stylus 200 maintains the first wireless connection with the mobile phone 100a, the notebook computer 100b, the tablet computer 100c and the mobile phone 100d at the same time, and can be freely connected between the mobile phone 100a, the notebook computer 100b, the tablet computer 100c and the mobile phone 100d. Toggle action.
  • the stylus can include an active stylus or a passive stylus.
  • the stylus 200 may be an active stylus.
  • the active stylus is an active capacitive stylus, and the active capacitive stylus can emit a voltage driving signal to change the electric field at the touch point of the touch screen, thereby changing the electrode at the touch point.
  • Capacitance the control chip of the touch screen can determine the position of the touch point by detecting the change of the electrode capacitance.
  • the active stylus can also use an active electromagnetic stylus, which can emit an electromagnetic drive signal to change the magnetic flux at the touch point of the touch screen.
  • the control chip can determine the position of the touch point through the change of the magnetic flux.
  • a pressure sensor is usually added to the tip of the pen, so that different strokes under different strengths can be realized to simulate real human handwriting.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, and a battery 142 , antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. Wherein, the controller can generate an operation control signal according to the instruction operation code and the timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also provide power for electronic devices through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be disposed in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the electronic device 100 can be realized 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.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G/6G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless fidelity, Wi-Fi) network), bluetooth (Bluetooth, BT), global navigation satellite, etc. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • 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 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (long term evolution, LTE), 5G and subsequent evolution standards, BT , GNSS, WLAN, NFC, FM, and/or IR technologies, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • TD-SCDMA time-division code division multiple access
  • LTE long term evolution
  • 5G and subsequent evolution standards BT , GN
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou satellite navigation system (Beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou satellite navigation system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 realizes the display function through 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 the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute instructions to generate or alter display information.
  • the electronic device 101 may realize the shooting function through an ISP, one or more cameras 193 , a video codec, a GPU, one or more display screens 194 , and an application processor.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity 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. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the sensor module 180 may include a pressure sensor 180A, a gyro 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, bone conduction sensor 180M, etc.
  • the touch sensor 180K is also called "touch device”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different.
  • the SIM card interface 195 is also compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • a software structural block diagram of the stylus 200 and the electronic device 100 is provided.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the system of the electronic device 100 is divided into three layers, which are application program layer, service layer, and driver layer from top to bottom.
  • the application program layer can include a series of application program packages, and the application programs can include collaborative office applications and screen projection applications
  • the service layer can include stylus management services, screen projection management services, and short-distance communication management services
  • driver The layer may include a touch screen (Touch Panel, TP for short) driver, a Human Interface Device (Human Interface Device, HID for short) driver, and a short-range communication driver.
  • the short-range communication management service may include Bluetooth management service, NFC management service, Wi-Fi management service, etc.
  • the short-range communication driver may include Bluetooth driver, NFC driver, Wi-Fi driver, etc.
  • the system of the stylus 200 is divided into three layers, which are application program layer, service layer, and driver layer from top to bottom.
  • the application layer may include a series of application packages
  • the application layer may include a host-side communication agent
  • the service layer may include touch management and connection management
  • the driver layer may include a pen driver.
  • stylus 200 includes, but is not limited to or devices with other operating systems.
  • the stylus 200 carries For example, Hongmeng lightweight system, electronic equipment 100 equipped with
  • the multiple electronic devices 100 can also perform screen projection operations.
  • the source (Source) end device can cast the screen projection interface to the destination (Sink) end device through wired or wireless means, wherein, the source end device is the central device for screen projection, and the destination end device is the projected device. screen device.
  • the source device is a first electronic device
  • the destination device is a second electronic device
  • the first electronic device projects a screen to the second electronic device.
  • the source device is the second electronic device
  • the destination device is the first electronic device
  • the second electronic device projects a screen to the first electronic device.
  • the mobile phone 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 will project the screen projection interface to the tablet computer, so that the The content displayed on the screen projection interface of the mobile phone is displayed on the computer.
  • the mobile phone 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 will cast the screen projection interface to the notebook computer to display the screen on the tablet computer.
  • the tablet computer will project screen to the laptop, so that the content displayed on the screen projection of the tablet can be displayed on the laptop.
  • screen projection can be implemented between the first electronic device and the second electronic device through a homologous screen projection technology or a heterogeneous screen projection technology. If the first electronic device and the second electronic device use the same-source screen projection technology to perform screen projection, the first electronic device and the second electronic device synchronously display the screen projection content. If the heterogenous screen projection technology is used between the first electronic device and the second electronic device for screen projection, the first electronic device and the second electronic device may display the screen projection content asynchronously.
  • the first electronic device projects the screen to the second electronic device through the same-source screen projection technology.
  • the screen projection interface of the first electronic device displayed on the second electronic device is the display interface of the first electronic device.
  • the display interface of the first electronic device is a display interface of a video application
  • the collaborative window of the second electronic device also displays the display interface of the video application
  • the first electronic device exits the video application and displays the main interface then the second electronic device
  • the collaboration window of the second electronic device also displays the main interface of the first electronic device.
  • the first electronic device projects a screen to the second electronic device through a heterogeneous screen projection technology.
  • the first electronic device currently displays the display interface of the video application, and the first electronic device projects the display interface of the video application to the second electronic device, so that the collaborative window of the second electronic device displays the display interface of the video application.
  • the screen projection interface of the first electronic device is the display interface of the video application; then, the first electronic device switches the video application to run in the background, and the main interface or other application display interfaces are displayed in the foreground, while the collaboration window of the second electronic device can still
  • the display interface of the video application is displayed, that is, the first electronic device and the second electronic device are displayed asynchronously.
  • FIG. 4 shows an application scenario in which the second electronic device 300 projects the screen projection interface to the first electronic device 400.
  • the second electronic device 300 is a mobile phone
  • the first electronic device 400 is a tablet computer.
  • the screen projection interface of the second electronic device 300 includes a status bar 301 and a menu bar 302 .
  • the status column 301 includes signal status, network status, power supply, current geographic location, current time and local weather.
  • the signal status is a full signal, indicating that the current signal is strong;
  • the network status includes Wi-Fi network and Bluetooth network;
  • the black part of the power supply can indicate the remaining power of the electronic device;
  • the current geographical location is Tianjin; the current time is 4 Saturday, March 17th, the sixth day of March in the Xin Chou Year, 08:08; the weather in Tianjin is cloudy and the temperature is 8°C.
  • the menu bar 302 includes icons of at least one application program, for example, the and Gallery, along with Phone, Messages, Settings, and Camera on the lower row.
  • the positions 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 this embodiment of the present application.
  • the screen projection interface of the first electronic device 400 includes icons of at least one application program, for example, setting, camera and gallery.
  • the positions of the icon of the application program and the name of the corresponding application program can be adjusted according to the preference of the user, which is not limited in this embodiment of the present application.
  • a wireless connection is established between the second electronic device 300 and the first electronic device 400, for example, the second electronic device 300 and the first electronic device 400 can share a touch transmission (Huawei Share OneHop) between the second electronic device 300 and the first electronic device 400.
  • a touch transmission Huawei Share OneHop
  • the second electronic device 300 will cast the screen projection interface to the first electronic device 400
  • the first electronic device 400 will display the collaboration window 500 generated by the second electronic device 300 on the first electronic device 400.
  • the window 500 includes the screen projection interface of the second electronic device 300 , so as to realize the function of "multi-screen collaboration". Exemplarily, as shown in FIG.
  • a top title bar is provided above the screen projection interface of the second electronic device 300 in the collaboration window 500, and the top title bar includes the device name of the second electronic device 300 "HUAWEI Mate 40Pro". " and a plurality of function buttons, for example, the plurality of function buttons are a minimize button, a maximize button, and a close button in turn; a function bar at the bottom is also provided below the screen projection interface of the second electronic device 300 in the collaborative window 500, and the bottom
  • the function bar includes a back key, a main desktop key and a menu key. The back key is used to return to the previous level, the main desktop key is used to return to the main desktop, and the menu key is used to display multiple background applications.
  • an electronic device serving as a source device may simultaneously project a screen to multiple other electronic devices serving as destination devices. This situation is not specifically drawn.
  • the embodiments of the present application provide a connection control method of the stylus and an electronic device.
  • the stylus establishes the first wireless connection with the second electronic device, and the first electronic device displays the screen projection interface of the second electronic device in response to receiving the screen projection request sent by the second electronic device, then The first electronic device automatically establishes the first wireless connection with the stylus, and the user does not need to manually manage the connection between the first electronic device and the stylus, thereby reducing the operation process for the user to use the stylus and improving user experience.
  • the first electronic device stops displaying the screen projection interface of the second electronic device in response to receiving the screen projection disconnection instruction sent by the second electronic device, and then the first electronic device inquires about the screen projection interface between itself and the stylus.
  • the first wireless connection is triggered by the screen projection operation and is automatically disconnected from the first wireless connection with the stylus, without the need for the user to manually manage the disconnection of the first electronic device from the stylus, thereby reducing the user's operations with the stylus flow, improving the user experience.
  • FIG. 5a to FIG. 5d provide schematic diagrams of establishing a first wireless connection and a second wireless connection between a stylus and an electronic device.
  • 5a to 5d show the stylus 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.
  • the first wireless connection is used to realize the transmission of general business data.
  • the general business data may include business data such as the attributes of the stylus and screen parameters;
  • the second wireless connection is used to realize the transmission of human-computer interaction business data.
  • the human-computer interaction business data may include business data such as attributes of the stylus, screen parameters, and pressure data of the stylus.
  • a first wireless connection needs to be established between the stylus 200 and the second electronic device 300 .
  • the second electronic device 300 and the stylus 200 may establish a first wireless connection through a short-range communication technology, and the short-range communication technology may include but not limited to Bluetooth, Wi-Fi or NFC.
  • the second electronic device 300 and the stylus 200 may establish a first wireless connection through Bluetooth.
  • the established first wireless connection may be a Generic Attribute Profile (GATT) connection.
  • GATT Generic Attribute Profile
  • GATT is a general specification for sending and receiving very short data segments over a Bluetooth connection. It should be noted that: in the embodiment of the present application, the first wireless connection is a GATT connection as an example for description.
  • the second electronic device 300 needs to perform pairing with the stylus 200, specifically, the second electronic device 300 and the stylus
  • the pen 200 can be paired via Bluetooth, NFC or USB-C interface. Then, the second electronic device 300 performs establishment of a GATT connection with the stylus 200 .
  • the stylus 200 can establish a second wireless connection with the second electronic device 300, and the user can use the stylus 200 to touch on the second electronic device 300.
  • the second wireless connection is a GATT-based Human-Machine Interface Device Protocol (HID Over GATT Protocol, HOGP for short) connection.
  • the second wireless connection is an HOGP connection as an example to describe.
  • the GATT connection can support the transmission of business data such as stylus attributes and screen parameters, but does not support the transmission of stylus pressure data;
  • the HOGP connection can support stylus attributes, screen parameters, and stylus pressure data and other business data transmission.
  • the first electronic device 400 and the second electronic device 300 perform a screen projection operation, and the screen projection operation is successful.
  • the second electronic device 300 casts the screen projection interface to the first electronic device 400
  • the first electronic device 400 displays the collaboration window 500 generated on the first electronic device 400 by the second electronic device 300 projection.
  • the collaboration window 500 includes a screen projection interface of the second electronic device 300 to realize the "multi-screen collaboration" function.
  • the screen projection interface is the main interface of the second electronic device 300 .
  • the content of the collaboration window 500 changes accordingly with the user's operations on the second electronic device 300.
  • the content displayed on the second electronic device 300 changes from the main interface to the handwriting interface in FIG. 5a, and the collaboration window 500 in FIG. 5b displays The content of is also changed to the handwriting interface in Fig. 5a, which is not specifically drawn in this case.
  • the first electronic device 400 displays the screen projection interface of the second electronic device 300 , indicating that the screen projection operation is successful, and the first electronic device 400 automatically establishes a first wireless connection with the stylus 200 .
  • the first electronic device 400 and the stylus 200 can automatically establish a first wireless connection through short-range communication technology, which may include but not limited to Bluetooth, Wi-Fi or NFC.
  • the first electronic device 400 and the stylus 200 may automatically establish a first wireless connection through Bluetooth, and at this time, the established first wireless connection may be a GATT connection.
  • the first electronic device 400 inquires whether a GATT connection has been established with the stylus 200.
  • a GATT connection has been established with the stylus 200, it indicates that the first electronic device 400 has already established a GATT connection with the stylus 200 before screen projection. Establish a GATT connection; if it is found out that the GATT connection with the stylus 200 has not been established, the GATT connection with the stylus 200 can be directly established.
  • the first electronic device 400 needs to perform pairing with the stylus 200, for example, the first electronic device 400 can pass Bluetooth or NFC performs pairing with the stylus 200, thereby realizing automatic pairing between the first electronic device 100 and the stylus 200, without manual operation by the user, and improving user experience.
  • the first electronic device 400 pops up a prompt box, and the user clicks the "Connect” button in the prompt box to express agreement to establish a GATT connection, and then the second An electronic device 400 establishes a GATT connection with the stylus 200 .
  • the user clicks “cancel” in the prompt box it means that the establishment of the GATT connection is not agreed, and the establishment of the GATT connection between the first electronic device 400 and the stylus 200 fails.
  • the first electronic device 400 can automatically establish a second wireless connection with the stylus 200, and the user can use the stylus 200 on the first electronic
  • a touch operation is performed on the device 400, for example, the second wireless connection is a HOGP connection.
  • the stylus 200 disconnects the HOGP connection established between the second electronic device 300 and automatically establishes a HOGP connection with the first electronic device 400 , so that the user can use the stylus 200 to perform a touch operation on the first electronic device 400 .
  • the first electronic device 400 displays a handwriting interface, and the user can use the stylus 200 to perform writing operations on the handwriting interface, for example, write "Huawei" on the handwriting interface.
  • FIG. 5e provides a schematic diagram of disconnecting the first wireless connection between the stylus and the electronic device.
  • the device 400 After executing the process of establishing the first wireless connection between the stylus and the electronic device shown in FIGS.
  • the device 400 has established a GATT connection with the stylus 200 .
  • the first electronic device 400 and the second electronic device 300 perform screen projection disconnection, and the screen projection disconnection is successful.
  • the second electronic device 300 sends a screen projection disconnection command 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.
  • the collaboration window 500 is displayed, and the communication channel established when the first electronic device 400 and the second electronic device 300 project screens is disconnected.
  • the GATT connection between the first electronic device 400 and the stylus 200 is triggered by the screen projection operation, when the screen projection between the first electronic device 400 and the second electronic device 300 is disconnected, the first electronic device The device 400 disconnects the GATT connection with the stylus 200 automatically. However, since the GATT connection between the second electronic device 300 and the stylus 200 is not triggered by the screen projection operation, the GATT connection between the second electronic device 300 and the stylus 200 is not affected by the disconnection of the screen projection. The second electronic device 300 and the stylus 200 still maintain the GATT connection.
  • the stylus 200 can establish a HOGP connection with the second electronic device 300, so that the user can use the stylus 200 to perform touch operations on the second electronic device 300. For example, as shown in FIG. The electronic device 300 clicks the gallery icon.
  • the GATT connection between the first electronic device 400 and the stylus 200 is not established in response to the trigger of the screen projection operation, the GATT connection between the first electronic device 400 and the stylus 200 will not be disconnected by the screen projection.
  • the first electronic device 400 and the stylus 200 still maintain a GATT connection, and the user can continue to use the stylus 200 to perform touch operations on the first electronic device 400, which is not specifically shown.
  • the connection life cycle between the stylus 200 and the first electronic device 400 is consistent with the screen projection cycle. That is: during the screen projection process, the stylus 200 maintains a GATT connection with both the first electronic device 400 and the second electronic device 300, and the stylus 200 can freely switch between touch operations on the first electronic device 400 and the second electronic device 300 ; When the projection screen is disconnected, the stylus 200 is disconnected from the GATT connection with the first electronic device 400, and the touch operation cannot be performed on the first electronic device 400, but because the GATT connection between the stylus 200 and the second electronic device 300 is not controlled The GATT connection is not affected by the disconnection of the screen projection, so the stylus 200 can continue to maintain the GATT connection with the second electronic device 300, and can perform touch operations on the second electronic device 300 . Thereby, the management of the connection life cycle between the stylus and the electronic device is realized.
  • Figure 6a is a flow chart of the connection control method of the stylus in some embodiments, the workflow shown in Figure 6a can be used to implement the connection control method of the stylus shown in Figure 5a to Figure 5c, as shown in Figure 6a, the method include:
  • Step 102 the second electronic device establishes a first wireless connection with the stylus.
  • the second electronic device 300 establishes a first wireless connection with the stylus 200 through Bluetooth, Wi-Fi or NFC.
  • the first wireless connection is a GATT connection.
  • step 102 it may further include: step 100 , the second electronic device 300 executes pairing with the stylus 200 . Then, the second electronic device 300 executes the establishment of the first wireless connection with the stylus 200 , that is, executes step 102 .
  • the user may further include: the second electronic device 300 establishes a second wireless connection with the stylus 200, for example, the second wireless The connection is a HOGP connection.
  • Step 104 the second electronic device establishes a communication channel with the first electronic device.
  • the second electronic device and the first electronic device can transmit data during screen projection through the communication channel.
  • Step 106 the second electronic device sends a screen projection request to the first electronic device, and the screen projection request includes the physical address of the stylus.
  • the physical address of the stylus is used to uniquely identify a stylus and can be used to ensure the uniqueness of the stylus.
  • the physical address of the stylus includes a Media Access Control (MAC) address of the stylus, for example, a Bluetooth MAC address.
  • MAC Media Access Control
  • the second electronic device sends the physical address of the stylus to the first electronic device through a screen projection request, so that the first electronic device performs the screen projection operation with the second electronic device
  • the physical address of the stylus is obtained from the second electronic device.
  • the second electronic device may also send the physical address of the stylus to the first electronic device separately, for example, after the second electronic device sends the first electronic device After the screen projection request, the second electronic device sends the physical address of the stylus to the first electronic device.
  • the screen projection request includes screen projection parameters, and the screen projection parameters include one or more of screen projection resolution, transmission code rate, encoding compression rate, or key frame interval time.
  • Step 108 the first electronic device displays the screen projection interface of the second electronic device in response to the screen projection request.
  • the first electronic device 400 analyzes the screen projection parameters, and after determining that it has the ability to accept the screen projection of the second electronic device 300, accepts the screen projection request and displays the screen projection interface of the second electronic device 300, Thus the projection is successful.
  • step 110 the first electronic device returns a successful screen projection message to the second electronic device.
  • Step 112 the first electronic device automatically establishes a first wireless connection with the stylus according to the physical address of the stylus.
  • FIG. 6b provides a flowchart of a method for pairing a first electronic device with a stylus and establishing a first wireless connection in some embodiments, wherein the first electronic device and the stylus can be connected via Bluetooth Low Energy (Bluetooth Low Energy) , referred to as BLE) technology for the first wireless connection.
  • step 112 may specifically include:
  • Step 1122 the first electronic device receives the broadcast packet (Adv) broadcast by the stylus.
  • Step 1124 the first electronic device sends a connection request (Page Request) to the stylus according to the physical address of the stylus.
  • Page Request a connection request
  • Step 1126 the stylus returns a connection response (Page Response) to the first electronic device.
  • Step 1128 the stylus sends a Connection Establish message to the first electronic device.
  • step 112 before step 112, it also includes: the first electronic device inquires whether it has been paired with the stylus, if it has been paired with the stylus, then directly execute step 112; if it is not paired with the stylus, then first execute step 111 . The first electronic device executes pairing with the stylus, and then executes step 112 after the pairing is successful.
  • the first electronic device may store paired device information, and the paired device information may include the name and type of the paired device, for example, the name of the paired device is "HUAWEI PEN", and the type is a stylus. Then in step 112, the first electronic device can query whether the name and type of the stylus are included in the paired device information, if so, it indicates that the first electronic device and the stylus have been paired, and directly executes step 112; if not, it indicates If the first electronic device is not paired with the stylus, step 111 is performed first, and step 112 is performed after the pairing is successful.
  • step 111 may specifically include:
  • Step 1112 the first electronic device sends a pairing request (Pairing Request) to the stylus according to the physical address of the stylus.
  • Step 1114 the stylus returns a pairing response (Pairing Response) to the first electronic device.
  • Step 1116 the stylus sends a pairing message based on the Secure Manager Protocol (SMP for short) to the first electronic device.
  • SMP Secure Manager Protocol
  • the SMP-based pairing message is a "Paring Over SMP" message.
  • the embodiment of the present application realizes the automatic pairing between the first electronic device and the stylus without manual operation by the user, thus improving the user experience.
  • the first electronic device if it finds out that it has been paired with the stylus, it can continue to perform the following steps: the first electronic device inquires whether the first wireless connection has been established with the stylus, and if it finds out that the first wireless connection with the stylus has not been established If there is a wireless connection, directly execute step 112; if it is found out that the first wireless connection has been established with the stylus, it is not necessary to continue to execute step 112.
  • the first electronic device may store connected device information, and the connected device information may include the name and type of the connected device, for example, the name of the connected device is "HUAWEI PEN", and the type is a stylus. Then the first electronic device can inquire whether the connected device information includes the name and type of the stylus, if not, it indicates that the first electronic device and the stylus have not established the first wireless connection, and directly executes step 112; if so, it indicates If the first electronic device has established the first wireless connection with the stylus, then step 112 does not need to be performed again.
  • the connected device information may include the name and type of the connected device, for example, the name of the connected device is "HUAWEI PEN", and the type is a stylus.
  • Step 114 the first electronic device records wireless connection establishment information, and the wireless connection establishment information is used to indicate that the first wireless connection between the first electronic device and the stylus is established by being triggered by a screen projection operation.
  • the wireless connection establishment information may be used to indicate whether the first wireless connection between the first electronic device and the stylus is established by being triggered by a screen projection operation.
  • step 112 the first electronic device automatically establishes a first wireless connection with the stylus, and 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 Created by triggering screen operations.
  • the wireless connection is established
  • the information is used to indicate that the establishment of the first wireless connection between the first electronic device and the stylus is not triggered by the screen projection operation.
  • the electronic device may include a screen projection management service unit and a stylus management service unit.
  • FIG. 6c provides a flow chart of the connection control method of the stylus in other embodiments.
  • the workflow shown in FIG. 6c can be used to implement the connection control method of the stylus shown in FIG. 5a to FIG. 5c, as As shown in Figure 6c, the method includes:
  • Step 202 the stylus management service unit of the second electronic device establishes a first wireless connection with the stylus connection management unit.
  • step 200 the stylus management service unit of the second electronic device performs pairing with the connection management unit of the stylus. Then, the stylus management service unit of the second electronic device executes the establishment of the first wireless connection with the connection management unit of the stylus, that is, executes step 202 .
  • step 202 it may further include: the stylus management service unit of the second electronic device establishes a HOGP connection with the stylus connection management unit.
  • Step 204 the screen projection management service unit of the second electronic device establishes a communication channel with the screen projection management service unit of the first electronic device.
  • 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, where the screen projection request includes the physical address of the stylus.
  • Step 208 The screen projection management service unit of the first electronic device displays the screen projection interface of the second electronic device in response to the screen projection request.
  • Step 210 the screen projection management service unit of the first electronic device returns a screen projection success message to the screen projection management service unit of the second electronic device.
  • Step 212 The screen projection 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, and the stylus connection establishment notification includes the physical address of the stylus.
  • Step 214 The stylus management service unit of the first electronic device automatically establishes a first wireless connection with the stylus connection management unit according to the physical address of the stylus.
  • step 214 it also includes: the stylus management service unit of the first electronic device inquires whether it has been paired with the stylus, if it has been paired with the stylus, then directly execute step 214; if it is not paired with the stylus , the following steps are performed first: the stylus management service unit of the first electronic device performs pairing with the stylus connection management unit, and then step 214 is performed after the pairing is successful.
  • the stylus management service unit of the first electronic device if it inquires that the stylus has been paired, it may continue to perform the following steps: the stylus management service unit of the first electronic device inquires whether the first wireless communication with the stylus has been established. connection, if it is found that the first wireless connection has not been established with the stylus, directly execute step 214;
  • Step 216 the stylus management service unit of the first electronic device records wireless connection establishment information, the wireless connection establishment information is used to indicate that the first wireless connection between the first electronic device and the stylus is triggered by the screen projection operation.
  • this embodiment realizes the establishment of the first wireless connection between the first electronic device 400 and the stylus 200 as shown in FIG. 5c.
  • both the first electronic device 400 and the second electronic device 300 establish a first wireless connection with the stylus 200 .
  • the stylus 200 needs to perform a touch operation on the electronic device, it needs to establish a second wireless connection with the electronic device, for example, the second wireless connection is a HOGP connection.
  • the stylus 200 can freely switch between the first electronic device 400 and the second electronic device 300 by establishing a HOGP connection.
  • Fig. 6d is a schematic flowchart of a method for establishing a HOGP connection between a stylus and an electronic device in some embodiments. Taking the establishment of a HOGP connection between the stylus 200 and the first electronic device 400 as an example for description, as shown in FIG. 6d, the method includes:
  • step 302 the stylus and the first electronic device perform a process of establishing a GATT connection. If the GATT connection is established successfully, then step 304 is performed; if the GATT connection fails to be established, the process ends.
  • Step 304 touch the screen of the first electronic device with the stylus to read the screen parameters of the first electronic device.
  • the screen parameters of the first electronic device are read out, and the screen parameters may include screen type and/or coding frequency points, etc., for example, the screen type may include embedded ( in cell) or embedded (on cell), coded frequency points are used to indicate that frequency hopping is required when there is interference.
  • Step 306 the stylus determines a first working mode according to the screen parameters of the first electronic device, and the first working mode is a working mode between the stylus and the first electronic device.
  • the stylus determines that the first working mode is the HPP 3.x mode according to the screen type and the coding frequency. That is: the first working mode is the HPP 3.x mode, that is, the stylus is connected to the first electronic device in the HPP 3.x mode.
  • Step 308 the stylus checks whether a HOGP connection has been established with other electronic devices, if yes, execute step 310 ; if not, execute step 318 .
  • 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.
  • Step 310 the stylus disconnects the HOGP connection with other electronic devices.
  • step 310 is performed, and the stylus disconnects the HOGP connection with the second electronic device.
  • Step 312 the stylus establishes a HOGP connection with the first electronic device.
  • Step 314 the stylus 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 and other electronic devices, if yes, the process ends; if not, go to step 316 .
  • the stylus when the second working mode is HPP 3.x mode, the stylus is connected to the other electronic device in HPP 3.x mode; or, when the second working mode is HPP 2.x mode, the stylus is connected to the other electronic device Connect in HPP 2.x mode.
  • a stylus cannot be connected with the first electronic device in HPP 3.x mode, and at the same time be connected with other electronic devices in HPP 2.x mode. Therefore, for the same stylus, when the first working mode and the second working mode are different, for example, when the first working mode is HPP 3.x mode and the second working mode is HPP 2.x mode, if the stylus and the second working mode An electronic device connected in HPP 3.x mode cannot be connected with other electronic devices in HPP 2.x mode.
  • the first working mode is HPP 3.x mode
  • the second working mode is HPP 3.x mode, indicating that the stylus is connected to the first electronic device in HPP 3.x mode, and can also be connected to other electronic devices in the HPP 3.x mode.
  • HPP 3.x mode there is no need to disconnect the GATT connection between the stylus and other electronic devices, and the stylus maintains a GATT connection with other electronic devices.
  • the first working mode is HPP 3.x mode and the second working mode is HPP 2.x mode
  • the stylus is connected to the first electronic device in HPP 3.x mode, but it cannot be connected to other electronic devices at the same time
  • HPP 2.x mode the stylus is disconnected from other electronic devices through GATT.
  • Step 316 the stylus and other electronic devices disconnect the GATT connection, and the process ends.
  • Step 318 the stylus establishes a HOGP connection with the first electronic device, and the process ends.
  • the stylus After the stylus establishes a HOGP connection with the first electronic device, the stylus can perform a touch operation on the first electronic device.
  • Fig. 7a is a flow chart of a method for controlling the connection of a stylus in other embodiments.
  • the workflow shown in Fig. 7a can be used to implement the method for controlling the connection of a stylus shown in Fig. 5e.
  • the method includes:
  • Step 402 the first electronic device receives a screen projection disconnection command sent by the second electronic device, and the screen projection disconnection command includes the physical address of the stylus.
  • the physical address of the stylus includes a MAC address of the stylus, for example, a Bluetooth MAC address.
  • the second electronic device sends the physical address of the stylus to the first electronic device through the screen projection disconnection command, so that the first electronic device obtains the stylus from the second electronic device during the screen projection disconnection process with the second electronic device physical address.
  • Step 404 the first electronic device stops displaying the screen projection interface of the second electronic device in response to the screen projection disconnection instruction.
  • the first electronic device 400 no longer displays the screen projection interface of the second electronic device 300 .
  • Step 406 the first electronic device returns a screen projection disconnection success message to the second electronic device.
  • Step 408 the first electronic device finds out that the first wireless connection between itself and the stylus is triggered by the screen projection operation.
  • Step 410 the first electronic device automatically disconnects the first wireless connection with the stylus according to the physical address of the stylus.
  • step 408 the first electronic device inquires whether the first wireless connection between itself and the stylus is triggered by a screen projection operation; if it is found that the first wireless connection between itself and the stylus is triggered by a screen projection operation If the first wireless connection between itself and the stylus is not triggered by the screen projection operation, step 410 is not performed, and the first electronic device maintains the first wireless connection with the stylus. connect.
  • the first electronic device inquires whether the first wireless connection between itself and the stylus is triggered by a screen projection operation.
  • step 408 Before inquiring in step 408 whether the first wireless connection between itself and the stylus is triggered by the screen projection operation, it also includes: the first electronic device inquires whether it is in the state of establishing the first wireless connection with the stylus, if , then execute step 408; if no, it indicates that the first electronic device disconnects the first wireless connection with the stylus, then step 408 and step 410 may not be executed again.
  • this embodiment realizes disconnection of the first wireless connection between the first electronic device 400 and the stylus 200 as shown in FIG. 5e.
  • FIG. 7b provides a flow chart of the connection control method of the stylus in other embodiments.
  • the workflow shown in FIG. 7b can be used to implement the connection control method of the stylus shown in FIG. 5e, as shown in FIG. 7b , the method includes:
  • Step 502 the screen projection management service unit of the first electronic device receives a screen projection disconnection instruction sent by the screen projection management service unit of the second electronic device, and the screen projection disconnection instruction includes the physical address of the stylus.
  • Step 504 the screen projection management service unit of the first electronic device stops displaying the screen projection interface of the second electronic device in response to the screen projection disconnection instruction.
  • Step 506 the screen projection management service unit of the first electronic device returns a screen projection disconnection success message to the screen projection management service unit of the second electronic device.
  • Step 508 the screen projection management service unit of the first electronic device sends a stylus connection disconnection notification to the stylus management service unit of the first electronic device, and the stylus connection disconnection notification includes the physical address of the stylus.
  • Step 510 the stylus management service unit of the first electronic device finds out that the first wireless connection between itself and the stylus is triggered by a screen projection operation.
  • step 510 it also includes: the stylus management service unit of the first electronic device inquires whether it is in the state of establishing the first wireless connection with the stylus, if yes, directly executes step 510; if not, indicates If the first electronic device disconnects the first wireless connection with the stylus, then step 510 and step 512 may not be executed again.
  • Step 512 the stylus management service unit of the first electronic device automatically disconnects the first wireless connection with the stylus connection management unit according to the physical address of the stylus.
  • the stylus establishes a first wireless connection with the second electronic device as the source device, and when the second electronic device successfully projects the screen-casting interface to the target
  • the first electronic device is triggered to actively establish a first wireless connection with the stylus; when the second electronic device and the first electronic device are successfully disconnected from the first electronic device Disconnect the first wireless connection.
  • FIGS. 8a to 8d provide another schematic diagram of establishing a first wireless connection and a second wireless connection between a stylus and an electronic device. 8a to 8d show the stylus 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.
  • the second electronic device 700 and the stylus 200 may establish a first wireless connection through a short-range communication technology, and the short-range communication technology may include but not limited to Bluetooth, Wi-Fi or NFC.
  • the second electronic device 700 and the stylus 200 may establish a first wireless connection through Bluetooth, and at this time, the established first wireless connection may be a GATT connection.
  • the second electronic device 700 needs to perform pairing with the stylus 200, specifically, the second electronic device 700 and the stylus
  • the pen 200 can be paired via Bluetooth, NFC or USB-C interface. Then, the second electronic device 700 performs establishment of a GATT connection with the stylus 200 .
  • the stylus 200 can establish a second wireless connection with the second electronic device 700, and the user can use the stylus 200 to touch on the second electronic device 700.
  • control operations for example, the second wireless connection is a HOGP connection.
  • a HOGP connection is established with the second electronic device 700 .
  • the second electronic device 700 displays a handwriting interface, and the user can use the stylus 200 to perform writing operations on the handwriting interface, for example, writing the word "Huawei" on the handwriting interface.
  • the first electronic device 600 and the second electronic device 700 perform a screen projection operation, and the screen projection operation is successful.
  • the first electronic device 600 casts the screen projection interface to the second electronic device 700
  • the second electronic device 700 displays the collaborative window 500 generated on the second electronic device 700 by the first electronic device 600.
  • the collaborative window 500 includes a screen projection interface of the first electronic device 600 to realize the "multi-screen collaboration" function.
  • the screen projection interface is the main interface of the first electronic device 600 .
  • the content of the collaboration window 500 changes correspondingly with the user's operation on the first electronic device 600 .
  • 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 can automatically establish the first wireless connection through short-range communication technology. Including but not limited to Bluetooth, Wi-Fi or NFC.
  • the first electronic device 600 and the stylus 200 may automatically establish a first wireless connection through Bluetooth, and at this time, the established first wireless connection may be a GATT connection.
  • the first electronic device 600 inquires whether a GATT connection has been established with the stylus 200.
  • a GATT connection has been established with the stylus 200, it indicates that the first electronic device 600 has already established a GATT connection with the stylus 200 before screen projection. Establish a GATT connection; if it is found out that the GATT connection with the stylus 200 has not been established, the GATT connection with the stylus 200 can be directly established.
  • the first electronic device 600 needs to perform pairing with the stylus 200, for example, the first electronic device 600 can pass Bluetooth or NFC performs pairing with the stylus 200, thereby realizing automatic pairing between the first electronic device 600 and the stylus 200, without manual operation by the user, and improving user experience.
  • the first electronic device 600 pops up a prompt box, and the user clicks the "Connect” button in the prompt box to express agreement to establish a GATT connection, and then the second An electronic device 600 establishes a GATT connection with the stylus 200 .
  • the user clicks "cancel" in the prompt box it means that the establishment of the GATT connection is not agreed, and the establishment of the GATT connection between the first electronic device 600 and the stylus 200 fails.
  • the first electronic device 600 can automatically establish a second wireless connection with the stylus 200, and the user can use the stylus 200 on the first electronic
  • a touch operation is performed on the device 600, for example, the second wireless connection is a HOGP connection.
  • the stylus 200 disconnects the HOGP connection established between the second electronic device 700 and automatically establishes a HOGP connection with the first electronic device 600 , so that the user can use the stylus 200 to perform a touch operation on the first electronic device 600 .
  • the first electronic device 600 displays a handwriting interface, and the user can use the stylus 200 to perform writing operations on the handwriting interface, for example, write the word "Huawei" on the handwriting interface.
  • FIG. 8e provides another schematic diagram of disconnecting the first wireless connection between the stylus and the electronic device.
  • the first electronic device 600 and the second electronic device 700 After executing the process of establishing the first wireless connection between the stylus and the electronic device shown in Figure 8a to Figure 8d, the first electronic device 600 and the second electronic device 700 have established screen projection, The device 700 has established a GATT connection with the stylus 200 .
  • the first electronic device 600 and the second electronic device 700 perform screen projection disconnection, and the screen projection disconnection is successful.
  • the first electronic device 600 sends a screen projection disconnection command 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.
  • the second electronic device 700 no longer The collaboration window 500 is displayed, and the 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 200 is triggered by the screen projection operation, when the screen projection between the first electronic device 600 and the second electronic device 700 is disconnected, the first electronic device The device 600 disconnects the GATT connection with the stylus 200 automatically. However, since the GATT connection between the second electronic device 700 and the stylus 200 is not triggered by the screen projection operation, the GATT connection between the second electronic device 700 and the stylus 200 is not affected by the disconnection of the screen projection. The electronic device 700 and the stylus 200 still maintain the GATT connection.
  • the stylus 200 can establish a HOGP connection with the second electronic device 700, so that the user can use the stylus 200 to perform touch operations on the second electronic device 700. For example, as shown in FIG. The electronic device 700 clicks on the gallery icon.
  • the GATT connection between the first electronic device 600 and the stylus 200 is not triggered by the screen projection operation, the GATT connection between the first electronic device 600 and the stylus 200 is not affected by the disconnection of the screen projection.
  • the first electronic device 600 and the stylus 200 still maintain a GATT connection, and the user can continue to use the stylus 200 to perform touch operations on the first electronic device 600 , which is not shown in detail.
  • FIG. 8a to FIG. 8e are exemplary representations of the embodiment of the present application, and the schematic diagram of the interface of the electronic device may also be in other styles, which is not limited in the embodiment of the present application.
  • Fig. 9a is a flow chart of the connection control method of the stylus in other embodiments.
  • the workflow shown in Fig. 9a can be used to realize the connection control method of the stylus shown in Fig. 8a to Fig. 8c, as shown in Fig. 9a, the Methods include:
  • Step 602 the second electronic device establishes a first wireless connection with the stylus.
  • 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.
  • Step 608 the second electronic device displays the screen projection interface of the first electronic device in response to the screen projection request.
  • Step 610 the second electronic device returns a screen casting success message to the first electronic device, and the screen casting success message includes the physical address of the stylus.
  • the second electronic device When the first electronic device is projecting the screen to the second electronic device, the second electronic device sends the physical address of the stylus to the first electronic device through a successful screen projection message, so that the first electronic device performs The physical address of the stylus is acquired from the second electronic device during the screen projection operation.
  • the second electronic device may also send the physical address of the stylus to the first electronic device separately, for example, after the second electronic device sends the first electronic device Before the screen casting success message, the second electronic device sends the physical address of the stylus to the first electronic device.
  • Step 612 the first electronic device automatically establishes a first wireless connection with the stylus according to the physical address of the stylus.
  • Step 614 the first electronic device records wireless connection establishment information, and the wireless connection establishment information is used to indicate that the first wireless connection between the first electronic device and the stylus is established by being triggered by the screen projection operation.
  • FIG. 9b provides a flow chart of the connection control method of the stylus in other embodiments.
  • the workflow shown in FIG. 9b can be used to implement the connection control method of the stylus shown in FIG. 8a to FIG. 8c, as As shown in Figure 9b, the method includes:
  • Step 702 the stylus management service unit of the second electronic device establishes a first wireless connection with the stylus connection management unit.
  • Step 704 the screen projection management service unit of the second electronic device establishes a communication channel with the screen projection management service unit of the first electronic device.
  • 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.
  • Step 708 The screen projection management service unit of the second electronic device displays the screen projection interface of the first electronic device in response to the screen projection request.
  • Step 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, and the screen projection success message includes the physical address of the stylus.
  • Step 712 The screen projection 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, and the stylus connection establishment notification includes the physical address of the stylus.
  • Step 714 The stylus management service unit of the first electronic device automatically establishes a first wireless connection with the stylus connection management unit according to the physical address of the stylus.
  • step 714 it also includes: the stylus management service unit of the first electronic device inquires whether it has been paired with the stylus, if it has been paired with the stylus, then directly execute step 714; if it is not paired with the stylus , the following steps are performed: the stylus management service unit of the first electronic device performs pairing with the stylus connection management unit, and then step 714 is performed after the pairing is successful.
  • the stylus management service unit of the first electronic device if it inquires that the stylus has been paired, it may continue to perform the following steps: the stylus management service unit of the first electronic device inquires whether the first wireless communication with the stylus has been established. connection, if it is found that the first wireless connection has not been established with the stylus, directly perform step 714;
  • Step 716 the stylus management service unit of the first electronic device records wireless connection establishment information, the wireless connection establishment information is used to indicate that the first wireless connection between the first electronic device and the stylus is triggered by the screen projection operation.
  • this embodiment realizes the establishment of the first wireless connection between the first electronic device 600 and the stylus 200 as shown in FIG. 8 c .
  • both the first electronic device 600 and the second electronic device 700 establish a first wireless connection with the stylus 200 .
  • the stylus 200 needs to perform a touch operation on the electronic device, it needs to establish a second wireless connection with the electronic device, and the second wireless connection is a HOGP connection.
  • the stylus 200 can freely switch between the first electronic device 600 and the second electronic device 700 by establishing a HOGP connection.
  • FIG. 6d a schematic flowchart of a method for establishing a HOGP connection between the stylus and the first electronic device may be shown in FIG. 6d.
  • Fig. 10a is a flowchart of a connection control method of a stylus in other embodiments.
  • the workflow shown in Fig. 10a can be used to realize the connection control method of a stylus shown in Fig. 8e.
  • the method includes:
  • Step 802 the second electronic device receives a screen projection disconnection instruction sent by the first electronic device.
  • Step 804 the second electronic device stops displaying the screen projection interface of the first electronic device in response to the screen projection disconnection instruction.
  • Step 806 the second electronic device returns a screen projection disconnection success message to the second electronic device, and the screen projection disconnection success message includes the physical address of the stylus.
  • the second electronic device sends the physical address of the stylus to the first electronic device through a screen projection disconnection success message, so that the first electronic device obtains handwriting from the second electronic device during the screen projection disconnection process with the second electronic device The physical address of the pen.
  • Step 808 the first electronic device finds out that the first wireless connection between itself and the stylus is triggered by a screen projection operation.
  • Step 810 the first electronic device automatically disconnects the first wireless connection with the stylus according to the physical address of the stylus.
  • step 808 the first electronic device inquires whether the first wireless connection between itself and the stylus is triggered by a screen projection operation; if it is found that the first wireless connection between itself and the stylus is triggered by a screen projection operation If the first wireless connection between itself and the stylus is not triggered by the screen projection operation, step 810 is not performed, and the first electronic device maintains the first wireless connection with the stylus. connect.
  • the first electronic device inquires whether the first wireless connection between itself and the stylus is triggered by a screen projection operation.
  • step 808 Before inquiring in step 808 whether the first wireless connection between itself and the stylus is established in response to the success of the screen projection operation, it also includes: the first electronic device inquires whether it is in the state of establishing the first wireless connection with the stylus, if , then execute step 808; if no, it indicates that the first electronic device disconnects the first wireless connection with the stylus, then step 808 and step 810 may not be executed again.
  • this embodiment realizes disconnection of the first wireless connection between the first electronic device 400 and the stylus 200 as shown in FIG. 8e.
  • Fig. 10b provides a flow chart of the method for controlling the connection of the stylus in other embodiments, and the workflow shown in Fig. 10b can be used to implement the method for controlling the connection of the stylus 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 the screen projection disconnection instruction sent by the screen projection management service unit of the first electronic device.
  • Step 904 the screen projection management service unit of the second electronic device stops displaying the screen projection interface of the first electronic device in response to the screen projection disconnection instruction.
  • Step 906 The screen projection management service unit of the second electronic device returns a screen projection disconnection success message to the screen projection management service unit of the first electronic device, and the screen projection disconnection success message includes the physical address of the stylus.
  • Step 908 the screen projection management service unit of the first electronic device sends a notification of disconnecting the stylus to the stylus management service unit of the first electronic device, where the notification of disconnecting the stylus includes the physical address of the stylus.
  • Step 910 the stylus management service unit of the first electronic device finds out that the first wireless connection between itself and the stylus is triggered by the screen projection operation.
  • step 910 before step 910, it also includes: the stylus management service unit of the first electronic device inquires whether it is in the state of establishing the first wireless connection with the stylus, if yes, directly executes step 910; if not, indicates If the first electronic device disconnects the first wireless connection with the stylus, then step 910 and step 912 may not be executed again.
  • Step 912 The stylus management service unit of the first electronic device automatically disconnects the first wireless connection with the stylus connection management unit according to the physical address of the stylus.
  • the stylus establishes the first wireless connection with the second electronic device, and the first electronic device displays the screen projection interface of the second electronic device in response to the received screen projection request sent by the second electronic device, then The first electronic device automatically establishes the first wireless connection with the stylus, and the user does not need to manually manage the connection between the first electronic device and the stylus, thereby reducing the operation process for the user to use the stylus and improving user experience.
  • the first electronic device stops displaying the screen projection interface of the second electronic device in response to the received screen projection disconnection command sent by the second electronic device, and then the first electronic device inquires the connection between itself and the stylus.
  • the first wireless connection is established by being triggered by the screen projection operation, and automatically disconnects the first wireless connection with the stylus, eliminating the need for the user to manually manage the disconnection of the first electronic device from the stylus, thereby reducing the user's operation process for using the stylus , improving the user experience.
  • An embodiment of the present application provides a first electronic device, and the first electronic device may be a terminal device or a circuit device built in the terminal device.
  • the electronic device comprises: 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, and the one or more computer programs Instructions are included, and when the instructions are executed by the device, the device can be used to execute the various steps in the above embodiment of the connection control method for the stylus.
  • An embodiment of the present application provides a computer-readable storage medium, and instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, the computer is made to execute each of the above-mentioned embodiments of the connection control method for the stylus. step.
  • An embodiment of the present application provides a computer program product containing instructions.
  • the computer program product runs on a computer or any at least one processor, the computer executes the method described in the above embodiment of the connection control method for the stylus. each step.
  • "at least one” means one or more, and “multiple” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three kinds of relationships, for example, A and/or B may indicate that A exists alone, A and B exist simultaneously, or B exists alone. Among them, A and B can be singular or plural.
  • the character “/” generally indicates that the contextual objects are an “or” relationship.
  • “At least one of the following” and similar expressions refer to any combination of these items, including any combination of single items or plural items.
  • 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, and c may be single or multiple.
  • any function is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .

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

Sont prévus un procédé de commande de connexion d'un stylet, et un dispositif électronique. Le procédé est appliqué à un premier dispositif électronique, une première connexion sans fil est établie entre un stylet et un second dispositif électronique, et la première connexion sans fil est utilisée pour mettre en œuvre une transmission de données de service général. Le procédé comprend : le premier dispositif électronique reçoit une demande de projection d'écran envoyée par le second dispositif électronique ; le premier dispositif électronique affiche une interface de projection d'écran du second dispositif électronique en réponse à la demande de projection d'écran ; et le premier dispositif électronique établit automatiquement la première connexion sans fil au stylet. La solution technique selon la présente invention ne nécessite pas à un utilisateur de gérer manuellement une connexion entre le premier dispositif électronique et le stylet, ce qui simplifie le processus de fonctionnement lorsque l'utilisateur utilise le stylet et améliore l'expérience de l'utilisateur.
PCT/CN2022/092249 2021-05-26 2022-05-11 Procédé de commande de connexion de stylet, et dispositif électronique WO2022247638A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110578582.1 2021-05-26
CN202110578582.1A CN115407885A (zh) 2021-05-26 2021-05-26 一种手写笔的连接控制方法和电子设备

Publications (1)

Publication Number Publication Date
WO2022247638A1 true WO2022247638A1 (fr) 2022-12-01

Family

ID=84156051

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/092249 WO2022247638A1 (fr) 2021-05-26 2022-05-11 Procédé de commande de connexion de stylet, et dispositif électronique

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117135602A (zh) * 2023-04-25 2023-11-28 荣耀终端有限公司 手写笔多连接场景的数据交互方法、手写笔及蓝牙系统

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347269A (zh) * 2019-06-06 2019-10-18 华为技术有限公司 一种空鼠模式实现方法及相关设备
US20200249773A1 (en) * 2019-02-01 2020-08-06 Samsung Electronics Co., Ltd. Electronic device and method for mapping function of electronic device to operation of stylus pen

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200249773A1 (en) * 2019-02-01 2020-08-06 Samsung Electronics Co., Ltd. Electronic device and method for mapping function of electronic device to operation of stylus pen
CN110347269A (zh) * 2019-06-06 2019-10-18 华为技术有限公司 一种空鼠模式实现方法及相关设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117135602A (zh) * 2023-04-25 2023-11-28 荣耀终端有限公司 手写笔多连接场景的数据交互方法、手写笔及蓝牙系统

Also Published As

Publication number Publication date
CN115407885A (zh) 2022-11-29

Similar Documents

Publication Publication Date Title
WO2021078284A1 (fr) Procédé de continuation de contenu et dispositif électronique
WO2020168965A1 (fr) Procédé de commande d'un dispositif électronique à écran pliant et dispositif électronique
WO2020224449A1 (fr) Procédé de manœuvre d'affichage à écran partagé et dispositif électronique
WO2020134872A1 (fr) Procédé de traitement de message, dispositif associé, et système
US11683850B2 (en) Bluetooth reconnection method and related apparatus
US12120596B2 (en) Method and device for controlling connection to network
WO2021052279A1 (fr) Procédé d'affichage sur écran pliable, et dispositif électronique
WO2020216156A1 (fr) Procédé de projection d'écran et dispositif informatique
CN111132234B (zh) 一种数据传输方法及对应的终端
CN111182614B (zh) 建立网络连接的方法和装置以及电子设备
WO2022100610A1 (fr) Procédé et appareil de projection d'écran, ainsi que dispositif électronique et support de stockage lisible par ordinateur
WO2021037146A1 (fr) Procédé et dispositif de partage de fichier pour terminal mobile
CN114079893B (zh) 蓝牙通信方法、终端设备及计算机可读存储介质
CN112130788A (zh) 一种内容分享方法及其装置
US20230087282A1 (en) Dual wi-fi connection method and electronic device
AU2018443268B2 (en) File transfer method and electronic device
WO2021197071A1 (fr) Système et procédé de communication sans fil
CN113672133A (zh) 一种多指交互方法及电子设备
EP4180944A1 (fr) Procédé de traitement d'anomalie de duplication d'écran et dispositif électronique
WO2020221062A1 (fr) Procédé d'opération de navigation et dispositif électronique
WO2022247638A1 (fr) Procédé de commande de connexion de stylet, et dispositif électronique
WO2023051204A1 (fr) Procédé d'interconnexion de dispositifs, dispositif électronique et support de stockage
WO2023236670A1 (fr) Procédé de gestion de transmission de données, dispositif électronique et support de stockage
WO2023116472A1 (fr) Procédé permettant de recevoir et d'envoyer une enveloppe rouge, et dispositif électronique
EP4290375A1 (fr) Procédé d'affichage, dispositif électronique et système

Legal Events

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

Ref document number: 22810365

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22810365

Country of ref document: EP

Kind code of ref document: A1