CN115113747B - Touch pen using method and system and touch pen - Google Patents

Touch pen using method and system and touch pen Download PDF

Info

Publication number
CN115113747B
CN115113747B CN202211004319.2A CN202211004319A CN115113747B CN 115113747 B CN115113747 B CN 115113747B CN 202211004319 A CN202211004319 A CN 202211004319A CN 115113747 B CN115113747 B CN 115113747B
Authority
CN
China
Prior art keywords
screen
information
radio frequency
folding
stylus
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
CN202211004319.2A
Other languages
Chinese (zh)
Other versions
CN115113747A (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 CN202211004319.2A priority Critical patent/CN115113747B/en
Publication of CN115113747A publication Critical patent/CN115113747A/en
Application granted granted Critical
Publication of CN115113747B publication Critical patent/CN115113747B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a touch pen, a use method and a use system of the touch pen. The system includes a stylus and an electronic device including a first screen and a second screen that support writing by the stylus. The electronic equipment sends the current screen information to the touch pen, the touch pen sends first pressure-sensitive information to the first screen when the current screen information indicates the first screen, and sends first radio-frequency information to the first screen according to first radio-frequency parameters corresponding to the first screen, so that the electronic equipment displays a first track on the first screen according to the first pressure-sensitive information and the first radio-frequency information. The first pressure-sensitive signal and the first radio-frequency information are generated when the touch pen is in contact with the first screen. Therefore, the touch control pen can select the matched radio frequency parameters according to the currently used screen information of the electronic equipment so as to send square wave signals to the corresponding screen, and the problem that the touch control pen cannot write normally due to the fact that the radio frequency parameters of the touch control pen and the screen to be written are not matched is solved.

Description

Touch pen using method and system and touch pen
Technical Field
The embodiment of the application relates to the technical field of touch control, in particular to a method and a system for using a touch control pen and the touch control pen.
Background
With the development of touch technology, more and more electronic devices adopt a touch mode to perform human-computer interaction. The touch display screen of the electronic device can be operated by using a finger, and can also be operated by using a touch pen.
After the touch pen is connected with the electronic equipment in a matched mode, a user can use the touch pen to write on a touch display screen of the electronic equipment. However, when the electronic device has a plurality of touch display screens and supports writing on the touch display screens, once the types of the touch display screens are different, the parameters of the touch pen and the touch display screens may not match, so that the touch pen cannot be used normally.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present application provide a method and a system for using a stylus, and a stylus. The touch control pen can select the matched radio frequency parameters according to the currently used screen information of the electronic equipment so as to send square wave signals to the corresponding screen, and the problem that the touch control pen cannot write normally due to the fact that the radio frequency parameters of the touch control pen and the screen to be written are not matched is solved.
In a first aspect, an embodiment of the present application provides a system for using a stylus. The system comprises: the touch control pen is connected to the electronic equipment through Bluetooth; the electronic equipment comprises a first screen and a second screen, wherein the first screen and the second screen support stylus writing;
the electronic device is further configured to: sending current screen information used by the electronic equipment to the touch pen; the current use screen information is used for indicating that the user uses the first screen or the second screen currently;
the stylus is configured to: when the current use screen information indicates that a user uses a first screen currently, sending first pressure-sensitive information to the first screen, and sending first radio-frequency information to the first screen according to a first radio-frequency parameter corresponding to the first screen; the first pressure information and the first radio frequency information are generated when the touch pen is in contact with the first screen;
the electronic device is further to: the method comprises the steps of receiving first pressure-sensitive information and first radio-frequency information sent by a touch pen, and displaying a first track on a first screen according to the first pressure-sensitive information and the first radio-frequency information.
For example, the "writing" referred to in the embodiments of the present application may also refer to clicking, dragging, and the like.
Therefore, the touch pen can select the matched radio frequency parameters according to the currently used screen information of the electronic equipment so as to send square wave signals to the corresponding screen, and the problem that the touch pen cannot write normally due to the fact that the radio frequency parameters of the touch pen and the screen to be written are not matched is solved.
Illustratively, the electronic device may further include a third screen. Accordingly, the stylus may also be used to: when the current use screen information indicates that the user uses the third screen currently, sending pressure-sensitive information to the third screen, and sending radio frequency information to the third screen according to a third radio frequency parameter corresponding to the third screen; the pressure information and the radio frequency information are generated when the touch pen is in contact with the third screen.
According to the first aspect, the electronic device is further adapted to: when the current screen information used by the electronic equipment changes, the updated current screen information used by the electronic equipment is sent to the touch pen;
the stylus is further operable to: when the current use screen information indicates that the user uses the second screen currently, sending second pressure-sensitive information to the second screen, and sending second radio-frequency information to the second screen according to a second radio-frequency parameter corresponding to the second screen; the second pressure-sensitive information and the second radio-frequency information are generated when the touch pen is in contact with the second screen;
the electronic device is further to: and receiving second pressure-sensitive information and second radio-frequency information sent by the touch pen, and displaying a second track on a second screen according to the second pressure-sensitive information and the second radio-frequency information.
Therefore, the touch pen can be flexibly switched among the touch display screens of the electronic equipment to adapt to the radio frequency parameters of the currently used screen of the electronic equipment, and the problem that the touch pen cannot normally write due to the fact that the radio frequency parameters of the touch pen and the screen to be written are not matched is avoided. Moreover, the switching only needs the touch pen to reselect the matched radio frequency parameters according to the current screen information used by the electronic equipment, and compared with the existing multi-screen switching scheme, the switching method is simple and efficient. In addition, the conventional multi-screen switching scheme is triggered by the failure of writing on other screens by the stylus held by the user, and the radio frequency parameter switching of the stylus in the scheme is triggered based on the current screen change used by the electronic device, for example, triggered by the change of the posture of the electronic device, so that the problem that the writing on other screens by the stylus held by the user fails for a short time before the conventional multi-screen switching scheme is successfully switched can be solved.
According to a first aspect, or any implementation manner of the first aspect above, the electronic device is further configured to: and displaying a prompt box on the second screen, wherein the prompt box comprises prompt information which is used for prompting that the touch pen is switched to the second screen. Therefore, the screen of the electronic equipment which can be written by the stylus at present can be reminded to the user.
Illustratively, the prompt box may be displayed in any area of the top, middle, or bottom of the screen display window.
For example, the electronic device cancels the display of the prompt box within a set time period (e.g., 3 minutes) after the prompt box is displayed.
According to a first aspect or any implementation of the first aspect above, an electronic device is configured to: after the Bluetooth connection with the touch pen is established or in the process of establishing the Bluetooth connection with the touch pen, sending a first radio frequency parameter corresponding to the first screen and a second radio frequency parameter corresponding to the second screen to the touch pen; the stylus is used for: and receiving and storing a first radio frequency parameter corresponding to the first screen and a second radio frequency parameter corresponding to the second screen.
Therefore, the radio frequency parameters respectively corresponding to the screens are sent to the touch pen for storage, so that the touch pen can flexibly select the matched radio frequency parameters.
According to the first aspect, or any implementation manner of the first aspect, the radio frequency parameters include: the working frequency of the radio frequency signal carrying the radio frequency information, the sending time of the radio frequency signal and the sending duration of the radio frequency signal.
The first radio frequency parameter is different from the second radio frequency parameter, and specifically may refer to that the operating frequency of the first radio frequency signal is different from the operating frequency of the second radio frequency signal, the sending time of the first radio frequency signal is different from the sending time of the second radio frequency signal, and/or the sending time of the first radio frequency signal is different from the sending time of the second radio frequency signal.
According to a first aspect, or any implementation form of the first aspect above, the first screen and the second screen are of different types.
Exemplary types of screens include, but are not limited to, on-cell type screens, in-cell type screens.
According to a first aspect, or any implementation of the first aspect above, an electronic device comprises a folding screen handset; the first screen is a folding inner screen or an outer screen, and the second screen is an outer screen or a folding inner screen correspondingly.
Therefore, the touch pen can be flexibly switched among different screens of the folding screen mobile phone.
According to a first aspect, or any implementation manner of the first aspect above, a folding-screen mobile phone is configured to: sending the folding inner screen gesture of the folding screen mobile phone as current screen information to a touch pen; when the folding inner screen is in the unfolding state, the folding inner screen is used for indicating a user to use the folding inner screen currently; and when the folding inner screen is in a non-unfolding state, the folding inner screen is used for indicating the current use of the outer screen by the user.
Therefore, the touch control pen can determine the screen currently used by the folding screen mobile phone according to the gesture of the folding inner screen of the folding screen mobile phone, and the matched radio frequency parameters are selected to be used for transmitting radio frequency information.
According to a first aspect, or any implementation manner of the first aspect above, a folding screen mobile phone is configured to: when the folding inner screen gesture of the folding screen mobile phone is in the unfolding state, the folding inner screen gesture and the current screen identification are sent to the touch pen as the current screen information.
Considering that the user sometimes uses the external screen when the folding screen mobile phone is in the unfolded state, the matched radio frequency parameters are selected by combining the currently used screen identification when the folding screen mobile phone is in the unfolded state, so that the accuracy of radio frequency parameter selection is improved, and the use experience of the user is further ensured.
According to the first aspect, or any implementation manner of the first aspect above, the electronic device is further configured to: when the first screen only receives third pressure-sensitive information sent by the touch pen and the second screen only receives third radio-frequency information sent by the touch pen, sending first event information corresponding to the first screen and/or second event information corresponding to the second screen to the touch pen;
the third pressure-sensitive information and the third radio-frequency information are generated when the touch pen is in contact with the second screen; the first event information is used for indicating that the pressure-sensitive information is received and the radio frequency information is not received, and the second event information is used for indicating that the radio frequency information is received and the pressure-sensitive information is not received;
the stylus is further operable to: transmitting third pressure-sensitive information to the second screen in response to the first event information and/or the second event information;
the electronic device is further configured to: and displaying a third track on the second screen in response to the third radio frequency information and the third pressure-sensitive information received by the second screen.
Therefore, once the touch pen cannot normally write, the pressure-sensitive information and/or the radio frequency information sent by the touch pen can be adjusted based on a multi-screen switching scheme, and the problem that the touch pen cannot normally switch writing is solved.
In a second aspect, an embodiment of the present application provides a method for using a stylus. The method comprises the following steps: the electronic equipment sends the current screen information of the electronic equipment to the touch pen; the electronic equipment comprises a first screen and a second screen, wherein the first screen and the second screen support stylus writing; the current use screen information is used for indicating that the user uses the first screen or the second screen currently;
when the current screen using information indicates that a user uses a first screen currently, the touch pen sends first pressure sensing information to the first screen and sends first radio frequency information to the first screen according to a first radio frequency parameter corresponding to the first screen; the first pressure information and the first radio frequency information are generated when the touch pen is in contact with the first screen;
the electronic equipment receives first pressure-sensitive information and first radio-frequency information sent by the touch pen, and displays a first track on a first screen according to the first pressure-sensitive information and the first radio-frequency information.
According to a second aspect, the method further comprises: when the current screen information used by the electronic equipment changes, the electronic equipment sends the updated current screen information used to the touch pen;
when the current screen using information indicates that the user uses the second screen currently, the touch pen sends second pressure sensing information to the second screen and sends second radio frequency information to the second screen according to second radio frequency parameters corresponding to the second screen; the second pressure information and the second radio frequency information are generated when the touch pen is in contact with the second screen;
the electronic device receives second pressure-sensitive information and second radio-frequency information sent by the touch pen, and displays a second track on a second screen according to the second pressure-sensitive information and the second radio-frequency information.
According to a second aspect, or any implementation form of the second aspect above, the method further comprises: and the electronic equipment displays a prompt box on the second screen, wherein the prompt box comprises prompt information which is used for prompting that the touch pen is switched to the second screen.
According to a second aspect, or any implementation manner of the second aspect above, the method further comprises: after establishing Bluetooth connection with the touch pen or in the process of establishing Bluetooth connection with the touch pen, the electronic equipment sends a first radio frequency parameter corresponding to the first screen and a second radio frequency parameter corresponding to the second screen to the touch pen;
the touch control pen receives and stores a first radio frequency parameter corresponding to the first screen and a second radio frequency parameter corresponding to the second screen.
According to a second aspect, or any implementation manner of the second aspect above, the radio frequency parameters include: the working frequency of the radio frequency signal carrying the radio frequency information, the sending time of the radio frequency signal and the sending duration of the radio frequency signal.
According to a second aspect, or any implementation manner of the second aspect above, the first screen and the second screen are of different types.
According to a second aspect, or any implementation of the second aspect above, the electronic device comprises a folding screen handset; the first screen is a folding inner screen or an outer screen, and the second screen is an outer screen or a folding inner screen correspondingly.
According to a second aspect, or any implementation manner of the second aspect above, the method further comprises: the folding screen mobile phone sends the folding inner screen posture of the folding screen mobile phone to the touch pen as the current screen information; when the folding inner screen is in the unfolding state, the folding inner screen is used for indicating a user to use the folding inner screen currently; and when the folding inner screen is in a non-unfolding state, the folding inner screen is used for indicating the current use of the outer screen by the user.
According to a second aspect, or any implementation form of the second aspect above, the method further comprises: when the folding inner screen posture of the folding screen mobile phone is in the unfolding state, the folding screen mobile phone sends the folding screen inner screen posture and the current used screen identification to the touch pen as the current used screen information.
According to a second aspect, or any implementation form of the second aspect above, the method further comprises: when the first screen only receives third pressure-sensitive information sent by the stylus and the second screen only receives third radio-frequency information sent by the stylus, the electronic equipment sends first event information corresponding to the first screen and/or second event information corresponding to the second screen to the stylus; the third pressure-sensitive information and the third radio-frequency information are generated when the touch pen is in contact with the second screen; the first event information is used for indicating that the pressure-sensitive information is received and the radio frequency information is not received, and the second event information is used for indicating that the radio frequency information is received and the pressure-sensitive information is not received; in response to the first event information and/or the second event information, the stylus pen sends third pressure-sensitive information to the second screen; in response to the third radio frequency information and the third pressure-sensitive information received by the second screen, the electronic device displays a third track on the second screen.
Any implementation manner of the second aspect and the second aspect corresponds to any implementation manner of the first aspect and the first aspect, respectively. For technical effects corresponding to any one implementation manner of the second aspect and the second aspect, reference may be made to the technical effects corresponding to any one implementation manner of the first aspect and the first aspect, and details are not repeated here.
In a third aspect, an embodiment of the present application provides a method for using a stylus. The method comprises the following steps: the method comprises the steps that a touch pen receives current use screen information of the electronic equipment, wherein the current use screen information is sent by the electronic equipment; the electronic equipment comprises a first screen and a second screen, wherein the first screen and the second screen support stylus writing; the current use screen information is used for indicating that the user uses the first screen or the second screen currently;
when the current screen using information indicates that a user uses a first screen currently, the touch pen sends first pressure sensing information to the first screen and sends first radio frequency information to the first screen according to a first radio frequency parameter corresponding to the first screen; the first pressure information and the first radio frequency information are generated when the touch pen is in contact with the first screen.
According to a third aspect, the method further comprises: the touch control pen receives updated current screen information sent by the electronic equipment; when the current screen using information indicates that the user uses the second screen currently, the touch pen sends second pressure sensing information to the second screen and sends second radio frequency information to the second screen according to second radio frequency parameters corresponding to the second screen; the second pressure information and the second radio frequency information are generated when the touch pen is in contact with the second screen.
According to the third aspect, or any one of the above implementation manners of the third aspect, the method further includes: after the Bluetooth connection with the electronic equipment is established or in the process of establishing the Bluetooth connection with the electronic equipment, the touch control pen receives a first radio frequency parameter corresponding to a first screen and a second radio frequency parameter corresponding to a second screen, which are sent by the electronic equipment; the stylus stores a first radio frequency parameter corresponding to the first screen and a second radio frequency parameter corresponding to the second screen.
According to the third aspect, or any implementation manner of the third aspect above, the radio frequency parameters include: the working frequency of the radio frequency signal carrying the radio frequency information, the sending time of the radio frequency signal and the sending duration of the radio frequency signal.
According to the third aspect, or any one of the above implementation manners of the third aspect, the method further includes: the touch control pen sends third pressure-sensitive information to the first screen and sends third radio frequency information to the second screen; the third pressure-sensitive information and the third radio-frequency information are generated when the touch pen is in contact with the second screen; if first event information corresponding to the first screen and/or second event information corresponding to the second screen are received, the touch pen sends third pressure-sensitive information to the second screen;
when the first screen only receives third pressure-sensitive information sent by the stylus and the second screen only receives third radio-frequency information sent by the stylus, the electronic equipment sends the third pressure-sensitive information to the stylus; the first event information is used for indicating that the pressure-sensitive information is received and the radio frequency information is not received, and the second event information is used for indicating that the radio frequency information is received and the pressure-sensitive information is not received.
Any one implementation manner of the third aspect and the third aspect corresponds to any one implementation manner of the first aspect and the first aspect, respectively. For technical effects corresponding to any one implementation manner of the third aspect and the third aspect, reference may be made to the technical effects corresponding to any one implementation manner of the first aspect and the first aspect, and details are not described here again.
In a fourth aspect, an embodiment of the present application provides an electronic device. The electronic device includes: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored on the memory, which when executed by the one or more processors, cause the electronic device to perform the method steps performed by the electronic device in the method of using a stylus of any one of the second aspect and the second aspect.
Any one implementation manner of the fourth aspect and the fourth aspect corresponds to any one implementation manner of the second aspect and the second aspect, respectively. For technical effects corresponding to any one implementation manner of the fourth aspect and the fourth aspect, reference may be made to the technical effects corresponding to any one implementation manner of the second aspect and the second aspect, and details are not repeated here.
In a fifth aspect, an embodiment of the present application provides a stylus. The stylus includes: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored on the memory, and when executed by the one or more processors, cause the stylus to perform a method of use of the stylus as in any one of the third aspect and the fourth aspect.
Any one of the implementation manners of the fifth aspect and the fifth aspect corresponds to any one of the implementation manners of the third aspect and the third aspect, respectively. For technical effects corresponding to any one of the implementation manners of the fifth aspect and the fifth aspect, reference may be made to the technical effects corresponding to any one of the implementation manners of the third aspect and the third aspect, and details are not repeated here.
In a sixth aspect, embodiments of the present application provide a computer-readable storage medium. The computer readable storage medium comprises a computer program which, when run on an electronic device, causes the electronic device to perform the method steps performed by the electronic device in the method of using a stylus according to any one of the second and second aspects, or to perform the method of using a stylus according to any one of the third and third aspects.
Any one of the implementation manners of the sixth aspect and the sixth aspect corresponds to any one of the implementation manners of the second aspect and the second aspect, or corresponds to any one of the implementation manners of the third aspect and the third aspect. For a technical effect corresponding to any one implementation manner of the sixth aspect and the sixth aspect, reference may be made to the technical effect corresponding to any one implementation manner of the second aspect and the second aspect, or refer to the technical effect corresponding to any one implementation manner of the third aspect and the third aspect, and details are not repeated here.
In a seventh aspect, embodiments of the present application provide a computer program product, which includes a computer program and when the computer program is executed, causes a computer to execute the method steps performed by an electronic device in the method for using a stylus pen according to any one of the second aspect and the second aspect, or execute the method for using a stylus pen according to any one of the third aspect and the third aspect.
Any one of the implementation manners of the seventh aspect and the seventh aspect corresponds to any one of the implementation manners of the second aspect and the second aspect, or corresponds to any one of the implementation manners of the third aspect and the third aspect. For technical effects corresponding to any one of the implementation manners of the seventh aspect and the seventh aspect, reference may be made to the technical effects corresponding to any one of the implementation manners of the second aspect and the second aspect, or refer to the technical effects corresponding to any one of the implementation manners of the third aspect and the third aspect, and details are not repeated here.
Drawings
Fig. 1 is a schematic diagram of an exemplary application scenario;
fig. 2 is a schematic diagram of a hardware structure of an exemplary electronic device;
FIG. 3a is an outside view of an exemplary foldable screen handset in an unfolded state of the inner screen;
FIG. 3b is an inside view of an exemplary folded screen handset in an unfolded state of the inner screen;
FIG. 4 is a schematic diagram of a software architecture of an exemplary illustrated electronic device;
fig. 5 is a schematic diagram of an electronic device and a stylus communication connection provided in an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating data interaction between an electronic device of an In cell type touch screen and a stylus;
FIG. 7 is a schematic diagram of data interaction between an electronic device and a stylus of an exemplary illustrated On-cell type touch screen;
FIG. 8 illustrates exemplary principles of stylus use on an electronic device;
FIG. 9 is a schematic diagram illustrating a method for using a stylus according to an embodiment of the present disclosure;
FIG. 10a is a schematic diagram of an exemplary stylus writing on a folded inner screen of a folding screen handset;
FIG. 10b is a schematic diagram of an exemplary stylus writing on the external screen of a folding screen cell phone;
FIG. 11 is a schematic diagram illustrating a method for using a stylus according to an embodiment of the present disclosure;
FIG. 12 is a schematic diagram of an exemplary stylus writing on the exterior screen of a folding screen cell phone;
FIG. 13a is a schematic diagram illustrating an exemplary stylus establishing a Bluetooth connection with a folding screen phone;
FIG. 13b is a schematic diagram of an exemplary illustrative Bluetooth interface;
14 a-14 b are schematic diagrams illustrating a scenario of a method for using a stylus according to an embodiment of the present disclosure;
fig. 15 is a flowchart illustrating a method for using a stylus according to an embodiment of the present disclosure;
FIG. 16 is an exemplary illustrative user interface diagram;
FIG. 17a is a schematic diagram illustrating a scenario of a method of using a stylus;
FIG. 17b is a schematic diagram illustrating a scenario of a method of using a stylus;
fig. 17c is a scene diagram illustrating an exemplary method for using the stylus.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The terms "first" and "second," and the like, in the description and in the claims of the embodiments of the present application are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first target object and the second target object, etc. are specific sequences for distinguishing different target objects, rather than describing target objects.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present relevant concepts in a concrete fashion.
In the description of the embodiments of the present application, the meaning of "a plurality" means two or more unless otherwise specified. For example, a plurality of processing units refers to two or more processing units; a plurality of systems refers to two or more systems.
Before describing the technical solution of the embodiment of the present application, an application scenario of the embodiment of the present application is first described with reference to the drawings. Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application. Referring to fig. 1, the application scenario includes a stylus and a folding screen mobile phone. For example, the stylus and the folding screen mobile phone can perform data interaction through a bluetooth network. The folding screen mobile phone comprises two touch display screens (an inner screen and an outer screen of the folding screen respectively), and the two touch display screens support the stylus to write. In this embodiment of the present application, the stylus may also be referred to as an active stylus, a stylus pen, or a bluetooth stylus pen, which is not limited in this application.
That is, the user may use the stylus pen to write on the inner folding screen (or simply referred to as the inner screen) of the folding screen mobile phone, or may use the stylus pen to write on the outer screen of the folding screen mobile phone. In the embodiment of the present application, the explanation is given by taking an example in which a touch pen is switched between a plurality of touch display screens (i.e., an inner screen and an outer screen of a folding screen) of the same folding screen mobile phone.
It should be noted that, in the embodiment of the present application, only the folding screen mobile phone is taken as an example for explanation, in other embodiments, the present application is also applicable to switching the stylus between multiple touch display screens of other folding screen devices, and even applicable to switching the stylus between multiple writing-capable touch display screens of an electronic device, and the present application is not limited thereto.
However, if the types of the touch display screens in the same electronic device are different, the parameters of the touch display screens are not matched with those of the touch pen, so that the touch pen cannot be normally used.
In order to solve the above problem, an embodiment of the present application provides a method for using a stylus. In the method, the stylus selects the matched radio frequency parameters according to the posture information sent by the electronic equipment, and sends the radio frequency information (or called radio frequency signal) according to the matched radio frequency parameters, so that the problem that the stylus cannot be normally used due to the fact that the parameters of the stylus and the parameters of the touch display screen are not matched is avoided, and the use experience of switching writing among a plurality of touch screens of the same electronic equipment by a user through the stylus is improved.
Fig. 2 is a schematic structural diagram of the electronic device 100. Optionally, the electronic device 100 may be a terminal, which may also be referred to as a terminal device, and the terminal may be a cellular phone (cellular phone) or a tablet computer (pad), which is not limited in this application. It should be noted that the schematic structural diagram of the electronic device 100 may be applied to a folding screen device, such as a folding screen mobile phone. It should be understood that the electronic device 100 shown in fig. 2 is only one example of an electronic device, and that the electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in fig. 2 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The electronic device 100 may include: the mobile terminal includes a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a first display screen 194, a second display screen 195, a Subscriber Identity Module (SIM) card interface 196, and the like.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be, among other things, a neural center and a command center of the electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the time sequence signal to finish the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The USB interface 130 is an interface conforming to the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. And the method can also be used for connecting a headset and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices and the like.
The charging management module 140 is configured to receive charging input from a charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives an input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the first display 194, the second display 195, the camera 193, the wireless communication module 160, and the like.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques.
The electronic device 100 implements display functions through the GPU, the first display screen 194, the second display screen 195, and the application processor. The GPU is a microprocessor for image processing, coupled to a first display screen 194, a second display screen 195 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The first display screen 194 is used as an internal screen of the electronic device 100 for displaying an interface, an image, a video, and the like. The first display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a Mini-LED, a Micr-OLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), or the like. The second display screen 195 serves as an external screen of the electronic device, and is used for displaying a display style preset by a user, such as images, videos, or texts.
When the electronic device 100 is a folding screen device, the inner screen of the electronic device 100 may be a foldable display screen, which is called a folding screen for short. The folding screen can adopt an integrally formed flexible display screen, a plurality of flexible display screens and a spliced display screen formed by hinges between every two flexible display screens, and a plurality of rigid screens and a spliced display screen formed by hinges between every two rigid screens. The embodiment of the present application does not limit this.
Illustratively, the electronic device 100 may be a folding screen cell phone. Fig. 3a and 3b are schematic diagrams illustrating a folding screen mobile phone. Referring to fig. 3a and 3b, the display screen of the folding screen mobile phone includes an inner screen and an outer screen, the inner screen is a folding screen, and the size of the inner screen is larger than that of the outer screen. Fig. 3a is an outer schematic view of the inner screen of the folding screen mobile phone in an unfolded state. Referring to fig. 3a, the first portion 101 of the outside of the folding screen handset may be configured as the outer screen of the folding screen handset and the second portion 102 may be configured as the handset housing. Wherein, the first part 101 and the second part 102 at the outer side of the folding screen mobile phone can be provided with cameras. In other folding screen cell phone examples, the first portion 101 and the second portion 102 outside of the folding screen cell phone may both be provided as the outer screen of the folding screen cell phone. Fig. 3b is an inside schematic view of the inner screen of the folding screen mobile phone in an unfolded state. Referring to fig. 3b, the inner screen (i.e., the folding screen) of the folding screen phone includes a first display unit 103 and a second display unit 104. The first display unit 103 and the second display unit 104 may display different display interfaces respectively, or may display one display interface together. In the present embodiment, the screen materials of the first display unit 103 and the second display unit 104 are the same.
The electronic device 100 may implement a photographing function through the ISP, the camera 193, the video codec, the GPU, the first display screen 194 or the second display screen 195, and the application processor, etc.
The camera 193 is used to capture still images or video. The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. Video codecs are used to compress or decompress digital video.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes the instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100, so that the electronic device 100 implements corresponding methods, for example, method steps executed by a folding screen mobile phone in the method for using a stylus provided by the embodiment of the present application. The internal memory 121 may include a program storage area and a data storage area. In the present embodiment, the internal memory 121 may be used to store configuration files, video resources, and the like.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
The pressure sensor is used for sensing a pressure signal and converting the pressure signal into an electric signal. In some embodiments, the pressure sensors may be disposed on the first display screen 194 and the second display screen 195. The electronic apparatus 100 may also calculate the touched position based on the detection signal of the pressure sensor. In some embodiments, the touch operations that are applied to the same touch position but have different touch operation intensities may correspond to different operation instructions.
Touch sensors, also known as "touch panels," or TP (touch screen) sensors. The touch sensors may be disposed on the first display screen 194 and the second display screen 195, and the touch sensors and the first display screen 194 or the second display screen 195 form a touch screen, which is also called a "touch screen" or a "touch display screen". The touch sensor is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through the first display screen 194 or the second display screen 195.
The keys 190 include a power-on key, a volume key, and the like. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The software system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of the electronic device 100.
Fig. 4 is a block diagram of a software structure of the electronic device 100 according to the embodiment of the present application.
The layered architecture of the electronic device 100 divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into five layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 4, the application package may include applications such as camera, calendar, weather, music, short message, gallery, call, browser, video, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 4, the application framework layers may include a stylus management service, a folding screen gesture management service, a window manager, a notification manager, a view system, and the like.
The stylus management service, which may also be referred to as a stylus management service, is used for managing a stylus connected to an electronic device, including controlling connection and disconnection with the stylus, and sending posture information of the electronic device to the stylus. In the embodiment of the present application, the posture information of the electronic device may include, but is not limited to, a folded screen posture (such as an unfolded state, a folded state (or a non-unfolded state)), current usage information of a mobile phone screen when the folded screen is in the unfolded state, and the like.
And the folding screen posture management service is used for realizing the management of the posture or the form of the folding screen, such as determining whether the folding screen is in a folding state or an unfolding state at present, determining the current use information of the mobile phone screen when the folding screen is in the unfolding state, and the like.
The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as notification messages used to inform download completion, message alerts, etc. The notification information may also be a notification that appears in the form of a chart or scrollbar text in a status bar at the top of the system, such as a notification of a running application in the background, or a notification that appears on the screen in the form of a dialog window. The notification information may also be, for example, a text message prompted in the status bar, an alert tone sounded, an electronic device vibrating, an indicator light flashing, etc.
The system library and Runtime layer comprises a system library and an Android Runtime (Android Runtime). The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engine (e.g., SGL) touch screens HAL (Hardware Abstraction Layer), etc.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The HAL is an interface layer between the operating system kernel and the hardware circuitry. The HAL comprises a TP HAL for processing the data reported by the sensor drive, e.g. the pressure parameters referred to in the following. HALs may also include, but are not limited to: an Audio hardware abstraction layer (Audio HAL) and a Camera hardware abstraction layer (Camera HAL). Among them, the Audio HAL is used for processing the Audio stream, for example, processing the Audio stream such as noise reduction, directional enhancement, etc., and the Camera HAL is used for processing the image stream.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a Wi-Fi driver, a Bluetooth driver, an audio driver, a sensor driver and the like. The display driver may include an outer screen display driver and an inner screen display driver. The sensor drive can comprise a drive corresponding to a gyroscope sensor and an acceleration sensor and is used for detecting the posture change of the folding screen of the electronic equipment.
It is to be understood that the layers in the software structure and the components included in each layer shown in fig. 4 do not constitute a specific limitation to the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer layers than those shown, and may include more or fewer components in each layer, which is not limited in this application.
It is understood that the electronic device includes hardware and/or software modules for performing various functions in order to implement the method for using the stylus in the present application. The present application is capable of being implemented in hardware or a combination of hardware and computer software in conjunction with the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware 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, with the embodiment described in connection with the particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Fig. 5 is a schematic diagram of a communication connection between an electronic device and a stylus pen according to an embodiment of the present disclosure. As shown in fig. 5, stylus 200 includes, but is not limited to: a Micro Controller Unit (MCU) 201, a pressure sensor 202, a bluetooth Integrated Circuit (IC) 203, a bluetooth antenna 204, an antenna 205, and the like, and it is understood that fig. 5 illustrates components included in the stylus pen 200 and does not constitute a specific limitation to the stylus pen 200. In other embodiments of the present application, stylus 200 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components.
Optionally, the pressure sensor 202 is configured to obtain a pressure parameter, for example, after a pen tip of the stylus contacts an object (e.g., a touch screen), the pressure sensor 202 may obtain a corresponding pressure parameter based on the pressure received, and report the pressure parameter to the MCU201. Optionally, the pressure parameter may also be referred to as pressure data, pressure information, and the like, and the application is not limited thereto.
Optionally, the MCU201 is configured to process the received pressure parameters from the pressure sensor 202 accordingly. The MCU201 has a feature of "always on" and can guarantee normal operation of the sensor with very low power consumption. It should be noted that the MCU201 is merely an illustrative example, and other devices that can function as a processor or microcontroller may be alternative forms of the MCU described above.
Optionally, the MCU201 is further configured to control the bluetooth antenna 204 to output a pressure-sensitive signal, where the pressure-sensitive signal is used to indicate the pressure parameter acquired by the MCU201 from the pressure sensor 202. For example, the MCU201 can generate a pressure-sensitive signal based on the pressure parameter acquired from the pressure sensor 202 and output the pressure-sensitive signal to the electronic device 210 through the bluetooth IC203 and the bluetooth antenna 204. Accordingly, an antenna (e.g., antenna 2 in fig. 2) in the electronic device 100 may obtain a corresponding pressure parameter based on the received pressure-sensitive signal, and transmit the obtained pressure parameter to the bluetooth driver, where the bluetooth driver continuously reports the pressure parameter to an upper module (e.g., TP HAL), and the upper module may perform corresponding processing on the pressure parameter.
Optionally, the MCU201 is also used to receive and process data from the antenna 205. Illustratively, the antenna 205 may be located on a pen tip side of the electronic device, illustratively, the antenna 205 may also be referred to as a "pen tip antenna", when a pen tip of the stylus pen 200 is close to a screen of the electronic device, the antenna 205 of the stylus pen may receive a detection signal sent by a TP sensor in a touch screen of the electronic device 210 and output the detection signal to the MCU201, and the MCU201 may control the antenna 205 to output a square wave signal (the square wave signal may also be referred to as a touch signal, a trigger signal, a touch signal, or the like) with a specified frequency (which may be referred to as a radio frequency) based on the received detection signal, where the square wave signal is not limited in this application. Accordingly, electronic device 210 can determine the specific location of the tip of stylus 200 on the touch screen of the electronic device based on the square wave signal received by the TP sensor in the touch screen display. Optionally, the antenna 205 may include an antenna 1 and an antenna 2, for example, the antenna 1 is used for transmitting a square wave signal, the antenna 2 is used for receiving a detection signal and transmitting the square wave signal, and the frequencies of the square wave signals transmitted by the antenna 1 and the antenna 2 may be the same or different.
Alternatively, the MCU201, the pressure sensor 202, the bluetooth IC203, and the bluetooth antenna 204 may be integrated on the same chip or may be separate components and connected via a bus.
In some embodiments, the stylus pen of the present application may also use other short-range wireless technologies to perform data interaction with electronic devices such as electronic devices, for example, wi-Fi technologies, ultra Wide Band (UWB) technologies, and other short-range wireless communication technologies, and it can be understood that when the stylus pen 200 and the electronic devices transmit pressure-sensitive information or square-wave signals through the Wi-Fi technologies, both the stylus pen 200 and the electronic devices have Wi-Fi modules.
The manner in which data is interacted between the antenna of the stylus (e.g., antenna 205) and the TP sensor of the touch screen of the electronic device is described in detail below. Illustratively, PP (stylus profile) specifies the interactive time slot allocation of the On-cell type touch screen and the In-cell type touch screen and the frequency corresponding to the touch screens. Among them, the In cell type touch screen is to embed the touch panel function into the liquid crystal pixel, and generally to blend with the liquid crystal layer. The On cell type touch screen is formed by embedding the touch screen between a color filter substrate and a polarizer of a display screen, namely, a touch sensor is arranged On a liquid crystal panel. The data interaction between the two types of touch screens and the touch pen is described below.
Fig. 6 is a schematic diagram of data interaction between a stylus and an In cell type touch screen In an electronic device. Referring to fig. 6, the slots on the electronic device side include an uplink synchronization channel slot, a display slot, and a reception slot. In an example, when the stylus is not detected, the uplink synchronization signal sent by the electronic device side may be referred to as a detection signal, and is used to trigger the stylus to output the square wave signal based on information such as the frequency of the clock signal and the square wave signal after alignment, an interval between sending time slots corresponding to the square wave signal, a width of the sending time slot, and the number of the sending time slots in one period. In another example, in the case that the electronic device performs signal interaction with the stylus pen, the uplink synchronization signal transmitted by the electronic device side may be referred to as a synchronization signal, and is used for calibrating the clock of the stylus pen and the clock information of the electronic device side.
It should be noted that, the above-mentioned information about the frequency of the square wave signal, the interval between the sending time slots corresponding to the square wave signal, the width of the sending time slot, the number of the sending time slots in one period, and the like may be collectively referred to as a radio frequency parameter, the radio frequency parameter is sent to the stylus by the electronic device through bluetooth connection between the electronic device and the stylus during the bluetooth pairing between the stylus and the electronic device, or after the bluetooth pairing is completed, and only when the radio frequency parameter protocol between the electronic device and the stylus is consistent, the electronic device and the electronic device can implement touch operation. The details related to bluetooth pairing will be described below.
For example, taking fig. 6 as an example, the frequency of the square wave signal is a frequency corresponding to a square wave signal output by a stylus pen, it may also be understood that the frequency of the square wave signal that can be received by a TP sensor in a touch screen of an electronic device is set by a manufacturer of the electronic device, and is generally set based on hardware performance of the touch screen of the electronic device, and for example, the frequency of the square wave signal that can be received by the TP sensor of the electronic device is any frequency value in a frequency range from 100khz to 400khz, for example, the frequency that can be received by the electronic device shown in fig. 6 is 200KHz, and the frequency of the square wave signal sent by a corresponding stylus pen (including TX1 and TX 2/RX) is also 200KHz. For example, the sending time slot corresponding to the square wave signal is a time slot in which the stylus pen can send the square wave signal, for example, time T3 to time T4, time T5 to time T6, and the like in fig. 6. The interval between the transmission timeslots refers to an interval between two adjacent transmission timeslots, for example, times T4 to T5, times T6 to T7, and the like in fig. 6. The width of the sending time slot refers to the duration of the square wave signal which can be sent by the stylus pen on each sending time slot, for example, the time length occupied by the time from T3 to T4. The number of the transmission timeslots in one cycle (which may be represented by n) is the number of the transmission timeslots in one cycle (for example, at times T1 to T10), and for example, the number of the transmission timeslots in one cycle in fig. 6 is 4 (including times T3 to T4, times T5 to T6, times T7 to T8, and times T9 to T10).
Referring to fig. 6, for example, the stylus continuously listens (for example, at times T0 to T1) through the antenna 2 (corresponding to TX 2/RX) whether a detection signal transmitted by the electronic device (specifically, a TP sensor in a touch screen of the electronic device) is received. Illustratively, a TP sensor in the touch screen of the electronic device sends a detection signal in an uplink synchronous channel time slot (i.e. time T1-T2). As described above, the stylus continuously monitors whether a detection signal from the electronic device is received, and at time T1 to time T2, the stylus receives the detection signal from the TP sensor through the antenna 2, and when the stylus receives a detection signal, such as an uplink synchronization signal, broadcast by the electronic device, the stylus can achieve data synchronization with the electronic device, for example, aligning a clock of the stylus with clock information on the electronic device side, and starting to output a square wave signal based on information such as an interval between transmission time slots corresponding to stored square wave signals, a width of the transmission time slots, and the number of transmission time slots in one cycle.
Illustratively, the display time slot is used to display an image.
Illustratively, the receiving time slot on the electronic device side is used for receiving a square wave signal sent by the stylus. Still referring to fig. 6, for example, after the stylus receives the detection signal, the stylus may transmit the square wave signal at corresponding transmission time slots, for example, at times T3 to T4, times T5 to T6, times T7 to T8, and times T9 to T10, according to radio frequency parameters such as a frequency of the square wave signal, an interval between the transmission time slots corresponding to the square wave signal, a width of the transmission time slot, and the number of the transmission time slots in one period, which are agreed.
It should be noted that the time slots for sending the square wave signals of TX1 and TX2/RX use a time division multiplexing method, and T1 and TX2/RX send square wave signals with the same frequency at different times, as shown in fig. 6, for example, an antenna 1 (i.e., TX 1) sends square wave signals at times T3 to T4 and times T5 to T6, and an antenna 2 (i.e., TX 2/RX) sends square wave signals at times T7 to T8 and times T9 to T10. The time slot allocation of the TX1 and TX2/RX transmit time slots in fig. 6 is only an illustrative example, and the application is not limited thereto.
Still referring to fig. 6, assuming that T1 to T10 are a period, after the period is finished, the stylus monitors a synchronization signal sent by the electronic device in the receiving time slot. Accordingly, the TP sensor transmits the synchronization signal at the time T11 to T12, the stylus receives the synchronization signal at the time T11 to T12 in the receiving time slot (time T10 to T12) through the antenna 2 (i.e., TX/RX), and the stylus can correct the clock signal and the position (i.e., the corresponding time) of each transmitting time slot in the period based on the synchronization signal. And the touch pen sends the square wave signal on the sending time slot (such as T13-T14) on TX1 or TX2 according to the set time slot allocation.
It should be noted that the length and distribution of each time slot in fig. 6 (and fig. 7 below) are merely illustrative examples, and the present application is not limited thereto. Illustratively, the width (i.e., the occupied time length) of the transmission time slots on TX1 and TX2/RX may be larger than the width of the reception time slot on the electronic device side to increase the reception success rate of the square wave signal.
Fig. 7 is a schematic diagram of data interaction between a stylus and an On cell type touch screen in an electronic device. Referring to fig. 7, exemplary channels on the electronic device side include an uplink synchronization channel slot, a finger detection slot, and a reception slot. The finger detection time slot is used for detecting the operation of the finger of the user on the touch screen, and the description of other time slots may refer to fig. 6, which is not described herein again.
Still referring to fig. 7, the description of time T0-T2 can refer to fig. 6, and different from fig. 6, TX1 and TX2/RX in fig. 7 transmit the square wave signals in a frequency division manner, that is, TX1 and TX2/RX can transmit the square wave signals with different frequencies in the same transmission time slot (e.g., time T4-T5 and time T6-T7), for example, TX1 transmits the square wave signal with the frequency of 200KHz in each transmission time slot (e.g., time T4-T5, time T6-T7, and time T8-T9), and TX2/RX transmits the square wave signal with the frequency of 100KHz in each transmission time slot. For example, after the TX2/RX monitors a detection signal sent by the electronic device, the antenna 1 (corresponding to TX 1) may send a square wave signal at time T3, and the antenna 2 (corresponding to TX 2/RX) sends a square wave signal at time T4, that is, the antenna 1 sends a square wave signal to the electronic device before the antenna 2, accordingly, since the square wave signal sent by the antenna 1 may reach the electronic device side before the square wave signal sent by the antenna 2, the electronic device may determine, based on the arrival time of the square wave signal, that the sending antenna corresponding to the square wave signal received first is the antenna 1 of the stylus pen, and the sending antenna corresponding to the square wave signal received later is the antenna 2 of the stylus pen.
It should be noted that the square wave signal described in the embodiment of the present application is only an illustrative example of a radio frequency signal, and in other embodiments, the radio frequency signal output by the antenna (e.g., the antenna 205) of the stylus pen may also be a sinusoidal signal, a triangular wave signal, and the like, which is not limited in the present application.
It should be further noted that, as described above, the radio frequency parameters (including the frequency of the square wave signal, the interval between the sending time slots corresponding to the square wave signal, the width of the sending time slot, the number of sending time slots in one period, and the like) corresponding to the touch screen of the electronic device are all set before delivery from a factory. That is to say, the rf parameters corresponding to the square wave signals output by the stylus need to be consistent with the rf parameters corresponding to the touch screen of the electronic device. If any one of the information, such as the frequency of the square wave signal output by the stylus, the interval between the sending time slots corresponding to the square wave signal, the width of the sending time slots, and the number of the sending time slots in one period, is inconsistent with the radio frequency parameter corresponding to the touch screen of the electronic device, the touch screen of the electronic device cannot receive the square wave signal sent by the stylus.
It should be noted that, for different touch screens of the same type (for example, in cell type or On cell type, etc.), the corresponding radio frequency parameters (including information such as the frequency of the square wave signal, the interval between the transmission time slots corresponding to the square wave signal, the width of the transmission time slot, the number of the transmission time slots In one period, etc.) may be the same or different (including all the parameters being different and some of the parameters being different), which is not limited In this application.
For example, assume that the radio frequency parameters corresponding to the folded inner screen in the folding screen mobile phone are: the frequency of the square wave signal is 100KHz, the width of the sending time slot is 3ms, the sending time slot interval is 1ms, the number of the sending time slots in one period is 6, and the radio frequency parameters corresponding to the external screen in the folding screen mobile phone are as follows: the frequency of the square wave signal is 200KHz, the width of the sending time slot is 3ms, the interval of the sending time slot is 3ms, and the number of the sending time slots in one period is 4. Illustratively, a pen point of the stylus pen is close to the folded inner screen in the folded-screen mobile phone, and a detection signal (details may refer to the description in fig. 6 or fig. 7) sent by the folded inner screen in the folded-screen mobile phone is received, the stylus pen starts to send a square wave signal according to the radio frequency parameter corresponding to the outer screen in the folded-screen mobile phone in response to the received detection signal, at this time, because the frequency, the sending time slot interval, and the number of sending time slots in one cycle of the square wave signal sent by the stylus pen are different from the radio frequency parameter corresponding to the folded inner screen in the folded-screen mobile phone, the TP sensor in the folded inner screen in the folded-screen mobile phone only scans the square wave signal in the frequency band of 100KHz, and therefore, the 200KHz square wave signal sent by the stylus pen belongs to interference signals in other frequency bands for the TP sensor of the folded inner screen in the folded-screen mobile phone. In addition, taking fig. 6 as an example, assuming that the rf parameter of the folded inner screen in the folded-screen mobile phone indicates that the stylus is required to send the square wave signal at the time T3 to T4, and the stylus will send the square wave signal at the time T4 to T5 based on the rf parameter of the outer screen in the folded-screen mobile phone, since there is no corresponding receiving time slot in the folded inner screen in the folded-screen mobile phone at the time T4 to T5, the folded inner screen in the folded-screen mobile phone cannot receive the square wave signal sent by the stylus. In summary, the condition that the electronic device can receive the square wave signal of the stylus is that a pen tip of the stylus approaches a screen of the electronic device to form a capacitive path (details of which will be described in fig. 8), and the rf parameter corresponding to the square wave signal sent by the stylus is consistent with the rf parameter corresponding to a touch screen (specifically, a TP sensor) of the electronic device.
In order to make those skilled in the art better understand the technical solution in the embodiment of the present application, the following takes an electronic device as a folding screen mobile phone as an example, and a principle of using a stylus pen on a folding inner screen in the folding screen mobile phone is described. For example, referring to fig. 8, in the folding inner screen side of the folding-screen mobile phone, the condition (abbreviated as ink-out condition) for displaying the handwriting is that a pressure-sensitive signal and a square-wave signal are received, that is, when the folding inner screen of the folding-screen mobile phone receives the pressure-sensitive signal and the square-wave signal at the same time, a corresponding track is displayed according to the received pressure-sensitive signal and the square-wave signal, wherein the displayed track may also be referred to as "ink-out".
Illustratively, still referring to fig. 8, an insulating substance, such as air or glass, is present between the pen tip of the stylus and the electrode of the TP sensor of the inner folding screen of the folding screen mobile phone, and the insulating substance is equivalent to a smaller capacitance, through the communication circuit, after receiving the detection signal sent by the TP sensor, the stylus can output a high-voltage (> 20Vp-p (peak-to-peak)) square wave signal with a specified frequency in the stylus sending time slot, and the TP sensor can receive the square wave signal output by the antenna of the stylus on the capacitance path. For example, when the pen tip is close to the TP sensor (for example, 2cm (centimeter)), air between the TP sensor and the pen tip may be equal to capacitance to form a transmission path, so that a distance between the TP sensor and the stylus pen tip (specifically, the antenna 1 and the antenna 2 on the pen tip side) is within a certain range (for example, 0 to 2cm), a path may be formed between the TP sensor and the pen tip, and the TP sensor may receive a square wave signal output by the stylus pen tip (the antenna 1 and/or the antenna 2) through the path. Correspondingly, the folding screen mobile phone can determine the ink outlet condition according with the folding inner screen according to the received pressure-sensitive signal and the square wave signal, and display the track.
Fig. 9 is a schematic diagram illustrating a principle of a method for using a stylus according to an embodiment of the present disclosure.
Referring to (1) in fig. 9, after the connection between the folding-screen mobile phone and the stylus pen is established, the folding-screen mobile phone sends radio frequency parameters corresponding to the folding inner screen and the folding outer screen to the stylus pen. And after receiving the radio frequency parameters respectively corresponding to the folding inner screen and the folding outer screen, the touch control pen stores the radio frequency parameters. Illustratively, the rf parameter corresponding to the folded inner screen is rf parameter 1, the rf parameter corresponding to the outer screen is rf parameter 2, and the rf parameter 1 and the rf parameter 2 are different.
The radio frequency parameters include, but are not limited to, the frequency of the square wave signal, the interval between the transmission time slots corresponding to the square wave signal, the width of the transmission time slot, the number of the transmission time slots in one period, and other information.
Continuing with reference to fig. 9 (2), the folding screen phone sends the folding screen phone gesture to the stylus. The mobile phone with the folding screen at least comprises a folding state and an unfolding state. And the touch control pen selects the matched radio frequency parameters as default radio frequency parameters for sending square wave signals according to the received gesture of the folding screen mobile phone. Illustratively, if the gesture of the folding screen mobile phone is a folding state (non-unfolding state), the stylus selects a radio frequency parameter 2 corresponding to the outer screen as a default radio frequency parameter for sending the square wave signal; if the gesture of the folding screen mobile phone is in the unfolding state, the touch control pen selects a radio frequency parameter 1 corresponding to the folding inner screen as a default radio frequency parameter for sending a square wave signal.
Thus, when the folding screen mobile phone is in an unfolded state, the default radio frequency parameter set by the touch pen is the radio frequency parameter 1 corresponding to the folding inner screen. Furthermore, when a user writes on the folding inner screen by using the stylus, the stylus sends a pressure-sensitive signal to the folding inner screen and sends a square wave signal corresponding to the radio-frequency parameter 1 to the folding inner screen. Correspondingly, the folding inner screen of the folding screen mobile phone receives the square wave signal and the pressure-sensitive signal, the ink outlet condition corresponding to the folding inner screen is determined to be met, further, the track can be displayed on the folding inner screen according to the square wave signal and the pressure-sensitive signal received by the folding inner screen, and at this time, fig. 10a can be referred.
Similarly, when the foldable screen mobile phone is in the non-unfolded state, the default rf parameter set by the stylus pen is the rf parameter 2 corresponding to the external screen. Furthermore, when a user uses the touch pen to write on the external screen of the folding screen mobile phone, the touch pen sends a pressure sensing signal to the external screen and sends a square wave signal corresponding to the radio frequency parameter 2 to the external screen. Correspondingly, the outer screen of the folding screen mobile phone receives the square wave signal and the pressure-sensitive signal, the ink outlet condition corresponding to the outer screen is determined to be met, and then the track can be displayed on the outer screen of the folding screen mobile phone according to the square wave signal and the pressure-sensitive signal received by the outer screen, and at this time, fig. 10b can be referred to.
Fig. 11 is a schematic diagram illustrating a principle of a method for using a stylus according to an embodiment of the present application.
Referring to fig. 11 (1), after the connection between the folding-screen mobile phone and the stylus pen is established, the folding-screen mobile phone sends radio frequency parameters corresponding to the folding inner screen and the folding outer screen to the stylus pen. And after receiving the radio frequency parameters respectively corresponding to the folding inner screen and the folding outer screen, the touch control pen stores the radio frequency parameters. Illustratively, the radio frequency parameter corresponding to the inner folding screen is a radio frequency parameter 1, the radio frequency parameter corresponding to the outer folding screen is a radio frequency parameter 2, and the radio frequency parameter 1 and the radio frequency parameter 2 are different.
The radio frequency parameters include, but are not limited to, the frequency of the square wave signal, the interval between the transmission time slots corresponding to the square wave signal, the width of the transmission time slot, the number of the transmission time slots in one period, and other information.
Continuing to refer to fig. 11 (2), the folding screen phone sends the folding screen phone gesture to the stylus. The mobile phone with the folding screen at least comprises a folding state and an unfolding state. When the posture of the folding screen mobile phone is in the unfolding state, the folding screen mobile phone also sends the currently used screen identification (namely the folding inner screen or the outer screen) to the touch pen at the same time. The current used screen mark is used for indicating which screen in the folding screen mobile phone is the screen currently used by the user. Illustratively, the screen currently in use by the user may be a screen that is not in contact with the support surface, or may be a screen that is opposite the user's line of sight. For example, when a folding screen mobile phone is placed on a desktop (the desktop is a supporting surface at this time), and an outer screen contacts with the desktop, a currently used screen is a folding inner screen; when the folding screen mobile phone is horizontally placed on a desktop (the desktop is a supporting surface at the moment), and the folding inner screen is in contact with the desktop, the currently used screen is an outer screen. For another example, when the user holds the folding screen mobile phone and the outer screen is opposite to the sight of the user, the currently used screen is the folding inner screen; when a user holds the folding screen mobile phone, and the folding inner screen is opposite to the sight of the user, the currently used screen is the outer screen.
And the touch control pen selects the matched radio frequency parameter as a default radio frequency parameter for sending the square wave signal according to the received gesture of the folding screen mobile phone and the current screen identification. Illustratively, if the gesture of the folding screen mobile phone is a folding state (non-unfolding state), the stylus selects a radio frequency parameter 2 corresponding to the outer screen as a default radio frequency parameter for sending the square wave signal; if the folding screen mobile phone is in an unfolded state, when the current used screen is a folding inner screen, the touch pen selects a radio frequency parameter 1 corresponding to the folding inner screen as a default radio frequency parameter for sending a square wave signal, and when the current used screen is an outer screen, the touch pen selects a radio frequency parameter 2 corresponding to the outer screen as a default radio frequency parameter for sending the square wave signal.
Thus, when the folding screen mobile phone is in an unfolded state and the folding inner screen is indicated by the current screen identification, the default radio frequency parameter set by the touch pen is the radio frequency parameter 1 corresponding to the folding inner screen. Furthermore, when a user writes on the folding inner screen by using the stylus, the stylus sends a pressure-sensitive signal to the folding inner screen and sends a square wave signal corresponding to the radio-frequency parameter 1 to the folding inner screen. Correspondingly, the folding inner screen of the folding screen mobile phone receives the square wave signal and the pressure-sensitive signal, the ink outlet condition corresponding to the folding inner screen is determined to be met, further, the track can be displayed on the folding inner screen according to the square wave signal and the pressure-sensitive signal received by the folding inner screen, and at this time, fig. 10a can be referred.
Similarly, when the foldable-screen mobile phone is in the unfolded state and the current screen identifier indicates the external screen, the default rf parameter set by the stylus pen is the rf parameter 2 corresponding to the external screen. Furthermore, when the user uses the stylus pen to write on the external screen, the stylus pen sends a pressure-sensitive signal to the external screen, and sends a square wave signal corresponding to the radio frequency parameter 2 to the external screen. Correspondingly, the outer screen of the folding screen mobile phone receives the square wave signal and the pressure-sensitive signal, the ink outlet condition corresponding to the outer screen is determined to be met, then the track can be displayed on the outer screen according to the square wave signal and the pressure-sensitive signal received by the outer screen, and at this time, reference can be made to fig. 12.
Similarly, when the foldable screen mobile phone is in the non-unfolded state, the default rf parameter set by the stylus pen is the rf parameter 2 corresponding to the external screen. Furthermore, when a user uses the touch pen to write on the outer screen of the folding screen mobile phone, the touch pen sends a pressure sensing signal to the outer screen and sends a square wave signal corresponding to the radio frequency parameter 2 to the outer screen. Correspondingly, the outer screen of the folding screen mobile phone receives the square wave signal and the pressure-sensitive signal, the ink outlet condition corresponding to the outer screen is determined to be met, and then the track can be displayed on the outer screen of the folding screen mobile phone according to the square wave signal and the pressure-sensitive signal received by the outer screen, and at this time, fig. 10b can be referred to.
In the embodiment of the application, after the foldable screen mobile phone is connected to the touch pen, if the posture of the foldable screen mobile phone changes, the foldable screen mobile phone sends the posture (the unfolded state or the non-unfolded state) of the foldable screen mobile phone to the touch pen in real time, so that the touch pen resets the default radio frequency parameters for sending the square wave signal according to the received posture information of the foldable screen. If the gesture of the folding screen mobile phone is switched from the non-unfolding state to the unfolding state, the folding screen mobile phone sends the current screen identifier and the gesture of the folding screen mobile phone to the touch pen together, so that the touch pen resets default radio frequency parameters for sending square wave signals according to the received gesture information of the folding screen and the current screen information. If the gesture of the folding screen mobile phone is kept unchanged in the unfolded state, but the currently used screen is switched (if the currently used screen is switched from the outer screen to the folding inner screen or from the folding inner screen to the outer screen), the folding screen mobile phone resends the currently used screen identifier and the gesture of the folding screen mobile phone to the touch pen, so that the touch pen resets the default radio frequency parameter for sending the square wave signal according to the received gesture information of the folding screen and the currently used screen information.
In summary, in the embodiment of the present application, the stylus flexibly sets the radio frequency parameter for sending the square wave signal according to the posture information sent by the folding-screen mobile phone and the current screen usage information, and sends the square wave signal and the pressure-sensitive signal to the corresponding screen (the folding inner screen or the folding outer screen), so that the corresponding screen of the folding-screen mobile phone can simultaneously obtain the square wave signal and the pressure-sensitive signal, thereby satisfying the ink-out condition and displaying the track.
It should be noted that, when a user holds a stylus to write on the inner or outer foldable screen of the foldable screen mobile phone, the foldable screen mobile phone may receive a pressure-sensitive signal from the stylus through an antenna of the foldable screen mobile phone. In order to distinguish whether the pressure-sensitive signal is sent to the folding inner screen or the outer screen, the touch pen can add a screen identifier in the pressure-sensitive signal. In an optional implementation manner, if the pressure-sensitive signal sent by the stylus does not include the screen identifier, the folding-screen mobile phone may send the received pressure-sensitive signal to the folding inner screen and the folding outer screen, respectively.
The following describes a method for using a stylus in this embodiment in detail with a specific scenario.
In conjunction with the application scenario shown in fig. 1, for example, a touch pen establishes a bluetooth connection with a folding screen mobile phone to perform data interaction. Fig. 13a is a schematic diagram illustrating an exemplary stylus establishing a bluetooth connection with a folding-screen mobile phone. Referring to fig. 13a, illustratively, the top (the end opposite the pen tip) of the stylus is configured with a USB connector, which may be, for example, a USB Type C connector, through which the stylus may be inserted into a USB Type C interface of a folding screen mobile phone, and the stylus side is typically configured with a USB Type C male connector. In some embodiments, other USB interfaces such as a light port may also be used.
After the touch control pen is connected through USB Type C mouth with the folding screen cell-phone, the folding screen cell-phone can detect the USB Type C mouth that the touch control pen inserted the folding screen cell-phone to pop out prompt dialog box 341. Referring to fig. 13a, the display interface of the folding-screen mobile phone includes one or more controls, for example, including but not limited to: a display window 301, a network control 303, a clock control 305, an electric quantity control 307 and application controls 309 to 339. Optionally, a prompt box 341 popped up by the folding-screen mobile phone is displayed on the uppermost layer of the display window 301, that is, the prompt box 341 blocks part of the controls displayed by the display window 301, for example, the application controls 325 to 331.
Still referring to fig. 13a, illustratively, the prompt box 341 includes at least one of: an icon of the stylus, a model or name of the stylus, and a cancel option and a connect option. Optionally, if the bluetooth function is not turned on in the folding screen mobile phone, the prompt box 341 may further display a prompt message "connect will default to turn on bluetooth".
For example, referring to fig. 13a, if the receiving user clicks the "connect" option, the folding screen mobile phone may start the bluetooth function and establish a bluetooth connection with the stylus based on the received user instruction. For example, the process of establishing a bluetooth connection between the stylus and the folding-screen mobile phone may also be referred to as bluetooth pairing. It should be noted that, if the bluetooth function of the folding screen mobile phone is already enabled, the folding screen mobile phone directly establishes a bluetooth connection with the stylus pen when the user clicks the connection prompt message.
For example, if it is detected that the user clicks the "cancel" option, the folding screen phone may cancel the display prompt box 341 based on the received user instruction.
For example, when the stylus is connected to the folding-screen mobile phone, the folding-screen mobile phone may charge the stylus, an interface of the folding-screen mobile phone may display identification information to prompt a user to charge the stylus currently, and the stylus may also prompt that the stylus is currently in a charging state through an LED or the like.
Illustratively, when it is detected that the user clicks the "cancel" option as shown in fig. 13a, a second prompt box may be further displayed to show that only the stylus is charged, and the folded-screen mobile phone charges the stylus in response to a determination operation of the user.
It should be noted that, in other embodiments, connection manners of the stylus and the folding-screen mobile phone of different manufacturers and different models may be different, for example, the stylus and the folding-screen mobile phone may be magnetically attracted, connected by a USB cable, or discovered by proximity to complete bluetooth pairing with the folding-screen mobile phone, and the bluetooth pairing manner shown in fig. 13a is only an illustrative example, and the application is not limited thereto.
For example, during bluetooth pairing between the stylus and the folding-screen mobile phone, or after bluetooth pairing is successful, the folding-screen mobile phone sends, to the stylus, radio frequency parameters (including information such as frequency of square wave signals, interval between sending time slots corresponding to the square wave signals, width of the sending time slots, and number of sending time slots in one cycle) corresponding to the touch screen of the folding-screen mobile phone, address information (for example, bluetooth address information) of the folding-screen mobile phone, and other parameters. The touch control pen can receive and store the corresponding relation among the Bluetooth connection channel, the radio frequency parameter, the address information and other parameters.
It should be noted that, in the embodiment of the present application, during the bluetooth pairing process between the stylus and the foldable screen mobile phone, or after the bluetooth pairing is successful, the foldable screen mobile phone sends the radio frequency parameters corresponding to the foldable inner screen and the foldable outer screen to the stylus. The stylus receives and stores radio frequency parameters corresponding to the folded inner screen and the outer screen respectively.
Optionally, in the description of the embodiment of the present application, the Bluetooth connection channel between the stylus and the folding-screen mobile phone may be a Bluetooth Low Energy (BLE) connection channel, and may also be a classic Bluetooth BR/EDR (Basic Rate, basic Rate/Enhanced Data Rate) connection channel.
And in the process of using the touch control pen, the touch control pen keeps Bluetooth connection with the folding screen mobile phone within a preset range of the folding screen mobile phone. Alternatively, if the stylus is disconnected from the folding-screen mobile phone by bluetooth (including disconnection based on a user instruction or exceeding a predetermined range (e.g., 50 meters)), the stylus needs to be reconnected to the disconnected folding-screen mobile phone before the switching method in the present application can be implemented.
Referring to fig. 13b, which is a schematic diagram after the stylus and the folding-screen mobile phone complete bluetooth pairing, taking the folding-screen mobile phone as an example, it is displayed on a bluetooth setting interface of the folding-screen mobile phone that the bluetooth function is turned on, and a bluetooth icon is displayed at the upper right corner. The Bluetooth setting interface also comprises the device name of the folding screen mobile phone and a paired device list. For example, the folding screen mobile phone has finished bluetooth pairing with the stylus, and in the paired device list, the name or model and the identifier of the stylus are displayed, and the stylus is prompted to be a connected device.
Fig. 14a and 14b are schematic diagrams of an application scenario. Referring to fig. 14a (1), after the folding-screen mobile phone and the stylus pen complete bluetooth pairing and send the rf parameter 1 corresponding to the folding inner screen and the rf parameter 2 corresponding to the outer screen to the stylus pen, the folding-screen mobile phone detects the posture of the folding inner screen. Illustratively, the folded inner screen of the folding screen mobile phone is in a folded state. The folding screen mobile phone sends the gesture of the folding inner screen to the touch control pen to be in a folding state. And determining that the current screen of the folding screen mobile phone is an outer screen when the gesture of the folding screen mobile phone received by the touch control pen is a folding state, and selecting a radio frequency parameter 2 corresponding to the outer screen as a default radio frequency parameter.
When a user holds a touch pen to write on a screen of the folding screen mobile phone, the folding screen mobile phone can receive a pressure-sensitive signal from the touch pen through an antenna of the folding screen mobile phone, and receive a square wave signal from the touch pen through a TP sensor in the screen. Furthermore, the folding screen mobile phone can display tracks on a corresponding screen based on the received pressure-sensitive signals and the received square wave signals. During the period, the touch control pen and the folding screen mobile phone are kept connected through Bluetooth.
With continued reference to fig. 14a (2), illustratively, the user writes with a stylus on the external screen of the folding screen handset. At the moment, the touch pen sends a square wave signal to a TP sensor in the external screen according to the radio frequency parameter 2, and sends a pressure sensing signal to the external screen through the Bluetooth antenna. Therefore, the folding screen mobile phone can receive the pressure-sensitive signal from the touch pen through the antenna of the folding screen mobile phone, send the pressure-sensitive signal to the outer screen, and receive the square wave signal from the touch pen through the TP sensor in the outer screen. Furthermore, the folding screen mobile phone can display a track on the outer screen based on the pressure-sensitive signal and the square wave signal corresponding to the outer screen.
With continued reference to fig. 14b (1), the user may unfold the folded inner screen of the folding-screen mobile phone, for example, to make the folded inner screen in the unfolded state. The folding screen mobile phone detects that the posture of the folding inner screen of the folding screen mobile phone changes, and sends the updated posture of the folding inner screen to the touch pen. At this time, the folding screen mobile phone sends the gesture of the folding inner screen to the touch control pen as the unfolding state. And determining that the current screen of the folding screen mobile phone is a folding inner screen when the gesture of the folding screen mobile phone received by the touch control pen is an unfolded state, and selecting a radio frequency parameter 1 corresponding to the folding inner screen as a default radio frequency parameter.
With continued reference to fig. 14b (2), illustratively, the user writes with a stylus on the folded inner screen of the folded screen handset. At the moment, the touch pen sends a square wave signal to the TP sensor in the folding inner screen according to the radio frequency parameter 1, and sends a pressure sensing signal to the folding inner screen through the Bluetooth antenna. Therefore, the folding screen mobile phone can receive the pressure-sensitive signal from the touch pen through the antenna of the folding screen mobile phone, send the pressure-sensitive signal to the folding inner screen, and receive the square wave signal from the touch pen through the TP sensor in the folding inner screen. Furthermore, the folding screen mobile phone can display tracks on the folding inner screen based on the pressure-sensitive signals and the square wave signals corresponding to the folding inner screen.
In an alternative embodiment, considering that the user sometimes uses the external screen when the foldable screen mobile phone is in the unfolded state, the foldable screen mobile phone simultaneously sends the currently used screen identifier to the stylus pen when detecting that the foldable internal screen of the foldable screen mobile phone is in the unfolded state. For example, when the outer screen is turned off and the folded inner screen is turned on, the folded screen mobile phone may determine that the currently used screen is the folded inner screen. As another example, the current usage screen may be determined based on data detected by the acceleration sensor and/or the gyro sensor, for example, the folding screen mobile phone may detect the current usage screen based on a preset algorithm and data detected by the acceleration sensor and/or the gyro sensor. As another example, the currently used screen may be determined based on gaze perception corresponding to a human eye, e.g., a folding screen cell phone takes a screen gazed by the human eye as the currently used screen based on a gaze perception service.
The folding screen mobile phone sends the gesture of the folding inner screen and the current use screen identification to the touch pen, when the gesture of the folding inner screen is in the unfolding state and the current use screen is the folding inner screen, the touch pen determines that the current use screen of the folding screen mobile phone is the folding inner screen, and selects the radio frequency parameter 1 corresponding to the folding inner screen as a default radio frequency parameter. With continued reference to fig. 14b (2), the user writes with the stylus on the folded inner screen of the folded screen handset. At the moment, the touch pen sends a square wave signal to the TP sensor in the folding inner screen according to the radio frequency parameter 1, and sends a pressure sensing signal to the folding inner screen through the Bluetooth antenna. Therefore, the folding screen mobile phone can receive the pressure-sensitive signal from the touch pen through the antenna of the folding screen mobile phone, send the pressure-sensitive signal to the folding inner screen, and receive the square wave signal from the touch pen through the TP sensor in the folding inner screen. Furthermore, the folding screen mobile phone can display tracks on the folding inner screen based on the pressure-sensitive signals and the square wave signals corresponding to the folding inner screen.
The folding screen mobile phone sends the gesture of the folding inner screen and the current used screen identification to the touch pen, when the gesture of the folding inner screen is in the unfolding state and the current used screen is the outer screen, the touch pen determines that the current used screen of the folding screen mobile phone is the outer screen, and selects a radio frequency parameter 2 corresponding to the outer screen as a default radio frequency parameter. With continued reference to fig. 14a (2), illustratively, the user writes with a stylus on the external screen of the folding screen handset. At the moment, the touch pen sends a square wave signal to the TP sensor in the outer screen according to the radio frequency parameter 2, and sends a pressure sensing signal to the outer screen through the Bluetooth antenna. Therefore, the folding screen mobile phone can receive the pressure-sensitive signal from the touch pen through the antenna of the folding screen mobile phone, send the pressure-sensitive signal to the outer screen, and receive the square wave signal from the touch pen through the TP sensor in the outer screen. Furthermore, the folding screen mobile phone can display a track on the outer screen based on the pressure-sensitive signal and the square wave signal corresponding to the outer screen.
As described above, the stylus can be switched between the inner and outer screens of the folding screen phone. The touch control pen can flexibly select matched radio frequency parameters to be used for sending square wave signals according to the posture information sent by the folding screen mobile phone, so that the problem that the touch control pen cannot be normally used due to the fact that the parameters of the touch control pen and the parameters of the touch control display screen are not matched is avoided, and the use experience of switching writing between a plurality of touch control screens of the same electronic device by a user is improved.
Fig. 15 is a schematic flowchart illustrating a method for using a stylus according to an embodiment of the present disclosure. As shown in fig. 15, the process of switching writing between different touch screens of the folding screen mobile phone by the stylus pen specifically includes:
s401, the folding screen mobile phone is connected with the touch pen in a Bluetooth mode.
S402, the folding screen mobile phone sends the radio frequency parameter 1 corresponding to the folding inner screen and the radio frequency parameter 2 corresponding to the outer screen to the touch control pen.
S402 may be executed after the bluetooth connection between the folding-screen mobile phone and the stylus is established, or may be executed during the bluetooth pairing process between the folding-screen mobile phone and the stylus, which is not limited in this embodiment.
S403, the stylus stores a radio frequency parameter 1 corresponding to the folding inner screen and a radio frequency parameter 2 corresponding to the outer screen.
And S403, detecting the posture of the folded inner screen by the folded screen mobile phone, and sending the posture of the folded inner screen to the touch pen.
The folding screen mobile phone can detect whether the gesture of the folding inner screen is in a folding state or an unfolding state according to data detected by the acceleration sensor and/or the gyroscope sensor.
Illustratively, the sensor driver determines angles of a first display unit and a second display unit of the folded inner screen respectively according to data collected by the gyroscope sensor and the acceleration sensor, and outputs the angles of the first display unit and the second display unit to the folded screen posture management service. The folding screen posture management service determines the posture information of the folding inner screen according to the angle changes of the first display unit and the second display unit of the folding inner screen.
In this embodiment, the angle detection algorithm may be integrated in the sensor drive. Alternatively, based on the angle detection algorithm, the sensor driver may determine the angle of the first display unit (for example, the angle of the first display unit with respect to the horizontal plane) according to the data collected by the gyro sensor and the acceleration sensor corresponding to the first display unit, and determine the angle of the second display unit (for example, the angle of the first display unit with respect to the horizontal plane) according to the data collected by the gyro sensor and the acceleration sensor corresponding to the second display unit. Optionally, based on an angle detection algorithm, the sensor driver may determine an included angle between the first display unit and the second display unit, that is, a folding angle of the folding screen, according to data collected by the gyroscope sensor and the acceleration sensor corresponding to the first display unit and data collected by the gyroscope sensor and the acceleration sensor corresponding to the second display unit. The processing process of the data acquired by the gyroscope sensor and the acceleration sensor by the sensor drive can refer to the technical scheme of the prior art embodiment, and is not repeated in the application.
The folding screen posture management service receives the angles of the first display unit and the second display unit of the folding screen in real time, and can determine the posture information of the folding inner screen according to the angle change of the first display unit and the second display unit, wherein the posture information includes but is not limited to a folding state (namely, a non-unfolding state) and an unfolding state.
S404, the touch pen selects the radio frequency parameter 1 or the radio frequency parameter 2 as a default radio frequency parameter according to the folding inner screen gesture.
Illustratively, when the posture of the folded inner screen is in the unfolded state, the stylus selects a radio frequency parameter 1 corresponding to the folded inner screen as a default radio frequency parameter, and takes the folded inner screen as a currently used screen.
For another example, when the folded inner screen is in the folded state, the stylus selects the radio frequency parameter 2 corresponding to the outer screen as the default radio frequency parameter, and takes the outer screen as the currently used screen.
Optionally, in S403, when the folded inner screen is in the unfolded state, the folded screen mobile phone sends the folded screen gesture and the currently used screen identifier to the stylus pen. Further, when the folded inner screen is in the unfolded state and the currently used screen identifier indicates that the currently used screen is the outer screen, the stylus selects the radio frequency parameter 2 corresponding to the outer screen as a default radio frequency parameter, and takes the outer screen as the currently used screen; when the folding inner screen is in the unfolding state and the current use screen identification indicates that the current use screen is the folding inner screen, the touch control pen selects the radio frequency parameter 1 corresponding to the folding inner screen as a default radio frequency parameter, and the folding inner screen is used as the current use screen. For how the folding-screen mobile phone identifies the currently used screen, reference may be made to the foregoing, and details are not described here.
S405, responding to user operation, the touch pen sends a pressure sensing signal to a screen matched with the default radio frequency parameters, and sends a square wave signal corresponding to the default radio frequency parameters.
S406, the folding screen mobile phone receives the pressure-sensitive signal and the square wave signal and displays the track on the corresponding screen.
Illustratively, when the folded inner screen is in the folded state, the stylus selects the radio frequency parameter 2 corresponding to the outer screen as the default radio frequency parameter. The user uses the stylus to write on the external screen of the folding screen mobile phone, responds to the user operation, and sends a pressure sensing signal to the screen (namely the external screen) matched with the default radio frequency parameter, and sends a square wave signal to the external screen according to the default radio frequency parameter (namely the radio frequency parameter 2). Therefore, the outer screen of the folding screen mobile phone can display the corresponding track on the outer screen after receiving the pressure-sensitive signal and the square wave signal.
As another example, when the folded inner screen is in the unfolded state and the currently used screen identifier indicates that the currently used screen is the outer screen, the stylus selects the radio frequency parameter 2 corresponding to the outer screen as the default radio frequency parameter. The user uses the stylus to write on the external screen of the folding screen mobile phone, responds to the user operation, and sends a pressure sensing signal to the screen (namely the external screen) matched with the default radio frequency parameter, and sends a square wave signal to the external screen according to the default radio frequency parameter (namely the radio frequency parameter 2). Therefore, the outer screen of the folding screen mobile phone can display the corresponding track on the outer screen after receiving the pressure-sensitive signal and the square wave signal.
As another example, when the folded inner screen is in the unfolded state and the currently used screen identifier indicates that the currently used screen is the folded inner screen, the stylus selects the radio frequency parameter 1 corresponding to the folded inner screen as the default radio frequency parameter. The user uses the stylus to write on the folding inner screen of the folding screen mobile phone, responds to the user operation, the stylus sends a pressure sensing signal to the screen (namely the folding inner screen) matched with the default radio frequency parameter, and sends a square wave signal to the folding inner screen according to the default radio frequency parameter (namely the radio frequency parameter 1). Therefore, the folding inner screen of the folding screen mobile phone can display a corresponding track on the folding inner screen after receiving the pressure-sensitive signal and the square wave signal.
And S407, the folding screen mobile phone detects that the posture of the folding inner screen changes and sends the posture of the folding inner screen to the touch pen.
The change of the posture of the folded inner screen can be switching from a folded state to an unfolded state or switching from the unfolded state to the folded state.
Optionally, S407 may also be adjusted to detect that the currently used screen of the folding-screen mobile phone changes, and send information of the currently used screen to the stylus. The currently used screen is changed, that is, the unfolded state of the inner screen of the folding screen is unchanged, but the currently used screen is switched from the folding inner screen to the outer screen, or from the outer screen to the folding inner screen.
S408, the touch control pen reselects the radio frequency parameter 2 or the radio frequency parameter 1 as a default radio frequency parameter according to the folding inner screen gesture.
When the stylus determines that the posture of the folded inner screen changes or the current screen of the folded screen mobile phone changes, the stylus reselects the radio frequency parameter 2 or the radio frequency parameter 1 as a default radio frequency parameter according to the posture of the folded inner screen so as to adapt to posture switching of the folded screen mobile phone, and the default radio frequency parameter which is set again is matched with the screen used by a user.
In a possible implementation manner, after the stylus reselects the radio frequency parameter as the default radio frequency parameter, the switching result may be sent to the folding-screen mobile phone, so that the folding-screen mobile phone displays corresponding prompt information based on the switching result. For example, after the stylus is switched from one touch screen to another touch screen of the folding-screen mobile phone, for example, the folding inner screen is switched to the outer screen or the outer screen is switched to the folding inner screen, a prompt box may be displayed on the corresponding touch screen of the folding-screen mobile phone to indicate that the stylus has been switched to the current screen. For example, as shown in fig. 16, a schematic view of a user interface is shown, referring to fig. 16, one or more controls are displayed in a display window of a folding-screen mobile phone, and specific descriptions of the one or more controls may refer to fig. 13a, which is not described herein again. Illustratively, the upper portion of the display window of a folding screen handset (which may also be located elsewhere) may display a prompt box 501. Optionally, an icon of the stylus and a word "the stylus has switched to the current screen" may be displayed in the prompt box 501 to remind the user that the stylus has switched to the current screen of the folding-screen mobile phone.
And S409, responding to the user operation, sending a pressure sensing signal to the screen matched with the default radio frequency parameter by the touch pen, and sending a square wave signal corresponding to the default radio frequency parameter.
S410, the folding screen mobile phone receives the pressure-sensitive signal and the square wave signal and displays the track on the corresponding screen.
For those parts of the process that are not explained in detail, reference is made to the above description, and further description is omitted here.
Thus, the touch pen can be switched between the inner screen and the outer screen of the folding screen mobile phone. The touch control pen can flexibly select matched radio frequency parameters to be used for sending square wave signals according to the posture information sent by the folding screen mobile phone, so that the problem that the touch control pen cannot be normally used due to the fact that the parameters of the touch control pen and the parameters of the touch control display screen are not matched is avoided, and the use experience of switching writing between a plurality of touch control screens of the same electronic device by a user is improved.
In some special situations, a problem that a touch pen cannot be normally switched between different touch screens of a folding screen mobile phone may also occur.
In one possible scenario, referring to fig. 17a, the stylus pen sends a pressure-sensitive signal to the folded inner screen of the folded-screen mobile phone and sends a square-wave signal corresponding to the rf parameter 2 of the outer screen to the outer screen of the folded-screen mobile phone. The square wave signal is generated when the touch control pen is in contact with the outer screen of the folding screen mobile phone. At this time, the folding inner screen only receives the pressure-sensitive signal and does not receive the square wave signal, and the outer screen only receives the square wave signal and does not receive the pressure-sensitive signal. Therefore, the track cannot be normally displayed on the outer screen of the folding screen mobile phone.
At this time, the folding screen mobile phone may send an event 1 to the stylus, where the event 1 may be used to indicate that the folding inner screen receives a pressure-sensitive signal sent by the stylus and does not receive a square wave signal sent by the stylus. The folding screen mobile phone can also send an event 2 to the touch pen, wherein the event 2 can be used for indicating that the outer screen receives a square wave signal sent by the touch pen and does not receive a pressure-sensitive signal sent by the touch pen.
Optionally, the stylus may send a pressure-sensitive signal to the external screen of the folding-screen mobile phone according to the event 1 and/or the event 2 (refer to fig. 17 a), so that the external screen of the folding-screen mobile phone may receive the pressure-sensitive signal and the square-wave signal, and display a corresponding track based on the received pressure-sensitive signal and the square-wave signal. Meanwhile, the stylus pen can also set the default radio frequency parameter as a radio frequency parameter 2 corresponding to the external screen, and set the currently used screen as the external screen.
Optionally, the stylus may send a pressure-sensitive signal to both the external screen and the foldable internal screen of the foldable-screen mobile phone according to the event 1 and/or the event 2 (refer to fig. 17 b), so that the external screen of the foldable-screen mobile phone may receive the pressure-sensitive signal and the square-wave signal, and display a corresponding track based on the received pressure-sensitive signal and the square-wave signal. Meanwhile, the stylus pen can also set the default radio frequency parameter as a radio frequency parameter 2 corresponding to the external screen, and set the currently used screen as the external screen.
In another possible scenario, referring to fig. 17c, the stylus pen sends a pressure-sensitive signal to the folded inner screen of the folded-screen mobile phone, and sends a square-wave signal corresponding to the radio-frequency parameter 1 of the folded inner screen to the outer screen of the folded-screen mobile phone. The square wave signal is generated when the touch control pen is in contact with the outer screen of the folding screen mobile phone. At the moment, the folding inner screen only receives the pressure-sensitive signals and does not receive the square wave signals, and the outer screen does not receive the pressure-sensitive signals and the square wave signals. Therefore, the track cannot be normally displayed on the outer screen of the folding screen mobile phone.
At this time, the folding screen mobile phone may send an event 1 to the stylus, where the event 1 may be used to indicate that the folding inner screen receives a pressure-sensitive signal sent by the stylus, and does not receive a square wave signal sent by the stylus. Further, the stylus may send a pressure-sensitive signal to the external screen of the folding-screen mobile phone and a square-wave signal corresponding to the radio-frequency parameter 2 of the external screen according to the event 1. Therefore, the outer screen of the folding screen mobile phone can receive the pressure-sensitive signal and the square wave signal and display a corresponding track based on the received pressure-sensitive signal and the square wave signal. Meanwhile, the stylus pen can also set the default radio frequency parameter as a radio frequency parameter 2 corresponding to the external screen, and set the currently used screen as the external screen.
The above description is given by taking an example of possible abnormalities and solutions when a user uses a stylus to write on an external screen of a folding-screen mobile phone, and the same is true for the possible abnormalities and solutions when the user uses the stylus to write on a folding internal screen of the folding-screen mobile phone, which is not described herein again.
The present embodiment also provides a computer storage medium, where computer instructions are stored, and when the computer instructions are executed on an electronic device, the electronic device executes the related method steps to implement the method for using a stylus in the foregoing embodiments.
The present embodiment further provides a computer program product, which when running on a computer, causes the computer to execute the relevant steps described above, so as to implement the method for using a stylus pen in the above embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component or a module, and may include a processor and a memory connected to each other; when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip can execute the using method of the stylus pen in the above method embodiments.
In addition, the electronic device (such as a folding screen mobile phone or a touch pen, etc.), the computer storage medium, the computer program product, or the chip provided in this embodiment are all used to execute the corresponding method provided above, so that the beneficial effects achieved by the electronic device can refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the description of the above embodiments, those skilled in the art will understand that, for convenience and simplicity of description, only the division of the above functional modules is used as an example, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (23)

