CN114785000B - Charging method and device for electronic handwriting pen - Google Patents

Charging method and device for electronic handwriting pen Download PDF

Info

Publication number
CN114785000B
CN114785000B CN202210271373.7A CN202210271373A CN114785000B CN 114785000 B CN114785000 B CN 114785000B CN 202210271373 A CN202210271373 A CN 202210271373A CN 114785000 B CN114785000 B CN 114785000B
Authority
CN
China
Prior art keywords
electronic
preset
processor
wireless charging
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210271373.7A
Other languages
Chinese (zh)
Other versions
CN114785000A (en
Inventor
马成光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210271373.7A priority Critical patent/CN114785000B/en
Publication of CN114785000A publication Critical patent/CN114785000A/en
Application granted granted Critical
Publication of CN114785000B publication Critical patent/CN114785000B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • H02J50/80Circuit arrangements or systems for wireless supply or distribution of electric power involving the exchange of data, concerning supply or distribution of electric power, between transmitting devices and receiving devices
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • H02J50/60Circuit arrangements or systems for wireless supply or distribution of electric power responsive to the presence of foreign objects, e.g. detection of living beings
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • H02J7/007188Regulation of charging or discharging current or voltage the charge cycle being controlled or terminated in response to non-electric parameters

Abstract

The application provides a charging method and equipment for an electronic handwriting pen, relates to the technical field of electronics, and does not need to add a device for detecting the electronic handwriting pen when charging the electronic handwriting pen in electronic equipment, so that the space waste is reduced, and the cost is reduced. The method is applied to electronic equipment, the electronic equipment comprises a processor, a wireless charging module and a preset device, the preset device comprises a microphone and/or an acceleration sensor, the electronic equipment supports to store the electronic handwriting pen in a magnet adsorption mode, and the method comprises the following steps: responding to the startup of the electronic equipment, and triggering a preset device to acquire preset parameters in real time by a processor; when the preset device comprises a microphone, the preset parameters comprise sound parameters; when the preset device comprises an acceleration sensor, the preset parameters comprise acceleration parameters; if the preset parameters are matched with the preset parameters, the processor triggers the wireless charging module to wirelessly charge the electronic handwriting pen; the preset parameters are parameters generated when the electronic stylus is stored in the electronic equipment in a magnet adsorption mode.

Description

Charging method and device for electronic handwriting pen
Technical Field
The application relates to the technical field of electronics, in particular to a charging method and equipment for an electronic handwriting pen
Background
Along with the development of touch screen technology, electronic handwriting pens matched with the touch screen are also increasingly widely used. Electronic devices with touch screens typically support users in controlling the electronic device by touching the touch screen with an electronic stylus.
Most current electronic pens support wireless charging of the electronic pen by the electronic device. Specifically, the electronic device may automatically wirelessly charge the electronic stylus when detecting that the electronic stylus is stored in a designated position of the electronic device.
In the related art, it is necessary to provide a specific device in the electronic device, and interact with the device in the electronic stylus through the specific device, so as to implement detection of whether the electronic stylus is stored in a designated position of the electronic device by the electronic device, thereby determining whether to charge the electronic stylus. This approach requires the addition of devices to the electronic device, which not only occupies space in the electronic device, but is also costly.
Disclosure of Invention
The embodiment of the application provides a charging method and device for an electronic handwriting pen, which are used for solving the problems that a device for detecting the electronic handwriting pen in electronic equipment occupies space in the electronic equipment and causes high cost when the electronic equipment charges the electronic handwriting pen.
In order to achieve the above purpose, the embodiments of the present application adopt the following technical solutions:
in a first aspect, a charging method of an electronic handwriting pen is provided, the method is applied to electronic equipment, the electronic equipment comprises a processor, a wireless charging module and a preset device, the preset device comprises a microphone and/or an acceleration sensor, the microphone is used for collecting sound parameters around the electronic equipment, and the acceleration sensor is used for collecting acceleration parameters of the electronic equipment under the action of external force; the electronic device supports the electronic stylus to be accommodated in a magnet-attracted manner. The method comprises the following steps:
in response to the electronic device being powered on, the processor triggers the microphone to collect sound parameters around the electronic device and/or to collect acceleration parameters of the electronic device subjected to external forces through the acceleration sensor. If the sound parameters are matched with the preset sound parameters and/or the acceleration parameters are matched with the preset acceleration parameters, the processor triggers the wireless charging module to wirelessly charge the electronic handwriting pen; the sound parameters and the acceleration parameters are respectively generated when the electronic handwriting pen is stored in the electronic equipment in a magnet adsorption mode.
According to the charging method of the electronic handwriting pen, corresponding parameters are collected through multiplexing devices commonly used in electronic equipment, whether preset parameters are matched with the preset parameters or not is judged, and therefore whether the wireless charging module is triggered to wirelessly charge the electronic handwriting pen or not is determined. The special device for interaction with the electronic handwriting pen is not required to be added in the electronic equipment, the occupation and waste of the space of the electronic equipment are reduced, and the cost of the electronic equipment can be reduced without adding a new special device.
With reference to the first aspect, in one possible implementation manner, the electronic device further includes a battery. In response to powering on the electronic device, the processor controls the battery to power the wireless charging module and initializes the wireless charging module. After the wireless charging module is initialized, the processor triggers the preset device to start to acquire preset parameters in real time through the control instruction. Therefore, after the electronic equipment is started, the electronic handwriting pen is stored in the electronic equipment, wireless charging can be obtained from the electronic equipment, and the cruising of the electronic handwriting pen is ensured.
In some possible embodiments, if the preset parameter matches the preset parameter, the processor triggers the wireless charging module to wirelessly charge the electronic stylus by sending an interrupt signal to the wireless charging module.
With reference to the first aspect, in another possible implementation manner, after the processor triggers the wireless charging module to wirelessly charge the electronic stylus, the method further includes: if the wireless charging module and the electronic handwriting pen are detected to be failed in charging interaction, the processor triggers the wireless charging module to stop charging the electronic handwriting pen wirelessly. Therefore, the wireless charging module of the electronic equipment can avoid wasting electric energy due to invalid charging.
With reference to the first aspect, in another possible implementation manner, the triggering, by the processor, the wireless charging module to wirelessly charge the electronic handwriting pen may specifically be: the processor performs false triggering prevention judgment to obtain a judgment result of the false triggering prevention judgment; if the false triggering prevention judgment result is that false triggering is not generated, the processor triggers the wireless charging module to wirelessly charge the electronic handwriting pen. Therefore, the situation that false triggering is caused by error identification according to preset parameters can be reduced, and the waste of electric quantity of the electronic equipment is reduced.
With reference to the first aspect, in another possible implementation manner, the electronic device further includes a touch sensor, where the touch sensor is configured to collect a pen tip signal sent by a pen tip of the electronic stylus. The processor performs false triggering prevention judgment to obtain a judgment result of the false triggering prevention judgment, which may specifically be: the processor triggers the touch sensor to collect pen point signals sent by the pen point of the electronic handwriting pen; the pen point signal is used for determining the position of the pen point of the electronic handwriting pen; if the touch sensor collects the pen point signal of the electronic handwriting pen, the processor obtains the false triggering prevention judgment result that false triggering is not generated. Whether the touch sensor collects signals sent by the pen point of the electronic handwriting pen or not is determined to trigger by mistake, the situation that the mistake triggering is caused by mistake according to preset parameter identification can be reduced, and the waste of electric quantity of electronic equipment is reduced.
With reference to the first aspect, in another possible implementation manner, a proximity light sensor is disposed at a first preset position of the electronic device; the first preset position is a position on the electronic equipment, which is contacted with the electronic handwriting pen when the electronic equipment stores the electronic handwriting pen. The processor performs false triggering prevention judgment to obtain a judgment result of the false triggering prevention judgment, which may specifically be: the processor triggers the proximity light sensor to collect the light signal at the first preset position; the processor determines whether shielding exists at a first preset position according to the light signals acquired by the proximity light sensor; if yes, the processor obtains the false triggering prevention judgment result that false triggering is not caused. The processor determines whether the first preset position is shielded or not through the light signals collected by the proximity light sensor arranged at the first preset position, so that whether false triggering is determined or not is determined, the situation that false triggering is caused by error recognition according to preset parameters can be reduced, and the waste of electric quantity of the electronic equipment is reduced.
With reference to the first aspect, in another possible implementation manner, a pressure sensor is provided at a second preset position of the electronic device; the second preset position is a position on the electronic equipment, which is contacted with the electronic handwriting pen when the electronic equipment stores the electronic handwriting pen; the processor performs false triggering prevention judgment to obtain a judgment result of the false triggering prevention judgment, which may specifically be: the processor triggers the pressure sensor to collect pressure parameters of a second preset position; if the pressure parameter acquired at the second preset position is greater than the preset pressure threshold, the processor obtains the false triggering prevention judgment result that false triggering is not generated. The processor determines whether the false triggering is performed or not by determining whether the pressure parameter acquired by the pressure sensor arranged at the second preset position is larger than the preset pressure preset, so that the false triggering caused by the false recognition according to the preset parameter can be reduced, and the waste of electric quantity of the electronic equipment is reduced.
With reference to the first aspect, in another possible implementation manner, the preset parameter is matched with the preset parameter, which may specifically be: the preset parameters acquired by the preset device in the preset time length are matched with the preset parameters. By collecting the preset parameters in the preset time length and matching the preset parameters, the situation that the wireless charging module is triggered to charge the electronic handwriting pen due to the fact that other preset parameters are matched with the preset parameters by mistake can be reduced, namely false triggering is reduced, and accordingly waste of electric quantity of electronic equipment is reduced.
In a second aspect, the present application provides an electronic device comprising: one or more processors, a wireless charging module, a preset device, a memory and a battery; the wireless charging module, the preset device, the memory and the battery are coupled with the processor; the preset device comprises a microphone and/or an acceleration sensor, wherein the microphone is used for collecting sound parameters around the electronic equipment, and the acceleration sensor is used for collecting acceleration parameters of the electronic equipment under the action of external force; the battery is used for supplying power to other devices in the electronic equipment; the wireless charging module is used for supporting the electronic equipment to wirelessly charge other electronic equipment. The memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the first electronic device to perform the method of charging an electronic stylus as in the first aspect or any of the possible implementations of the first aspect.
In a third aspect, the present application provides a computer readable storage medium having stored therein computer instructions which, when run in a computer, cause the computer to perform the method of charging an electronic stylus as in the first aspect or any of the possible implementations of the first aspect.
The technical effects caused by any one of the design manners of the second aspect and the third aspect may refer to the technical effects caused by the different design manners of the first aspect, which are not repeated herein.
Drawings
Fig. 1 is a schematic diagram of an electronic device accommodating an electronic handwriting pen according to an embodiment of the present application;
fig. 2 is a schematic setting diagram of a preset device of an electronic device according to an embodiment of the present application;
fig. 3 is a schematic system architecture diagram of a wireless charging system according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5A is a flowchart illustrating a charging method of an electronic stylus according to an embodiment of the present application;
fig. 5B is a flowchart illustrating a charging method of an electronic stylus according to another embodiment of the present disclosure;
fig. 6 is a flowchart illustrating a charging method of an electronic stylus according to another embodiment of the present application;
Fig. 7A is a flowchart illustrating a charging method of an electronic stylus according to an embodiment of the present application;
fig. 7B is a flowchart illustrating a charging method of an electronic stylus according to another embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a chip system according to an embodiment of the present application.
Detailed Description
The application provides a charging method of an electronic handwriting pen, wherein the electronic handwriting pen can be stored in a magnet adsorption mode by electronic equipment; and, this electronic stylus can support electronic equipment to charge its wireless. Specifically, after the electronic device stores the electronic handwriting pen in a magnet adsorption manner, the electronic device can charge the electronic handwriting pen wirelessly.
By way of example, the electronic device may be a cell phone, tablet, notebook, tablet, or the like. For example, as shown in fig. 1, an electronic device (such as a tablet computer) 100 may store an electronic stylus 200 on a side frame of the electronic device 100 in a magnet-attracted manner.
It should be understood that when the electronic stylus 200 is stored in the electronic device (e.g., tablet computer) 100 in a manner of being attracted by a magnet, the pen body of the electronic stylus 200 may collide with the side frame of the electronic device 100, so that an impact sound (e.g., a "whipping") may be generated. Alternatively, the body of the electronic stylus 200 may collide with the side frame of the electronic device 100, and an impact force may be generated. In the embodiment of the present application, the electronic device 100 may use the impact sound and/or the impact force to detect whether the electronic pen 200 is attached to the electronic device 100, so as to determine whether to wirelessly charge the electronic pen 200.
Specifically, in the embodiment of the present application, the impact sound may be collected by using a microphone in the electronic apparatus 100 as shown in fig. 2. The microphones may be disposed at any position on the electronic device 100, and the number of microphones may be set according to actual situations. The microphone may be used to capture sound parameters around the electronic device 100. For example, as shown in fig. 2, 2 microphones are provided on a side frame of the electronic apparatus 100, and these 2 microphones can be used to detect the above-described impact sound.
In other embodiments, the impact force may be detected by acquiring acceleration parameters of the electronic device 100 when the electronic device 100 receives the impact force using an acceleration sensor (gsnor) provided in the electronic device 100 as shown in fig. 2. The acceleration sensor may be disposed at any position in the electronic device 100, and the number of acceleration sensors may be set according to actual situations. The acceleration sensor may be used to collect acceleration parameters of the electronic device 100 that are subject to external forces. For example, as shown in fig. 2, 1 acceleration sensor is provided near a side frame of the electronic device 100, for detecting an acceleration parameter when the electronic device 100 receives the impact force, thereby detecting the impact force.
The side frame of the electronic device (such as a tablet pc) 100 is provided with a wireless charging coil. After the electronic stylus 200 is adsorbed on the side frame of the tablet computer, the tablet computer can wirelessly charge the electronic stylus 200 through the wireless charging coil. Of course, the body of the electronic stylus 200 is also provided with a wireless charging coil. Thus, the wireless charging coil of the tablet computer can be coupled with the wireless charging coil of the electronic stylus 200, and the tablet computer can transmit a wireless charging signal to the electronic stylus 200 through the wireless charging coil so as to wirelessly charge the electronic stylus.
Referring to fig. 3, a system architecture diagram of a wireless charging system 300 according to an embodiment of the disclosure is shown. The wireless charging system 300 includes an electronic device 100 and an electronic stylus 200.
As shown in fig. 3, the electronic device 100 includes: battery 110, charge control module 120, wireless charge control module 130, wireless charging coil 140, and charging interface 150. The electronic stylus 200 includes: battery 210, charge control module 220, wireless charge control module 230, and wireless charging coil 240.
In this embodiment, the electronic device 100 is used as a transmitting end of the wireless charging signal, the electronic stylus 200 is used as a receiving end of the wireless charging signal, and the electronic device 100 charges the electronic stylus 200 wirelessly. Accordingly, as shown in fig. 3, the wireless charging coil 140 of the electronic device 100 may be referred to as a transmitting (Tx) coil, and the wireless charging coil 240 of the electronic stylus 200 may be referred to as a receiving (Rx) coil.
The charging control module 120 may be a charger (charger) of the electronic device 100, and the wireless charging control module 130 may be a wireless charging chip (such as a Tx chip). The charging control module 220 may be a charger of the electronic stylus 200, and the wireless charging control module 130 may be a wireless charging chip (e.g. Rx chip).
The function of the electronic device 100 to wirelessly charge the electronic pen 200 through the wireless charging coil is referred to as a "reverse wireless charging function". Generally, the reverse wireless charging function of the electronic device 100 is turned off by default. In this embodiment, after the electronic stylus 200 is attracted to the electronic device 100 in a magnet attraction manner, the electronic device may start the reverse wireless charging function to wirelessly charge the electronic stylus 200.
After the reverse wireless charging function of the electronic device 100 is turned on, the wireless charging control module 130 of the electronic device 100 may receive the dc signal input by the charging interface 150. The wireless charging control module 130 may convert the direct current signal into an alternating electrical signal and then input the alternating electrical signal to the wireless charging coil 140. The wireless charging coil 140 may generate an alternating electromagnetic field in response to the alternating electrical signal.
The wireless charging coil 240 of the electronic stylus 200 is coupled with the wireless charging coil 140 of the electronic device 100. The wireless charging coil (i.e., rx coil) 240 senses an alternating electromagnetic field emitted from the wireless charging coil (i.e., tx coil) 140, may generate an alternating electrical signal, and inputs the alternating electrical signal to the wireless charging control module 230. The wireless charging control module 230 may rectify the alternating electrical signal into a direct electrical signal and input the direct electrical signal to the charging control module 220. The charge control module 220 may charge the battery 210 according to the direct current signal.
The wireless charging control module 130 and the wireless charging control module 230 may include matching circuits. The matching circuit may include a capacitive combination. The matching circuit in the wireless charging control module 130 is configured to form LC resonance with the wireless charging coil 140, so as to improve the emission efficiency of the wireless charging coil 140. The matching circuit in the wireless charging control module 230 is configured to form LC resonance with the wireless charging coil 240, so as to improve the receiving efficiency of the wireless charging coil 240.
Of course, the electronic device 100 may also receive wireless charging input of other devices through the wireless charging coil 140, that is, the electronic device 100 supports forward wireless charging. The principle of forward wireless charging of the electronic device 100 may refer to the principle of wireless charging of the electronic stylus 200 in the process of wireless charging of the electronic device 100 for the electronic stylus 200.
The electronic device 100 may also support wired charging. For example, when a power adapter 160 (i.e., a wired charger) to which a power supply is connected to the charging interface 150, there is a charging input on the charging interface 150. The charging control module 120 is connected to the charging interface 150, and is configured to receive a charging input from the power adapter 160 through the charging interface 150 to charge the battery 110. For example, the charging interface 150 may be a USB interface.
In some embodiments, electronic stylus 200 may also support wired charging. For example, electronic stylus 200 may also include a charging interface (not shown in the figures). The charging interface is used for being connected with a power adapter to charge the electronic stylus 200 in a wired manner.
It should be noted that fig. 3 only shows a schematic diagram of one possible charging circuit structure of the electronic device 100 and the electronic stylus 200. The charging circuit structures of the electronic device 100 and the electronic stylus 200 in the embodiment of the present application include, but are not limited to, the structures shown in fig. 3. For example, the functions of the charge control module 120 and the wireless charge control module 130 shown in fig. 3 may be integrated into one charge management module. As another example, the electronic device 100 may also include a processor coupled to the charge control module 120, the wireless charge control module 130, and the charge interface 150. The processor is configured to detect whether the charging interface 150 has a charging input. The processor is further configured to control the charge control module 120 and/or the wireless charge control module 130 to operate, so as to implement a wired charging function and/or a reverse wireless charging function of the electronic device 100. The wireless charging control module 130 and the Tx coil 140 shown in fig. 3 may be collectively referred to as a wireless charging module of the electronic device 100. The wireless charging control module 230 and the Rx coil 140 shown in fig. 3 may be collectively referred to as a wireless charging module of the electronic stylus 200.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application. In this embodiment, the electronic device 100 is taken as a tablet pc 101 as an example. As shown in fig. 4, the tablet 101 may include a processor 410, a memory 420, a microphone 430, a sensor module 440, a universal serial bus (universal serial bus, USB) interface 450, a charge management module 460, a power management module 461, a battery 462, a wireless charging coil 463, an antenna, a communication module 470, a display screen 480, and the like. Wherein the sensor module 440 may include a pressure sensor 440A, an acceleration sensor 440B, a proximity light sensor 440C, a touch sensor 440D, etc.
It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the tablet pc 101. In other embodiments, tablet 101 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 410 may include one or more processing units, such as: the processor 410 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the tablet computer 101, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 410 for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. The memory may hold instructions or data that the processor 410 has just used or recycled.
In some embodiments, processor 410 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a USB interface 450, among others.
It should be understood that the connection relationship between the modules illustrated in this embodiment is only illustrative, and does not limit the structure of the tablet pc 101. In other embodiments, the tablet computer 101 may also use different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The memory 420 may be used for storing program codes, such as program codes for wirelessly charging the electronic stylus 200, and the like. Memory 420 may also have stored therein a bluetooth address for uniquely identifying tablet computer 101.
Microphone 430, also referred to as a "microphone," is used to convert sound signals into electrical audio signals. When making a call or transmitting voice information, a user can sound near the microphone 430 through the mouth, inputting a sound signal to the microphone 430. Tablet 101 may be provided with at least one microphone 430. In other embodiments, the tablet computer 101 may be provided with two microphones 430, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the tablet pc 101 may further be provided with three, four or more microphones 430 to collect sound signals, reduce noise, identify the source of sound, implement directional recording functions, etc.
The pressure sensor 440A in the sensor module 440 is configured to sense a pressure signal, which may be converted into an electrical signal. In some embodiments, pressure sensor 440A may be disposed at display 480. The pressure sensor 440A is of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 440A. The tablet computer 101 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display 480, the tablet pc 101 detects the touch operation intensity from the pressure sensor 440A. Tablet computer 101 may also calculate the location of the touch based on the detection signal of pressure sensor 440A. For example, in the embodiment of the present application, a pressure sensor 440A may be disposed on a side frame of the tablet pc 101, for collecting a pressure corresponding to an impact force generated when the electronic stylus 200 is stored in the side frame of the tablet pc 101 in a manner of magnet attraction.
The acceleration sensor 440B may detect the magnitude of acceleration of the tablet computer 101 in various directions (typically three axes). The magnitude and direction of gravity can be detected when tablet computer 101 is stationary. The gesture recognition method can also be used for recognizing the gesture of the tablet personal computer 101, and can be applied to applications such as horizontal and vertical screen switching, pedometers and the like. In some possible embodiments, the acceleration sensor 440B may also be used to collect acceleration of the tablet computer 101 when subjected to external forces.
The proximity light sensor 440C may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. Tablet computer 101 emits infrared light outward through the light emitting diode. Tablet 101 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object near tablet computer 101. When insufficient reflected light is detected, tablet computer 101 may determine that there is no object in the vicinity of tablet computer 101. The tablet computer 101 can detect that the user holds the tablet computer 101 close to the ear to talk by using the proximity light sensor 440C, so as to automatically extinguish the screen to achieve the purpose of saving electricity. The proximity light sensor 440C may also be used in holster mode, pocket mode to automatically unlock and lock the screen. For example, in the embodiment of the present application, a proximity light sensor 440C may be disposed on a side frame of the tablet computer 101, so as to collect a change of shielding corresponding light signals generated when the electronic stylus 200 is stored in the side frame of the tablet computer 101 in a manner of magnet attraction.
The touch sensor 440D may be disposed on the display 480, and the touch sensor 180K and the display 480 form a touch screen, which is also referred to as a "touch screen". The touch sensor 440D is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 480. In other embodiments, the touch sensor 440D may also be disposed on the surface of the tablet pc 101 at a different location than the display 480. For example, in the embodiment of the present application, a touch sensor may be disposed in the tablet computer 101, and the touch sensor is used to collect a pen tip signal sent by a pen tip of the electronic stylus 200 when the electronic stylus 200 is stored in the tablet computer 101 in a manner of magnet attraction.
The USB interface 450 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. USB interface 450 may be used to connect a charger to charge tablet computer 101, and may also be used to transfer data between tablet computer 101 and peripheral devices. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other tablet computers 101, such as AR devices and the like. In some embodiments, the USB interface may also be referred to as a charging interface, such as charging interface 150 shown in fig. 3.
The charge management module 460 is configured to receive a charge input of an external power source through the power adapter. The charging management module 460 may also provide power to the tablet 101 through the power management module 461 while charging the battery 462.
In other embodiments, tablet 101 may support charging electronic stylus 200 in a wireless charging manner. The charge management module 460 may make electrical signal inputs to the wireless charging coil 463. Specifically, the wireless charging coil 463 is connected with the charging management module 460 through a matching circuit. The wireless charging coil 463 may generate an alternating electromagnetic field in response to the alternating current signal input by the charging management module 460, so as to wirelessly charge the electronic stylus 200.
The power management module 461 is configured to connect the battery 462, and the charge management module 460 is configured to connect to the processor 410. While the charge management module 460 manages wireless charging of other electronic devices, the power management module 461 receives input from the battery 462 and/or charge management module 460, and provides power to the processor 410, memory 420, display 480, communication module 470, and the like. The power management module 461 may also be configured to monitor battery capacity, battery cycle times, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 461 may also be disposed in the processor 410. In other embodiments, the power management module 461 and the charge management module 460 may be provided in the same device.
The wireless communication function of the tablet computer 101 may be implemented by an antenna, a communication module 470, a modem processor, a baseband processor, and the like. The antenna is used for transmitting and receiving electromagnetic wave signals. The communication module 470 may be used to support data exchange between the tablet computer 101 and other electronic devices including Bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), frequency modulation (frequency modulation, FM), near field wireless communication technology (near fiel dcommunication, NFC), infrared technology (IR), and the like.
In the application scenario shown in fig. 1, a specific device is generally set in the tablet computer 101 in the related art, and it is determined whether the electronic stylus 200 is stored in a designated position of the tablet computer 101 through interaction between the specific device and the electronic stylus 200, if yes, the tablet computer 101 starts the wireless charging module to charge the electronic stylus 200. However, this solution requires a specific device to be disposed in the tablet pc 101, and the specific device occupies the space of the tablet pc 101, which may result in space waste of the tablet pc 101 and increase the cost of the tablet pc 101.
As can be seen from the above description, when the electronic stylus 200 is stored in the tablet computer 101 in a manner of being attracted by a magnet, an impact sound and/or an impact force will be generated. For electronic stylus 200, the weight of electronic stylus 200 is substantially constant and the amount of attraction of the magnet used for attraction in electronic stylus 200 is substantially constant. On the premise that the two parameters are basically unchanged, the impact sound and the impact force generated in the process of accommodating the electronic stylus in the tablet computer 101 in a magnet adsorption manner are basically unchanged or the change amount of the impact sound and the impact force is small. The magnitude of each impact sound and impact force can be stabilized substantially within a certain interval. Accordingly, in the embodiment of the present application, the impact sound and/or impact force may be collected, and the processor may identify whether the impact sound and/or impact force matches the impact sound and/or impact force generated when the electronic stylus 200 is stored in the tablet computer 101, so as to determine whether the electronic stylus 200 is stored in the tablet computer 101, and further determine whether to wirelessly charge the electronic stylus 200.
To avoid adding new devices to tablet computer 101, in the embodiment of the present application, detection of whether electronic stylus 200 is stored in a designated position is achieved by multiplexing common devices (e.g., a microphone and/or an acceleration sensor) in tablet computer 101. For example, the impact sound generated by the process of storing the electronic stylus 200 in the tablet computer 101 (hereinafter referred to as the process of storing the electronic stylus 200) is transmitted to the tablet computer 101 through a sound signal, and can be collected by a microphone in the tablet computer 101. The impact force generated during the process of accommodating the electronic stylus 200 acts on the tablet pc 101, and further causes an acceleration generated by the tablet pc 101, which can be obtained by an acceleration sensor in the tablet pc 101.
Specifically, the tablet computer 101 may determine whether to wirelessly charge the electronic pen 200 by determining whether the sound parameters collected by the microphone match the preset sound parameters during the process of storing the electronic pen in the tablet computer 101. And/or, the tablet computer 101 determines whether to charge the electronic stylus 200 wirelessly by judging whether the acceleration parameter acquired by the acceleration sensor matches with a preset acceleration parameter during the process of storing the electronic stylus 200 in the tablet computer 101.
The charging method of the electronic stylus provided by the application will be described in detail below with reference to the accompanying drawings.
Fig. 5A is a schematic flow chart of a charging method of an electronic stylus according to an embodiment of the present application. The charging method of the electronic stylus 200 provided in the embodiment of the present application is described in connection with the application scenario shown in fig. 1. Specifically, an electronic device is taken as the tablet pc 101 as an example for explanation. Wherein, tablet computer 101 supports to receive electronic stylus 200 in a manner of being attracted by a magnet at a designated position. And, after detecting that the electronic stylus 200 is received in the designated position of the tablet computer 101, the tablet computer 101 may wirelessly charge the electronic stylus 200.
Specifically, in the present embodiment, the tablet computer 101 may include at least a processor, a wireless charging module, and a preset device. Of course, tablet 101 may also include other devices. The specific hardware components of the tablet pc 101 may be referred to the above embodiments for description of fig. 4, and this embodiment is not repeated here.
In some embodiments of the present application, the preset device may include a microphone. Wherein the microphone is used for collecting sound parameters around the tablet computer 101. Referring to fig. 5A, the charging method of the electronic stylus 200 includes S501-S502. Wherein:
s501, responding to the starting of the tablet personal computer 101, and triggering a microphone to collect sound parameters around the tablet personal computer 101 in real time by a processor.
The tablet pc 101 may be started in response to a user's startup operation. After the tablet pc 101 is powered on, a processor of the tablet pc 101 executes a preset computer program instruction to start related functions. In this embodiment, after the tablet computer 101 is turned on, the processor may trigger the microphone to start collecting sound parameters around the tablet computer 101.
The microphone captures sound parameters around the tablet computer 101 in real time. The microphone may collect any sound parameters within a certain range around the tablet computer 101, which may include sound parameters of a user speaking, sound parameters generated when the tablet computer 101 collides with other objects, sound parameters generated during the process of storing the electronic stylus 200, and so on. Thus, after the microphone of the tablet computer 101 collects the sound parameters, the processor of the tablet computer 101 may recognize whether the sound parameters match the sound parameters generated during the process of storing the electronic stylus 200, thereby determining whether the electronic stylus 200 is detected to be stored in the designated position of the tablet computer 101.
In some embodiments, the tablet computer 101 triggers the microphone to collect surrounding sound parameters in real time after the tablet computer 101 is powered on, so as to ensure that whether the electronic handwriting pen 200 is stored in a designated position of the tablet computer 101 can be detected when the tablet computer 101 is in a powered on state, and further, the electronic handwriting pen 200 is charged wirelessly. Thus, after the tablet computer 101 is started, the electronic stylus 200 is stored in the tablet computer 101, so that wireless charging can be obtained from the tablet computer 101, and the cruising of the electronic stylus 200 is ensured.
The number and positions of the microphones in the tablet pc 101 may be set according to actual situations, which are not limited in the embodiment of the present application. For example, 1 microphone and 2 microphones may be provided. As another example, a microphone may be provided on the top, bottom, or back of tablet computer 101, or a microphone may be provided within a range of designated locations in tablet computer 101 for receiving electronic stylus 200.
S502, if the sound parameters are matched with the preset sound parameters, the processor triggers the wireless charging module to charge the electronic stylus 200. The preset sound parameters are sound parameters generated when the electronic stylus 200 is stored in the tablet computer 101 in a magnet-attracted manner.
In some embodiments, after the microphone detects a sound parameter, the sound parameter may be transmitted to a processor, which identifies whether the sound parameter matches a preset sound parameter.
In some embodiments, the preset sound parameter may be a preset audio electrical signal. The processor of the tablet computer 101 may recognize whether the audio electric signal matches a preset audio electric signal after converting the sound parameters into the audio electric signal. If the audio electrical signal matches the preset audio electrical signal, it means that the above-mentioned sound parameters match the preset sound parameters.
In this embodiment, the processor of the tablet computer 101 may convert the sound parameters into the audio electrical signals, or the microphone of the tablet computer 101 may convert the sound parameters into the audio electrical signals, which is not limited in this embodiment of the present application.
The processor identifies whether the sound parameter matches the preset sound parameter, and specifically can analyze at least one of whether the frequency of the sound parameter matches the frequency of the preset sound parameter, whether the phase of the sound parameter matches the phase of the preset sound parameter, whether the amplitude of the sound parameter matches the amplitude of the preset sound parameter, and the like. In this embodiment of the present application, the two parameter matching may specifically be: the difference between the two parameters is less than a certain value.
In some embodiments, when the time corresponding to the sound parameter is short, matching the collected other sound parameters with the preset sound parameters is easy to occur, and false triggering occurs. Therefore, to reduce false triggering, the sound parameters collected by the microphone in the preset time period can be matched with the preset sound parameters. Specifically, the matching of the sound parameters with the preset sound parameters includes: the sound parameters collected by the microphone within the preset time length are matched with the preset sound parameters. Thus, false triggering of detecting the electronic stylus 200 by utilizing the sound parameters can be reduced, and accuracy of detecting the electronic stylus 200 is improved. The preset time period may be set according to practical situations, for example, 0.3 seconds, 0.5 seconds, and the like.
The preset sound parameters are sound parameters generated when the electronic stylus 200 is stored in the tablet computer 101 in a magnet-attracted manner. As is clear from the above description, in the case where the weight of the electronic stylus 200 and the attraction force of the attraction magnet in the electronic stylus 200 are not changed, the magnitude of the sound generated during the process of housing the electronic stylus 200 is substantially unchanged, or the amount of change thereof is small. That is, the magnitude of the generated impact sound is substantially unchanged in the process of the same (or the same model) electronic stylus 200 being housed in the specified position of the tablet computer 101. In some embodiments, the preset sound parameters may be obtained by collecting impact sounds generated during the process of the electronic stylus 200 being stored in the tablet computer 101, and the preset sound parameters may be stored.
The preset sound parameters may be stored in the tablet pc 101 before the tablet pc 101 leaves the factory, or may be entered into the tablet pc 101 by the user after the tablet pc 101 leaves the factory. Specifically, the preset sound parameters may be obtained and stored by collecting the sound parameters during the process of storing the electronic stylus 200 a plurality of times.
In some possible embodiments, the preset sound parameters may include more than two. When the user equips the tablet pc 101 with two or more different electronic pens, the impact sounds generated during the process of accommodating the different electronic pens in the tablet pc 101 by the magnet attraction may be different. Therefore, a corresponding preset sound parameter can be set for each electronic stylus, so that the tablet computer 101 can detect whether any electronic stylus is stored in the tablet computer 101. It should be noted that, the two or more electronic handwriting pens are stored in the tablet computer 101 in a manner of magnet attraction, and the tablet computer 101 charges the electronic handwriting pens. Typically, tablet 101 will simultaneously only support and receive one electronic stylus and provide wireless charging for it.
In some possible embodiments, after the microphone detects the sound parameter, the microphone may also analyze the sound parameter to identify whether the sound parameter matches the preset sound parameter. Further, after determining that the detected sound parameter matches the preset sound parameter, the microphone sends a signal to the processor, where the signal is used to instruct the processor to trigger the wireless charging module to wirelessly charge the electronic pen 200. In other embodiments, analysis of sound parameters may also be accomplished by other devices of tablet computer 101.
Further, by analyzing the sound parameters, the tablet computer 101 determines that the sound parameters match with the preset sound parameters, which indicates that the electronic handwriting pen 200 is detected to be adsorbed to the designated position of the tablet computer 101, and at this time, the processor of the tablet computer 101 triggers the wireless charging module to wirelessly charge the electronic handwriting pen 200. Specifically, the specific process of the wireless charging module of the tablet computer 101 for wirelessly charging the electronic pen 200 may refer to the description of fig. 3, and will not be described herein.
In other embodiments, if the analysis determines that the sound parameters do not match the preset sound parameters, the processor may continue to identify whether the sound parameters collected by the microphone match the preset sound parameters.
In some embodiments, the processor may trigger the wireless charging module to wirelessly charge the electronic stylus 200 by sending an interrupt signal to the wireless charging module. Specifically, as shown in fig. 5B, S502 may include S502a. And S502a, if the sound parameters are matched with the preset sound parameters, the processor sends an interrupt signal to the wireless charging module, wherein the interrupt signal is used for triggering the wireless charging module to wirelessly charge the electronic handwriting pen 200.
According to the technical scheme provided by the embodiment of the application, the electronic handwriting pen 200 is detected by multiplexing devices commonly used in electronic equipment, specifically, sound parameters around the tablet personal computer 101 are collected through a microphone, whether the sound parameters are matched with preset sound parameters is judged by a processor, and whether the wireless charging module is triggered to wirelessly charge the electronic handwriting pen 200 is determined. According to the scheme, a specific device which is interacted with the electronic handwriting pen 200 does not need to be added in the electronic equipment, the occupation and waste of the space of the electronic equipment are reduced, and the cost of the electronic equipment can be reduced without adding a new specific device.
In some embodiments, the tablet computer 101 further includes a battery, and please continue to refer to fig. 5A, the charging method of the electronic stylus further includes:
s500, responding to the starting of the tablet personal computer 101, controlling the battery to supply power to the wireless charging module by the processor, and initializing the wireless charging module by the processor.
In some embodiments, after the tablet computer 101 is turned on, the processor controls a Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET) (referred to as mos), and the mos can supply power to the wireless charging module through the battery after being turned on. Meanwhile, the processor can initialize the wireless charging module. The tablet pc 101 may then execute S501, where the processor triggers the microphone to start collecting surrounding sound parameters, and determines whether to wirelessly charge the electronic pen 200 in combination with the collected sound parameters.
In some embodiments, as shown in fig. 5B, S501 may include: s501a and S501b. S501a, after the initialization of the wireless charging module is completed, the processor sends a control instruction to the microphone, wherein the control instruction is used for triggering the microphone to acquire sound parameters in real time; s501b, responding to the control instruction by the microphone, collecting sound parameters in real time, and reporting the collected sound parameters to the processor.
Wherein a microphone in tablet 101 is coupled to the processor. The microphone may receive control instructions from the processor and begin capturing sound parameters around the tablet 101 in response to the control instructions. In some embodiments, the control instruction may be an Audio On Demand (AOD) voice wake up pickup instruction.
In general, a microphone in the tablet computer 101 is turned on only when needed, for example, when a call is made, a voice chat is sent in an instant messaging application, a voice input is performed, a recording is performed, and sound parameters around the tablet computer 101 can be collected after the microphone is turned on. In the technical solution provided in the embodiment of the present application, after the tablet computer 101 is started, the processor controls the starting microphone to start collecting the sound around the tablet computer 101. Thus, the surrounding sound parameters can be collected after the tablet computer 101 is started, and thus, when the electronic stylus 200 is stored in the tablet computer 101 after the tablet computer 101 is started, wireless charging can be obtained from the tablet computer 101.
In some embodiments, even if the electronic stylus 200 is stored in the tablet computer 101, the tablet computer 101 may not be able to wirelessly charge the electronic stylus 200 for some reasons (such as a failure of the wireless charging function of the electronic stylus 200). Based on this, in order to avoid wasting electric energy due to ineffective charging of the wireless charging module of the tablet computer 101, the tablet computer 101 may stop wirelessly charging the electronic pen 200 after determining that the electronic pen 200 cannot be wirelessly charged.
Specifically, after the processor triggers the wireless charging module to wirelessly charge the electronic handwriting pen 200, the method of the embodiment of the application may further include: if the wireless charging module fails to interact with the electronic writing pen 200, the processor triggers the wireless charging module to stop charging the electronic writing pen 200 wirelessly.
In some embodiments, the process of triggering the wireless charging module to wirelessly charge the electronic pen 200 by the processor of the tablet computer 101 may specifically include: tablet computer 101 detects whether a metal object is placed on the wireless charging coil in tablet computer 101. If so, an internet packet sniffer (Packet Internet Groper, ping) message is transmitted through the wireless charging coil. If the detected metal object is a wireless charging coil of the electronic stylus 200, the electronic stylus 200 may receive the ping message through the wireless charging coil. Electronic stylus 200 may then reply to tablet 101 with a response message to the ping message via the wireless charging coil. Tablet computer 101 receives a response message from electronic stylus 200 through the wireless charging coil and initiates wireless charging of electronic stylus 200. If the tablet computer 101 detects that the metal object placed on the wireless charging coil is not the wireless charging coil of the electronic stylus 200, but other metal objects such as coins, the wireless charging module of the tablet computer 101 is unable to receive the response message of the ping message.
It can be appreciated that, in the process of the wireless charging module wirelessly charging the electronic pen 200, the tablet computer 101 interacts with the electronic pen 200. If tablet computer 101 and electronic stylus 200 did not interact successfully in the above process, it indicates that the wireless charging module of tablet computer 101 failed to interact with electronic stylus 200. In some embodiments, a response message to the ping message is received within a certain time after the tablet computer 101 sends the ping message, which indicates that the wireless charging module fails to interact with the electronic pen 200. In other embodiments, it may also be that the tablet computer 101 does not detect the metal object on the wireless charging coil in the tablet computer 101, which also indicates that the wireless charging module fails to interact with the electronic pen 200.
It will be appreciated that, in other examples, the process of triggering the wireless charging module to wirelessly charge the electronic pen 200 by the processor of the tablet computer 101 may be implemented in other manners, and the step of detecting the interaction between the wireless charging module and the electronic pen 200 may also be combined with the actual wireless charging module to wirelessly charge the electronic pen 200.
After the processor triggers the wireless charging module to charge the electronic stylus 200, if the wireless charging module fails to interact with the electronic stylus 200, it indicates that the previous detection is wrong, and the electronic stylus 200 is not stored in the tablet computer 101. At this time, the processor triggers the wireless charging module to stop wirelessly charging the electronic stylus 200. Or in other embodiments, the failure of the wireless charging module to interact with the electronic writing 200 may be a problem in charging between the wireless charging module of the tablet computer 101 and/or the electronic writing 200, and the tablet computer 101 may not be able to charge the electronic writing 200 wirelessly. Likewise, the processor triggers the wireless charging module to stop wirelessly charging the electronic stylus 200.
In the technical solution provided in this embodiment of the present application, if the sound parameter is determined to match the preset sound parameter, the wireless charging module of the tablet computer 101 will be started to wirelessly charge the electronic pen 200. If the wireless charging module fails to interact with the electronic handwriting pen 200, the wireless charging module is triggered to stop wireless charging of the electronic handwriting pen 200 immediately, so that the wireless charging module can be prevented from wasting electric energy due to invalid charging.
The microphone may capture various sounds around the tablet computer 101, and in some embodiments the microphone may capture other sound parameters that are similar to the preset sound parameters. At this time, the other sound parameters may be mistakenly identified as matching with the preset sound parameters, and the processor triggers the wireless charging module to wirelessly charge the electronic handwriting pen 200, that is, false triggering occurs. Therefore, after determining that the sound parameters match the preset sound parameters, a false trigger prevention determination may also be made before wirelessly charging the electronic stylus 200.
Specifically, in some embodiments, as shown in fig. 6, if the sound parameter matches the preset sound parameter, the processor triggers the wireless charging module to wirelessly charge the electronic pen 200, including S601 and S602. Wherein: s601, if the sound parameters are matched with preset sound parameters, the processor performs false triggering prevention judgment to obtain a judgment result of the false triggering prevention judgment; s602, if the false triggering prevention judgment result is that false triggering is not generated, the processor triggers the wireless charging module to wirelessly charge the electronic handwriting pen 200.
The false triggering prevention judgment is used for assisting in detecting whether the electronic stylus 200 is stored in the tablet computer 101. It is further determined whether to trigger the wireless charging module to wirelessly charge electronic stylus 200. When the false triggering prevention judgment result is that the false triggering is not generated, the processor triggers the wireless charging module to wirelessly charge the electronic handwriting pen 200.
It will be appreciated that if the false trigger prevention determination results in false triggering, the processor will not trigger the wireless charging module to wirelessly charge the electronic pen 200.
According to the technical scheme provided by the embodiment of the application, after the sound parameters are analyzed and determined to be matched with the preset sound parameters, the processor of the tablet personal computer 101 can also start false triggering prevention judgment, and when the false triggering prevention judgment result is that false triggering is not available, the wireless charging module is triggered to wirelessly charge the electronic handwriting pen 200. Therefore, the situation that false triggering is caused by the voice parameter identification error can be reduced, and the waste of the electric quantity of the tablet personal computer 101 is reduced.
In general, when the electronic stylus 200 is in an on state or the electric quantity of the electronic stylus 200 is greater than 0, the pen tip of the electronic stylus 200 continuously emits a pen tip signal at a higher frequency, the touch sensor of the tablet computer 101 can detect the pen tip signal, and the position of the pen tip of the electronic stylus 200 is determined by combining the pen tip signal, so that a user can control the screen of the tablet computer 101 through the electronic stylus 200. When the distance between the pen tip of the electronic stylus 200 and the tablet computer 101 is within a certain range, the pen tip signal sent by the electronic stylus 200 can be collected by the touch sensor of the tablet computer 101.
When the electronic stylus 200 is stored in the designated position of the tablet computer 101, the pen tip of the electronic stylus 200 is usually close to the tablet computer 101, and the touch sensor in the tablet computer 101 may collect the pen tip signal sent by the pen tip of the electronic stylus 200. Therefore, the processor can judge whether to trigger by mistake by judging whether the touch sensor collects the pen point signal sent by the pen point of the electronic stylus 200.
Specifically, the tablet pc 101 further includes a touch sensor, where the touch sensor is configured to collect a pen tip signal sent by a pen tip of the electronic stylus 200. In some embodiments, the processor performs a false triggering prevention judgment to obtain a judgment result of the false triggering prevention judgment, including: the processor triggers the touch sensor to collect pen point signals emitted by the pen point of the electronic stylus 200; the pen point signal is used for determining the position of the pen point of the electronic handwriting pen 200; if the touch sensor collects the pen tip signal of the electronic stylus 200, the processor obtains the false triggering prevention judgment result that false triggering is not generated.
In the technical scheme provided by the embodiment of the application, after the sound parameters are analyzed and determined to be matched with the preset sound parameters, the nib signal sent by the nib of the electronic handwriting pen 200 is detected through the touch sensor, if the nib signal is detected through the touch sensor, no false triggering is determined, and then the processor triggers the wireless charging module to wirelessly charge the electronic handwriting pen 200. Therefore, the situation of false triggering caused by the error recognition according to the sound parameters can be reduced, and the waste of the electric quantity of the tablet personal computer 101 is reduced.
Further, as can be seen from the above embodiments, the tablet computer 101 can collect the pen tip signal sent by the electronic stylus 200 through the touch sensor, and determine the position of the pen tip of the electronic stylus 200 in combination with the pen tip signal. When the electronic stylus 200 is stored in a designated position of the tablet computer 101, the relative position between the tip of the electronic stylus 200 and the tablet computer 101 is generally fixed, or the relative position between the tip and the tablet computer 101 varies little. Therefore, the position of the pen point can be determined by combining the pen point signal, and whether the pen point is triggered by mistake or not can be judged by combining the position of the pen point.
Specifically, the processor performs false triggering prevention judgment to obtain a judgment result of the false triggering prevention judgment, including: the processor triggers the touch sensor to collect a nib signal from the nib of the electronic stylus 200. If the touch sensor collects the nib signal sent by the nib of the electronic stylus 200, the current position of the nib is determined by the nib signal. If the current position of the pen point is matched with the preset pen point position, the processor obtains the false triggering prevention judgment result that false triggering is not generated. The preset pen point position is the pen point position when the electronic stylus 200 is stored in the tablet computer 101 in a magnet-attracted manner.
In some embodiments, the current position of the pen tip matches the preset pen tip position, which may be specifically: the difference between the current position of the pen point and the preset pen point position is smaller than a certain value.
In the technical solution provided in the embodiment of the present application, after analyzing and determining that the sound parameter is matched with the preset sound parameter, the current position of the pen tip of the electronic stylus 200 is determined according to the pen tip signal detected by the touch sensor. The processor judges whether the current position of the pen point is matched with the preset position, if so, the processor determines that false triggering is avoided. And then the processor triggers the wireless charging module to wirelessly charge the electronic handwriting pen 200. Therefore, the situation of false triggering caused by the error recognition according to the sound parameters can be reduced, and the waste of the electric quantity of the tablet personal computer 101 is reduced.
In other embodiments, typically when electronic stylus 200 is received in a designated location on tablet 101, the relative distance between the tip of electronic stylus 200 and tablet 101 should be fixed or the relative distance between the tip and tablet 101 should vary little. It is thus possible to determine whether to false trigger or not according to the distance between the tip of the electronic stylus 200 and the tablet pc 101.
Specifically, the processor performs false triggering prevention judgment to obtain a judgment result of the false triggering prevention judgment, including: the processor triggers the touch sensor to collect a nib signal from the nib of the electronic stylus 200. The distance between the pen tip and the tablet computer 101 is currently determined by the pen tip signal. If the current distance between the pen tip and the tablet computer 101 is matched with the preset distance, the processor obtains the false triggering prevention judgment result that false triggering is not generated. The preset distance is a distance when the electronic stylus 200 is stored in the tablet computer 101 in a manner of magnet attraction. In some embodiments, the distance between the pen tip and the tablet computer 101 matches the preset distance, which may be specifically: the difference between the current distance of the pen tip and the tablet computer 101 and the preset distance is smaller than a certain value.
In some embodiments, the distance between the tip of electronic stylus 200 and tablet 101 may be determined by detecting the signal strength of the collected tip signal. The farther the distance between the tip of the electronic stylus 200 and the tablet computer 101, the weaker the signal strength of the tip signal received by the tablet computer 101, and the stronger the signal strength of the tip signal the closer the distance. Therefore, the distance between the pen tip of the electronic stylus 200 and the tablet computer 101 can be determined by combining the signal intensity of the pen tip signal acquired by the touch sensor of the tablet computer 101.
In other embodiments, the tablet computer 101 may also determine the distance between the pen tip and the tablet computer 101 according to the difference between the signal intensity of the pen tip signal and the signal intensity of the reference signal. When the touch sensor of the tablet computer 101 collects the pen tip signal emitted by the pen tip of the electronic stylus 200, the signal intensity of the pen tip signal can be determined, and then the signal intensity difference between the signal intensity of the pen tip signal and the reference voltage can be determined. The distance between the tip of the electronic stylus 200 and the tablet computer 101 is then determined from the signal strength difference. In some embodiments, the farther the tip of the electronic stylus 200 is from the tablet 101, the greater (or smaller) the signal strength, and the closer the tip is from the tablet 101, the smaller (or greater) the signal strength. The reference voltage may be set according to actual conditions.
Further, in some embodiments, the processor determines that there is no false trigger when determining from the nib signal that the distance between the current nib of the electronic stylus 200 and the tablet 101 matches the preset distance, and may then initiate wireless charging of the electronic stylus 200. Here, the preset distance may be stored in the tablet computer 101 in advance, similarly to the preset sound parameter, the preset acceleration parameter.
In the technical scheme provided by the embodiment of the application, after the sound parameters are analyzed and determined to be matched with the preset sound parameters, the distance between the pen tip of the electronic stylus 200 and the tablet computer 101 is determined according to the pen tip signal detected by the touch sensor. And judging whether the current distance between the pen point and the tablet computer 101 is matched with the preset distance, if so, determining that false triggering is not generated, and triggering a wireless charging module by a processor to wirelessly charge the electronic handwriting pen 200. Therefore, the situation of false triggering caused by the error recognition according to the sound parameters can be reduced, and the waste of the electric quantity of the tablet personal computer 101 is reduced.
In other embodiments, when electronic stylus 200 is received in a designated location on tablet 101, electronic stylus 200 will block the location where electronic stylus 200 is in contact with tablet 101, causing a change in light at that location. If the first preset position is selected from the positions of the contacts in the tablet computer 101, the proximity light sensor collects the light signal of the first preset position, and the processor can identify whether the first preset position is blocked according to the light signal, so as to determine whether the electronic stylus 200 is stored in the designated position of the tablet computer 101. The detection of the electronic stylus 200 may thus be trigger-proof judged using the proximity light sensor provided at the first preset position.
Specifically, a first preset position of the tablet computer 101 is provided with a proximity light sensor, where the first preset position is a position on the electronic device that contacts the electronic stylus 200 when the electronic device stores the electronic stylus 200. The proximity light sensor is used for collecting light signals of a first preset position. In some embodiments, the processor performs a false triggering prevention judgment to obtain a judgment result of the false triggering prevention judgment, including: the processor triggers the proximity light sensor to collect the light signal at the first preset position. And the processor determines whether shielding exists at the first preset position according to the light signals acquired by the proximity light sensor, and if so, the processor obtains a false triggering prevention judgment result that false triggering is avoided.
In some embodiments, the processor determines whether an occlusion exists at the first preset location based on the light signal collected proximate to the light sensor, comprising: the proximity light sensor emits a light signal at a first preset position, such as a light emitting diode, and calculates a distance between an object near the first preset position and the first preset position according to the time of returning the light. The processor determines whether an occlusion exists at the first preset position according to the distance. Specifically, when the distance between the nearby object and the first preset position is close, the fact that the first preset position is blocked is indicated.
In the technical scheme provided by the embodiment of the application, after the sound parameters are analyzed and determined to be matched with the preset sound parameters, the light signals are collected through the near light sensor arranged at the first preset position, the processor determines whether shielding exists at the first preset position according to the collected light signals, and if yes, it is determined that false triggering does not exist. And then the processor triggers the wireless charging module to wirelessly charge the electronic handwriting pen 200. Therefore, the situation of false triggering caused by the error recognition according to the sound parameters can be reduced, and the waste of the electric quantity of the tablet personal computer 101 is reduced.
In other embodiments, when electronic stylus 200 is received in a designated location on tablet 101, electronic stylus 200 will create pressure at the interface between the designated location and tablet 101. Therefore, a pressure sensor can be set at a second preset position selected from the contact positions of the electronic stylus 200 and the tablet pc 101, and false triggering prevention judgment can be performed by combining whether the pressure sensor detects pressure.
Specifically, the tablet pc 101 further includes a pressure sensor disposed at a second preset position, where the electronic device contacts the electronic stylus 200 when the electronic device stores the electronic stylus 200. The pressure sensor is used for acquiring a pressure parameter received by a second preset position of the tablet computer 101. In some embodiments, the pressure sensor is protruding from the side frame of the tablet pc 101, i.e. forms a "bump" on the side frame of the tablet pc 101, so as to better detect the pressure generated by the electronic stylus 200 when the tablet pc 101 is stored in the tablet pc 101.
In some embodiments, the processor performs a false triggering prevention judgment to obtain a judgment result of the false triggering prevention judgment, including: the processor triggers the pressure sensor to collect pressure parameters at a second preset position. If the pressure parameter acquired at the second preset position is greater than the preset pressure threshold, the processor obtains the false triggering prevention judgment result that false triggering is not generated.
In the technical scheme provided by the embodiment of the application, after the sound parameters are analyzed and determined to be matched with the preset sound parameters, the pressure parameters of the second preset position are collected through the pressure sensor arranged at the position. The processor judges whether the acquired pressure parameter is larger than a preset pressure threshold value, if so, the processor determines that false triggering is avoided, and then the processor triggers the wireless charging module to wirelessly charge the electronic handwriting pen 200. Therefore, the situation of false triggering caused by the error recognition according to the sound parameters can be reduced, and the waste of the electric quantity of the tablet personal computer 101 is reduced.
In other embodiments, tablet computer 101 may also utilize other preset devices, such as an acceleration sensor, to perform detection of electronic stylus 200. Fig. 7A is a flowchart illustrating a charging method of the electronic stylus 200 according to another embodiment of the present application. The charging method of the electronic stylus 200 provided in the embodiment of the present application is described in connection with the application scenario shown in fig. 1. Specifically, an electronic device is taken as the tablet pc 101 as an example for explanation. Wherein, tablet computer 101 supports to receive electronic stylus 200 in a manner of being attracted by a magnet at a designated position. And after detecting that electronic stylus 200 is received in a designated location of tablet computer 101, tablet computer 101 may wirelessly charge electronic stylus 200.
Specifically, in the present embodiment, the tablet computer 101 includes a processor, a wireless charging module, and a preset device. Of course, tablet 101 may also include other devices. The specific hardware components of the tablet pc 101 may be referred to the above embodiments for description of fig. 4, and this embodiment is not repeated here.
In some embodiments of the present application, the preset device includes an acceleration sensor. The acceleration sensor is used for collecting acceleration parameters of the tablet personal computer 101 under the action of external force. Referring to fig. 7A, the method for charging the electronic stylus 200 includes S701-S702. Wherein:
s701, responding to the starting of the tablet personal computer 101, and triggering an acceleration sensor to acquire acceleration parameters of the tablet personal computer 101 under the action of external force in real time by a processor.
The tablet pc 101 may be started in response to a user's startup operation. After the tablet pc 101 is powered on, a processor of the tablet pc 101 executes a preset computer program instruction to start related functions. In this embodiment, after the tablet pc 101 is powered on, the processor may trigger the acceleration sensor to start collecting the acceleration parameter of the tablet pc 101 under the action of the external force.
As can be seen from the above embodiments, the electronic stylus 200 is attracted to the designated position of the tablet computer 101 by the attraction magnet, and the impact force acts on the tablet computer 101 to generate acceleration. In other cases, there may be other external forces acting on the tablet pc 101 to generate corresponding acceleration parameters. Acceleration parameters generated by the tablet computer 101 in the above scene can be acquired through an acceleration sensor. In this embodiment, after the acceleration sensor is used to collect the acceleration parameter generated by the tablet pc 101 when the external force is applied, whether to wirelessly charge the electronic pen 200 is determined by analyzing whether the acceleration parameter matches with the preset acceleration parameter.
In some embodiments, the tablet computer 101 triggers the acceleration sensor to collect acceleration parameters of the tablet computer 101 under the action of external force in real time after the tablet computer 101 is started, so as to ensure that whether the electronic stylus 200 is stored in a designated position of the tablet computer 101 can be detected when the tablet computer 101 is in a starting state, and further the electronic stylus 200 is charged wirelessly. Thus, after the tablet computer 101 is started, the electronic stylus 200 is stored in the tablet computer 101, so that wireless charging can be obtained from the tablet computer 101, and the cruising of the electronic stylus 200 is ensured.
The number and positions of the acceleration sensors in the tablet pc 101 may be set according to actual situations, which are not limited in the embodiment of the present application. For example, 1 acceleration sensor and 2 acceleration sensors may be provided. For another example, the acceleration sensor may be disposed on the top, bottom, or back of tablet computer 101, or the acceleration sensor may be disposed within a range of designated positions in tablet computer 101 for receiving electronic stylus 200.
S702, if the acceleration parameter is matched with the preset acceleration parameter, the processor triggers the wireless charging module to charge the electronic stylus 200. The preset acceleration parameter is an acceleration parameter generated when the electronic stylus 200 is stored in the tablet computer 101 in a magnet adsorption manner.
In some embodiments, after the acceleration sensor detects an acceleration parameter, the acceleration parameter may be transmitted to a processor, which analyzes the acceleration parameter.
In some embodiments, when the time period corresponding to the acceleration parameter is shorter, the acceleration parameter when the collected other external force acts on the tablet computer 101 is easily matched with the preset acceleration parameter, and false triggering occurs. Therefore, in order to reduce false triggering, the acceleration parameters acquired by the acceleration sensor in the preset time period can be matched with the preset acceleration parameters. Specifically, the matching of the acceleration parameter with the preset acceleration parameter includes: the acceleration parameters acquired by the acceleration device within a preset time length are matched with preset acceleration parameters. Thus, false triggering of the electronic stylus 200 detected by using the acceleration parameter can be reduced, and accuracy of detecting the electronic stylus 200 is improved.
The preset acceleration parameter is an acceleration parameter generated when the electronic stylus 200 is stored in the tablet computer 101 in a magnet-attracted manner. As is clear from the above description, in the case where the weight of the electronic stylus 200 and the attraction force of the attraction magnet in the electronic stylus 200 are not changed, the magnitude of the acceleration generated in the tablet pc 101 during the process of storing the electronic stylus 200 is substantially unchanged, or the amount of change thereof is small. That is, the magnitude of the acceleration generated by the impact force acting on the tablet pc 101 is substantially constant during the process of the same (or the same model) electronic stylus 200 being attached to the designated position of the tablet pc 101. In some embodiments, the electronic stylus 200 is stored in the tablet computer 101, and the acceleration generated by the impact force of the process acting on the tablet computer 101 is collected to obtain a preset acceleration parameter, and the preset acceleration parameter is stored.
The preset acceleration parameters may be stored in the tablet pc 101 before the tablet pc 101 leaves the factory, or may be entered into the tablet pc 101 by the user after the tablet pc leaves the factory. Specifically, the preset acceleration parameter may be obtained and stored by collecting acceleration parameters during the process of storing the electronic stylus 200 a plurality of times.
In some possible embodiments, the preset acceleration parameter may comprise more than two. When the user equips the tablet pc 101 with more than two different electronic handwriting pens, the impact force generated during the process of accommodating the different electronic handwriting pens in the tablet pc 101 in a magnet-absorbing manner may be different, and the corresponding generated acceleration may be different. Therefore, a corresponding preset acceleration parameter can be set for each electronic stylus, so that the tablet computer 101 can detect whether any electronic stylus is stored in the tablet computer 101. It should be noted that, the two or more electronic handwriting pens are stored in the tablet computer 101 in a manner of magnet attraction, and the tablet computer 101 charges the electronic handwriting pens. Typically, tablet 101 will simultaneously only support and receive one electronic stylus and provide wireless charging for it.
In some possible embodiments, after the acceleration sensor collects the acceleration parameter, the acceleration sensor may also analyze the acceleration parameter to determine whether the acceleration parameter matches the preset acceleration parameter. Further, after the acceleration sensor determines that the acquired acceleration parameter matches the preset acceleration parameter, the acceleration sensor sends a signal to the processor, where the signal is used to instruct the processor to trigger the wireless charging module to wirelessly charge the electronic handwriting pen 200. In other embodiments, analysis of acceleration parameters may also be performed by other devices of tablet computer 101.
Further, by analyzing the acceleration parameter, the tablet computer 101 determines that the acceleration parameter matches with the preset acceleration parameter, which indicates that the electronic stylus 200 is detected to be adsorbed to the designated position of the tablet computer 101, and at this time, the processor of the tablet computer 101 triggers the wireless charging module to wirelessly charge the electronic stylus. Specifically, the specific process of the wireless charging module of the tablet computer 101 for wirelessly charging the electronic pen 200 may refer to the description of fig. 3, and will not be described herein.
In other embodiments, if the analysis determines that the acceleration does not match the preset acceleration parameters, the processor may continue to identify whether the acceleration parameters collected by the acceleration sensor match the preset acceleration parameters.
In some embodiments, the processor may trigger the wireless charging module to wirelessly charge the electronic stylus 200 by sending an interrupt signal to the wireless charging module. Referring to fig. 7B, if the acceleration parameter matches the preset acceleration parameter, the processor triggers the wireless charging module to wirelessly charge the electronic pen 200, including: s702, if the acceleration parameter is matched with the preset acceleration parameter, the processor sends an interrupt signal to the wireless charging module, and the interrupt signal is used for triggering the wireless charging module to wirelessly charge the electronic handwriting pen 200.
According to the technical scheme provided by the embodiment of the application, the electronic handwriting pen 200 is detected by multiplexing devices commonly used in electronic equipment, specifically, acceleration parameters generated when external force acts on the tablet personal computer 101 are collected through the acceleration sensor, and whether the wireless charging module is triggered to wirelessly charge the electronic handwriting pen 200 is determined by judging whether the acceleration parameters are matched with preset acceleration parameters. According to the scheme, a specific device which is interacted with the electronic handwriting pen 200 does not need to be added in the electronic equipment, the occupation and waste of the space of the electronic equipment are reduced, and the cost of the electronic equipment can be reduced without adding a new specific device.
In other embodiments, an acceleration sensor is disposed at a designated location of tablet computer 101, and a force transfer lever is disposed between the acceleration sensor and the side frame where the designated location of tablet computer 101 is located. In the process of storing the electronic stylus 200 to a designated position, the generated impact force can be transferred to the acceleration sensor in the tablet computer 101 through the force transfer lever, so that the acceleration sensor can detect the corresponding acceleration in the process of storing the electronic stylus 200. By arranging the force transmission lever between the acceleration sensor and the side surface of the specified position of the tablet computer 101, the acceleration sensor can more accurately capture the acceleration generated by the impact force applied to the tablet computer 101 in the process of accommodating the electronic stylus 200, so that the accuracy of detecting the electronic stylus 200 by using the acceleration sensor is improved.
In some embodiments, the tablet computer 101 further includes a battery, and please continue to refer to fig. 7A, the charging method of the electronic stylus 200 further includes: and S700, responding to the starting of the tablet personal computer 101, controlling the battery to supply power to the wireless charging module by the processor, and initializing the wireless charging module by the processor.
In some embodiments, after the tablet computer 101 is powered on, the processor controls the mos to be started, and the battery can supply power to the wireless charging module after the mos is started. Meanwhile, the processor can initialize the wireless charging module. Then, the tablet pc 101 may execute S701, where the processor triggers the acceleration sensor to start collecting the acceleration parameter of the tablet pc 101 when the acceleration sensor is acted by the external force, and determines whether to wirelessly charge the electronic pen 200 according to the collected acceleration parameter.
In some embodiments, as shown in fig. 7B, S701 may include: s701a and S701b. S701a, after the wireless charging module is initialized, the processor sends a control instruction to the acceleration sensor, wherein the control instruction is used for triggering the acceleration sensor to acquire acceleration parameters in real time; s701b, the acceleration sensor responds to the control instruction, acquires acceleration parameters in real time, and reports the acquired acceleration parameters to the processor.
An acceleration sensor in tablet 101 is coupled to the processor, the acceleration sensor may receive a control command from the processor, and in response to the control command, the acceleration sensor is activated to begin collecting acceleration parameters of tablet 101 as a result of external forces. In some embodiments, the control command may be an acceleration acquisition command.
In this embodiment, after analyzing and determining that the collected acceleration parameter matches the preset acceleration parameter, the processor sends an interrupt signal to the wireless charging module, so that the wireless charging module charges the electronic pen 200 wirelessly.
Further, in the embodiment in which the electronic stylus 200 is detected by the acceleration sensor, after it is determined that the acceleration parameter matches the preset acceleration parameter, the false triggering prevention judgment may be started before the electronic stylus 200 is started to be charged. If the judgment result of the false triggering prevention judgment is that false triggering is not generated, the processor of the tablet computer 101 triggers the wireless charging module to wirelessly charge the electronic handwriting pen 200, so that the accuracy of detecting the electronic handwriting pen 200 is further improved, and false triggering is reduced. The specific false triggering prevention process is similar to the false triggering prevention process described in the above embodiment, and specific steps may be referred to the description in the above embodiment, and are not repeated here.
In other embodiments, the tablet computer 101 may also implement detection of the electronic stylus 200 by combining two or more detection methods, for example, the above-mentioned charging method of the electronic stylus 200 includes the following steps: in response to the tablet computer 101 being powered on, the processor of the tablet computer 101 triggers the microphone to collect sound parameters around the tablet computer 101 in real time, and triggers the acceleration sensor to collect acceleration parameters of the tablet computer 101 under the action of external force in real time. If the sound parameters match the preset sound parameters and the acceleration parameters acquired while the sound parameters are acquired match the preset acceleration parameters, the processor triggers the wireless charging module to charge the electronic stylus 200.
The specific implementation flow of the above embodiment may refer to the steps shown in fig. 5A to fig. 7B, and will not be described herein.
In other embodiments, the tablet pc 101 may also recognize whether the acceleration parameter matches the preset acceleration parameter in the above-mentioned charging method of the electronic stylus 200. After the acceleration parameter is determined to be matched with the preset acceleration parameter, the sound parameter collected while the acceleration parameter is collected is identified, and whether the sound parameter is matched with the preset sound parameter is determined. If it is determined that the collected acceleration parameters and the sound parameters are matched with the corresponding preset parameters, the processor of the tablet computer 101 triggers the wireless charging module to start wireless charging of the electronic stylus 200.
According to the technical scheme provided by the embodiment of the application, whether the electronic stylus 200 is stored in the appointed position of the tablet computer 101 is detected by combining the sound parameter and the acceleration parameter, so that the situation of misjudgment can be reduced, and the accuracy of detecting the electronic stylus 200 and the speed of detecting the electronic stylus 200 are improved. Further, the response speed of wireless charging of the electronic pen 200 can be improved. Meanwhile, the two detection modes are realized by multiplexing common devices in the tablet personal computer 101, other specific devices are not required to be newly added in the tablet personal computer 101, occupation and waste of the space of the electronic equipment are reduced, and the cost of the electronic equipment can be reduced without adding the specific devices.
Further, in the embodiment of detecting the electronic stylus 200 by combining the sound parameter and the acceleration parameter, the processor may start the false triggering prevention judgment after determining that the parameter matches the preset parameter before starting to wirelessly charge the electronic stylus 200. And when the false triggering prevention judgment result is that false triggering is not generated, the processor of the tablet computer 101 triggers the wireless charging module to wirelessly charge the electronic handwriting pen 200. Specifically, the flow of the false triggering prevention judgment in this embodiment is similar to the flow of the false triggering prevention judgment in the above embodiment, and specific steps may refer to the step of the false triggering prevention judgment in the above embodiment, and will not be described herein.
Further, in some embodiments, after the processor triggers the wireless charging module to wirelessly charge the electronic pen 200, a prompt message is presented in the interface of the tablet computer 101, the prompt message being used to indicate that the tablet computer 101 is currently wirelessly charging the electronic pen 200. Further, the tablet computer 101 may communicate with the electronic stylus 200, obtain the current power of the battery of the electronic stylus 200, and display the current power of the electronic stylus 200 in the prompt message.
The presentation of the prompt message in the interface of the tablet computer 101 may be implemented in any manner.
According to the technical scheme provided by the embodiment of the application, after the wireless charging module of the tablet computer 101 starts to wirelessly charge the electronic handwriting pen 200, a prompt message is displayed in the interface of the tablet computer 101 and is used for prompting a user that the tablet computer is currently wirelessly charging the electronic handwriting pen 200. Thus, the user can intuitively know the message from the interface of the tablet personal computer. The electric quantity of the electronic handwriting pen 200 is displayed in the prompt message, so that a user can intuitively and clearly know the electric quantity of the electronic handwriting pen 200.
In some embodiments, before the processor triggers the wireless charging module to wirelessly charge the electronic pen 200, the method further comprises: the processor establishes communication with the electronic stylus 200 to obtain the current charge of the battery of the electronic stylus 200. If the current power of the electronic stylus 200 is less than the power threshold, the processor triggers the wireless charging module to wirelessly charge the electronic stylus 200. The power threshold may be set according to practical situations, for example, 100%, 95%, 90%, etc. In this way, when the electric quantity of the electronic stylus 200 is sufficient, the tablet computer 101 is not triggered to wirelessly charge the electronic stylus 200 after the electronic stylus 200 is stored in the tablet computer 101, so that the sufficient electric quantity of the tablet computer 101 can be ensured.
Other embodiments of the present application provide an electronic device, including: one or more processors, a wireless charging module, a preset device, a memory and a battery; the wireless charging module, the preset device, the memory and the battery are coupled with the processor; the preset device comprises a microphone and/or an acceleration sensor, wherein the microphone is used for collecting sound parameters around the electronic equipment, and the acceleration sensor is used for collecting acceleration parameters of the electronic equipment under the action of external force; the battery is used for supplying power to other devices in the electronic equipment; the wireless charging module is used for supporting the electronic equipment to wirelessly charge other electronic equipment; the memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the functions or steps performed by the tablet computer 101 in the method embodiments. The structure of the electronic device may refer to the structure of the tablet computer 101 shown in fig. 4.
In some embodiments, the electronic device may be a tablet computer 101.
Embodiments of the present application also provide a chip system, as shown in fig. 8, the chip system 80 includes at least one processor 801 and at least one interface circuit 802. The processor 801 and the interface circuit 802 may be interconnected by wires. For example, interface circuit 802 may be used to receive signals from other devices (e.g., a memory of an electronic apparatus). For another example, interface circuit 802 may be used to send signals to other devices (e.g., processor 801). The interface circuit 802 may, for example, read instructions stored in a memory and send the instructions to the processor 801. The instructions, when executed by the processor 801, may cause the electronic device to perform the various steps of the embodiments described above. Of course, the chip system may also include other discrete devices, which are not specifically limited in this embodiment of the present application.
Embodiments of the present application also provide a computer-readable storage medium that includes computer instructions that, when executed on an electronic device (e.g., tablet computer 101) described above, cause the electronic device to perform the functions or steps performed by tablet computer 101 in the method embodiments described above.
Embodiments of the present application also provide a computer program product, which when run on a computer, causes the computer to perform the functions or steps performed by the tablet pc 101 in the method embodiments described above. The computer may be an electronic device such as tablet computer 101.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. The charging method of the electronic handwriting pen is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a processor, a wireless charging module and a preset device, the preset device comprises a microphone and/or an acceleration sensor, the microphone is used for collecting sound parameters around the electronic equipment, and the acceleration sensor is used for collecting acceleration parameters of the electronic equipment under the action of external force; the electronic device supports to store the electronic stylus in a magnet-attracted manner, the method comprising:
responding to the starting of the electronic equipment, and triggering the preset device to acquire preset parameters in real time by the processor; wherein, when the preset device comprises the microphone, the preset parameters comprise sound parameters; when the preset device comprises the acceleration sensor, the preset parameters comprise acceleration parameters;
If the preset parameters are matched with the preset parameters, the processor triggers the wireless charging module to wirelessly charge the electronic stylus; the preset parameters are parameters generated when the electronic stylus is stored in the electronic equipment in a magnet adsorption mode.
2. The method of claim 1, wherein the electronic device further comprises a battery, the method further comprising:
the processor controls the battery to supply power for the wireless charging module in response to the startup of the electronic equipment, and initializes the wireless charging module;
the processor triggers the preset device to collect preset parameters in real time, and the method comprises the following steps:
after the initialization of the wireless charging module is completed, the processor sends a control instruction to the preset device, wherein the control instruction is used for triggering the preset device to acquire the preset parameters in real time;
and the preset device responds to the control instruction, acquires the preset parameters in real time, and reports the acquired preset parameters to the processor.
3. The method of claim 2, wherein the processor triggering the wireless charging module to wirelessly charge the electronic stylus if the preset parameter matches a preset parameter comprises:
And if the preset parameters are matched with the preset parameters, the processor sends an interrupt signal to the wireless charging module, wherein the interrupt signal is used for triggering the wireless charging module to wirelessly charge the electronic stylus.
4. The method of any of claims 1-3, wherein after the processor triggers the wireless charging module to wirelessly charge the electronic stylus, the method further comprises:
and if the wireless charging module fails to interact with the electronic handwriting pen in a charging way, the processor triggers the wireless charging module to stop charging the electronic handwriting pen in a wireless way.
5. The method of any of claims 1-3, wherein the processor triggering the wireless charging module to wirelessly charge the electronic stylus comprises:
the processor performs false triggering prevention judgment to obtain a judgment result of the false triggering prevention judgment;
and if the false triggering prevention judgment result is that false triggering is not generated, the processor triggers the wireless charging module to wirelessly charge the electronic handwriting pen.
6. The method of claim 5, wherein the electronic device further comprises a touch sensor for collecting a tip signal from a tip of the electronic stylus;
The processor performs false triggering prevention judgment to obtain a judgment result of the false triggering prevention judgment, and the method comprises the following steps:
the processor triggers the touch sensor to collect pen point signals sent by the pen point of the electronic handwriting pen; the pen point signal is used for determining the position of the pen point of the electronic handwriting pen;
and if the touch sensor acquires the pen point signal of the electronic stylus, the processor obtains the false triggering prevention judgment result that false triggering is not generated.
7. The method of claim 5, wherein the electronic device is provided with an proximity light sensor at a first preset location; the first preset position is a position on the electronic equipment, which is contacted with the electronic handwriting pen when the electronic equipment stores the electronic handwriting pen;
the processor performs false triggering prevention judgment to obtain a judgment result of the false triggering prevention judgment, and the method comprises the following steps:
the processor triggers the proximity light sensor to collect the light signal of the first preset position;
the processor determines whether shielding exists at the first preset position according to the light signals collected by the proximity light sensor; if yes, the processor obtains the false triggering prevention judgment result that false triggering is not caused.
8. The method of claim 5, wherein a pressure sensor is provided at a second preset location of the electronic device; the second preset position is a position on the electronic equipment, which is contacted with the electronic handwriting pen when the electronic equipment stores the electronic handwriting pen;
the processor performs false triggering prevention judgment to obtain a judgment result of the false triggering prevention judgment, and the method comprises the following steps:
the processor triggers the pressure sensor to collect pressure parameters of the second preset position;
if the pressure parameter acquired at the second preset position is greater than a preset pressure threshold, the processor obtains the false triggering prevention judgment result that false triggering is not generated.
9. A method according to any one of claims 1-3, wherein the preset parameters are matched to preset parameters, comprising:
the preset parameters acquired by the preset device in the preset time length are matched with the preset parameters.
10. An electronic device, the electronic device comprising: one or more processors, a wireless charging module, a preset device, a memory and a battery; wherein the wireless charging module, the preset device, the memory, the battery and the processor are coupled; the preset device comprises a microphone and/or an acceleration sensor, wherein the microphone is used for collecting sound parameters around the electronic equipment, and the acceleration sensor is used for collecting acceleration parameters of the electronic equipment under the action of external force; the battery is used for supplying power to other devices in the electronic equipment; the wireless charging module is used for supporting the electronic equipment to wirelessly charge other electronic equipment; the memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the method of any of claims 1-9.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein computer instructions, which when run on an electronic device, cause the electronic device to perform the method of any of claims 1-9.
CN202210271373.7A 2022-03-18 2022-03-18 Charging method and device for electronic handwriting pen Active CN114785000B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210271373.7A CN114785000B (en) 2022-03-18 2022-03-18 Charging method and device for electronic handwriting pen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210271373.7A CN114785000B (en) 2022-03-18 2022-03-18 Charging method and device for electronic handwriting pen

