CN116088695B - System upgrading method and related device - Google Patents

System upgrading method and related device Download PDF

Info

Publication number
CN116088695B
CN116088695B CN202210743607.3A CN202210743607A CN116088695B CN 116088695 B CN116088695 B CN 116088695B CN 202210743607 A CN202210743607 A CN 202210743607A CN 116088695 B CN116088695 B CN 116088695B
Authority
CN
China
Prior art keywords
stylus
upgrade
electronic device
electronic equipment
data packet
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
CN202210743607.3A
Other languages
Chinese (zh)
Other versions
CN116088695A (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 CN202210743607.3A priority Critical patent/CN116088695B/en
Publication of CN116088695A publication Critical patent/CN116088695A/en
Application granted granted Critical
Publication of CN116088695B publication Critical patent/CN116088695B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Position Input By Displaying (AREA)

Abstract

The application provides a system upgrading method and a related device, so that a touch pen can be used for upgrading a system when a preset condition is met, and the experience of a user in using the touch pen is improved. The method comprises the following steps: the electronic equipment sends a first identifier to the touch pen, wherein the first identifier is used for indicating whether a software update interface is opened in a foreground of the electronic equipment; based on the received first identification, the stylus determines that the software updating interface is not opened in the foreground of the electronic equipment, and waits until a preset condition is met to update the system, wherein the preset condition comprises: the stylus receives an upgrade instruction from the electronic equipment or reaches a designated upgrade time, and the upgrade instruction is used for indicating the stylus to upgrade the system.

Description

System upgrading method and related device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a system upgrade method and a related device.
Background
With the development of electronic devices, the functions of the electronic devices are becoming more and more abundant. In the video learning, file reading, etc., the electronic device may record notes or annotate notes, so as to bring better experience to the user, and many electronic devices may be configured with a corresponding stylus to facilitate the operation of the user.
In general, when a system is upgraded, after an upgrade data packet is received, the system is directly upgraded, and in the upgrade process, the stylus is disconnected from the electronic equipment, so that the condition that the stylus cannot be used occurs, and the user experience is reduced.
Disclosure of Invention
The application provides a system upgrading method and a related device, so that a touch pen can be used for upgrading a system when a preset condition is met, and the experience of a user in using the touch pen is improved.
In a first aspect, a system upgrade method is provided, where the method may be applied to a stylus, and may be performed by the stylus, or may be performed by a component (such as a chip, a system on a chip, etc.) configured in the stylus, or may be implemented by a logic module or software capable of implementing all or part of the functionality of the stylus, which is not limited in this respect.
The method comprises the following steps: receiving a first identifier from electronic equipment, wherein the first identifier is used for indicating whether a software update interface is opened in a foreground of the electronic equipment; and under the condition that the software updating interface is not opened in the foreground of the electronic equipment, waiting until a preset condition is met, and carrying out system updating, wherein the preset condition comprises the following steps: and receiving an upgrade instruction from the electronic equipment or reaching a designated upgrade time, wherein the upgrade instruction is used for indicating the stylus to upgrade the system.
In the application, the electronic equipment indicates whether the software updating interface is opened at the foreground of the electronic equipment through the first identifier, so that the touch pen receiving the first identifier can perform system updating only when the first identifier indicates that the software updating interface is not opened at the foreground of the electronic equipment and waits for a preset condition, and the touch pen directly performs system updating under any condition, thereby effectively avoiding the condition that the touch pen cannot be used due to system updating in the using process and improving the experience of a user for using the touch pen.
With reference to the first aspect, in certain implementation manners of the first aspect, the method further includes: and under the condition that the software updating interface is opened at the foreground of the electronic equipment, directly performing system updating without waiting until the preset condition is met.
In the application, the stylus can directly upgrade the system under the condition that the first identifier indicates that the software updating interface is opened at the foreground of the electronic equipment. It should be noted that, when the interface displayed by the electronic device is a software update interface, it indicates that a user may have an upgrade intention, at this time, even if the stylus is immediately upgraded, when the stylus cannot be used, the user may not consider that the stylus is damaged, thereby improving the experience of using the stylus by the user.
With reference to the first aspect, in certain implementation manners of the first aspect, the performing a system upgrade includes: performing system upgrade based on an upgrade data packet, wherein the upgrade data packet is from the electronic equipment; and, the method further comprises: and receiving an upgrade data packet from the electronic equipment under the condition that the stylus allows upgrade.
Optionally, in the case that the stylus allows upgrading, the stylus may send an instruction for applying for data to the electronic device, for applying for an upgrade data packet to the electronic device; the electronic device may send an upgrade data packet to the stylus according to the received instruction of the application data.
With reference to the first aspect, in certain implementation manners of the first aspect, the method further includes: and sending a receiving completion message to the electronic equipment, wherein the receiving completion message is used for indicating the touch control pen to complete the receiving of the upgrade data packet.
According to the application, the touch pen informs the electronic equipment of the condition of the received upgrade data packet by sending the receiving completion message to the electronic equipment, so that the accuracy of data transmission is effectively improved.
With reference to the first aspect, in certain implementation manners of the first aspect, the first identifier is carried in a query message, where the query message is used to query whether the stylus allows upgrading; the method further comprises the steps of: and sending a response message aiming at the query message, wherein the response message is used for indicating whether the stylus allows upgrading.
According to the application, the response message for indicating whether the stylus is allowed to be upgraded is sent to the electronic equipment, so that the system upgrading process can be terminated in time when the stylus does not have upgrading conditions, and the system upgrading efficiency is improved.
With reference to the first aspect, in certain implementation manners of the first aspect, the method further includes: and after the system upgrade is finished, system version information is sent to the electronic equipment, wherein the system version information is used for indicating the current system version of the touch control pen.
In a second aspect, a system upgrade method is provided, where the method may be applied to an electronic device, and may be performed by the electronic device, or may be performed by a component (such as a chip, a chip system, etc.) configured in the electronic device, or may be implemented by a logic module or software capable of implementing all or part of the functions of the electronic device, where the application is not limited in this respect.
The method comprises the following steps: detecting whether a software update interface is opened at a foreground of the electronic equipment under the condition that the touch pen is determined to receive the upgrade data packet; if the software updating interface is opened at the foreground of the electronic equipment, an updating instruction is sent to the touch pen, and the updating instruction is used for indicating the touch pen to update the system.
In the application, when the interface displayed by the electronic equipment is a software updating interface, the user is indicated to possibly have an upgrading intention, at the moment, even if the stylus is immediately subjected to system upgrading, the user can not consider that the stylus is damaged when the stylus cannot be used, and the experience of the user for using the stylus is improved.
In an exemplary embodiment, when it is determined that the stylus receives the upgrade data packet, the electronic device directly sends an upgrade instruction for the stylus to upgrade the system when the interface currently displayed by the electronic device is a software upgrade interface.
For example, when it is determined that the stylus receives the upgrade data packet, if the interface currently displayed by the electronic device is not a software update interface, an upgrade instruction is not sent. It should be understood that the stylus is in a state waiting for the upgrade time to upgrade the system at this time.
With reference to the second aspect, in certain implementations of the second aspect, the method further includes: and receiving a receiving completion message from the touch pen, wherein the receiving completion message is used for indicating the touch pen to complete receiving the upgrade data packet.
According to the application, the electronic equipment can determine that the stylus has received all upgrade data packets sent by the electronic equipment according to the received information, and the accuracy of data transmission can be improved.
With reference to the second aspect, in certain implementations of the second aspect, the method further includes: receiving system version information from the stylus, wherein the system version information is used for indicating the current system version of the stylus; and determining whether to delete the upgrade data packet based on the system version information.
Based on the method, the electronic equipment can determine whether the touch pen is successfully upgraded according to the received system version information, and can reserve the downloaded upgrade data packet for the next system upgrade under the condition that the touch pen is not successfully upgraded, so that the upgrade data packet is not downloaded again in the next upgrade flow, and the system upgrade rate is improved.
In a third aspect, a system upgrade apparatus is provided, including: for performing the method in any one of the possible implementations of the above aspect. In particular, the apparatus comprises means for performing the method in any one of the possible implementations of the above aspect.
In one design, the system upgrade apparatus may include modules corresponding to the methods/operations/steps/actions described in the first aspect or the second aspect, where the modules may be hardware circuits, software, or a combination of hardware circuits and software implementation.
In another design, the system upgrade apparatus is a communication chip that may include an input circuit or interface for transmitting information or data, and an output circuit or interface for receiving information or data.
In another design, the system upgrade apparatus is used to perform the method in any possible implementation manner of the foregoing aspect, where the apparatus may be configured in a stylus or an electronic device, or the apparatus itself is an upper stylus or an electronic device.
In a fourth aspect, there is provided a processor comprising: input circuit, output circuit and processing circuit. The processing circuitry is configured to receive signals via the input circuitry and to transmit signals via the output circuitry such that the processor performs the method of any one of the possible implementations of the above aspect.
In a specific implementation process, the processor may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be a transistor, a gate circuit, a trigger, various logic circuits, and the like. The input signal received by the input circuit may be received and input by, for example and without limitation, a receiver, the output signal may be output by, for example and without limitation, a transmitter and transmitted by a transmitter, and the input circuit and the output circuit may be the same circuit, which functions as the input circuit and the output circuit, respectively, at different times. The application is not limited to the specific implementation of the processor and various circuits.
In a fifth aspect, a processing device is provided that includes a processor and a memory. The processor is configured to read instructions stored in the memory and to receive signals via the receiver and to transmit signals via the transmitter to perform the method of any one of the possible implementations of the above aspect.
Optionally, the processor is one or more and the memory is one or more.
Alternatively, the memory may be integrated with the processor or the memory may be separate from the processor.
In a specific implementation process, the memory may be a non-transient (non-transitory) memory, for example, a Read Only Memory (ROM), which may be integrated on the same chip as the processor, or may be separately disposed on different chips.
It will be appreciated that the associated data interaction process may be, for example, a process of sending a message from a processor, and a process of receiving a message from a processor may be a process of receiving input information. Specifically, the data output by the processing may be output to the transmitter, and the input data received by the processor may be from the receiver. Wherein the transmitter and receiver may be collectively referred to as a transceiver.
The processing means in the fifth aspect may be a chip, and the processor may be implemented by hardware or by software, and when implemented by hardware, the processor may be a logic circuit, an integrated circuit, or the like; when implemented in software, the processor may be a general-purpose processor, implemented by reading software code stored in a memory, which may be integrated in the processor, or may reside outside the processor, and exist separately.
In a sixth aspect, there is provided a stylus comprising: a processor and a memory coupled to the memory for storing instructions that, when executed by the processor, cause the stylus to perform the method of any one of the possible implementations of the first aspect described above.
In a seventh aspect, there is provided an electronic device comprising: a processor and a memory coupled to the memory for storing instructions that, when executed by the processor, cause the electronic device to perform the method of any one of the possible implementations of the second aspect described above.
In an eighth aspect, there is provided a communication system comprising means for implementing the method of the first aspect or any one of the possible implementations of the first aspect, and means for implementing the method of the second aspect or any one of the possible implementations of the second aspect.
In one possible design, the communication system may also include other devices that interact with the stylus or electronic device in the scheme provided by the present application.
In a ninth aspect, there is provided a computer readable storage medium storing a computer program (which may also be referred to as code, or instructions) which, when run on a computer, causes the computer to perform the method of any one of the possible implementations of any one of the aspects.
In a tenth aspect, there is provided a computer program product comprising: a computer program (which may also be referred to as code, or instructions) which, when executed, causes a computer to perform the method of any one of the possible implementations of any one of the aspects.
Drawings
FIG. 1 is a schematic view of a scenario in which embodiments of the present application are applicable;
fig. 2 is a schematic structural diagram of a stylus according to an embodiment of the present application;
fig. 3 is a schematic diagram of a partially disassembled structure of a stylus according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a stylus interacting with an electronic device according to an embodiment of the present application;
fig. 5 is a schematic hardware structure of a stylus according to an embodiment of the present application;
Fig. 6 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
FIG. 7 is a schematic flow chart of a system upgrade method provided by an embodiment of the present application;
FIG. 8 is a schematic flow chart of another system upgrade method provided by an embodiment of the present application;
FIG. 9 is a schematic block diagram of a system upgrade apparatus provided by an embodiment of the present application;
fig. 10 is a schematic block diagram of another system upgrade apparatus provided by an embodiment of the present application.
Detailed Description
The technical scheme of the application will be described below with reference to the accompanying drawings.
Fig. 1 is a schematic view of a scenario in which an embodiment of the present application is applicable. As shown in fig. 1, a stylus (stylus) 100 and an electronic device 200 are included in the scene. An electronic device 200 is illustrated in fig. 1 as a tablet computer (tablet). The stylus 100 may provide input to the electronic device 200, and the electronic device 200 performs an operation responsive to the input based on the input of the stylus 100. In one embodiment, the stylus 100 and the electronic device 200 may be interconnected by a communication network to enable interaction of wireless signals. The communication network may be, but is not limited to: wireless fidelity (wireless fidelity, WI-FI) hotspot network, WI-FI point-to-point (P2P) network, bluetooth network, zigbee network, or near field communication (near field communication, NFC) network.
The stylus 100 may be, but is not limited to: inductive pens and capacitive pens. When the electronic device 200 has a touch screen 201 and the stylus 100 is an inductive pen, an electromagnetic induction board needs to be integrated on the touch screen 201 of the electronic device 200 that interacts with the stylus 100. The electromagnetic induction plate is provided with coils, and the induction pen is also integrated with the coils. Based on the electromagnetic induction principle, in the magnetic field range generated by the electromagnetic induction plate, along with the movement of the induction pen, the induction pen can accumulate electric energy. The inductive pen can transmit the accumulated electric energy to the electromagnetic induction plate through the coil in the inductive pen through free oscillation. The electromagnetic induction plate can scan the coil on the electromagnetic induction plate based on the electric energy from the induction pen, and calculate the position of the induction pen on the touch screen 201. The touch screen 201 in the electronic device 200 may also be referred to as a touch screen and the stylus 100 may also be referred to as a stylus.
The capacitive pen may include: passive capacitive pens and active capacitive pens. Passive capacitive pens may be referred to as passive capacitive pens and active capacitive pens may be referred to as active capacitive pens.
One or more electrodes may be provided in the active capacitive pen (e.g., within the pen tip), through which the active capacitive pen may emit a signal. When the stylus 100 is an active capacitive stylus, an integrated electrode array is required on the touch screen 201 of the electronic device 200 that interacts with the stylus 100. In one embodiment, the electrode array may be a capacitive electrode array. The electronic device 200 may receive a signal from the active capacitive pen through the electrode array, and further identify the position of the active capacitive pen on the touch screen and the tilt angle of the active capacitive pen based on the change of the capacitance value on the touch screen 201 when the signal is received.
Fig. 2 is a schematic structural diagram of a stylus according to an embodiment of the present application. As shown in fig. 2, the stylus 100 may include a nib 10, a barrel 20, and a rear cover 30. The inside of the pen holder 20 is a hollow structure, the pen point 10 and the rear cover 30 are respectively positioned at two ends of the pen holder 20, the rear cover 30 and the pen holder 20 can be inserted or clamped, and the matching relationship between the pen point 10 and the pen holder 20 is detailed in the description of fig. 3.
Fig. 3 is a schematic diagram of a partially disassembled structure of a stylus according to an embodiment of the present application. As shown in fig. 3, the stylus 100 further includes a spindle assembly 50, the spindle assembly 50 is located in the pen holder 20, and the spindle assembly 50 is slidably disposed in the pen holder 20. Spindle assembly 50 has external threads 51 thereon and nib 10 includes writing end 11 and connecting end 12, wherein connecting end 12 of nib 10 has internal threads (not shown) that mate with external threads 51.
When the spindle assembly 50 is assembled into the barrel 20, the connecting end 12 of the nib 10 extends into the barrel 20 and is threadedly coupled with the external threads 51 of the spindle assembly 50. In some other examples, the connection between the connection end 12 of the pen tip 10 and the spindle assembly 50 may also be achieved by a removable manner, such as a snap fit. The replacement of the nib 10 is achieved by the removable connection between the connecting end 12 of the nib 10 and the spindle assembly 50.
In order to detect the pressure applied to the writing end 11 of the nib 10, as shown in fig. 2, a gap 10a is provided between the nib 10 and the barrel 20, so that when the writing end 11 of the nib 10 is subjected to an external force, the nib 10 can move towards the barrel 20, and the movement of the nib 10 drives the spindle assembly 50 to move in the barrel 20. In the detection of the external force, referring to fig. 3, a pressure sensing assembly 60 is provided on the spindle assembly 50, and a portion of the pressure sensing assembly 60 is fixedly connected with a fixing structure in the pen holder 20, and a portion of the pressure sensing assembly 60 is fixedly connected with the spindle assembly 50. Thus, when the spindle assembly 50 moves along with the pen tip 10, since a portion of the pressure sensing assembly 60 is fixedly connected with the fixing structure in the pen holder 20, the movement of the spindle assembly 50 drives the pressure sensing assembly 60 to deform, the deformation of the pressure sensing assembly 60 is transmitted to the circuit board 70 (for example, the pressure sensing assembly 60 and the circuit board 70 can be electrically connected through a wire or a flexible circuit board), and the circuit board 70 detects the pressure of the writing end 11 of the pen tip 10 according to the deformation of the pressure sensing assembly 60, so that the thickness of the line of the writing end 11 is controlled according to the pressure of the writing end 11 of the pen tip 10.
Note that the pressure detection of the pen tip 10 includes, but is not limited to, the above method. For example, the pressure of the pen tip 10 may be detected by a pressure sensor provided in the writing end 11 of the pen tip 10.
In this embodiment, as shown in fig. 3, the stylus pen 100 further includes a plurality of electrodes, which may be, for example, a first transmitting electrode 41, a ground electrode 43, and a second transmitting electrode 42. The first emitter electrode 41, the ground electrode 43, and the second emitter electrode 42 are all electrically connected to the circuit board 70. The first transmitting electrode 41 may be located in the pen tip 10 and close to the writing end 11, and the circuit board 70 may be configured as a control board that may provide signals to the first transmitting electrode 41 and the second transmitting electrode 42, respectively, the first transmitting electrode 41 being configured to transmit a first signal, and when the first transmitting electrode 41 is close to the touch screen 201 of the electronic device 200, a coupling capacitance may be formed between the first transmitting electrode 41 and the touch screen 201 of the electronic device 200, so that the electronic device 200 may receive the first signal. The second transmitting electrode 42 is configured to transmit a second signal, and the electronic device 200 may determine the tilt angle of the stylus 100 according to the received second signal. In an embodiment of the present application, the second emitter electrode 42 may be located on the inner wall of the barrel 20. In one example, the second emitter electrode 42 may also be located on the spindle assembly 50.
The ground electrode 43 may be located between the first and second transmitting electrodes 41 and 42, or the ground electrode 43 may be located at the outer circumference of the first and second transmitting electrodes 41 and 42, the ground electrode 43 serving to reduce coupling of the first and second transmitting electrodes 41 and 42 with each other.
When the electronic device 200 receives the first signal from the stylus 100, the capacitance value at the corresponding position of the touch screen 201 changes. Accordingly, the electronic device 200 may determine the location of the stylus 100 (or the tip of the stylus 100) on the touch screen 201 based on the change in capacitance value on the touch screen 201. In addition, the electronic device 200 may acquire the tilt angle of the stylus 100 using a dual-nib projection method in the tilt angle detection algorithm. The positions of the first transmitting electrode 41 and the second transmitting electrode 42 in the stylus 100 are different, so when the electronic device 200 receives the first signal and the second signal from the stylus 100, the capacitance values at two positions on the touch screen 201 will change. The electronic device 200 may obtain the tilt angle of the stylus 100 according to the distance between the first emitter electrode 41 and the second emitter electrode 42 and the distance between the two positions where the capacitance value changes on the touch screen 201, and more detailed obtaining of the tilt angle of the stylus 100 may be described with reference to the related art dual-nib projection method.
In this embodiment, as shown in fig. 3, the stylus 100 further includes: and a battery assembly 80, the battery assembly 80 being configured to provide power to the circuit board 70. The battery assembly 80 may include a lithium ion battery, or the battery assembly 80 may include a nickel-chromium battery, an alkaline battery, a nickel-hydrogen battery, or the like. In one embodiment, the battery included in the battery assembly 80 may be a rechargeable battery or a disposable battery, wherein when the battery included in the battery assembly 80 is a rechargeable battery, the stylus 100 may charge the battery in the battery assembly 80 by wireless charging.
When the stylus 100 is an active capacitive stylus, referring to fig. 4, after the electronic device 200 is wirelessly connected to the stylus 100, the electronic device 200 may send an uplink signal to the stylus 100 through an electrode array integrated on the touch screen 201. The stylus 100 may receive the uplink signal through the receiving electrode, and the stylus 100 transmits the downlink signal through the transmitting electrode (e.g., the first transmitting electrode 41 and the second transmitting electrode 42). The downstream signal includes the first signal and the second signal described above. When the tip 10 of the stylus 100 contacts the touch screen 201, the capacitance value at the corresponding position of the touch screen 201 changes, and the electronic device 200 may determine the position of the tip 10 of the stylus 100 on the touch screen 201 based on the capacitance value on the touch screen 201. In one embodiment, the upstream and downstream signals may be square wave signals.
Fig. 5 is a schematic hardware structure of a stylus according to an embodiment of the present application. As shown in fig. 5, the stylus 100 may have a processor 110. The processor 110 may include storage and processing circuitry for supporting the operation of the stylus 100. The storage and processing circuitry may include storage devices such as non-volatile memory (e.g., flash memory or other electrically programmable read-only memory configured as a solid state drive), volatile memory (e.g., static or dynamic random access memory), and the like. Processing circuitry in the processor 110 may be used to control the operation of the stylus 100. The processing circuitry may be based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio chips, application specific integrated circuits, and the like.
One or more sensors may be included in the stylus 100. For example, the sensor may include a pressure sensor 120. The pressure sensor 120 may be disposed at the writing end 11 of the stylus 100 (as shown in fig. 3). Of course, the pressure sensor 120 may also be disposed in the barrel 20 of the stylus 100, such that when one end of the nib 10 of the stylus 100 is stressed, the other end of the nib 10 moves to apply force to the pressure sensor 120. In one embodiment, the processor 110 may adjust the line thickness of the stylus 100 at the point 10 writing according to the amount of pressure detected by the pressure sensor 120.
The sensors may also include inertial sensors 130. Inertial sensor 130 may include a three-axis accelerometer and a three-axis gyroscope, and/or other components for measuring motion of stylus 100, for example, a three-axis magnetometer may be included in the sensor in a nine-axis inertial sensor configuration. The sensors may also include additional sensors such as temperature sensors, ambient light sensors, light-based proximity sensors, contact sensors, magnetic sensors, pressure sensors, and/or other sensors.
Status indicators 140 such as light emitting diodes and buttons 150 may be included in the stylus 100. The status indicator 140 is used to alert the user of the status of the stylus 100. The buttons 150 may include mechanical buttons and non-mechanical buttons, and the buttons 150 may be used to collect button press information from a user.
In embodiments of the present application, one or more electrodes 160 (see, in particular, the description of fig. 3) may be included in the stylus 100, one of the electrodes 160 may be located at the writing end of the stylus 100, and one of the electrodes 160 may be located within the pen tip 10, as described above with reference to the related description.
A sensing circuit 170 may be included in the stylus 100. The sensing circuit 170 may sense capacitive coupling between the electrodes 160 and drive lines of a capacitive touch sensor panel that interacts with the stylus pen 100. The sensing circuit 170 may include an amplifier to receive the capacitance readings from the capacitive touch sensor panel, a clock to generate a demodulation signal, a phase shifter to generate a phase shifted demodulation signal, a mixer to demodulate the capacitance readings using in-phase demodulation frequency components, a mixer to demodulate the capacitance readings using quadrature demodulation frequency components, and the like. The result of the mixer demodulation may be used to determine an amplitude proportional to the capacitance so that the stylus 100 may sense contact with the capacitive touch sensor panel.
It will be appreciated that the stylus 100 may include a microphone, speaker, audio generator, vibrator, camera, data port, and other devices, as desired. A user may control the operation of the stylus 100 and the electronic device 200 interacting with the stylus 100 by providing commands with these devices and receive status information and other outputs.
The processor 110 may be used to run software on the stylus 100 that controls the operation of the stylus 100. During operation of the stylus 100, software running on the processor 110 may process sensor inputs, button inputs, and inputs from other devices to monitor movement of the stylus 100 and other user inputs. Software running on the processor 110 may detect user commands and may communicate with the electronic device 200.
To support wireless communication of the stylus 100 with the electronic device 200, the stylus 100 may include a wireless module. In fig. 5, a bluetooth module 180 is taken as an example of the wireless module. The wireless module may also be a WI-FI hotspot module, a WI-FI point-to-point module, or the like. The bluetooth module 180 may include a radio frequency transceiver, such as a transceiver. Bluetooth module 180 may also include one or more antennas. The transceiver may transmit and/or receive wireless signals using an antenna, which may be based on the type of wireless module, bluetooth signals, wireless local area network signals, remote signals such as cellular telephone signals, near field communication signals, or other wireless signals.
The stylus 100 may also include a charging module 190, and the charging module 190 may support charging of the stylus 100 to provide power to the stylus 100.
It should be understood that the electronic device 200 in the embodiment of the present application may be referred to as a User Equipment (UE), a terminal (terminal), etc., for example, the electronic device 200 may be a tablet (portable android device, PAD), a personal digital assistant (personal digital assistant, PDA), a handheld device with a wireless communication function, a computing device, an in-vehicle device, or a wearable device, a Virtual Reality (VR) terminal device, an augmented reality (augmented reality, AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self-driving (self-driving), a wireless terminal in remote medical (remote media), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation security (transportation safety), a mobile terminal or a fixed terminal with a touch screen, such as a wireless terminal in smart city (smart home), or the like. The form of the terminal device in the embodiment of the application is not particularly limited.
Fig. 6 is a schematic hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 6, the electronic device 200 may include multiple subsystems that cooperate to perform, coordinate, or monitor one or more operations or functions of the electronic device 200. Electronic device 200 includes processor 210, input surface 220, coordination engine 230, power subsystem 240, power connector 250, wireless interface 260, and display 270.
Illustratively, coordination engine 230 may be used to communicate and/or process data with other subsystems of electronic device 200; communication and/or transaction data with the stylus 100; measuring and/or obtaining an output of one or more analog or digital sensors (such as touch sensors); measuring and/or obtaining an output of one or more sensor nodes of an array of sensor nodes (such as an array of capacitive sensing nodes); receiving and locating tip and ring signals from the stylus 100; the stylus 100 or the like is positioned based on the positions of the tip signal crossing region and the ring signal crossing region.
The coordination engine 230 of the electronic device 200 includes or is otherwise communicatively coupled to a sensor layer located below or integral with the input surface 220. The coordination engine 230 utilizes the sensor layer to locate the stylus 100 on the input surface 220 and uses the techniques described herein to estimate the angular position of the stylus 100 relative to the plane of the input surface 220. In one embodiment, the input surface 220 may be referred to as a touch screen 201.
For example, the sensor layer of coordination engine 230 of electronic device 200 is a grid of capacitive sensing nodes arranged in columns and rows. More specifically, the array of column traces is arranged perpendicular to the array of row traces. The sensor layer may be separate from other layers of the electronic device, or the sensor layer may be disposed directly on another layer, such as but not limited to: display stack layers, force sensor layers, digitizer layers, polarizer layers, battery layers, structural or decorative housing layers, and the like.
The sensor layer can operate in a variety of modes. If operating in mutual capacitance mode, the column and row traces form a single capacitive sense node at each overlap point (e.g., a "vertical" mutual capacitance). If operating in self-capacitance mode, the column and row traces form two (vertically aligned) capacitive sense nodes at each overlap point. In another embodiment, if operating in a mutual capacitance mode, adjacent column traces and/or adjacent row traces may each form a single capacitive sense node (e.g., a "horizontal" mutual capacitance). As described above, the sensor layer may detect the presence of the tip 10 of the stylus 100 and/or the touch of a user's finger by monitoring the capacitance (e.g., mutual capacitance or self capacitance) change presented at each capacitive sensing node. In many cases, coordination engine 230 may be configured to detect tip and ring signals received from stylus 100 through the sensor layer via capacitive coupling.
Wherein the tip signal and/or the ring signal may include specific information and/or data that may be configured to cause the electronic device 200 to identify the stylus 100. Such information is generally referred to herein as "stylus identity" information. This information and/or data may be received by the sensor layer and interpreted, decoded, and/or demodulated by coordination engine 230.
Processor 210 may use the stylus identity information to simultaneously receive input from more than one stylus. In particular, coordination engine 230 may be configured to communicate to processor 210 the position and/or angular position of each of the number of styluses detected by coordination engine 230. In other cases, coordination engine 230 may also transmit information to processor 210 regarding the relative positions and/or relative angular positions of the plurality of styluses detected by coordination engine 230. For example, coordination engine 230 may notify processor 210 that the detected first stylus is located away from the detected second stylus.
In other cases, the end signal and/or ring signal may also include specific information and/or data for causing the electronic device 200 to identify a specific user. Such information is generally referred to herein as "user identity" information.
Coordination engine 230 may forward user identity information (if detected and/or recoverable) to processor 210. If the user identity information cannot be recovered from the tip signal and/or the ring signal, coordination engine 230 may optionally indicate to processor 210 that the user identity information is not available. Processor 210 can utilize user identity information (or the absence of such information) in any suitable manner, including but not limited to: accepting or rejecting input from a particular user, allowing or rejecting access to a particular function of the electronic device, etc. Processor 210 may use the user identity information to simultaneously receive input from more than one user.
In still other cases, the tip signal and/or the ring signal may include specific information and/or data that may be configured to cause the electronic device 200 to identify settings or preferences of the user or the stylus 100. Such information is generally referred to herein as "stylus setup" information.
Coordination engine 230 may forward the stylus setup information (if detected and/or recoverable) to processor 210. If the stylus setting information is not recoverable from the tip signal and/or the ring signal, coordination engine 230 may optionally indicate to processor 210 that the stylus setting information is not available. The electronic device 200 can utilize the stylus setting information (or the absence of the information) in any suitable manner, including but not limited to: applying settings to an electronic device, applying settings to a program running on an electronic device, changing line thickness, color, pattern presented by a graphics program of an electronic device, changing settings of a video game operating on an electronic device, and so forth.
In general, the processor 210 may be configured to perform, coordinate, and/or manage the functions of the electronic device 200. Such functions may include, but are not limited to: communication and/or transaction data with other subsystems of the electronic device 200, communication and/or transaction data with the stylus 100, data communication and/or transaction data over a wireless interface, data communication and/or transaction data over a wired interface, facilitating power exchange over a wireless (e.g., inductive, resonant, etc.) or wired interface, receiving a position and angular position of one or more styluses, etc.
Processor 210 may be implemented as any electronic device capable of processing, receiving, or transmitting data or instructions. For example, the processor may be a microprocessor, a central processing unit, an application specific integrated circuit, a field programmable gate array, a digital signal processor, an analog circuit, a digital circuit, or a combination of these devices. The processor may be a single-threaded or multi-threaded processor. The processor may be a single core or multi-core processor.
During use, processor 210 may be configured to access a memory storing instructions. The instructions may be configured to cause the processor to perform, coordinate, or monitor one or more operations or functions of the electronic device 200.
The instructions stored in the memory may be configured to control or coordinate the operation of other components of the electronic device 200, such as, but not limited to: another processor, analog or digital circuitry, a volatile or non-volatile memory module, a display, a speaker, a microphone, a rotational input device, buttons or other physical input devices, biometric sensors and/or systems, force or touch input/output components, a communication module (such as a wireless interface and/or power connector), and/or a haptic or tactile feedback device.
The memory may also store electronic data that may be used by the stylus or the processor. For example, the memory may store electronic data or content (such as media files, documents, and applications), device settings and preferences, timing signals and control signals, or data for various modules, data structures or databases, files or configurations related to detecting tip signals and/or ring signals, and so forth. The memory may be configured as any type of memory. For example, the memory may be implemented as random access memory, read only memory, flash memory, removable memory, other types of storage elements, or a combination of such devices.
The electronic device 200 also includes a power subsystem 240. The power subsystem 240 may include a battery or other power source. The power subsystem 240 may be configured to provide power to the electronic device 200. The power subsystem 240 may also be coupled to a power connector 250. The power connector 250 may be any suitable connector or port that may be configured to receive power from an external power source and/or to provide power to an external load. For example, in some embodiments, the power connector 250 may be used to recharge a battery within the power subsystem 240. In another embodiment, the power connector 250 may be used to transfer power stored (or available) within the power subsystem 240 to the stylus 100.
The electronic device 200 also includes a wireless interface 260 to facilitate electronic communications between the electronic device 200 and the stylus 100. In one embodiment, the electronic device 200 may be configured to communicate with the stylus 100 via a low energy bluetooth communication interface or a near field communication interface. In other examples, the communication interface facilitates electronic communications between the electronic device 200 and an external communication network, device, or platform.
The wireless interface 260 (whether the communication interface between the electronic device 200 and the stylus 100 or another communication interface) may be implemented as one or more wireless interfaces, bluetooth interfaces, near field communication interfaces, magnetic interfaces, universal serial bus interfaces, inductive interfaces, resonant interfaces, capacitively coupled interfaces, WI-FI interfaces, transmission control protocol/internet protocol (transmission control protocol/internet protocol, TCP/IP) interfaces, network communication interfaces, optical interfaces, acoustical interfaces, or any conventional communication interfaces.
The electronic device 200 also includes a display 270. The display 270 may be located behind the input surface 220 or may be integral therewith. A display 270 may be communicatively coupled to the processor 210. Processor 210 may present information to a user using display 270. In many cases, the processor 210 uses the display 270 to present an interface with which a user may interact. In many cases, the user manipulates the stylus 100 to interact with the interface.
It will be apparent to one skilled in the art that some of the specific details presented above with respect to the electronic device 200 may not be required to practice a particular described embodiment or equivalent thereof. Similarly, other electronic devices may include a greater number of subsystems, modules, components, etc. Some of the sub-modules may be implemented as software or hardware, where appropriate. It should be understood, therefore, that the foregoing description is not intended to be exhaustive or to limit the disclosure to the precise form described herein. On the contrary, many modifications and variations will be apparent to those of ordinary skill in the art in light of the above disclosure.
At present, when a stylus is connected with an electronic device and an upgrade data packet is acquired, no matter what state the stylus is in, system upgrade can be immediately performed, and in the process of system upgrade, the stylus is disconnected with the electronic device, so that the stylus cannot be used. For example, the direct system upgrade may be performed without the user's knowledge, and thus, when the stylus is not available during the system upgrade, the user may be considered to be a stylus damage, reducing the user experience.
In view of this, the present application provides a system upgrade method and related apparatus, so that a stylus pen can determine that a software update interface is not opened in a foreground through mode information (whether the software update interface is opened in the foreground) of an electronic device carried in a query message sent by the electronic device, and when an upgrade instruction is not received, the stylus pen waits for a specified upgrade time to perform a system upgrade, and when the stylus pen is in a state of waiting for an upgrade, the stylus pen can be used normally, or the software update interface is not opened in the foreground, and the stylus pen performs a system upgrade according to the received upgrade instruction, thereby improving the experience of a user using the stylus pen.
For purposes of clarity in describing the embodiments of the present application, the words "exemplary" or "such as" are used herein to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
Furthermore, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, and c may represent: a, b, or c, or a and b, or a and c, or b and c, or a, b and c, wherein a, b and c can be single or multiple.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 7 is a schematic flow chart of a system upgrade method 700 provided by an embodiment of the present application. As shown in fig. 7, the method 700 may include the steps of:
s701, the electronic equipment searches for packages. The searching packet is an upgrade data packet used for upgrading by searching the stylus.
It should be appreciated that each search of the electronic device may be triggered when the electronic device establishes a connection with the stylus communication; or the electronic equipment and the touch pen are in a connection state, and the electronic equipment is triggered under the condition of bright screen. Illustratively, a bright screen search is a search once within 24 hours.
It should also be appreciated that the connection between the electronic device and the stylus may be described with reference to the above related descriptions, and will not be repeated here.
S702, the electronic equipment downloads the upgrade data packet.
It should be understood that, before S701, the electronic device establishes a communication connection with the stylus, and sends respective device information and status information (for example, the device information may include a media access control (medium access control, MAC) address of the stylus, a system version number, a device type, a device name, etc., and the status information may include whether the electronic device is in a state of waiting for a system upgrade) to the other party in the process of establishing the communication connection, and the electronic device may determine current system version information of the stylus from the acquired information. And the electronic equipment requests the server (namely the searching process) according to the acquired system version information, and if a new system version exists, the electronic equipment downloads an upgrade data packet corresponding to the new system version and stores the upgrade data packet in the local.
S703, the electronic device sends a query message to the stylus. Correspondingly, the stylus receives the query message.
The query message is used for inquiring whether the stylus allows upgrading, and an instruction (first identification) for indicating whether the current electronic device is in a foreground mode or a background mode is carried in the query message.
It should be understood that the foreground mode refers to an interface that is displayed as a software update when the electronic device sends a query message (the software update interface is open in the foreground of the electronic device), and the background mode refers to an interface that is not displayed as a software update when the electronic device sends a query message (the software update interface is not open in the foreground of the electronic device).
S704, the touch pen sends a query result to the electronic equipment.
The query result is used for indicating whether the current stylus allows upgrading.
It should be appreciated that the query result is a response message to the query message.
Illustratively, the stylus is not allowed to upgrade, or in the case of insufficient power, etc., and a query result is returned that cannot be upgraded.
Optionally, in the case that the stylus does not allow the upgrade, the flow of the system upgrade is ended.
Optionally, in case the stylus allows for upgrades, the subsequent steps are continued.
S705, the electronic device negotiates upgrade parameters with the stylus.
Illustratively, the parameter negotiation process is: the electronic device sends a parameter negotiation instruction to the touch control pen, and the touch control pen returns relevant parameters of upgrading to the electronic device after receiving the instruction, for example, parameters such as timeout waiting time of checking upgrading data packets, timeout time of restarting upgrading, sending time of the data packets and the like.
S706, the stylus sends an instruction for applying data to the electronic equipment.
S707, after receiving the instruction of applying for data, the electronic device sends an upgrade data packet to the touch control pen.
It should be understood that the upgrade data packet may include a plurality of data packets, for example, data packet 1, data packet 2, data packet 3, …, and data packet N (N is an integer greater than 1). In connection with this example, the above-described instruction for applying for data may be used to apply for transmitting the data packet 1 to the data packet 5 to the electronic device, and correspondingly, the electronic device transmits the data packet 1 to the data packet 5 to the stylus according to the instruction.
S708, the stylus sends a reception completion message to the electronic device.
S709, the electronic device sends a confirmation message to the stylus, where the message is used to notify the stylus that all upgrade data packets have been received.
The receiving completion message is used for indicating that the stylus is completed to receive the upgrade data packet. That is, after receiving the upgrade data packet, the stylus feeds back the received upgrade data packet to the stylus.
In combination with the above example of the data packet, the data packets applied by the stylus are data packet 1 to data packet 5, and correspondingly, the data packets sent by the electronic device to the stylus are data packet 1 to data packet 5. After the stylus receives the data packet, the received data packet is sent to the electronic device, so that the electronic device can confirm whether all or part of the data packets 1 to 5 need to be retransmitted, until the stylus receives all the upgrade data packets (data packets 1 to N), the electronic device sends the confirmation information to the stylus, and the stylus is informed of the fact that all the upgrade data packets have been received.
It should be noted that, after receiving all the upgrade data packets, the stylus determines whether to directly upgrade the system according to specific conditions. The following describes the way of system upgrade after the stylus receives the upgrade data packet in two cases.
In the first case, the instruction carried in the query message indicates that the electronic device is in the foreground mode, that is, the first identifier indicates that the software update interface is opened in the foreground of the electronic device.
The first case is executed: s710, the stylus directly upgrades the system based on the received upgrade data packet.
Optionally, after S710, the stylus sends system version information to the electronic device, where the system version information is used to indicate the current system version of the stylus, and may be, for example, a system version number; the electronic equipment compares the received system version with the system version corresponding to the downloaded upgrade data packet, and if the system version and the system version are the same, the electronic equipment deletes the downloaded upgrade data packet; if the update data packets are different, the downloaded update data packets are saved, and the update data packets are waited for being used after the next triggering of the system update.
In the embodiment of the application, the touch pen can directly upgrade the system according to the received first identifier under the condition of indicating that the electronic equipment is in the foreground mode. It should be understood that when the electronic device is in the foreground mode, it indicates that the user has great willingness to perform system upgrade, and at this time, the stylus can determine that the electronic device is in the foreground mode according to the received first identifier, so that system upgrade is immediately performed, and experience of the user using the stylus is improved.
And secondly, the instruction carried in the query message indicates that the electronic equipment is in a background mode, that is, the first identifier indicates that the software update interface is not opened in the foreground of the electronic equipment.
In one possible implementation, after the query message, the electronic device displays a software update interface in response to the operation of the user, and S711 and S712 are executed when the electronic device determines that the electronic device is still in the software update interface while the stylus receives the upgrade data packet, as follows:
s711, the electronic equipment sends an upgrade instruction to the touch pen, wherein the upgrade instruction is used for indicating the touch pen to upgrade the system. Correspondingly, the stylus receives the upgrade instruction.
S712, the stylus performs system upgrade based on the instruction and the upgrade data packet.
In another possible implementation manner, after confirming that the reception of the upgrade data packet is completed, the electronic device is in the background mode (the software update interface is not opened in the foreground of the electronic device), and S713 is executed, where the stylus enters an upgrade waiting state, and waits for a specified upgrade time to perform a system upgrade.
It should be appreciated that the user may use the stylus normally with the stylus entering an upgrade wait state and the stylus being connected to the electronic device.
It should also be appreciated that the designated upgrade time in the embodiment of the present application may be a time preset on the stylus by the developer, which may be determined by counting the time the user is not using the stylus, for example, 5 a.m. or other time points, which is not limited in this regard.
Optionally, the electronic device displays a software update interface in response to a user operation while the stylus waits for a specified upgrade. At the moment, the electronic equipment acquires that the touch pen is in an upgrade waiting state, and the system version of the touch pen is not the latest version, and then the electronic equipment sends an upgrade instruction to the touch pen; and the stylus performs system upgrading based on the received instruction.
In the embodiment of the application, the touch pen can wait for system upgrade when the electronic equipment is indicated to be in the background mode according to the received first identifier and the preset condition is met (the upgrade instruction is received or the upgrade time is waited for). It should be understood that the electronic device is in a background mode, which indicates that the user does not want to upgrade, at this time, the stylus can wait for a specified upgrade time to upgrade the system (for example, upgrade the system in the 5 am) or upgrade the system according to an upgrade instruction sent by the electronic device when the user opens a software update interface, so that the situation that the stylus cannot be used due to the system upgrade in the process of using the stylus by the user is effectively avoided, and the user experience is improved.
Fig. 8 is a schematic flow chart of another system upgrade method 800 provided by an embodiment of the present application. Before the method 800 shown below, the electronic device and the stylus establish a communication connection, the electronic device may obtain system version information and status information of the stylus, and the electronic device starts searching for an upgrade data packet according to the obtained information, and downloads the upgrade data packet after searching for the upgrade data packet, and stores the upgrade data packet locally. As shown in fig. 8, the method 800 may include S801 and S802, and the steps of the method 800 are described in detail below:
S801, the electronic device sends a first identifier to the stylus, where the first identifier is used to indicate whether the software update interface is opened in a foreground of the electronic device. Correspondingly, the stylus receives the first identification.
It should be appreciated that whether the software update interface described above is open in the foreground of the electronic device indicates whether the current display interface of the electronic device is a software update interface.
It should also be understood that the specific content indicated by the first identifier is determined according to the current display interface when the electronic device sends the first identifier. For example, if the interface displayed by the electronic device is a software update interface, the first identifier indicates that the software update interface is opened in the foreground of the electronic device; the interface displayed by the electronic device is not a software update interface, and the first identifier indicates that the software update interface is not opened in the foreground of the electronic device.
Illustratively, the first identifier may be 1 or 0. For example, a first flag of 1 indicates that the software update interface is open in the foreground of the electronic device (which may also be referred to as the electronic device being in foreground mode), and a first flag of 0 indicates that the software update interface is not open in the foreground of the electronic device (which may also be referred to as the electronic device being in background mode); or, the first identifier is 0, which indicates that the software update interface is opened in the foreground of the electronic device, and the first identifier is 1, which indicates that the software update interface is not opened in the foreground of the electronic device. It should be understood that the first identifier may be represented in other manners, which the present application is not limited to.
S802, when the software updating interface is not opened in the foreground of the electronic equipment, the stylus waits until the preset condition is met to update the system.
The preset conditions comprise: the stylus receives an upgrade instruction from the electronic device, or the stylus reaches a specified upgrade time. The upgrade instruction is used for indicating the stylus to upgrade the system.
It should be appreciated that the above-described software update interface not being opened in the foreground indicates that the current display interface of the electronic device is not a software update interface.
It should also be appreciated that the above-described electronic device sending an upgrade instruction may be triggered when two conditions are satisfied at the same time: 1. the first identifier is used for indicating that the software updating interface is not opened in the foreground of the electronic equipment; 2. the electronic device displays a software update interface in response to a user operation.
In the embodiment of the application, the electronic device indicates whether the interface currently displayed by the electronic device is a software update interface through the first identifier, so that the touch pen receiving the first identifier can perform system upgrade when the first identifier indicates that the software update interface is not opened in the foreground of the electronic device and waits for a preset condition. Under any condition, the system upgrade is directly carried out on the touch pen, so that the situation that the touch pen cannot be used due to upgrade in the using process is effectively avoided, and the experience of a user in using the touch pen is improved.
As an alternative embodiment, the method 800 further includes: and under the condition that the software updating interface is opened at the foreground of the electronic equipment, directly performing system updating without waiting until the preset condition is met.
It should be understood that the preset condition is the same as the preset condition described in S802, and will not be repeated here.
It should also be appreciated that the above described software update interface opens in the foreground of the electronic device to indicate that the current display interface of the electronic device is a software update page.
In the embodiment of the application, the stylus can directly upgrade the system under the condition that the first identifier indicates that the interface displayed by the electronic equipment is a software updating interface. It should be noted that, when the interface displayed by the electronic device is a software update interface, it indicates that a user may have an upgrade intention, at this time, even if the stylus is immediately upgraded, when the stylus cannot be used, the user may not consider that the stylus is damaged, thereby improving the experience of using the stylus by the user.
As an alternative embodiment, the performing the system upgrade includes: performing system upgrade based on an upgrade data packet from the electronic device; and, the method 800 further includes: and under the condition that the stylus allows upgrading, the electronic equipment sends an upgrading data packet to the stylus. Correspondingly, the stylus receives the upgrade data packet.
Optionally, the interface displayed by the first identifier indicates that the interface displayed by the electronic device is a software update interface, and the stylus directly performs system update without waiting after receiving all update data packets. Or, the interface displayed by the electronic device is not a software update interface, and after receiving all the upgrade data packets, the stylus may perform system upgrade in the following two cases: 1. when the upgrade instruction is continuously received, upgrading is carried out; 2. and if the upgrade instruction is not received, waiting for the upgrade time to upgrade the system.
Optionally, in the case that the stylus allows upgrading, the stylus may send an instruction for applying for data to the electronic device, for applying for an upgrade data packet to the electronic device; the electronic device may send an upgrade data packet to the stylus according to the received instruction of the application data.
As an alternative embodiment, the stylus sends a reception completion message to the electronic device, the reception completion message being used to instruct the stylus that the reception of the upgrade data packet is completed. Correspondingly, the electronic device receives a message from the stylus that the reception is completed.
The description of the receiving completion message may refer to the description of the receiving completion message in the method 700, which is not repeated herein.
As an optional embodiment, in a case that it is determined that the stylus receives the upgrade data packet, the electronic device detects whether the software update interface is opened in the foreground of the electronic device; if the software updating interface is opened at the foreground of the electronic equipment, the electronic equipment sends an upgrading instruction to the touch control pen, and the upgrading instruction is used for indicating the touch control pen to upgrade the system. Correspondingly, the stylus receives the upgrade instruction.
In an exemplary embodiment, when it is determined that the stylus receives the upgrade data packet, the electronic device directly sends the upgrade instruction when the interface currently displayed by the electronic device is a software update interface.
For example, when it is determined that the stylus receives the upgrade data packet, if the interface currently displayed by the electronic device is not a software update interface, an upgrade instruction is not sent. It should be understood that the stylus is in a state waiting for the upgrade time to upgrade the system at this time.
It should be noted that, after receiving the upgrade data packet for a period of time, the electronic device displays a software update interface in response to the operation of the user. The electronic device needs to determine whether to send an upgrade instruction according to the state of the stylus and the current system version of the stylus: 1. when the touch control pen is in a state of waiting for upgrading time to upgrade the system and the current system version is not a new system version (the system version corresponding to the upgrading data packet), the electronic equipment sends an upgrading instruction; 2. if the current system version of the stylus is a new system version, no upgrade instruction is sent, that is, when the electronic device responds to the operation of the user and displays a software update interface, the stylus is successfully upgraded at the appointed upgrade time.
As an alternative embodiment, the first identifier is carried in a query message, where the query message is used to query whether the stylus allows upgrading; the method 800 further includes: the stylus sends a response message to the electronic device to the query message, the response message indicating whether the stylus allows the upgrade. Correspondingly, the electronic device receives the response message.
It should be appreciated that the condition of whether the stylus allows upgrading may refer to the related description or the known technology in the method 700, and will not be described herein.
As an alternative embodiment, the method 800 further includes: after the system upgrade is completed, the stylus sends system version information to the electronic device, the system version information being used to indicate the current system version of the stylus. Correspondingly, the electronic equipment receives the system version information and determines whether to delete the upgrade data packet based on the system version information.
The above-described system version information may be a system version number, for example.
It should be understood that after the stylus completes the system upgrade, the current system version of the stylus is the new system version, or the system version of the stylus is still the version prior to the system upgrade. That is, after the system upgrade is completed, there are two cases that the upgrade of the stylus is successful or the upgrade fails: 1. after the upgrade is successful, the electronic equipment can delete the downloaded upgrade data packet based on the received system version information; 2. after the upgrade fails, the electronic equipment does not delete the downloaded upgrade data packet so as to be used when the system upgrade is performed by the stylus next time.
It should be understood that the sequence numbers of the above processes do not mean the order of execution, and the execution order of the processes should be determined by the functions and internal logic of the processes, and should not be construed as limiting the implementation process of the embodiments of the present application.
The system upgrade method according to the embodiment of the present application is described in detail above with reference to fig. 7 and 8, and the system upgrade apparatus according to the embodiment of the present application will be described in detail below with reference to fig. 9 and 10.
Fig. 9 is a schematic block diagram of a system upgrade apparatus 900 according to an embodiment of the present application. As shown in fig. 9, the apparatus 900 includes: a transceiver module 910 and a processing module 920.
In one possible implementation, the system upgrade apparatus 900 is the stylus or a chip in the stylus.
Wherein, the transceiver module 910 is configured to: receiving a first identifier from the electronic device, wherein the first identifier is used for indicating whether a software update interface is opened in the foreground of the electronic device; the processing module 920 is configured to: and under the condition that the software updating interface is not opened in the foreground of the electronic equipment, waiting until a preset condition is met, and carrying out system updating, wherein the preset condition comprises the following steps: and receiving an upgrade instruction from the electronic equipment or reaching a designated upgrade time, wherein the upgrade instruction is used for indicating the stylus to upgrade the system.
Optionally, the processing module 920 is further configured to: and under the condition that the software updating interface is opened at the foreground of the electronic equipment, directly performing system updating without waiting until the preset condition is met.
Optionally, the processing module 920 is further configured to: performing system upgrade based on an upgrade data packet from the electronic device; the transceiver module 910 is further configured to: and receiving an upgrade data packet from the electronic equipment under the condition that the stylus allows upgrade.
Optionally, the transceiver module 910 is further configured to: and sending a receiving completion message to the electronic equipment, wherein the receiving completion message is used for indicating the touch control pen to complete the receiving of the upgrade data packet.
Optionally, the first identifier is carried in a query message, where the query message is used to query whether the stylus allows upgrading; the transceiver module 910 is further configured to: and sending a response message aiming at the query message, wherein the response message is used for indicating whether the stylus allows upgrading.
Optionally, the transceiver module 910 is further configured to: and after the system upgrade is finished, system version information is sent to the electronic equipment, wherein the system version information is used for indicating the current system version of the touch control pen.
In an alternative example, it will be appreciated by those skilled in the art that the apparatus 900 may be embodied as a stylus in the foregoing embodiment, and the apparatus 900 may be used to perform each flow and/or step corresponding to the stylus in the foregoing method 700 and method 800, which are not repeated herein.
In another possible implementation manner, the system upgrade apparatus 900 is the electronic device or a chip in the electronic device.
Wherein, the processing module 920 is configured to: detecting whether a software update interface is opened in a foreground of the electronic equipment under the condition that the touch pen is determined to receive the upgrade data packet; the transceiver module 910 is configured to: if the software updating interface is opened at the foreground of the electronic equipment, an upgrading instruction is sent to the touch pen, and the upgrading instruction is used for indicating the touch pen to upgrade the system.
Optionally, the transceiver module 910 is further configured to: and receiving a receiving completion message from the touch control pen, wherein the receiving completion message is used for indicating the touch control pen to complete the receiving of the upgrade data packet.
Optionally, the transceiver module 910 is further configured to: receiving system version information from a touch pen, wherein the system version information is used for indicating the current system version of the touch pen; the processing module 920 is further configured to: and determining whether to delete the upgrade data packet based on the system version information.
In an alternative example, it will be understood by those skilled in the art that the apparatus 900 may be specifically an electronic device in the foregoing embodiment, and the apparatus 900 may be used to perform each flow and/or step corresponding to the electronic device in the foregoing method 700 and method 800, which is not repeated herein.
It should be appreciated that the apparatus 900 herein is embodied in the form of functional modules. The term module herein may refer to an application specific integrated circuit (application specific integrated circuit, ASIC), an electronic circuit, a processor (e.g., a shared, dedicated, or group processor, etc.) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that support the described functionality. In an alternative example, it will be understood by those skilled in the art that the system upgrade apparatus 900 may be specifically a stylus or an electronic device in the foregoing embodiment, or the functions of the stylus or the electronic device in the foregoing embodiment may be integrated into the apparatus 900, and the apparatus 900 may be used to execute each flow and/or step corresponding to the stylus or the electronic device in the foregoing method embodiment, which is not repeated herein.
The apparatus 900 has functions of implementing corresponding steps executed by a stylus or an electronic device in the method; the above functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above. For example, the transceiver module 910 may be a communication interface, such as a transceiver interface.
Fig. 10 is a schematic block diagram of another system upgrade apparatus 1000 provided by an embodiment of the present application. The apparatus 1000 includes a processor 1010, a memory 1020, and a transceiver 1030. The processor 1010, the memory 1020, and the transceiver 1030 are connected through an internal connection path, where the memory 1020 is used for storing instructions, and the processor 1010 is used for executing the instructions stored in the memory 1020, so that the system upgrade apparatus 1000 can execute the system upgrade method provided in the method embodiment.
It should be understood that the functions of the apparatus 900 in the above embodiments may be integrated in the system upgrade apparatus 1000, and the system upgrade apparatus 1000 may be used to perform the steps and/or processes corresponding to the stylus in the above method embodiments, or the system upgrade apparatus 1000 may be used to perform the steps and/or processes corresponding to the stylus or the electronic device in the above method embodiments. The memory 1020 may optionally include read only memory and random access memory and provide instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, the memory may also store information of the device type. The processor 1010 may be configured to execute instructions stored in the memory 1020, and when the processor 1010 executes the instructions, the processor 1010 may perform steps and/or processes corresponding to the stylus in the above-described method embodiments, or the processor 1010 may perform steps and/or processes corresponding to the electronic device in the above-described method embodiments.
It is to be appreciated that in embodiments of the application, the processor 1010 may be a central processing unit (central processing unit, CPU), the processor 1010 may also be other general purpose processors, digital signal processors (digital signal process, DSP), field programmable gate arrays (field programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. The processor 1010 may be a microprocessor or the processor 1010 may be any conventional processor or the like.
In implementation, the steps of the methods 700 and 800 described above may be performed by integrated logic circuitry in hardware in a processor or by instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor executes instructions in the memory to perform the steps of the method described above in conjunction with its hardware. To avoid repetition, a detailed description is not provided herein.
The present application also provides a computer readable storage medium for storing a computer program for implementing the method described in the above method embodiments.
The present application also provides a computer program product comprising a computer program (which may also be referred to as code, or instructions) which, when run on a computer, is able to perform the method described in the method embodiments described above.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the 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 system, 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 units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. 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 the embodiments 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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to 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 illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within 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 (13)

1. A system upgrade method applied to a stylus communicatively coupled to an electronic device, the method comprising:
receiving a first identifier from the electronic equipment, wherein the first identifier is used for indicating whether a software update interface is opened in a foreground of the electronic equipment;
and when the software updating interface is not opened in the foreground of the electronic equipment, waiting until a preset condition is met, and carrying out system updating, wherein the preset condition comprises: and receiving an upgrade instruction from the electronic equipment or reaching a designated upgrade time, wherein the upgrade instruction is used for indicating the stylus to upgrade the system.
2. The method according to claim 1, wherein the method further comprises:
and under the condition that the software updating interface is opened at the foreground of the electronic equipment, directly performing system updating without waiting until the preset condition is met.
3. The method of claim 1 or 2, wherein the performing a system upgrade comprises: performing system upgrade based on an upgrade data packet, wherein the upgrade data packet is from the electronic equipment; the method comprises the steps of,
the method further comprises the steps of:
And receiving the upgrade data packet from the electronic equipment under the condition that the stylus allows upgrade.
4. A method according to claim 3, characterized in that the method further comprises:
and sending a receiving completion message to the electronic equipment, wherein the receiving completion message is used for indicating that the touch pen is completed to receive the upgrade data packet.
5. The method of claim 1, wherein the first identification is carried in a query message that is used to query whether the stylus allows upgrades;
the method further comprises the steps of:
and sending a response message aiming at the query message, wherein the response message is used for indicating whether the stylus allows upgrading.
6. The method according to claim 1, wherein the method further comprises:
and after the system upgrade is finished, system version information is sent to the electronic equipment, wherein the system version information is used for indicating the current system version of the touch control pen.
7. A system upgrade method applied to an electronic device communicatively coupled to a stylus, the method comprising:
detecting whether a software update interface is opened at a foreground of the electronic equipment under the condition that the touch pen is determined to receive the upgrade data packet;
And if the software updating interface is opened at the foreground of the electronic equipment, sending an upgrading instruction to the touch pen, wherein the upgrading instruction is used for indicating the touch pen to upgrade the system.
8. The method of claim 7, wherein the method further comprises:
and receiving a receiving completion message from the touch pen, wherein the receiving completion message is used for indicating the touch pen to complete receiving the upgrade data packet.
9. The method according to claim 7 or 8, characterized in that the method further comprises:
receiving system version information from the stylus, wherein the system version information is used for indicating the current system version of the stylus;
and determining whether to delete the upgrade data packet in the electronic equipment based on the system version information.
10. A system upgrade apparatus comprising means for performing the method of any one of claims 1 to 9.
11. A stylus, comprising: a processor and a memory coupled with the memory, the memory for storing instructions that, when executed by the processor, cause the stylus to perform the method of any one of claims 1-6.
12. An electronic device, comprising: a processor and a memory coupled with the memory, the memory for storing instructions that, when executed by the processor, cause the electronic device to perform the method of any of claims 7-9.
13. A computer readable storage medium storing a computer program comprising instructions for implementing the method of any one of claims 1 to 9.
CN202210743607.3A 2022-06-28 2022-06-28 System upgrading method and related device Active CN116088695B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210743607.3A CN116088695B (en) 2022-06-28 2022-06-28 System upgrading method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210743607.3A CN116088695B (en) 2022-06-28 2022-06-28 System upgrading method and related device

Publications (2)

Publication Number Publication Date
CN116088695A CN116088695A (en) 2023-05-09
CN116088695B true CN116088695B (en) 2023-10-20

Family

ID=86203117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210743607.3A Active CN116088695B (en) 2022-06-28 2022-06-28 System upgrading method and related device

Country Status (1)

Country Link
CN (1) CN116088695B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240722A (en) * 2018-08-30 2019-01-18 百度在线网络技术(北京)有限公司 Application upgrade method, apparatus, system and storage medium
CN112235404A (en) * 2020-10-14 2021-01-15 歌尔科技有限公司 Silent upgrade method and equipment for earphone and charging box
CN114090044A (en) * 2021-11-24 2022-02-25 歌尔科技有限公司 TWS earphone upgrading method, device, equipment and computer readable storage medium
CN114422994A (en) * 2022-03-29 2022-04-29 龙旗电子(惠州)有限公司 Firmware upgrading method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10592228B2 (en) * 2016-02-12 2020-03-17 Microsoft Technology Licensing, Llc Stylus firmware updates

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109240722A (en) * 2018-08-30 2019-01-18 百度在线网络技术(北京)有限公司 Application upgrade method, apparatus, system and storage medium
CN112235404A (en) * 2020-10-14 2021-01-15 歌尔科技有限公司 Silent upgrade method and equipment for earphone and charging box
CN114090044A (en) * 2021-11-24 2022-02-25 歌尔科技有限公司 TWS earphone upgrading method, device, equipment and computer readable storage medium
CN114422994A (en) * 2022-03-29 2022-04-29 龙旗电子(惠州)有限公司 Firmware upgrading method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN116088695A (en) 2023-05-09

Similar Documents

Publication Publication Date Title
EP4262255A1 (en) Pairing method and pairing system
KR102498813B1 (en) Electronic device for pairing with stylus pen and method thereof
CN113490158B (en) Bluetooth device pairing connection method, electronic device, Bluetooth device and terminal system
US20240168572A1 (en) Stylus and electronic device assembly
CN116466867B (en) Handwriting drawing method and device, electronic equipment and readable storage medium
CN114217700B (en) Touch pen switching method and input device
WO2023040602A1 (en) Method for connecting electronic device and electronic device
CN114286433B (en) Method for reducing power consumption of equipment and electronic equipment
US20240053880A1 (en) Handwriting drawing method and apparatus, electronic device, and readable storage medium
CN116088695B (en) System upgrading method and related device
KR102420251B1 (en) Electronic device and control method of external electronic device based on status of the same
EP4206885A1 (en) Functional mode switching method, electronic device, and system
CN114461092B (en) Touch pen connection method and electronic equipment
CN113873685B (en) Method, device and equipment for establishing WiFi direct connection
CN116736988A (en) Touch control pen point detection method, electronic equipment and system

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