1. A system for using a stylus, comprising: the touch control device comprises a touch control pen and electronic equipment, wherein the touch control pen is connected to the electronic equipment through Bluetooth; wherein the electronic device comprises a first screen and a second screen, the first screen and the second screen supporting the stylus to write; the first screen and the second screen are different in type; when the electronic equipment is a folding screen mobile phone, the first screen is a folding inner screen or an outer screen, and the second screen is correspondingly the outer screen or the folding inner screen;
the electronic device is configured to: sending the current screen information of the electronic equipment to the touch pen; the current usage screen information is used for indicating that a user currently uses the first screen or the second screen;
the stylus is configured to: when the current use screen information indicates that a user uses the first screen currently, sending first pressure-sensitive information to the first screen, and sending first radio-frequency information to the first screen according to a first radio-frequency parameter corresponding to the first screen; the first pressure-sensitive information and the first radio-frequency information are generated when the touch pen is in contact with the first screen;
the electronic device is further configured to: and receiving the first pressure-sensitive information and the first radio frequency information sent by the touch pen, and displaying a first track on the first screen according to the first pressure-sensitive information and the first radio frequency information.
2. The system of claim 1,
the electronic device is further configured to: when the current screen information of the electronic equipment changes, the updated current screen information is sent to the touch pen;
the stylus is further configured to: when the current use screen information indicates that the user uses the second screen currently, sending second pressure-sensitive information to the second screen, and sending second radio-frequency information to the second screen according to a second radio-frequency parameter corresponding to the second screen; wherein the second pressure information and the second radio frequency information are generated when the stylus is in contact with the second screen;
the electronic device is further configured to: and receiving the second pressure-sensitive information and the second radio-frequency information sent by the touch pen, and displaying a second track on the second screen according to the second pressure-sensitive information and the second radio-frequency information.
3. The system of claim 2, wherein the electronic device is configured to:
displaying a prompt box on the second screen, wherein the prompt box comprises prompt information for prompting that the touch pen has switched to the second screen.
4. The system of claim 1,
the electronic device is configured to: after the Bluetooth connection with the touch pen is established or in the process of establishing the Bluetooth connection with the touch pen, sending a first radio frequency parameter corresponding to the first screen and a second radio frequency parameter corresponding to the second screen to the touch pen;
the stylus is configured to: and receiving and storing a first radio frequency parameter corresponding to the first screen and a second radio frequency parameter corresponding to the second screen.
5. The system of claim 1, wherein the radio frequency parameters comprise:
the working frequency of a radio frequency signal carrying radio frequency information, the sending time of the radio frequency signal and the sending duration of the radio frequency signal.
6. The system of claim 1,
the folding screen mobile phone is used for: sending the folded inner screen posture of the folded screen mobile phone to the touch pen as the current screen information; when the folding inner screen is in the unfolding state, indicating that a user uses the folding inner screen currently; and when the folded inner screen is in a non-unfolded state, the folded inner screen is used for indicating the current use of the outer screen by a user.
7. The system of claim 6,
the folding screen mobile phone is used for: and when the folding inner screen gesture of the folding screen mobile phone is in the unfolding state, taking the folding screen inner screen gesture and the current used screen identification as the current used screen information to be sent to the touch pen.
8. The system according to any one of claims 1 to 5,
the electronic device is further configured to: when the first screen only receives third pressure-sensitive information sent by the stylus and the second screen only receives third radio-frequency information sent by the stylus, sending first event information corresponding to the first screen and/or second event information corresponding to the second screen to the stylus;
the third pressure-sensitive information and the third radio-frequency information are generated when the touch pen is in contact with the second screen; the first event information is used for indicating that pressure-sensitive information is received and radio frequency information is not received, and the second event information is used for indicating that radio frequency information is received and pressure-sensitive information is not received;
the stylus is further configured to: transmitting the third pressure-sensitive information to the second screen in response to the first event information and/or the second event information;
the electronic device is further configured to: displaying a third track on the second screen in response to the third radio frequency information and the third pressure-sensitive information received by the second screen.
9. A method for using a stylus, comprising:
the electronic equipment sends the current screen information of the electronic equipment to a touch pen; wherein the electronic device comprises a first screen and a second screen, the first screen and the second screen supporting the stylus to write; the current usage screen information is used for indicating that a user currently uses the first screen or the second screen; the first screen and the second screen are different in type; when the electronic equipment is a folding screen mobile phone, the first screen is a folding inner screen or an outer screen, and the second screen is correspondingly the outer screen or the folding inner screen;
when the current screen using information indicates that a user uses the first screen currently, a touch pen sends first pressure sensing information to the first screen, and sends first radio frequency information to the first screen according to a first radio frequency parameter corresponding to the first screen; the first pressure-sensitive information and the first radio-frequency information are generated when the touch pen is in contact with the first screen;
the electronic equipment receives the first pressure-sensitive information and the first radio-frequency information sent by the touch pen, and displays a first track on the first screen according to the first pressure-sensitive information and the first radio-frequency information.
10. The method of claim 9, further comprising:
when the current screen information used by the electronic equipment changes, the electronic equipment sends the updated current screen information used by the electronic equipment to the touch pen;
when the current screen using information indicates that the user uses the second screen currently, the touch pen sends second pressure sensing information to the second screen, and sends second radio frequency information to the second screen according to second radio frequency parameters corresponding to the second screen; the second pressure-sensitive information and the second radio-frequency information are generated when the touch pen is in contact with the second screen;
and the electronic equipment receives the second pressure-sensitive information and the second radio-frequency information sent by the touch pen, and displays a second track on the second screen according to the second pressure-sensitive information and the second radio-frequency information.
11. The method of claim 10, further comprising:
the electronic equipment displays a prompt box on the second screen, wherein the prompt box comprises prompt information used for prompting that the touch pen is switched to the second screen.
12. The method of claim 9, further comprising:
after the Bluetooth connection with the touch pen is established or in the process of establishing the Bluetooth connection with the touch pen, the electronic equipment sends a first radio frequency parameter corresponding to the first screen and a second radio frequency parameter corresponding to the second screen to the touch pen;
and the touch control pen receives and stores a first radio frequency parameter corresponding to the first screen and a second radio frequency parameter corresponding to the second screen.
13. The method of claim 9, wherein the radio frequency parameters comprise:
the working frequency of a radio frequency signal carrying radio frequency information, the sending time of the radio frequency signal and the sending duration of the radio frequency signal.
14. The method of claim 9, further comprising:
the folding screen mobile phone sends the folding inner screen gesture of the folding screen mobile phone to the touch pen as the current screen information;
when the folding inner screen is in the unfolding state, indicating that a user uses the folding inner screen currently; and when the folding inner screen is in a non-unfolding state, the folding inner screen is used for indicating the current use of the outer screen by a user.
15. The method of claim 14, further comprising:
when the folding inner screen gesture of the folding screen mobile phone is in the unfolding state, the folding screen mobile phone takes the folding screen inner screen gesture and the current using screen identification as the current using screen information to be sent to the touch pen.
16. The method of any one of claims 9-13, further comprising:
when the first screen only receives third pressure-sensitive information sent by the stylus and the second screen only receives third radio-frequency information sent by the stylus, the electronic equipment sends first event information corresponding to the first screen and/or second event information corresponding to the second screen to the stylus;
the third pressure-sensitive information and the third radio-frequency information are generated when the touch pen is in contact with the second screen; the first event information is used for indicating that pressure-sensitive information is received and radio frequency information is not received, and the second event information is used for indicating that radio frequency information is received and pressure-sensitive information is not received;
in response to the first event information and/or the second event information, the stylus pen sends the third pressure-sensitive information to the second screen;
responding to the third radio frequency information and the third pressure information received by the second screen, and displaying a third track on the second screen by the electronic equipment.
17. A method for using a stylus, comprising:
receiving current use screen information of the electronic equipment, which is sent by the electronic equipment; wherein the electronic device comprises a first screen and a second screen, the first screen and the second screen supporting the stylus to write; the current use screen information is used for indicating that a user uses the first screen or the second screen currently; the first screen and the second screen are different in type; when the electronic device is a folding screen device, the first screen is a folding inner screen or an outer screen, and the second screen correspondingly is the outer screen or the folding inner screen;
when the current use screen information indicates that a user uses the first screen currently, sending first pressure-sensitive information to the first screen, and sending first radio-frequency information to the first screen according to a first radio-frequency parameter corresponding to the first screen; wherein the first pressure information and the first radio frequency information are generated when the stylus is in contact with the first screen.
18. The method of claim 17, further comprising:
receiving updated current use screen information sent by the electronic equipment;
when the current use screen information indicates that the user uses the second screen currently, sending second pressure-sensitive information to the second screen, and sending second radio-frequency information to the second screen according to a second radio-frequency parameter corresponding to the second screen; wherein the second pressure information and the second radio frequency information are generated when the stylus is in contact with the second screen.
19. The method of claim 17, further comprising:
after the Bluetooth connection with the electronic equipment is established or in the process of establishing the Bluetooth connection with the electronic equipment, receiving a first radio frequency parameter corresponding to the first screen and a second radio frequency parameter corresponding to the second screen, which are sent by the electronic equipment;
and storing a first radio frequency parameter corresponding to the first screen and a second radio frequency parameter corresponding to the second screen.
20. The method of claim 17, wherein the radio frequency parameters comprise:
the working frequency of a radio frequency signal carrying radio frequency information, the sending time of the radio frequency signal and the sending duration of the radio frequency signal.
21. The method of any one of claims 17-20, further comprising:
sending third pressure information to the first screen and sending third radio frequency information to the second screen; the third pressure-sensitive information and the third radio-frequency information are generated when the touch pen is in contact with the second screen;
if first event information corresponding to the first screen and/or second event information corresponding to the second screen are/is received, sending the third pressure-sensitive information to the second screen;
when the first screen only receives third pressure-sensitive information sent by the stylus and the second screen only receives third radio-frequency information sent by the stylus, the electronic device sends the third pressure-sensitive information to the stylus; the first event information is used for indicating that the pressure-sensitive information is received and the radio frequency information is not received, and the second event information is used for indicating that the radio frequency information is received and the pressure-sensitive information is not received.
22. A stylus, comprising:
a memory and a processor;
the processor is coupled with the memory;
the memory stores program instructions that, when executed by the processor, cause the stylus to perform the method of use of the stylus of any one of claims 17-21.
23. A computer-readable storage medium comprising a computer program, which, when run on an electronic device, causes the electronic device to perform a method of using a stylus according to any one of claims 14-21.
CN202211004319.2A 2022-08-22 2022-08-22 Touch pen using method and system and touch pen Active CN115113747B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211004319.2A CN115113747B (en) 2022-08-22 2022-08-22 Touch pen using method and system and touch pen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211004319.2A CN115113747B (en) 2022-08-22 2022-08-22 Touch pen using method and system and touch pen