Publications (2)

Publication Number Publication Date
CN114785000A CN114785000A (en) 2022-07-22
CN114785000B true CN114785000B (en) 2023-06-09

Family

ID=82424443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210271373.7A Active CN114785000B (en) 2022-03-18 2022-03-18 Charging method and device for electronic handwriting pen

Country Status (1)

Country Link
CN (1) CN114785000B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116247837B (en) * 2023-05-08 2023-10-20 荣耀终端有限公司 Wireless charging system, method and related equipment
CN117349125A (en) * 2023-12-04 2024-01-05 荣耀终端有限公司 Device state acquisition method, electronic device and computer readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210035002A (en) * 2019-09-23 2021-03-31 삼성전자주식회사 Electronic device for detecting stylus pen and method for operating thereof
CN117767586A (en) * 2021-03-31 2024-03-26 荣耀终端有限公司 Wireless charging system

Also Published As

Publication number Publication date
CN114785000A (en) 2022-07-22

Similar Documents

Publication Publication Date Title
US11392226B2 (en) Active stylus calibration method, active stylus, and electronic device
CN114785000B (en) Charging method and device for electronic handwriting pen
US10824192B2 (en) Method for detecting wearing-state and wearable device
EP4109218B1 (en) Mobile phone comprising a touch screen with an in-display fingerprint sensor
CN112789581A (en) Electronic device for controlling screen attribute based on distance between pen input device and electronic device and method for controlling the same
US11889581B2 (en) Electronic device sharing peripheral device with external electronic device and method thereof
CN108900231B (en) Dynamic antenna adjustment method and related product
US11490223B2 (en) Method and electronic device for providing notification based on distance of remote input device
CN112771481A (en) Electronic device for pairing with stylus and method thereof
KR20200017308A (en) Electronic device for controlling communication connection with input device and method for controlling thereof
WO2018166204A1 (en) Method for controlling fingerprint recognition module, and mobile terminal and storage medium
CN112650405B (en) Interaction method of electronic equipment and electronic equipment
CN116466867B (en) Handwriting drawing method and device, electronic equipment and readable storage medium
US20220322470A1 (en) Electronic device using communication channel generated by electrical connection between electronic device and external electronic device, and method for operating electronic device
CN113490158A (en) Bluetooth device pairing connection method, electronic device, Bluetooth device and terminal system
CN109995110B (en) Connector, electronic equipment, data transmission method and device
CN111522438A (en) Content transmission method, device and medium
CN111246061B (en) Mobile terminal, method for detecting shooting mode and storage medium
CN109525919B (en) On-off control device, on-off control method, system and storage medium
CN108448177B (en) Charging method and terminal
KR102477853B1 (en) Electronic device and method displaying affordance for providing charge of battery of external device through display
US11516574B2 (en) Audio output device and method to detect wearing thereof
CN116671129A (en) Method for searching audio output device by using power supply device and power supply device thereof
CN109561415B (en) NFC function detection method and device, storage medium and mobile terminal
CN117872340A (en) Contactless human body detection method, device, apparatus and storage medium

Legal Events

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