Functional mode switching method, electronic device and system
By establishing a wireless communication connection between the stylus and electronic devices, switching function modes and sending function signals and position information, the problem of inconvenient operation of the stylus in the screen projection scene is solved, and long-distance control and multiple functions are realized The implementation of the application scenario has been expanded.
Patent Information
- Application Number
- CN202111335356.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-11
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2041-11-11
AI Technical Summary
In scenarios such as screen projection, it is difficult for the stylus to send electrical signals to electronic devices from a distance, resulting in inconvenient operation and inability to effectively execute functions such as page turning.
By establishing a wireless communication connection, the stylus detects input and switches the function mode, sends corresponding function signals and position information, and enables the electronic device to perform specified functions and realizes long-distance control.
It improves the operation convenience of the stylus in different scenarios, expands its application range, and can easily perform functions such as eraser, page turning, cursor movement and long-distance handwriting writing.
Smart Images

Figure CN116107469B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a function mode switching method, electronic device and system. Background Art
[0002] With the development of terminal technology, electronic devices are increasingly used in daily life. For electronic devices equipped with a stylus (such as large screens, mobile phones, and tablets, etc.), users use the stylus to touch, write, and erase handwriting on the electronic devices more and more frequently.
[0003] At present, when a user uses a stylus pen to perform operations such as tapping, writing, and erasing on an electronic device, the stylus pen needs to contact the touch screen on the electronic device. The stylus pen and the electronic device can interact through electrical signals, and according to the change in the capacitance value on the touch screen in the electronic device, the stylus pen can perform the above operations based on the electronic device. However, in some application scenarios (for example, screen projection scenarios), the stylus pen cannot send electrical signals to the electronic device over a long distance so that it responds to the electrical signals to perform a specified function (for example, page turning function, etc.), so the operation is very inconvenient. Summary of the invention
[0004] The present application provides a method, electronic device and system for switching function modes, which realizes that a stylus can send different function signals to an electronic device in response to received input based on different function modes, so that the electronic device performs corresponding functions in response to the function signals. The operation is very convenient, and the stylus can be applied in a wider range of scenarios.
[0005] In the first aspect, the present application provides a method for switching a functional mode, the method comprising: the stylus and the electronic device establish a wireless communication connection; the stylus is in a first mode; the stylus detects a first input; in response to the first input, the stylus sends a first function signal corresponding to the first input in the first mode based on the wireless communication connection; the electronic device performs a first function based on the first function signal; when the stylus detects that the strength of the electrical signal released by the touch screen in the electronic device is less than a first value, the stylus switches from the first mode to the second mode; the stylus detects a second input; the stylus detects the position information of the stylus; in response to the second input, the stylus sends a second function signal and the position information corresponding to the second input in the second mode based on the wireless communication connection; the electronic device performs a second function based on the second function signal and the position information. In this way, the implementation of this method is very convenient to operate, and the stylus can be applied in a wider range of scenarios.
[0006] In a possible implementation manner, the wireless communication connection is: a Bluetooth communication connection, or a wireless local area network (WLAN) communication connection.
[0007] In a possible implementation, the first input includes any one of the following: an upward sliding operation on a touch sensor area in the stylus, a downward sliding operation on a touch sensor area in the stylus, or a double-clicking operation on the touch sensor area.
[0008] In a possible implementation, the electronic device performs a first function based on the first function signal, specifically including: the electronic device displays handwriting; the electronic device receives the first function signal; the electronic device determines the position of the stylus on the touch screen of the electronic device through the downlink signal sent by the electrode in the stylus; the electronic device cancels the display of the handwriting at the position on the touch screen based on the first function signal. In this way, the handwriting erasing function can be realized, the operation is very convenient, and the stylus can be applied in a wider range of scenarios.
[0009] In a possible implementation, the electronic device performs the first function based on the first function signal, specifically including: the electronic device displays the first page; the electronic device receives the first function signal; in response to the first function signal, the electronic device displays the second page; wherein the second page is the previous page of the first page. In this way, the function of turning pages to display different pages can be realized, the operation is very convenient, and the stylus can be applied in a wider range of scenarios.
[0010] In a possible implementation, the electronic device performs the first function based on the first function signal, specifically including: the electronic device displays the first page; the electronic device receives the first function signal; in response to the first function signal, the electronic device displays the third page; wherein the third page is the next page of the first page. In this way, the function of turning pages to display different pages can be realized, the operation is very convenient, and the stylus pen can be applied in a wider range of scenarios.
[0011] In a possible implementation, the electronic device performs a second function based on the second function signal and the position information, specifically including: the electronic device displays the handwriting at the position corresponding to the position information based on the second function signal and the position information. In this way, the function of long-distance handwriting writing can be realized, the operation is very convenient, and the stylus pen can be applied in a wider range of scenarios.
[0012] In a possible implementation, the electronic device performs a second function based on the second function signal and the position information, specifically including: the electronic device displays a cursor; the electronic device displays a cursor movement track at a position corresponding to the position information based on the second function signal and the position information. In this way, the cursor movement function can be controlled remotely, the operation is very convenient, and the stylus can be applied in a wider range of scenarios.
[0013] In one possible implementation, the second input includes any one of the following: pressing the front area of the touch sensor in the stylus and moving the stylus, pressing the rear area of the touch sensor in the stylus and moving the stylus, an upward sliding operation on the touch sensor area in the stylus, a downward sliding operation on the touch sensor area in the stylus, or a double-clicking operation on the touch sensor area.
[0014] In a possible implementation manner, the position information is detected and acquired by a gyroscope in the stylus.
[0015] In one possible implementation, the method further includes: the stylus detects the first input; in response to the first input, the stylus sends a third function signal corresponding to the first input in the second mode based on the wireless communication connection; and the electronic device executes a third function based on the third function signal.
[0016] In a possible implementation, the electronic device performs the third function based on the third function signal, specifically including: the electronic device displays a cursor, the cursor is located in the application icon area of the first application; the electronic device receives the third function signal; in response to the third function signal, the electronic device starts the first application. In this way, the function of remotely starting the selected application using the stylus can be realized, the operation is very convenient, and the stylus can be applied in a wider range of scenarios.
[0017] In a possible implementation, the electronic device performs a third function based on the third function signal, specifically including: the electronic device displays a first page; the electronic device receives the third function signal; in response to the third function signal, the electronic device displays a first area in the first page; wherein the first area is the upper area in the first page. In this way, the function of remotely controlling the page display area using a stylus pen can be realized, the operation is very convenient, and the stylus pen can be applied in a wider range of scenarios.
[0018] In a possible implementation, the electronic device performs a third function based on the third function signal, specifically including: the electronic device displays a first page; the electronic device receives the third function signal; in response to the third function signal, the electronic device displays a second area in the first page; wherein the second area is the lower area in the first page. In this way, the function of remotely controlling the page display area using a stylus pen can be realized, the operation is very convenient, and the stylus pen can be applied in a wider range of scenarios.
[0019] In the second aspect, the present application provides a stylus pen, including: a processor, a touch sensor, a motion sensor and a wireless communication module. Among them: the wireless communication module is used to establish a wireless communication connection with an electronic device; the touch sensor is used to detect a first input; the wireless communication module is used to respond to the first input and send a first function signal corresponding to the first input in the first mode; the processor is also used to control the stylus pen to switch from the first mode to the second mode when the intensity of the electrical signal released by the touch screen in the electronic device is less than the first value; the touch sensor is also used to detect a second input; the motion sensor is used to detect the position information of the stylus pen; the wireless communication module is also used to respond to the second input and send the second function signal and the position information corresponding to the second input in the second mode to the electronic device. In this way, the implementation of this method based on the stylus pen is very convenient, and the stylus pen can be applied in a wider range of scenarios.
[0020] In a possible implementation, the first input includes any one of the following: an upward sliding operation on a touch sensor area in the stylus, a downward sliding operation on a touch sensor area in the stylus, or a double-clicking operation on the touch sensor area.
[0021] In a possible implementation manner, the wireless communication connection is: a Bluetooth communication connection, or a wireless local area network (WLAN) communication connection.
[0022] In one possible implementation, the second input includes any one of the following: pressing the front area of the touch sensor in the stylus and moving the stylus, pressing the rear area of the touch sensor in the stylus and moving the stylus, an upward sliding operation on the touch sensor area in the stylus, a downward sliding operation on the touch sensor area in the stylus, or a double-clicking operation on the touch sensor area.
[0023] In a possible implementation, the stylus pen further includes an electrode; and the electrode is used to send a downlink signal to the electronic device.
[0024] In a possible implementation, the touch sensor is further used to detect the first input; and the wireless communication module is further used to send a third function signal corresponding to the first input in the second mode to the electronic device in response to the second input.
[0025] In the third aspect, the present application provides an electronic device, comprising: a processor, a touch screen, an electrode signal sensing array and a wireless communication module; the electrode signal sensing array is integrated in the touch screen. Wherein: the wireless communication module is used to establish a wireless communication connection with a stylus; the wireless communication module is also used to receive a first function signal; the processor is used to perform a first function based on the first function signal; the electrode signal sensing array is used to send an electrical signal to the stylus; the wireless communication module is also used to receive a second function signal and the position information of the stylus; the processor is also used to perform a second function based on the second function signal and the position information. In this way, the implementation of this method based on the electronic device is very convenient to operate, and the stylus can be applied in a wider range of scenarios.
[0026] In a possible implementation manner, the wireless communication connection is: a Bluetooth communication connection, or a wireless local area network (WLAN) communication connection.
[0027] In a possible implementation, the touch screen is used to display handwriting; when the wireless communication module receives the first function signal, the processor is specifically used to: determine the position of the stylus on the touch screen through the downlink signal sent by the electrode in the stylus; based on the first function signal, cancel the display of the handwriting at the position on the touch screen. In this way, the handwriting erasing function can be realized, the operation is very convenient, and the stylus can be applied in a wider range of scenarios.
[0028] In a possible implementation, the touch screen is used to display a first page; when the wireless communication module receives the first function signal, the processor is specifically used to: respond to the first function signal to make the touch screen display a second page; wherein the second page is the previous page of the first page. In this way, the function of turning pages to display different pages can be realized, the operation is very convenient, and the stylus can be applied in a wider range of scenarios.
[0029] In a possible implementation, the touch screen is used to display a first page; when the wireless communication module receives the first function signal, the processor is specifically used to: respond to the first function signal to make the touch screen display a third page; wherein the third page is a page one level after the first page. In this way, the function of turning pages to display different pages can be realized, the operation is very convenient, and the stylus can be applied in a wider range of scenarios.
[0030] In a possible implementation, the processor is specifically configured to enable the touch screen to display the handwriting at the position corresponding to the position information based on the second function signal and the position information. In this way, the function of long-distance handwriting writing can be realized, the operation is very convenient, and the stylus can be applied in a wider range of scenarios.
[0031] In a possible implementation, the processor is specifically configured to: enable the touch screen to display a cursor; and based on the second function signal and the position information, enable the touch screen to display a cursor movement track corresponding to the position information. In this way, the cursor movement function can be controlled remotely, the operation is very convenient, and the stylus can be applied in a wider range of scenarios.
[0032] In a possible implementation, the wireless communication module is further configured to receive a third function signal; and the processor is further configured to execute a third function based on the third function signal.
[0033] In a possible implementation, the touch screen is used to display the first page; when the wireless communication module receives the third function signal, the processor is specifically used to: respond to the third function signal to make the touch screen display the first area of the first page; wherein the first area is the upper area of the first page. In this way, the function of remotely controlling the page display area by using a stylus pen can be realized, the operation is very convenient, and the stylus pen can be applied in a wider range of scenarios.
[0034] In a possible implementation, the touch screen is used to display the first page; when the wireless communication module receives the third function signal, the processor is specifically used to: respond to the third function signal to make the touch screen display the second area in the first page; wherein the second area is the lower area of the first page. In this way, the function of remotely controlling the page display area by using a stylus pen can be realized, the operation is very convenient, and the stylus pen can be applied in a wider range of scenarios.
[0035] In a possible implementation, the touch screen is used to display a cursor, and the cursor is located in the application icon area of the first application; when the wireless communication module receives the third function signal, the processor is specifically used to: respond to the third function signal and start the first application. In this way, the function of remotely starting the selected application using the stylus can be realized, the operation is very convenient, and the stylus can be used in a wider range of scenarios.
[0036] In a fourth aspect, an embodiment of the present application provides a computer storage medium, wherein a computer program is stored in the storage medium, wherein the computer program includes executable instructions, wherein when the executable instructions are executed by a processor, the processor executes the method in any possible implementation of the first aspect. The method provided in the present application is implemented based on the processor, and the operation is very convenient, so that the stylus pen can be applied in a wider range of scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A schematic diagram of the architecture of a communication system provided in an embodiment of the present application;
[0038] Figure 2A-2C A schematic diagram of the structure of a stylus pen provided in an embodiment of the present application;
[0039] Figure 3 A schematic diagram of signal interaction between a stylus pen and an electronic device provided in an embodiment of the present application;
[0040] Figure 4 A schematic diagram of the structure of a wireless keyboard provided in an embodiment of the present application;
[0041] Figure 5A A schematic diagram of a stylus pen being stored in a storage portion provided in an embodiment of the present application;
[0042] Figure 5B A side schematic diagram of a stylus provided in an embodiment of the present application when stored in a storage portion of a wireless keyboard;
[0043] Figure 6 A schematic diagram of the hardware structure of a stylus pen provided in an embodiment of the present application;
[0044] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0045] Figure 8 A schematic diagram of the hardware structure of a wireless keyboard provided in an embodiment of the present application;
[0046] Fig. 9 A schematic diagram of interaction between a stylus pen and an electronic device provided in an embodiment of the present application;
[0047] Fig.10 A schematic diagram of another interaction between a stylus pen and an electronic device provided in an embodiment of the present application;
[0048] Figures 11A-11T An application scenario of a function mode switching method provided in an embodiment of the present application;
[0049] Fig.12A schematic diagram of a specific flow chart of a method for switching a functional mode provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and the attached claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear contrary indication in its context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations including one or more of the listed striking ones. In the embodiments of the present application, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as implying or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" can expressly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise stated, the meaning of "multiple" is two or more.
[0051] First, a communication system provided by an embodiment of the present application is introduced.
[0052] Please refer to Figure 1 , Figure 1 The schematic diagram of the architecture of a communication system 10 provided in an embodiment of the present application is exemplarily shown.
[0053] like Figure 1As shown, the communication system 10 may include a stylus 100, an electronic device 200 and a wireless keyboard 300. The electronic device 200 may be referred to as a user equipment (UE), a terminal, etc. For example, the electronic device 200 may be a tablet computer (portable android device, PAD), a personal digital assistant (PDA), a handheld device with a wireless communication function, a computing device, a vehicle-mounted device or a wearable device, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc., a mobile terminal or a fixed terminal with a touch screen (also referred to as a touch screen). In this embodiment, the electronic device 200 is described as a tablet computer as an example.
[0054] The stylus pen 100 and the wireless keyboard 300 can provide input to the electronic device 200, and the electronic device 200 performs an operation in response to the input based on the input of the stylus pen 100 or the wireless keyboard 300. A touch area can be set on the wireless keyboard 300, and the stylus pen 100 can operate the touch area of the wireless keyboard 300 to provide input to the wireless keyboard 300, and the wireless keyboard 300 can perform an operation in response to the input based on the input of the stylus pen 100. In one embodiment, the stylus pen 100 and the electronic device 200, the stylus pen 100 and the wireless keyboard 300, and the electronic device 200 and the wireless keyboard 300 can be interconnected through a communication network to achieve interaction of wireless signals. The communication network can be, but is not limited to, a short-range communication network such as a WI-FI hotspot network, a WI-FI peer-to-peer (P2P) network, a Bluetooth network, a zigbee network, or a near field communication (NFC) network.
[0055] The stylus 100 may be, but is not limited to, an inductive pen and a capacitive pen. The electronic device 200 has a touch screen 201. When the stylus 100 is an inductive pen, an electromagnetic induction board needs to be integrated on the touch screen 201 of the electronic device 200 that interacts with the stylus 100. Coils are distributed on the electromagnetic induction board, and coils are also integrated in the inductive pen. Based on the principle of electromagnetic induction, within the magnetic field generated by the electromagnetic induction board, as the inductive pen moves, the inductive pen can accumulate electrical energy. The inductive pen can transmit the accumulated electrical energy to the electromagnetic induction board through the coil in the inductive pen through free oscillation. The electromagnetic induction board can scan the coil on the electromagnetic induction board based on the electrical energy from the inductive pen, and calculate the position of the inductive pen on the touch screen 201. In one embodiment, the touch screen can be called a touch screen, and the stylus can be called a stylus.
[0056] Capacitive pens can include passive capacitive pens and active capacitive pens. Passive capacitive pens can be called passive capacitive pens, and active capacitive pens can be called active capacitive pens.
[0057] One or more electrodes may be provided in an active capacitive pen (for example, in the pen tip), and the active capacitive pen may transmit signals through the electrodes. When the stylus 100 is an active capacitive pen, an electrode signal sensing array needs to be integrated on the touch screen 201 of the electronic device 200 that interacts with the stylus 100. In one embodiment, the electrode signal sensing array may be a capacitive electrode signal sensing array. The electronic device 200 may receive a signal from the active capacitive pen through the electrode signal sensing array, and then upon receiving the signal, the position of the active capacitive pen on the touch screen and the inclination angle of the active capacitive pen may be identified based on the change in the capacitance value on the touch screen 201.
[0058] Next, the structure of a stylus pen provided in an embodiment of the present application is introduced.
[0059] Please refer to Figure 2A-2C , Figure 2A-2C A schematic structural diagram of a stylus pen 100 provided in an embodiment of the present application is exemplarily shown.
[0060] Figure 2A The structure diagram of the stylus pen 100 provided in the embodiment of the present application is shown in FIG. The stylus pen 100 is an active capacitive stylus pen. Figure 2A As shown, the stylus pen 100 may include a pen tip 10, a pen body 20 and a back cover 30. The interior of the pen body 20 is a hollow structure, and the pen tip 10 and the back cover 30 are respectively located at the two ends of the pen body 20. The back cover 30 and the pen body 20 can be connected or snapped together. The matching relationship between the pen tip 10 and the pen body 20 is detailed in Figure 2B Description.
[0061] Figure 2BThis is a schematic diagram of a partially disassembled structure of a stylus provided in an embodiment of the present application. Figure 2B As shown, the stylus pen 100 further includes a main shaft assembly 50, which is located in the pen barrel 20 and is slidably disposed in the pen barrel 20. The main shaft assembly 50 has an external thread 51, and the pen tip 10 includes a writing end 11 and a connecting end 12, wherein the connecting end 12 of the pen tip 10 has an internal thread (not shown) that matches the external thread 51.
[0062] When the spindle assembly 50 is assembled into the pen barrel 20, the connecting end 12 of the pen tip 10 extends into the pen barrel 20 and is threadedly connected to the external thread 51 of the spindle assembly 50. In some other examples, the connecting end 12 of the pen tip 10 and the spindle assembly 50 can also be connected in a detachable manner such as snap-fitting. The detachable connection between the connecting end 12 of the pen tip 10 and the spindle assembly 50 enables the replacement of the pen tip 10.
[0063] In order to detect the pressure on the writing end 11 of the pen tip 10, refer to Figure 2A As shown, there is a gap 10a between the pen tip 10 and the pen holder 20, so that when the writing end 11 of the pen tip 10 is subjected to external force, the pen tip 10 can move toward the pen holder 20, and the movement of the pen tip 10 will drive the main shaft assembly 50 to move in the pen holder 20. Figure 2B As shown, a pressure sensing component 60 is provided on the main shaft component 50, and part of the pressure sensing component 60 is fixedly connected to the fixed structure in the pen barrel 20, and part of the pressure sensing component 60 is fixedly connected to the main shaft component 50. In this way, when the main shaft component 50 moves with the pen tip 10, since part of the pressure sensing component 60 is fixedly connected to the fixed structure in the pen barrel 20, the movement of the main shaft component 50 will drive the pressure sensing component 60 to deform, and the deformation of the pressure sensing component 60 is transmitted to the circuit board 70 (for example, the pressure sensing component 60 and the circuit board 70 can be electrically connected through a wire or a flexible circuit board), and the circuit board 70 detects the pressure of the writing end 11 of the pen tip 10 according to the deformation of the pressure sensing component 60, thereby controlling the line thickness of the writing end 11 according to the pressure of the writing end 11 of the pen tip 10.
[0064] It should be noted that the pressure detection of the pen tip 10 includes but is not limited to the above method. For example, a pressure sensor may be provided in the writing end 11 of the pen tip 10 to detect the pressure of the pen tip 10 by the pressure sensor.
[0065] In this embodiment, refer to Figure 2BAs shown, the stylus pen 100 further includes a plurality of electrodes, which may be, for example, a first emitting electrode 41, a grounding electrode 43, and a second emitting electrode 42. The first emitting electrode 41, the grounding electrode 43, and the second emitting electrode 42 are all electrically connected to the circuit board 70. The first emitting electrode 41 may be located in the pen tip 10 and close to the writing end 11. The circuit board 70 may be configured as a control board that can provide signals to the first emitting electrode 41 and the second emitting electrode 42, respectively. The first emitting electrode 41 is used to emit a first signal. When the first emitting electrode 41 is close to the touch screen 201 of the electronic device 200, a coupling capacitor may be formed between the first emitting electrode 41 and the touch screen 201 of the electronic device 200, so that the electronic device 200 may receive the first signal. Among them, the second emitting electrode 42 is used to emit a second signal, and the electronic device 200 may determine the tilt angle of the stylus pen 100 according to the received second signal. In the embodiment of the present application, the second emitting electrode 42 may be located on the inner wall of the pen shaft 20. In one example, the second emitting electrode 42 may also be located on the spindle assembly 50.
[0066] The ground electrode 43 may be located between the first radiating electrode 41 and the second radiating electrode 42 , or may be located outside the first radiating electrode 41 and the second radiating electrode 42 . The ground electrode 43 is used to reduce coupling between the first radiating electrode 41 and the second radiating electrode 42 .
[0067] When the electronic device 200 receives the first signal from the stylus 100, the capacitance value at the corresponding position of the touch screen 201 will change. Accordingly, the electronic device 200 can determine the position of the stylus 100 (or the tip of the stylus 100) on the touch screen 201 based on the change of the capacitance value on the touch screen 201. In addition, the electronic device 200 can use the dual-tip projection method in the tilt detection algorithm to obtain the tilt angle of the stylus 100. Among them, the first transmitting electrode 41 and the second transmitting electrode 42 are at different positions in the stylus 100, so when the electronic device 200 receives the first signal and the second signal from the stylus 100, the capacitance values at two positions on the touch screen 201 will change. The electronic device 200 can obtain the tilt angle of the stylus 100 based on the distance between the first transmitting electrode 41 and the second transmitting electrode 42, and the distance between the two positions where the capacitance value changes on the touch screen 201. For more detailed information on obtaining the tilt angle of the stylus 100, refer to the relevant description of the dual-tip projection method in the prior art.
[0068] In the present application, refer to Figure 2BAs shown, the stylus pen 100 also includes: a battery assembly 80, and the battery assembly 80 is used to provide power to the circuit board 70. The battery assembly 80 may include a lithium-ion battery, or the battery assembly 80 may include a nickel-chromium battery, an alkaline battery, or a nickel-metal hydride battery. In one embodiment, the battery included in the battery assembly 80 may be a rechargeable battery or a disposable battery, wherein when the battery included in the battery assembly 80 is a rechargeable battery, the stylus pen 100 can charge the battery in the battery assembly 80 by wireless charging. Of course, the battery in the battery assembly 80 can also be charged by wired charging. For example, a power connector (not shown in the figure) is provided at one end of the pen body 20 close to the rear cover 30, and the power connector is connected to the battery assembly 80. The rear cover 30 can shield the power connector.
[0069] like Figure 2C As shown, the stylus 100 may further include: a touch sensor 44. The touch sensor 44 may be disposed in an area of the pen barrel 20 close to the pen tip 10. The touch sensor 44 may be used to detect a touch operation acting on or near it. In some embodiments, the touch sensor 44 may include an area 441, an area 442, and an area 443. Within a specified time period 1 (e.g., 2 seconds), when the touch sensor 44 detects a long press operation acting on the area 442 and remains unchanged, and detects a touch operation on the touch sensor, the direction of which is parallel to the pen barrel 20, and the touch area covers the area 441 and the area 443, the touch sensor 44 determines that the above operation is a sliding operation. For example, when the touch sensor 44 detects a long press operation acting on the area 442 and remains unchanged, and detects a touch operation on the touch sensor, the direction of which is parallel to the pen barrel 20, and the moving position of the touch operation is from the area 443 to the area 441, the touch sensor 44 determines that the above operation is an upward sliding operation (also referred to as an upward sliding operation). When the touch sensor 44 detects a long press operation on area 442 and maintains it, and detects a touch operation on the touch sensor, the direction of which is parallel to the pen shaft 20, and the moving position of the touch operation is from area 441 to area 443, the touch sensor 44 determines that the above operation is a downward sliding operation (also known as a sliding down operation).
[0070] In response to the sliding operation, the stylus pen 100 may send a corresponding function signal to the electronic device 200 so that the electronic device 200 may perform a corresponding function based on the function signal.
[0071] In a possible implementation, the stylus pen 100 can also detect that the direction of the touch operation is parallel to the pen shaft 20 within a specified time period 1 (for example, 2 seconds), and when the touch area covers the area 441 and the area 443, it is determined that the above operation is a sliding operation. This application is not limited to this. The description of the moving position of the touch operation in the sliding operation and the sliding operation can refer to the above description, which will not be repeated here.
[0072] like Figure 3 As shown, when the stylus 100 is an active capacitive stylus, after the electronic device 200 and the stylus 100 are wirelessly connected, the electronic device 200 can send an uplink signal to the stylus 100 through the electrode signal sensing array integrated on the touch screen 201. The stylus 100 can receive the uplink signal through the receiving electrode, and the stylus 100 transmits the downlink signal through the transmitting electrode (for example, the first transmitting electrode 41 and the second transmitting electrode 42). The downlink signal includes the first signal and the second signal mentioned above. When the tip 10 of the stylus 100 contacts the touch screen 201, the capacitance value at the corresponding position of the touch screen 201 will change, and the electronic device 200 can determine the position of the tip 10 of the stylus 100 on the touch screen 201 based on the capacitance value on the touch screen 201. In one embodiment, the uplink signal and the downlink signal can be square wave signals.
[0073] The following introduces the structure of a wireless keyboard provided in an embodiment of the present application.
[0074] Please refer to Figure 4 , Figure 4 The structural diagram of a wireless keyboard 300 provided in an embodiment of the present application is exemplarily shown.
[0075] like Figure 4 As shown, the wireless keyboard 300 may include a first part 301 and a second part 302. For example, the wireless keyboard 300 may include: a keyboard body and a keyboard cover. The first part 301 may be a keyboard cover, and the second part 302 may be a keyboard body. The first part 301 is used to place the electronic device 200, and the second part 302 may be provided with keys, a touch pad, etc. for user operation.
[0076] When the wireless keyboard 300 is in use, the first part 301 and the second part 302 of the wireless keyboard 300 need to be opened, and when the wireless keyboard 300 is not in use, the first part 301 and the second part 302 of the wireless keyboard 300 can be closed. In one embodiment, the first part 301 and the second part 302 of the wireless keyboard 300 can be rotatably connected. For example, the first part 301 and the second part 302 can be connected by a rotating shaft or a hinge, or, in some examples, the first part 301 and the second part 302 are rotatably connected by a flexible material (such as a leather material or a cloth material). Alternatively, in some examples, the first part 301 and the second part 302 can be integrally formed, and the connection between the first part 301 and the second part 302 is thinned so that the connection between the first part 301 and the second part 302 can be bent. The connection method between the first part 301 and the second part 302 may include but is not limited to the above-mentioned several rotation connection methods.
[0077] The first part 301 may include at least two rotatably connected brackets. Figure 4 As shown, the first part 301 includes a first bracket 301a and a second bracket 301b, and the first bracket 301a and the second bracket 301b are rotatably connected. When in use, the first bracket 301a and the second bracket 301b can be used to support the electronic device 200 together (refer to Figure 1 Alternatively, the first bracket 301a supports the second bracket 301b, and the second bracket 301b supports the electronic device 200. Figure 4 As shown, the second bracket 301b is rotatably connected to the second part 302.
[0078] Among them, refer to Figure 4 As shown, in order to facilitate storage of the stylus pen 100, the wireless keyboard 300 may be provided with a storage portion 303 for storing the stylus pen 100. Figure 4 As shown, the storage portion 303 is a cylindrical cavity. When stored, the stylus pen 100 is moved along Figure 4 Insert the container into the receiving cavity in the direction of the arrow. Figure 4 As shown, the second part 302 and the second bracket 301b are rotatably connected via a connecting portion 304, and a receiving portion 303 is provided in the connecting portion 304. The connecting portion 304 may be a rotating shaft.
[0079] Figure 5A This is a schematic diagram of the stylus pen 100 provided in the embodiment of the present application being stored in the storage portion. Figure 5B This is a side view of the stylus pen 100 provided in the embodiment of the present application when it is stored in the storage portion of the wireless keyboard. Figure 5BAs shown, the receiving portion 303 is a circular cavity, and the inner diameter of the receiving portion 303 is greater than the outer diameter of the stylus pen 100 .
[0080] In order to prevent the stylus pen 100 from falling when placed in the storage portion 303, in one embodiment, a magnetic material may be provided on the inner wall of the storage portion 303, and a magnetic material may be provided in the stylus pen 100. The stylus pen 100 is adsorbed in the storage portion 303 by the magnetic adsorption between the magnetic materials. Of course, in some examples, when the stylus pen 100 and the storage portion 303 are fixed, it includes but is not limited to using magnetic adsorption to achieve fixation. For example, the stylus pen 100 and the storage portion 303 can also be fixed by a snap-fit method.
[0081] In order to facilitate taking out the stylus pen 100 from the storage portion 303 , a pop-up structure may be provided in the storage portion 303 . For example, by pressing one end of the stylus pen 100 , the pop-up mechanism may drive one end of the stylus pen 100 to pop out from the storage portion 303 .
[0082] Next, the hardware structure of a stylus pen provided in an embodiment of the present application is introduced.
[0083] Please refer to Figure 6 , Figure 6 The hardware structure diagram of a stylus pen 100 provided in an embodiment of the present application is exemplarily shown.
[0084] like Figure 6 As shown, the stylus pen 100 may include a processor 110, one or more sensors (e.g., a touch sensor 120, an inertial sensor 130, etc.), a status indicator 140, a button 150, an electrode 160, a sensing circuit 170, a Bluetooth module 180, and a charging module 190, etc. Among them:
[0085] The processor 110 may include storage and processing circuitry for supporting the operation of the stylus 100. The storage and processing circuitry may include storage devices such as non-volatile memory (e.g., flash memory or other electrically programmable read-only memory configured as a solid-state drive), volatile memory (e.g., static or dynamic random access memory), etc. The processing circuitry in the processor 110 may be used to control the operation of the stylus 100. The processing circuitry may be based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio chips, application specific integrated circuits, etc.
[0086] The touch sensor 120 may be configured to detect a touch operation applied thereto or in the vicinity thereof.
[0087] The inertial sensor 130 may include a three-axis accelerometer and a six-axis gyroscope, and / or other components for measuring the movement of the stylus 100. For example, a three-axis magnetometer may be included in the sensor in the configuration of a nine-axis inertial sensor. In the process of the subsequent embodiments, when the stylus 100 moves, the inertial sensor 130 (e.g., a six-axis gyroscope) may detect and obtain the position information of the stylus 100 when it moves. The gyroscope sensor (e.g., the aforementioned six-axis gyroscope) may also be used to determine the motion posture of the stylus 100. In some embodiments, the stylus 100 may determine the angular velocity of the stylus 100 around three axes (i.e., x, y, and z axes) through the gyroscope sensor. The acceleration sensor (e.g., the aforementioned three-axis accelerometer) may be used to detect the magnitude of the acceleration of the stylus 100 in each direction (generally x, y, and z axes). When the stylus 100 is stationary, the magnitude and direction of gravity may be detected.
[0088] The sensors may also include additional sensors such as temperature sensors, ambient light sensors, light-based proximity sensors, contact sensors, magnetic sensors, pressure sensors, and / or other sensors.
[0089] The state indicator 140 may be formed of a diode. The state indicator 140 is used to inform the user of the state of the stylus pen 100. The button 150 may include a mechanical button and a non-mechanical button, and the button 150 may be used to collect button pressing information from the user.
[0090] The stylus pen 100 may include one or more electrodes 160 (for details, see Figure 2B ), one of the electrodes 160 may be located at the writing end of the stylus 100, and one of the electrodes 160 may be located within the pen tip 10, and reference may be made to the above-mentioned related descriptions.
[0091] The sensing circuit 170 can sense the capacitive coupling between the electrode 160 and the driving line of the capacitive touch sensor panel interacting with the stylus 100. The sensing circuit 170 may include an amplifier for receiving the capacitance reading from the capacitive touch sensor panel, a clock for generating a demodulation signal, a phase shifter for generating a phase-shifted demodulation signal, a mixer for demodulating the capacitance reading using an in-phase demodulation frequency component, and a mixer for demodulating the capacitance reading using an orthogonal demodulation frequency component, etc. The result of the mixer demodulation can be used to determine an amplitude proportional to the capacitance, so that the stylus 100 can sense contact with the capacitive touch sensor panel.
[0092] In order to support wireless communication between the stylus pen 100 and the electronic device 200 , the stylus pen 100 may include a wireless module. Figure 6In the description, the wireless module is taken as the Bluetooth module 180 as an example. The wireless module can also be a WI-FI hotspot module, a WI-FI point-to-point module, etc. The Bluetooth module 180 may include a radio frequency transceiver, such as a transceiver. The Bluetooth module 180 may also include one or more antennas. The transceiver can use the antenna to transmit and / or receive wireless signals, and the wireless signals can be Bluetooth signals, wireless local area network signals, long-range signals such as cellular phone signals, near field communication signals, or other wireless signals based on the type of wireless module.
[0093] The charging module 190 can support charging of the stylus pen 100 and provide power for the stylus pen 100 .
[0094] It is understood that, according to actual needs, the stylus 100 may include a microphone, a speaker, an audio generator, a vibrator, a camera, a data port, and other devices. The user can control the operation of the stylus 100 and the electronic device 200 interacting with the stylus 100 by providing commands using these devices, and receive status information and other outputs.
[0095] Next, the hardware structure of an electronic device provided in an embodiment of the present application is introduced.
[0096] Please refer to Figure 7 , Figure 7 A hardware structure diagram of an electronic device 200 provided in an embodiment of the present application is exemplarily shown.
[0097] like Figure 7 As shown, electronic device 200 may include multiple subsystems that cooperate to perform, coordinate, or monitor one or more operations or functions of electronic device 200. Electronic device 200 includes processor 210, input surface 220, coordination engine 230, power subsystem 240, power connector 250, wireless interface 260, and display 270.
[0098] Exemplarily, the coordination engine 230 can be used to communicate and / or process data with other subsystems of the electronic device 200; communicate and / or trade data with the stylus 100; measure and / or obtain the output of one or more analog or digital sensors (such as touch sensors); measure and / or obtain the output of one or more sensor nodes of an array of sensor nodes (such as an array of capacitive sensing nodes); receive and locate tip signals and ring signals from the stylus 100; locate the stylus 100 based on the position of the tip signal intersection area and the ring signal intersection area, etc.
[0099] The coordination engine 230 of the electronic device 200 includes or is otherwise communicatively coupled to a sensor layer located below or integrated with the input surface 220. The coordination engine 230 uses the sensor layer to locate the stylus 100 on the input surface 220 and uses the techniques described herein to estimate the angular position of the stylus 100 relative to the plane of the input surface 220. In one embodiment, the input surface 220 can be referred to as a touch screen 201.
[0100] For example, the sensor layer of the coordination engine 230 of the electronic device 200 is a grid of capacitive sensing nodes arranged in columns and rows. More specifically, the column trace array is arranged perpendicular to the row trace array. The sensor layer can be separated from other layers of the electronic device, or the sensor layer can be directly arranged on another layer, such as but not limited to: display stack layer, force sensor layer, digitizer layer, polarizer layer, battery layer, structural or decorative housing layer, etc.
[0101] The sensor layer can operate in multiple modes. If operating in mutual capacitance mode, the column traces and row traces form a single capacitive sensing node at each overlap point (e.g., "vertical" mutual capacitance). If operating in self-capacitance mode, the column traces and row traces form two (vertically aligned) capacitive sensing nodes at each overlap point. In another embodiment, if operating in mutual capacitance mode, adjacent column traces and / or adjacent row traces may each form a single capacitive sensing node (e.g., "horizontal" mutual capacitance). As described above, the sensor layer can detect the presence of the tip 10 of the stylus 100 and / or the touch of the user's finger by monitoring the changes in capacitance (e.g., mutual capacitance or self-capacitance) presented at each capacitive sensing node. In many cases, the coordination engine 230 can be configured to detect the tip signal and the ring signal received from the stylus 100 through the sensor layer via capacitive coupling.
[0102] Among them, the tip signal and / or the ring signal may include specific information and / or data that can be configured to allow the electronic device 200 to identify the stylus 100. Such information is generally referred to herein as "stylus identity" information. The information and / or data can be received by the sensor layer and interpreted, decoded and / or demodulated by the coordination engine 230.
[0103] Processor 210 may use the stylus identity information to simultaneously receive input from more than one stylus. Specifically, coordination engine 230 may be configured to transmit to processor 210 the position and / or angular position of each of a number of styluses detected by coordination engine 230. In other cases, coordination engine 230 may also transmit to processor 210 information related to the relative positions and / or relative angular positions of the plurality of styluses detected by coordination engine 230. For example, coordination engine 230 may notify processor 210 that a detected first stylus is located at a distance from a detected second stylus.
[0104] In other cases, the end signal and / or the ring signal may also include specific information and / or data for identifying a specific user by the electronic device 200. Such information is generally referred to herein as "user identity" information.
[0105] The coordination engine 230 may forward the user identity information (if detected and / or recoverable) to the processor 210. If the user identity information cannot be recovered from the tip signal and / or the ring signal, the coordination engine 230 may optionally indicate to the processor 210 that the user identity information is not available. The processor 210 may utilize the user identity information (or the absence of such information) in any suitable manner, including but not limited to: accepting or rejecting input from a particular user, allowing or denying access to a particular function of the electronic device, etc. The processor 210 may use the user identity information to receive input from more than one user simultaneously.
[0106] In still other cases, the tip signal and / or ring signal may include specific information and / or data that may be configured to allow the electronic device 200 to identify settings or preferences of a user or stylus 100. Such information is generally referred to herein as "stylus settings" information.
[0107] The coordination engine 230 may forward the stylus settings information (if detected and / or recoverable) to the processor 210. If the stylus settings information cannot be recovered from the tip signal and / or the ring signal, the coordination engine 230 may optionally indicate to the processor 210 that the stylus settings information is not available. The electronic device 200 can utilize the stylus settings information (or the absence of such information) in any suitable manner, including but not limited to: applying the settings to the electronic device, applying the settings to a program running on the electronic device, changing the line thickness, color, pattern presented by the graphics program of the electronic device, changing the settings of a video game operated on the electronic device, etc.
[0108] Generally speaking, the processor 210 may be configured to execute, coordinate and / or manage the functions of the electronic device 200. Such functions may include, but are not limited to, communicating and / or transacting data with other subsystems of the electronic device 200, communicating and / or transacting data with the stylus 100, communicating and / or transacting data via a wireless interface, communicating and / or transacting data via a wired interface, facilitating power exchange via a wireless (e.g., inductive, resonant, etc.) or wired interface, receiving the position and angular position of one or more styluses, etc.
[0109] Processor 210 may be implemented as any electronic device capable of processing, receiving or sending data or instructions. For example, the processor may be a microprocessor, a central processing unit, an application specific integrated circuit, a field programmable gate array, a digital signal processor, an analog circuit, a digital circuit, or a combination of these devices. The processor may be a single-threaded or multi-threaded processor. The processor may be a single-core or multi-core processor.
[0110] During use, the processor 210 may be configured to access a memory storing instructions that may be configured to cause the processor to perform, coordinate or monitor one or more operations or functions of the electronic device 200 .
[0111] The instructions stored in the memory may be configured to control or coordinate the operation of other components of the electronic device 200, such as, but not limited to: another processor, analog or digital circuitry, volatile or non-volatile memory modules, displays, speakers, microphones, rotary input devices, buttons or other physical input devices, biometric authentication sensors and / or systems, force or touch input / output components, communication modules (such as wireless interfaces and / or power connectors), and / or tactile or haptic feedback devices.
[0112] The memory may also store electronic data that may be used by the stylus or the processor. For example, the memory may store electronic data or content (such as media files, documents, and applications), device settings and preferences, timing signals and control signals, or data, data structures, or databases for various modules, files or configurations related to detecting tip signals and / or ring signals, and the like. The memory may be configured as any type of memory. For example, the memory may be implemented as a random access memory, a read-only memory, a flash memory, a removable memory, other types of storage elements, or a combination of such devices.
[0113] The electronic device 200 also includes a power subsystem 240. The power subsystem 240 may include a battery or other power source. The power subsystem 240 may be configured to provide power to the electronic device 200. The power subsystem 240 may also be coupled to a power connector 250. The power connector 250 may be any suitable connector or port that may be configured to receive power from an external power source and / or configured to provide power to an external load. For example, in some embodiments, the power connector 250 may be used to recharge the battery within the power subsystem 240. In another embodiment, the power connector 250 may be used to transfer power stored in (or available for) the power subsystem 240 to the stylus 100.
[0114] The electronic device 200 also includes a wireless interface 260 to facilitate electronic communication between the electronic device 200 and the stylus 100. In one embodiment, the electronic device 200 can be configured to communicate with the stylus 100 via a low-energy Bluetooth communication interface or a near-field communication interface. In other examples, the communication interface facilitates electronic communication between the electronic device 200 and an external communication network, device, or platform.
[0115] The wireless interface 260 (whether it is a communication interface between the electronic device 200 and the stylus 100 or another communication interface) can be implemented as one or more wireless interfaces, Bluetooth interfaces, near-field communication interfaces, magnetic interfaces, universal serial bus interfaces, inductive interfaces, resonant interfaces, capacitive coupling interfaces, Wi-Fi interfaces, TCP / IP interfaces, network communication interfaces, optical interfaces, acoustic interfaces or any traditional communication interfaces.
[0116] The electronic device 200 also includes a display 270. The display 270 can be located behind the input surface 220, or can be integrated with it. The display 270 can be communicatively coupled to the processor 210. The processor 210 can use the display 270 to present information to the user. In many cases, the processor 210 uses the display 270 to present an interface with which the user can interact. In many cases, the user manipulates the stylus 100 to interact with the interface.
[0117] It will be apparent to those skilled in the art that some of the specific details presented above regarding the electronic device 200 may not be necessary for practicing a specific embodiment or its equivalent. Similarly, other electronic devices may include a greater number of subsystems, modules, components, etc. Where appropriate, some submodules may be implemented as software or hardware. Therefore, it should be understood that the above description is not intended to be exhaustive or to limit the present disclosure to the precise form described herein. On the contrary, it will be apparent to those skilled in the art that, based on the above teachings, many modifications and variations are possible.
[0118] Next, a hardware structure of a wireless keyboard provided in an embodiment of the present application is received.
[0119] Please refer to Figure 8 , Figure 8 The hardware structure diagram of a wireless keyboard 300 provided in an embodiment of the present application is exemplified.
[0120] The wireless keyboard 300 may include a processor 310 , a memory 320 , a charging interface 330 , a charging management module 340 , a wireless charging coil 350 , a battery 360 , a wireless communication module 370 , a touchpad 380 , and a keyboard 390 .
[0121] The processor 310, memory 320, charging interface 330, charging management module 340, battery 360, wireless communication module 370, touchpad 380, keyboard 390, etc. can be arranged on the keyboard body of the wireless keyboard 300 (i.e., Figure 1 The wireless charging coil 350 may be disposed on the connecting portion 304 (eg, Figure 4 It is understood that the structure shown in this embodiment does not constitute a specific limitation on the wireless keyboard 300. In other embodiments, the wireless keyboard 300 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0122] Among them, the memory 320 can be used to store program codes, such as program codes for wireless charging of the stylus 100. The memory 320 can also store a Bluetooth address for uniquely identifying the wireless keyboard 300. In addition, the memory 320 can also store connection data of electronic devices that have been successfully paired with the wireless keyboard 300. For example, the connection data can be the Bluetooth address of the electronic device that has been successfully paired with the wireless keyboard 300. Based on the connection data, the wireless keyboard 300 can automatically pair with the electronic device without having to configure the connection therewith, such as performing legitimacy verification. The above-mentioned Bluetooth address can be a media access control (MAC) address.
[0123] The processor 310 can be used to execute the above application code and call related modules to implement the functions of the wireless keyboard 300100 in the embodiment of the present application. For example, the wired charging function, reverse wireless charging function, wireless communication function, etc. of the wireless keyboard 300 are implemented. The processor 310 may include one or more processing units, and different processing units may be independent devices or integrated in one or more processors 310. The processor 310 may specifically be an integrated control chip, or it may be composed of a circuit including various active and / or passive components, and the circuit is configured to perform the functions belonging to the processor 310 described in the embodiment of the present application. Among them, the processor of the wireless keyboard 300 may be a microprocessor.
[0124] The wireless communication module 370 can be used to support data exchange between the wireless keyboard 300 and other electronic devices, including wireless communications such as Bluetooth (BT), global navigation satellite system (GNSS), wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
[0125] In some embodiments, the wireless communication module 370 may be a Bluetooth chip. The wireless keyboard 300 may be a Bluetooth keyboard. The wireless keyboard 300 may be paired with a Bluetooth chip of another electronic device through the Bluetooth chip and establish a wireless connection to achieve wireless communication between the wireless keyboard 300 and the other electronic device through the wireless connection.
[0126] In addition, the wireless communication module 370 may also include an antenna. The wireless communication module 370 receives electromagnetic waves via the antenna, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 310. The wireless communication module 370 may also receive a signal to be sent from the processor 310, modulate the signal, amplify the signal, and convert it into an electromagnetic wave for radiation through the antenna.
[0127] In some embodiments, the wireless keyboard 300 may support wired charging. Specifically, the charging management module 340 may receive charging input from a wired charger through the charging interface 330 .
[0128] In other embodiments, the wireless keyboard 300 may support forward wireless charging. The charging management module 340 may receive wireless charging input through the wireless charging coil 350 of the wireless keyboard 300. Specifically, the charging management module 340 is connected to the wireless charging coil 350 through a matching circuit. The wireless charging coil 350 may be coupled with the wireless charging coil of the wireless charger described above, inducing the alternating electromagnetic field emitted by the wireless charging coil 350 of the wireless charger to generate an alternating electrical signal. The alternating electrical signal generated by the wireless charging coil 350 is transmitted to the charging management module 340 through the matching circuit to wirelessly charge the battery 360.
[0129] The charging management module 340 can also provide power to the wireless keyboard 300 while charging the battery 360. The charging management module 340 receives input from the battery 360 and provides power to the processor 310, the memory 320, the external memory, and the wireless communication module 370. The charging management module 340 can also be used to monitor parameters such as the battery capacity, the number of battery cycles, and the battery health status (leakage, impedance) of the battery 360. In some other embodiments, the charging management module 340 can also be set in the processor 310.
[0130] In other embodiments, the wireless keyboard 300 may support reverse wireless charging. Specifically, the charging management module 340 may also receive input from the charging interface 330 or the battery 360, and convert the DC signal input from the charging interface 330 or the battery 360 into an AC signal. The AC signal is transmitted to the wireless charging coil 350 through a matching circuit. The wireless charging coil 350 may generate an alternating electromagnetic field when receiving the AC signal. The wireless charging coils of other mobile terminals may sense the alternating electromagnetic field and may be wirelessly charged. That is, the wireless keyboard 300 may also wirelessly charge other mobile terminals. In one embodiment, the wireless charging coil 350 may be disposed in the storage portion 303 of the wireless keyboard 300, and a wireless charging coil may be disposed in the pen holder 20 of the stylus 100. When the stylus 100 is placed in the storage portion 303, the wireless keyboard 300 may charge the stylus 100 through the wireless charging coil 350.
[0131] It should be noted that the above-mentioned matching circuit can be integrated into the charging management module 340, and the matching circuit can also be independent of the charging management module 340, which is not limited in the embodiment of the present application. Figure 8 Taking the example that the matching circuit can be integrated into the charging management module 340, a schematic diagram of the hardware structure of the wireless keyboard 300 is shown.
[0132] The charging interface 330 can be used to provide a wired connection for charging or communication between the wireless keyboard 300 and other electronic devices (such as a wired charger of the wireless keyboard 300).
[0133] A touch sensor is integrated in the touch panel 380. The notebook computer can receive control commands from the user to the notebook computer through the touch panel 380 and the keyboard 390.
[0134] It is to be understood that the structure shown in the embodiment of the present application does not constitute a specific limitation on the wireless keyboard 300. Figure 8 More or fewer components shown may be combined with two or more components, or may have different component configurations. For example, the housing of the wireless keyboard 300 may also be provided with a storage cavity for storing the stylus pen 100. The wireless charging coil 350 is provided in the storage cavity, and is used to wirelessly charge the stylus pen 100 when the stylus pen 100 is stored in the storage cavity.
[0135] For another example, the outer surface of the wireless keyboard 300 may also include buttons, indicator lights (which may indicate battery level, incoming / outgoing calls, pairing mode, etc.), touch screens (which may prompt the user with relevant information), etc. The buttons may be physical buttons or touch buttons (used in conjunction with touch sensors), etc., which are used to trigger operations such as power on, power off, start charging, and stop charging.
[0136] Next, in combination with the structure of the stylus pen 100 , the function control method in the embodiment of the present application is introduced from the perspective of the interaction between the stylus pen 100 and the electronic device 200 .
[0137] Fig. 9 An interaction diagram between the stylus pen 100 and the electronic device 200 provided in an embodiment of the present application is exemplarily shown.
[0138] like Fig. 9 As shown, the stylus 100 may include: a touch sensor 44, a processor 110 and an electrode 160, and the electronic device 200 may include: an electrode signal sensing array 202 and a processor 210. In one embodiment, the electrode signal sensing array 202 may be Figure 7 In some other embodiments of the present application, the stylus 100 and the electronic device 200 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0139] The touch sensor 44 is used to collect the touch operation data of the user on the stylus.
[0140] When the user touches the sensing area of the touch sensor 44, the touch sensor 44 can collect the user's operation data, such as the number of touches, and / or the touch position, and / or the touch gesture (for example, a sliding touch and / or a tap touch), and / or the touch duration, etc. The touch sensor 44 can send the user's operation data to the processor 110 in the stylus 100.
[0141] The processor 110 is used to detect the user's operating actions based on the user's operating data. Exemplarily, the user's operating data is: the number of touches, and / or the touch position, and / or the touch gesture (for example, a sliding touch and / or a tap touch), and / or the touch duration. The processor 110 may include: the number of touches, and / or the touch position, and / or the touch gesture (for example, a sliding touch and / or a tap touch), and / or the touch duration, and a mapping relationship between the user's operating actions. The processor 110 may detect the user's operating actions based on the user's operating data and the mapping relationship, so as to achieve the purpose of the stylus 100 detecting the user's operating actions.
[0142] In the embodiment of the present application, the process of how the processor 110 and the touch sensor 44 detect the user's actions is not described in detail.
[0143] The electrode 160 may include a first transmitting electrode 41 and a second transmitting electrode 42. In the embodiment of the present application, the processor 110 may be configured to send a downlink signal to the electronic device 200 through the electrode 160.
[0144] The electrode signal sensing array 202 can be integrated in the touch screen of the electronic device 200 to receive signals from the electrodes 160 (e.g., the downlink signals mentioned above, that is, electrical signals). The electrode signal sensing array 202 can also be used to send uplink signals (that is, electrical signals) to the electrodes 160 in the stylus 100. The uplink signal can be used to switch the function mode of the stylus 100. The method for switching the function mode of the stylus 100 based on the uplink signal will be described in detail in the subsequent embodiments and will not be repeated here.
[0145] The processor 210 is used to execute a target function based on the signal received by the electrode signal sensing array 202 , and the details may refer to the description of the following embodiment.
[0146] Fig.10 Another interaction schematic diagram between another stylus pen 100 and an electronic device 200 provided in an embodiment of the present application is exemplarily shown.
[0147] like Fig.10 As shown, the stylus pen 100 may include: a touch sensor 44, a processor 110 and a Bluetooth module 180, and the electronic device 200 may include: a processor 210 and a wireless interface 260. It should be understood that Fig.10 The wireless interface 260 is represented by a Bluetooth module 260. In other embodiments of the present application, the stylus 100 and the electronic device 200 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware. Fig.10 In the embodiments described below, the wireless connection between the stylus pen 100 and the electronic device 200 is Bluetooth connection as an example. The wireless connection between the stylus pen 100 and the electronic device 200 may also be other types of connection methods, and reference may be made to the relevant descriptions of the above embodiments.
[0148] The processor 110 can implement communication between the stylus pen 100 and the electronic device 200 based on the Bluetooth module 180 and the Bluetooth module 260 in the electronic device 200 , such as sending a function signal to the electronic device 200 .
[0149] The processor 210 is used to receive a function signal from the stylus pen 100 based on the Bluetooth module 260 and execute a target function. For details, please refer to the description in the following embodiments.
[0150] At present, when a user uses a stylus pen 100 to operate an electronic device 200 (for example, tapping, writing, erasing handwriting, etc.), the stylus pen 100 needs to contact the touch screen on the electronic device 200. The stylus pen 100 can interact with the electronic device 200 based on electrical signals, and at the same time, the electronic device 200 can perform corresponding operations in response to the electrical signals sent by the stylus pen 100 according to the changes in the capacitance value on the touch screen. However, in some application scenarios (for example, screen projection scenarios), the stylus pen 100 cannot send electrical signals to the electronic device 200 over a long distance so that it can perform specified operations (for example, page turning operations, etc.) in response to the electrical signals, so the operation is very inconvenient.
[0151] Therefore, an embodiment of the present application provides a method for switching function modes.
[0152] The stylus pen 100 establishes a wireless communication connection with the electronic device 200. The stylus pen 100 may have a plurality of different functional modes. The plurality of different functional modes may include a first mode and a second mode. The stylus pen 100 may switch between the first mode and the second mode.
[0153] In a possible implementation, the stylus pen 100 may detect a designated switching operation 1 performed by a user on the stylus pen 100, and in response to the designated switching operation 1, the stylus pen 100 may switch a functional mode (e.g., from a first mode to a second mode, or from a second mode to a first mode). The designated operation 1 may be, for example, a multiple touch operation on the touch sensor 44 area (e.g., continuously touching the touch sensor 44 area on the stylus pen 100 three times), a long press operation on the touch sensor 44 area, etc. This application does not limit this.
[0154] In a possible implementation, the stylus 100 may also detect the strength of a designated signal 1 (e.g., the uplink signal mentioned above) sent by the electronic device 200. When the strength of the designated signal 1 is detected to be less than a designated value 1 (e.g., -50dbm), the stylus 100 may switch the functional mode (e.g., from the first mode to the second mode). When the strength of the designated signal 1 is detected to be greater than a designated value 1 (e.g., -50dbm), the stylus 100 may also switch the functional mode (e.g., from the second mode to the first mode). Exemplarily, the electrode 160 in the stylus 100 may receive the strength of the uplink signal sent by the electrode signal sensing array 202 in the touch screen on the electronic device 200. When the stylus 100 detects that the strength value of the uplink signal is less than -50dbm, the stylus 100 may switch from the first mode to the second mode.
[0155] In different function modes, when the stylus pen 100 receives the same operation of the user on the stylus pen 100 , the stylus pen 100 may respond with different function signals.
[0156] Exemplarily, in the first mode, input 1 corresponds to function signal 1, and the function signal 1 corresponds to function 1. In the second mode, input 1 corresponds to function signal 5, and the function signal 5 corresponds to function 5. When the stylus pen 100 is in the first mode, the stylus pen 100 can be in contact with the touch screen in the electronic device 200. The stylus pen 100 can continuously send a downlink signal to the electronic device 200 so that the electronic device 200 detects the position of the stylus pen 100 on the touch screen of the electronic device 200 and the inclination angle of the stylus pen 100. The downlink signal is used for the electronic device 200 to perform the writing function and the touch function. When the stylus pen 100 receives an input 1 (for example, double-clicking) acting on the touch sensor 44 area, the stylus pen 100 can obtain the function signal 1 corresponding to the input 1 in the first mode, and then send the function signal 1 to the electronic device 200, so that the electronic device 200 responds to the function signal 1 and performs the corresponding function 1.
[0157] The stylus pen 100 can detect the strength of the electrical signal (e.g., the uplink signal mentioned above) sent by the touch screen in the electronic device 200. When the stylus pen 100 detects that the strength of the electrical signal is less than a specified value 1 (e.g., -50dbm), the stylus pen 100 can switch from the first mode to the second mode.
[0158] When the stylus pen 100 is in the second mode, the stylus pen 100 may be within a specified range 1 (e.g., 10 meters) from the electronic device 200. When the stylus pen 100 receives an input 1 (e.g., double-click) acting on the touch sensor 44 area, the stylus pen 100 may obtain a function signal 5 corresponding to the input 1 in the second mode, and then send the function signal 5 to the electronic device 200, so that the electronic device 200 performs the corresponding function 5 in response to the function signal 5.
[0159] It can be seen from the above method that in some application scenarios, the stylus pen 100 can switch the functional mode in response to the specified switching operation 1 or the detection of the specified signal 1 whose intensity is less than the specified value 1. Based on different functional modes, the stylus pen 100 can send different functional signals to the electronic device 200 in response to the received input, so that the electronic device 200 performs the corresponding function in response to the functional signal. Therefore, the operation is very convenient, and the stylus pen 100 can be applied in a wider range of scenarios.
[0160] Next, combine Figures 11A-11T , introduces an application scenario of a functional mode switching method provided in an embodiment of the present application.
[0161] The stylus pen 100 is in the first mode:
[0162] Take the eraser function as an example. Fig.11A As shown, the electronic device 200 may display a user interface 1100. The user interface 1100 may include handwriting 1101. The stylus 100 may receive an input 1 (e.g., double-click) acting on the area of the touch sensor 44. In response to the input 1, the stylus 100 may obtain a function signal 1 corresponding to the input 1, and send the function signal 1 to the electronic device 200 based on a wireless communication connection (e.g., a Bluetooth connection) or an electrode. The function signal 1 may instruct the electronic device 200 to perform function 1.
[0163] like Fig. 11BAs shown, the stylus 100 can continuously send a downlink signal to the electronic device 200 through the electrode. When the electronic device 200 receives the function signal 1 from the stylus 100 through the Bluetooth module, the electronic device 200 can determine the position of the stylus 100 on the touch screen based on the downlink signal from the electrode of the stylus 100, and then erase the handwriting at the corresponding position based on the function signal 1 (that is, cancel the display of the handwriting at the position). The electronic device 200 can display the erased part of the handwriting 1101 on the user interface 1100. The electronic device 200 determines the position of the stylus on the touch screen according to the function signal 1. The relevant description of the electronic device 200 determining the position of the stylus on the touch screen according to the downlink signal can be referred to, and will not be repeated here.
[0164] Take function 2 as an example, which is to turn the page and display the previous page. Fig. 11C As shown, the electronic device 200 can display a user interface 1200 (also referred to as a first page). The user interface 1200 may include a screen 1201 and a page number identifier 1202. Among them, the page number identifier 1202 can be used to indicate the positional relationship between the currently displayed page and other pages. The page identifier 1202 is the text information "2". The stylus 100 can receive an input 2 (for example, an upward sliding operation) acting on the touch sensor 44 area. In response to the input 2, the stylus 100 can obtain a function signal 2 corresponding to the input 2, and send the function signal 2 to the electronic device 200 based on a wireless communication connection (for example, a Bluetooth connection) or an electrode.
[0165] like Fig.11D As shown, the electronic device 200 can execute the corresponding function 2 based on the function signal 2. The electronic device 200 can display the user interface 1300 (also referred to as the second page). The user interface 1300 can include a screen 1301 and a page number identifier 1302. The page number identifier 1302 is a text message "1", indicating that the page is the previous page of the page in the user interface 1200.
[0166] Take function 3, which is to turn the page and display the next page, as an example. Fig.11E As shown, the electronic device 200 can display the user interface 1200. For the description of the user interface 1200, please refer to Fig. 11C The description of the illustrated embodiment is not repeated here. The stylus pen 100 may receive an input 3 (e.g., a downward sliding operation) acting on the touch sensor 44 area. In response to the input 3, the stylus pen 100 may obtain a function signal 3 corresponding to the input 3, and send the function signal 3 to the electronic device 200 based on a wireless communication connection (e.g., a Bluetooth connection) or an electrode.
[0167] like Fig.11FAs shown, the electronic device 200 can execute the corresponding function 3 based on the function signal 3. The electronic device 200 can display the user interface 1400 (also referred to as the third page). The user interface 1400 can include a screen 1401 and a page number identifier 1402. The page number identifier 1402 is a text message "3", indicating that the page is the next page of the page in the user interface 1200.
[0168] The stylus pen 100 switches from the first mode to the second mode:
[0169] In one possible implementation, Fig.11G As shown, the stylus 100 can detect the strength of the designated signal 1 sent by the electronic device 200. When the stylus 100 detects that the strength of the designated signal 1 is less than the designated value 1, the stylus 100 switches from the first mode to the second mode. Exemplarily, the designated signal 1 can be an uplink signal sent by the electrode signal sensing array 202 in the touch screen of the aforementioned electronic device 200, and the designated value 1 can be -50dbm. The electrodes 160 in the stylus 100 can detect the strength of the uplink signal sent by the electrode signal sensing array 202 in the touch screen of the electronic device 200. When the stylus 100 detects that the strength of the electrical signal is less than -50dbm, the stylus 100 switches from the first mode to the second mode.
[0170] In another possible implementation, Fig.11H As shown, when the stylus pen 100 detects that the tip of the stylus pen is facing upward through the gyroscope in the inertial sensor 130 and detects an up and down sliding operation acting on the touch sensor 44 area, in response to the above operation, the stylus pen 100 can switch from the first mode to the second mode.
[0171] It should be noted that the stylus pen 100 can also switch from the first mode to the second mode in response to other operations. Exemplarily, the stylus pen 100 can detect multiple touch operations acting on the touch sensor 44 area (for example, continuously touching the touch sensor 44 area on the stylus pen 100 three times), and in response to the multiple touch operations, the stylus pen 100 can switch from the first mode to the second mode. The present application does not limit the way in which the stylus pen 100 switches from the first mode to the second mode.
[0172] The stylus pen 100 is in the second mode:
[0173] The stylus pen 100 and the electronic device 200 have established a wireless communication connection. In the embodiment of the present application, a Bluetooth connection is taken as an example. The stylus pen 100 can be within a specified range 1 (for example, 10 meters) from the electronic device 200. In the second mode, the electronic device 200 can display a cursor on the touch screen. When the stylus pen 100 obtains the displacement information of the stylus pen 100 through the gyroscope, the stylus pen 100 can send the displacement information to the electronic device 200 based on the Bluetooth connection. After the electronic device 200 receives the displacement information, it can move the cursor to a corresponding position on the touch screen based on the displacement information.
[0174] Take function 4 as an example, which is the function of moving the cursor. Fig.11I As shown, the electronic device 200 may display a user interface 1500. The user interface 1500 may include a Bluetooth icon 1501, a cursor 1502, and one or more application icons (e.g., a weather application icon, a stock application icon, a calculator application icon, a settings application icon, a mail application icon, a theme application icon, a calendar application icon, and a painting application icon 1503, etc.). Among them, the Bluetooth icon 1501 may be used to indicate that the stylus pen 100 and the electronic device 200 establish a Bluetooth connection. A page indicator may also be displayed below the one or more application icons to indicate the positional relationship between the currently displayed page and other pages.
[0175] like Fig.11I As shown, the stylus 100 can detect input 4 acting on the rear area of the touch sensor 44, for example, pressing the rear area while Fig.11J The stylus pen 100 shown moves. When the stylus pen 100 moves, the stylus pen 100 can obtain the displacement information 1 of the stylus pen 100 through the gyroscope. Then when the stylus pen 100 moves, in response to the input 4, the stylus pen 100 can obtain the corresponding function signal 4. The stylus pen 100 can send the function signal 4 and the displacement information 1 to the electronic device 200 based on the Bluetooth connection. The electronic device 200 can perform the corresponding function 4 based on the function signal 4 and the displacement information 1, display the cursor 1502, and move the cursor 1502 to the corresponding position on the touch screen. Then the electronic device 200 can display the position of the cursor 1502 after it moves on the user interface 1500. As shown Fig.11J As shown, the cursor 1502 may be located in the painting application icon 1503 area.
[0176] Take function 5 as an example to start the selected application. Figure 11K As shown, the electronic device 200 can display a user interface 1510. For a description of the interface elements in the user interface 1510, please refer to the aforementioned Fig.11IThe description of the illustrated embodiment is not repeated here. In the user interface 1510, the cursor 1502 is located in the painting application icon 1503 area to indicate that the cursor 1502 selects the painting application. The stylus 100 can receive an input 1 (e.g., double-click) acting on the touch sensor 44 area. In response to the input 1, the stylus 100 can obtain a function signal 5 corresponding to the input 1 in the second mode, and send the function signal 5 to the electronic device 200 based on the Bluetooth connection.
[0177] like Fig.11L As shown, taking the selected application as a painting application (also referred to as the first application) as an example, the electronic device 200 executes the corresponding function 5 based on the function signal 5. That is, the electronic device 200 can start the painting application. The electronic device 200 can display the user interface 1520. The user interface 1520 can include a screen 1521.
[0178] Take function 6 as an example, which is the function of sliding up a page. Fig.11M As shown, the electronic device 200 can display a user interface 1520. For the description of the user interface 1520, please refer to the aforementioned Fig.11L The description of the illustrated embodiment is not repeated here. The stylus pen 100 may receive an input 2 (e.g., an upward sliding operation) acting on the touch sensor 44 area. In response to the input 2, the stylus pen 100 may obtain a function signal 6 corresponding to the input 2 in the second mode, and send the function signal 6 to the electronic device 200 based on the Bluetooth connection.
[0179] like Fig.11N As shown, the electronic device 200 can execute the corresponding function 6 based on the function signal 6. The electronic device 200 can display a user interface 1530. The user interface 1530 can include a screen 1531 (also referred to as a first area), which is a screen displayed after the page in the user interface 1520 slides upward.
[0180] Take function 7 as an example, which is the function of sliding down the page. Fig.11O As shown, the electronic device 200 can display a user interface 1520. For the description of the user interface 1520, please refer to the aforementioned Fig.11L The description of the illustrated embodiment is not repeated here. The stylus pen 100 may receive an input 3 (e.g., a downward sliding operation) acting on the touch sensor 44 area. In response to the input 3, the stylus pen 100 may obtain a function signal 7 corresponding to the input 3 in the second mode, and send the function signal 7 to the electronic device 200 based on the Bluetooth connection.
[0181] like Figure 11PAs shown, the electronic device 200 can execute the corresponding function 7 based on the function signal 7. The electronic device 200 can display a user interface 1540. The user interface 1540 can include a screen 1541 (also referred to as a second area), which is a screen displayed after the page in the user interface 1520 slides down.
[0182] Take function 8, which is the function of long-distance handwriting, as an example. Figure 11Q As shown, the electronic device 200 can display a user interface 1520. For the description of the user interface 1520, please refer to the aforementioned Figure 11Q The description of the embodiment shown is not repeated here. The stylus 100 may receive an input 5 acting on the front area of the touch sensor 44, for example, pressing the front area while Figure 11R The stylus pen 100 shown moves. When the stylus pen 100 moves, the stylus pen 100 can obtain displacement information 2 of the stylus pen 100 through the gyroscope. Then, when the stylus pen 100 moves, in response to the input 5, the stylus pen 100 can obtain the corresponding function signal 8. The stylus pen 100 can send the function signal 8 and the displacement information 2 to the electronic device 200 based on the Bluetooth connection.
[0183] like Figure 11R As shown, the electronic device 200 can perform the corresponding function 8 based on the function signal 8 and the displacement information 2, so that the handwriting trace is displayed on the display screen. The electronic device 200 can display the user interface 1550, and the user interface 1550 includes the handwriting 1551A. The shape of the handwriting 1551A is the same as the displacement trajectory of the stylus 100.
[0184] Take function 9 as an example, which is a function of starting a specified application. For example, in the embodiment of the present application, the specified application may be a painting application. The electronic device 200 may display the following Fig.11I The user interface 1500 shown in FIG. 15 is a diagram of a stylus 100. The stylus 100 may receive an input 6 for the stylus 100, for example, a long press on the touch sensor 44 area, and the stylus 100 detects the shaking operation of the stylus 100 through the acceleration sensor. In response to the input 6, the stylus 100 may obtain a function signal 9 corresponding to the input 6, and send the function signal 9 to the electronic device 200 based on the Bluetooth connection. After receiving the function signal 9, the electronic device 200 may start the drawing application. The electronic device 200 may display the following: Fig.11L User interface 1520 is shown.
[0185] It should be noted that the designated application is not limited to a drawing application, but may also be other applications (e.g., a calendar application, a theme application, or a weather application, etc.). The designated application may be preset, for example, it may be set in advance by a user or by a system. The stylus pen 100 may receive an input 6 for the stylus pen 100, and based on the input 6, the electronic device 200 may start the designated application.
[0186] In some embodiments, when the stylus pen 100 does not detect a touch operation on the touch sensor 44 area, the movement of the stylus pen 100 does not trigger the electronic device 200 to perform any operation.
[0187] For example, Figure 11S As shown, the electronic device 200 can display a user interface 1520. For the description of the user interface 1520, please refer to the aforementioned Fig.11L The description of the embodiment shown is not repeated here. When the touch operation does not act on the touch sensor 44 area, the stylus 100 cannot detect that there is no operation on the touch sensor 44 area. Figure 11T As shown, when the stylus pen 100 moves, it will not trigger the electronic device 200 to perform any operation. The electronic device 200 displays and Figure 11S The user interface shown is the same as user interface 1520 .
[0188] The following describes a specific process of a function mode switching method provided in an embodiment of the present application.
[0189] Please refer to Fig.12 , Fig.12 A specific flow chart of a function mode switching method provided in an embodiment of the present application is exemplified.
[0190] The method may specifically include:
[0191] S1201 : The stylus pen 100 and the electronic device 200 establish a wireless communication connection.
[0192] Specifically, the embodiment of the present application takes Bluetooth connection as an example. The electronic device 200 can detect or scan the stylus 100 by transmitting a signal through the Bluetooth module, establish a wireless communication connection with the stylus 100 and transmit data. Among them, the Bluetooth module can provide a solution including one or more Bluetooth communications in classic Bluetooth (Bluetooth 2.1 standard) or Bluetooth low energy.
[0193] In some embodiments, the electronic device 200 may also transmit signals through the WLAN module to detect or scan the stylus 100, establish a wireless communication connection with the stylus 100, and transmit data. The WLAN module may provide a solution for WLAN communication including one or more of Wi-Fidirect, Wi-Fi LAN, or Wi-Fi softAP.
[0194] In other embodiments, the stylus 100 may also establish a wireless communication connection with the electronic device 200 through data exchange of wireless communication such as frequency modulation (FM), near field communication (NFC) or infrared (IR), etc. This application does not limit this.
[0195] S1202 : The stylus pen 100 detects a first input from a user on the stylus pen 100 .
[0196] Specifically, the first input may be the aforementioned Figures 11A-11T Input 1, input 2 or input 3 in the illustrated embodiment, for example, single touch, double touch, multi-touch, upward sliding operation, downward sliding operation, short press, long press, etc., acting on the touch sensor area. Among them, single touch can be understood as touching once, double touch can be understood as touching twice, and multi-touch can be understood as touching N times, where N is an integer greater than 2. Short press can be a time length of touching the sensor that is less than a first preset time length, and long press can be a time length of touching the sensor that is longer than a second preset time length, where the first preset time length is less than the second preset time length.
[0197] The stylus pen 100 can collect the user's operation data on the stylus pen 100 through the touch sensor, and then send the operation data to the processor. The processor can detect the user's first input based on the user's operation data, so that the stylus pen 100 detects the user's first input on the stylus pen 100.
[0198] S1203: The stylus pen 100 generates a first function signal corresponding to the first input in the first mode based on the first input.
[0199] Specifically, the stylus pen 100 may be in the first mode.
[0200] In the first mode, the first input corresponds to a first functional signal, and the first functional signal corresponds to a first function. The first functional signal may be the aforementioned Figures 11A-11T In the embodiment shown, the first function may be the function signal 1, the function signal 2 or the function signal 3. Figures 11A-11TFunction 1, function 2 or function 3 in the illustrated embodiment, for example, an eraser function, a page turning function to display the previous page or a page turning function to display the next page, etc.
[0201] When the stylus pen 100 detects the first input, the stylus pen 100 may generate a first function signal corresponding to the first input in the first mode.
[0202] S1204 : The stylus pen 100 sends a first function signal to the electronic device 200 .
[0203] Specifically, in the first mode, the stylus pen 100 may send a first function signal to the electronic device 200 via the wireless communication connection established in the aforementioned step S1201.
[0204] In the embodiment of the present application, the wireless communication connection takes Bluetooth connection as an example. Specifically, both the stylus 100 and the electronic device 200 may store: in the first mode, the mapping relationship between each input (for example, the first input, etc.), the function signal (for example, the first function signal), the identifier in the function signal (for example, the first identifier in the first function signal, etc.) and the function (for example, the first function corresponding to the first function signal, etc.). Among them, the identifier in the function signal may be the name, number, etc. of the function. When the stylus 100 detects the user's input to the stylus 100, it can determine the identifier in the function signal sent to the electronic device 200 based on the input and the above mapping relationship. After receiving the identifier in the function signal, the electronic device 200 can determine which function needs to be executed based on the identifier and the above mapping relationship.
[0205] For example, when the stylus pen 100 receives the first input of the user to the stylus pen 100, the stylus pen 100 can determine the first function signal to be sent to the electronic device 200 based on the first input in the first mode and the above-mentioned stored mapping relationship. The stylus pen 100 can send the first function signal through the Bluetooth module. The first function signal is a Bluetooth signal. The first function signal includes a first identifier.
[0206] S1205: After the electronic device 200 receives the first function signal, the electronic device 200 executes the first function based on the first function signal.
[0207] Specifically, the electronic device 200 may determine the first function to be executed through the first identifier in the first function. Then the electronic device 200 may execute the first function.
[0208] For example, Figure 11A-11BTaking the illustrated embodiment as an example, the first input is double-clicking the touch sensor area, the first function signal is function signal 1, and the first function is an eraser function. The electronic device 200 can receive the first function signal sent by the stylus 100 through a wireless communication connection (for example, a Bluetooth connection). Among them, the first function signal includes a first identifier. The electronic device 200 can determine the first function executed based on the first identifier. In this implementation, the stylus 100 can continuously send a downlink signal to the electronic device 200 through an electrode. When the electronic device 200 receives the first function signal through a wireless communication connection (for example, a Bluetooth connection), the electronic device 200 can determine the position of the stylus 100 on the touch screen based on the downlink signal sent from the electrode of the stylus 100, and then erase the handwriting at the corresponding position.
[0209] S1206 . When the stylus pen 100 detects that the strength of the designated signal 1 sent by the electronic device 200 is less than the designated value 1 , the stylus pen 100 switches from the first mode to the second mode.
[0210] Specifically, the stylus pen 100 may also detect the strength of a designated signal 1 (e.g., the uplink signal mentioned above) sent by the electronic device 200. When the strength of the designated signal 1 is detected to be less than a designated value 1 (e.g., -50dbm), the stylus pen 100 may switch from the first mode to the second mode.
[0211] Exemplarily, the designated signal 1 may be an uplink signal sent by the electrode signal sensing array 202 in the touch screen of the electronic device 200, and the designated value 1 may be -50dbm. The electrodes 160 in the stylus pen 100 may detect the strength of the uplink signal sent by the electrode signal sensing array 202 in the touch screen of the electronic device 200. When the stylus pen 100 detects that the strength of the electrical signal is less than -50dbm, the stylus pen 100 switches from the first mode to the second mode.
[0212] In a possible implementation, the stylus pen 100 may detect a designated switching operation 1 performed by a user on the stylus pen 100, and in response to the designated switching operation 1, the stylus pen 100 may switch a functional mode (e.g., from a first mode to a second mode, or from a second mode to a first mode). The designated operation 1 may be, for example, a multiple touch operation on the touch sensor 44 area (e.g., continuously touching the touch sensor 44 area on the stylus pen 100 three times), a long press operation on the touch sensor 44 area, etc. This application does not limit this.
[0213] In a possible implementation, the electronic device 200 may detect the electrical signal released by the electrode in the stylus 100. When the electronic device 200 determines that the electrical signal released by the electrode in the stylus 100 is less than a specified value 1 (e.g. -50dbm), a function mode switching instruction 1 may be sent to the stylus 100 via a wireless communication connection, so that the stylus 100 may switch from the first mode to the second mode based on the function mode switching instruction 1. When the electronic device 200 determines that the electrical signal released by the electrode in the stylus 100 is greater than a specified value 1, a function mode switching instruction 2 may be sent to the stylus 100 via a wireless communication connection, so that the stylus 100 may switch from the second mode to the first mode based on the function mode switching instruction 2.
[0214] S1207 : The stylus pen 100 detects a second input from the user on the stylus pen 100 .
[0215] Specifically, the second input may be the aforementioned Figures 11A-11T Input 4, Input 5 or Input 6 in the embodiment shown.
[0216] The stylus pen 100 can collect the user's operation data on the stylus pen 100 through the touch sensor, and collect the displacement data of the stylus pen 100 through the gyroscope sensor, and then send the operation data and displacement data to the processor. The processor can detect the user's second input based on the user's operation data and displacement data, so that the stylus pen 100 detects the user's second input to the stylus pen 100. That is, when the stylus pen 100 detects the user's operation on the touch sensor 44 area and the stylus pen 100 moves, the stylus pen 100 determines the user's second input to the stylus pen 100, so that the stylus pen 100 can perform subsequent operations based on the second input.
[0217] S1208. The stylus pen 100 generates a second function signal corresponding to the second input in the second mode based on the second input.
[0218] Specifically, the stylus pen 100 is in the second mode.
[0219] In the second mode, the second input corresponds to a second function signal, and the second function signal corresponds to a second function. The second function signal may be the aforementioned Figures 11A-11T In the embodiment shown, the function signal 4, the function signal 8 or the function signal 9. The second function may be the aforementioned Figures 11A-11T Function 4, function 8 or function 9 in the illustrated embodiment, for example, includes a function of moving a cursor, a function of long-distance handwriting, and a function of starting a specified application.
[0220] When the stylus pen 100 detects the second input, the stylus pen 100 may generate a second function signal corresponding to the second input in the second mode.
[0221] S1209 : The stylus pen 100 obtains position information of the stylus pen 100 through the first sensor.
[0222] Specifically, the first sensor may be a gyroscope sensor. The stylus pen 100 may obtain the position information of the stylus pen 100 when it moves through the gyroscope sensor, and then the stylus pen 100 may send the obtained position information to the electronic device 200 at a specified period (for example, 0.1 seconds). The position information may be the aforementioned Figures 11A-11T Displacement information 1 or displacement information 2 in the illustrated embodiment.
[0223] In a possible implementation, the first sensor may also be an accelerometer. The stylus pen 100 may obtain position information of the stylus pen 100 when it moves through the accelerometer, and send the obtained position information to the electronic device 200 every specified period (for example, 0.1 seconds).
[0224] S1210 : The stylus pen 100 sends a second function signal and position information to the electronic device 200 .
[0225] Specifically, in the second mode, the stylus pen 100 may send the second function signal and the position information to the electronic device 200 via the wireless communication connection established in the aforementioned step S1201.
[0226] In the embodiment of the present application, the wireless communication connection takes Bluetooth connection as an example. Specifically, both the stylus 100 and the electronic device 200 may store: in the second mode, the mapping relationship between each input (for example, the second input, etc.), the function signal (for example, the second function signal), the identifier in the function signal (for example, the second identifier in the second function signal, etc.) and the function (for example, the second function corresponding to the second function signal, etc.). Among them, the identifier in the function signal may be the name, number, etc. of the function. When the stylus 100 detects the user's input to the stylus 100, it can determine the identifier in the function signal sent to the electronic device 200 based on the input and the above mapping relationship. After receiving the identifier in the function signal, the electronic device 200 can determine which function needs to be executed based on the identifier and the above mapping relationship.
[0227] For example, when the stylus pen 100 receives the second input from the user to the stylus pen 100, the stylus pen 100 can determine the second function signal to be sent to the electronic device 200 based on the first input in the second mode and the above-mentioned stored mapping relationship. The stylus pen 100 can send the second function signal and location information through the Bluetooth module. The second function signal is a Bluetooth signal. The second function signal includes a second identifier.
[0228] S1211. After receiving the second function signal and the location information, the electronic device 200 executes the second function based on the second function signal and the location information.
[0229] Specifically, the electronic device 200 may determine the executed second function through the second identifier in the second function, and then the electronic device 200 may execute the second function based on the location information.
[0230] For example, Figure 11I-11J For example, the second input is to press and hold the rear area. Fig.11J The stylus pen 100 shown moves, the third function signal is function signal 4, and the second function is to move the cursor. The electronic device 200 can receive the second function signal and position information sent by the stylus pen 100 through a wireless communication connection (for example, a Bluetooth connection). The second function includes a second identifier, so that the electronic device 200 determines the second function to be executed based on the second identifier. Then, the electronic device 200 can execute the second function based on the position information, so that the cursor and the movement effect of the cursor are displayed on the display screen.
[0231] In some embodiments, the electronic device 200 and the stylus pen 100 may also store: a mapping relationship between the first input, the third function signal, the third identifier in the third function signal and the third function in the second mode. That is to say, the stylus pen 100 can receive the first input in both the first mode and the second mode. In different modes, the stylus pen 100 can generate different function signals based on the first input, so that the electronic device 200 performs different functions based on different function signals. Different from the first mode, in the second mode, the first input corresponds to the third function signal and the third function. Among them, the third function signal is different from the aforementioned first function signal, and the third function is different from the aforementioned first function. Among them, the third identifier in the third function signal can be the name, number, etc. of the function. When the stylus pen 100 detects the first input of the user to the stylus pen 100, it can determine the third function signal and the third identifier therein to be sent to the electronic device 200 according to the input and the above mapping relationship. After receiving the third identifier in the third function signal, the electronic device 200 can perform the third function according to the identifier and the above mapping relationship.
[0232] For example, Figure 11K-11L For example, the first input may be a double-click on the touch sensor area. Different from the first mode, the third function signal corresponding to the first input in the second mode is function signal 5, and the third function is to start the selected application. The electronic device 200 may receive the third function signal sent by the stylus 100 through a wireless communication connection (for example, a Bluetooth connection). The third function signal includes a third identifier. The electronic device 200 may determine the third function to be executed based on the third identifier, that is, to start the selected painting application. In the first mode, Figure 11A-11B As shown, the function executed by the electronic device 200 corresponding to the first input is an eraser function.
[0233] It should be noted that the sequence of the above steps is only used to exemplify the specific process of this method and does not constitute a specific limitation to this application.
[0234] It should be noted that the above user interface examples are only used to explain the present application and should not constitute a limitation on the present application.
[0235] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.
[0236] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0237] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
Claims
1. A function mode switching method, applied to a communication system including a stylus pen and an electronic device, characterized in that: The method comprises: The stylus pen and the electronic device establish a wireless communication connection; The stylus is in a first mode; The stylus detects a first input; In response to the first input, the stylus sends a first function signal corresponding to the first input in the first mode; The electronic device performs a first function based on the first function signal; When the stylus detects that the tip of the stylus is facing upward and detects an up-and-down sliding operation on the first touch area, the stylus switches from the first mode to the second mode in response to the up-and-down sliding operation; The stylus detects a second input acting on the first touch area; wherein the first input and the second input are the same; The stylus detects position information of the stylus; In response to the second input, the stylus sends a second function signal and the position information corresponding to the second input in the second mode; The electronic device performs a second function based on the second function signal and the location information, wherein the first function and the second function are different.
2. The method according to claim 1, characterized in that The wireless communication connection is: Bluetooth communication connection, or wireless local area network WLAN communication connection.
3. The method according to claim 1, characterized in that: The first input includes any one of the following: An upward sliding operation on the touch sensor area of the stylus pen, a downward sliding operation on the touch sensor area of the stylus pen, or a double-clicking operation on the touch sensor area.
4. The method according to claim 1, characterized in that Before the electronic device performs the first function based on the first function signal, the method further includes: The electronic device displays handwriting; The electronic device performs a first function based on the first function signal, specifically including: The electronic device receives the first function signal; The electronic device determines the position of the stylus on the touch screen of the electronic device through the downlink signal sent by the electrodes in the stylus; The electronic device cancels display of the handwriting at the position on the touch screen based on the first function signal.
5. The method according to claim 1, characterized in that Before the electronic device performs the first function based on the first function signal, the method further includes: The electronic device displays a first page; The electronic device performs a first function based on the first function signal, specifically including: The electronic device receives the first function signal; In response to the first function signal, the electronic device displays a second page; wherein the second page is a previous page of the first page.
6. The method according to claim 1, characterized in that Before the electronic device performs the first function based on the first function signal, the method further includes: The electronic device displays a first page; The electronic device performs a first function based on the first function signal, specifically including: The electronic device receives the first function signal; In response to the first function signal, the electronic device displays a third page; wherein the third page is a subsequent page of the first page.
7. The method according to claim 1, characterized in that The electronic device performs a second function based on the second function signal and the location information, specifically including: Based on the second function signal and the position information, the electronic device displays the handwriting at the position corresponding to the position information.
8. The method according to claim 1, characterized in that Before the electronic device performs a second function based on the second function signal and the location information, the method further includes: The electronic device displays a cursor; The electronic device performs a second function based on the second function signal and the location information, specifically including: The electronic device displays a cursor movement track at a position corresponding to the position information based on the second function signal and the position information.
9. The method according to claim 1, characterized in that: The second input includes any one of the following: Press and hold the front area of the touch sensor in the stylus and move the stylus, press and hold the back area of the touch sensor in the stylus and move the stylus, slide upward on the touch sensor area in the stylus, slide downward on the touch sensor area in the stylus, or double-click the touch sensor area.
10. The method according to claim 7, characterized in that The position information is detected and acquired by a gyroscope in the stylus.
11. The method according to claim 1, characterized in that: The method further comprises: The stylus detects the first input; In response to the first input, the stylus sends a third function signal corresponding to the first input in the second mode based on the wireless communication connection; The electronic device performs a third function based on the third function signal.
12. The method according to claim 11, characterized in that The electronic device performs a third function based on the third function signal, specifically including: The electronic device displays a cursor, and the cursor is located in an application icon area of the first application; The electronic device receives the third function signal; In response to the third function signal, the electronic device starts the first application.
13. The method according to claim 11, characterized in that The electronic device performs a third function based on the third function signal, specifically including: The electronic device displays a first page; The electronic device receives the third function signal; In response to the third function signal, the electronic device displays a first area in a first page; wherein the first area is an upper area in the first page.
14. The method according to claim 11, characterized in that The electronic device performs a third function based on the third function signal, specifically including: The electronic device displays a first page; The electronic device receives the third function signal; In response to the third function signal, the electronic device displays a second area in the first page; wherein the second area is a lower area in the first page.
15. A touch pen, characterized in that: include: Processor, touch sensor, motion sensor and wireless communication module: The wireless communication module is used to establish a wireless communication connection with the electronic device; The touch sensor is used to detect a first input; The wireless communication module is configured to send a first function signal corresponding to the first input in a first mode in response to the first input; The motion sensor is used to detect that the tip of the stylus pen is facing upwards; The touch sensor is further used to detect an up and down sliding operation acting on the first touch area; The processor is configured to control the stylus pen to switch from the first mode to the second mode in response to the up and down sliding operation; The touch sensor is further used to detect a second input acting on the first touch area; wherein the first input and the second input are the same; The motion sensor is used to detect the position information of the stylus; The wireless communication module is further configured to send, in response to the second input, a second function signal corresponding to the second input in the second mode and the location information to the electronic device.
16. The stylus pen according to claim 15, characterized in that: The first input includes any one of the following: An upward sliding operation on the touch sensor area of the stylus pen, a downward sliding operation on the touch sensor area of the stylus pen, or a double-clicking operation on the touch sensor area.
17. The stylus pen according to claim 15, characterized in that: The wireless communication connection is: Bluetooth communication connection, or wireless local area network WLAN communication connection.
18. The stylus pen according to claim 15, characterized in that: The second input includes any one of the following: Press and hold the front area of the touch sensor in the stylus and move the stylus, press and hold the back area of the touch sensor in the stylus and move the stylus, slide upward on the touch sensor area in the stylus, slide downward on the touch sensor area in the stylus, or double-click the touch sensor area.
19. The stylus pen according to claim 15, characterized in that: The stylus pen further includes an electrode; The electrodes are used to send downlink signals to the electronic device.
20. The stylus pen according to claim 15, characterized in that: The touch sensor is further used to detect the first input; The wireless communication module is further configured to send, in response to the second input, a third function signal corresponding to the first input in the second mode to the electronic device.
21. An electronic device, characterized in that: include: A processor, a touch screen, an electrode signal sensing array and a wireless communication module; wherein the electrode signal sensing array is integrated in the touch screen; The wireless communication module is used to establish a wireless communication connection with the stylus; The wireless communication module is further configured to receive a first function signal; wherein the first function signal corresponds to a first input received by the stylus; The processor is configured to execute a first function based on the first function signal; The electrode signal sensing array is used to send electrical signals to the stylus; The wireless communication module is further configured to receive a second function signal and position information of the stylus when the tip of the stylus is facing upward and the stylus detects an up-and-down sliding operation on the first touch area; wherein the second function signal corresponds to a second input received by the stylus on the first touch area, and the first input and the second input are the same; The processor is further configured to execute a second function based on the second function signal and the position information, wherein the first function and the second function are different.
22. The electronic device according to claim 21, characterized in that: The wireless communication connection is: Bluetooth communication connection, or wireless local area network WLAN communication connection.
23. The electronic device according to claim 21, characterized in that: The touch screen is used to display handwriting; When the wireless communication module receives the first function signal, the processor is specifically configured to: Determining the position of the stylus on the touch screen through the downlink signal sent by the electrodes in the stylus; Based on the first function signal, the handwriting at the position on the touch screen is canceled from being displayed.
24. The electronic device according to claim 21, characterized in that: The touch screen is used to display the first page; When the wireless communication module receives the first function signal, the processor is specifically configured to: In response to the first function signal, the touch screen displays a second page; wherein the second page is a previous page of the first page.
25. The electronic device according to claim 21, characterized in that: The touch screen is used to display the first page; When the wireless communication module receives the first function signal, the processor is specifically configured to: In response to the first function signal, the touch screen displays a third page; wherein the third page is a subsequent page of the first page.
26. The electronic device according to claim 21, characterized in that: The processor is specifically used to enable the touch screen to display the handwriting at the position corresponding to the position information based on the second function signal and the position information.
27. The electronic device according to claim 21, characterized in that The processor is specifically used for: The touch screen displays a cursor; Based on the second function signal and the position information, the touch screen displays a cursor movement track at a position corresponding to the position information.
28. The electronic device according to claim 21, characterized in that: The wireless communication module is further used to receive a third function signal; The processor is further configured to execute a third function based on the third function signal.
29. The electronic device according to claim 28, characterized in that The touch screen is used to display the first page; When the wireless communication module receives the third function signal, the processor is specifically configured to: In response to the third function signal, the touch screen displays a first area in a first page; wherein the first area is an upper area in the first page.
30. The electronic device according to claim 28, characterized in that The touch screen is used to display the first page; When the wireless communication module receives the third function signal, the processor is specifically configured to: In response to the third function signal, the touch screen displays a second area in the first page; wherein the second area is a lower area in the first page.
31. The electronic device according to claim 28, characterized in that The touch screen is used to display a cursor, and the cursor is located in the application icon area of the first application; When the wireless communication module receives the third function signal, the processor is specifically configured to: In response to the third function signal, the first application is started.
32. A computer storage medium, characterized in that The storage medium stores a computer program, wherein the computer program includes executable instructions. When the executable instructions are executed by a processor, the processor is enabled to perform the method according to any one of claims 1 to 14.