Publications (2)

Publication Number Publication Date
CN115113747A CN115113747A (en) 2022-09-27
CN115113747B true CN115113747B (en) 2023-04-07

Family

ID=83335510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211004319.2A Active CN115113747B (en) 2022-08-22 2022-08-22 Touch pen using method and system and touch pen

Country Status (1)

Country Link
CN (1) CN115113747B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI824935B (en) * 2023-02-09 2023-12-01 大陸商北京集創北方科技股份有限公司 Touch detection method, touch device and information processing device of active stylus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015055024A1 (en) * 2013-10-14 2015-04-23 深圳市汇顶科技股份有限公司 Touch terminal, active stylus detection method, and system
CN110515528A (en) * 2019-07-18 2019-11-29 同辉佳视(北京)信息技术股份有限公司 Touch-control pen interaction method, touch screen control method and touch screen
CN110780755A (en) * 2019-10-25 2020-02-11 京东方科技集团股份有限公司 Stylus, control method thereof, touch device and readable storage medium
CN113821113A (en) * 2021-11-22 2021-12-21 荣耀终端有限公司 Electronic equipment and touch pen interaction method and system and electronic equipment
CN114217700A (en) * 2022-02-18 2022-03-22 荣耀终端有限公司 Touch pen switching method and input device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6894661B1 (en) * 2000-08-14 2005-05-17 Raja Tuli Hand-held device with foldable display screen and keyboard
CN105278704A (en) * 2014-07-17 2016-01-27 致伸科技股份有限公司 Stylus
CN104516675B (en) * 2014-12-25 2017-11-28 联想(北京)有限公司 The control method and electronic equipment of a kind of folding screen
CN110536004B (en) * 2019-07-23 2021-08-31 华为技术有限公司 Method for applying multiple sensors to electronic equipment with flexible screen and electronic equipment
CN110633043A (en) * 2019-08-26 2019-12-31 华为技术有限公司 Split screen processing method and terminal equipment
CN118331440A (en) * 2020-10-14 2024-07-12 华为技术有限公司 Touch pen switching method and system and touch pen
CN112596625B (en) * 2020-12-16 2024-07-23 维沃移动通信有限公司 Electronic equipment, display control method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015055024A1 (en) * 2013-10-14 2015-04-23 深圳市汇顶科技股份有限公司 Touch terminal, active stylus detection method, and system
CN110515528A (en) * 2019-07-18 2019-11-29 同辉佳视(北京)信息技术股份有限公司 Touch-control pen interaction method, touch screen control method and touch screen
CN110780755A (en) * 2019-10-25 2020-02-11 京东方科技集团股份有限公司 Stylus, control method thereof, touch device and readable storage medium
CN113821113A (en) * 2021-11-22 2021-12-21 荣耀终端有限公司 Electronic equipment and touch pen interaction method and system and electronic equipment
CN114217700A (en) * 2022-02-18 2022-03-22 荣耀终端有限公司 Touch pen switching method and input device

Also Published As

Publication number Publication date
CN115113747A (en) 2022-09-27

Similar Documents

Publication Publication Date Title
CN112217923B (en) Display method of flexible screen and terminal
US10853979B2 (en) Electronic device and method for displaying screen thereof
CN111176504B (en) Interface element display method and electronic equipment
CN109976570B (en) Data transmission method and device and display device
CN115486087A (en) Application interface display method under multi-window screen projection scene and electronic equipment
CN113050841A (en) Method, electronic equipment and system for displaying multiple windows
KR101343587B1 (en) Data transfering method using direction information and mobile device using the method
EP3144784B1 (en) Mobile terminal and control method for the mobile terminal
CN108762881B (en) Interface drawing method and device, terminal and storage medium
KR102674753B1 (en) Mobile terminal and electronic device comprising the mobile terminal
KR20170099665A (en) Display apparatus and method for setting a operating channel
CN114513847A (en) Positioning method, device, system, electronic equipment and storage medium
AU2018456082A1 (en) Stylus detection method, system, and related device
KR20150132963A (en) Method and apparatus for processing an input using a display
CN113076051A (en) Slave control terminal synchronization method, device, terminal and storage medium
CN115113747B (en) Touch pen using method and system and touch pen
CN114143906B (en) Electronic equipment connection method and electronic equipment
KR20140009851A (en) Electonic device and method for controlling of the same
WO2022089407A1 (en) Display method and electronic device
US20220291825A1 (en) Mobile terminal and method for controlling mobile terminal
CN112181915B (en) Method, device, terminal and storage medium for executing service
CN111580892A (en) Method, device, terminal and storage medium for calling service component
CN110764808B (en) Client upgrade detection method, device and computer readable storage medium
KR20150069155A (en) Touch indicator display method of electronic apparatus and electronic appparatus thereof
CN114173165B (en) Display method and electronic equipment

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