WO2022022387A1 - Method, apparatus, and system for controlling information input devices on terminal - Google Patents

Method, apparatus, and system for controlling information input devices on terminal Download PDF

Info

Publication number
WO2022022387A1
WO2022022387A1 PCT/CN2021/107927 CN2021107927W WO2022022387A1 WO 2022022387 A1 WO2022022387 A1 WO 2022022387A1 CN 2021107927 W CN2021107927 W CN 2021107927W WO 2022022387 A1 WO2022022387 A1 WO 2022022387A1
Authority
WO
WIPO (PCT)
Prior art keywords
information input
input device
terminal
frequency
pulse signal
Prior art date
Application number
PCT/CN2021/107927
Other languages
French (fr)
Chinese (zh)
Inventor
李小仙
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022022387A1 publication Critical patent/WO2022022387A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0412Digitisers structurally integrated in a display
    • 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/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • 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
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves

Definitions

  • the embodiments of the present application relate to the field of communications and the field of terminals, and in particular, to a method, an apparatus, and a system for operating an information input device on a terminal.
  • information input devices are widely used as one of the accessories of smart devices such as mobile phones and tablets.
  • the information input device can enable users to write, draw, and manipulate accurately and quickly on the smart device, and can provide users with a more refined experience than finger operations.
  • information input devices are mainly used with small screen products such as tablets and mobile phones. Therefore, only one pen is considered for writing on one terminal in the design of the scheme, and the scenario of multiple pens writing on the same terminal is not considered.
  • large-sized touch terminals such as tablets, smart TVs, smart screens and other devices will become more and more popular, and there will be more and more scenarios where multiple information input devices write on the same terminal. How to realize simultaneous writing with multiple pens on the same terminal is a worthy research direction in this field.
  • the embodiments of the present application provide a method, an apparatus, and a system for controlling an information input device on a terminal.
  • the terminal can distinguish different information input devices, perform graphics rendering for different information input devices, and display corresponding movement trajectories.
  • an embodiment of the present application provides a method for operating an information input device on a terminal, and the method is applied to a communication system including a terminal, a first information input device, and a second information input device.
  • the method may include: the terminal assigns a first frequency to the first information input device, and assigns a second frequency to the second information input device, the first frequency and the second frequency are different; the first information input device transmits the first frequency a pulse signal, the frequency of the first pulse signal is the first frequency; the second information input device transmits a second pulse signal, the frequency of the second pulse signal is the second frequency; the terminal is at the first position of the screen When the first pulse signal is detected, the first movement track formed by the first position point is displayed on the screen; the first position point includes one or more position points; the terminal detects the second position point on the screen to the second pulse signal, a second movement track formed by the second position point is displayed on the screen; the second position point includes one or more position points; wherein, the first movement track and the second movement track
  • the terminal can distinguish the pulse signals sent by different information input devices by frequency, and display the movement track at the position point where the pulse signals sent by the information input device are received.
  • the appearances of the movement tracks corresponding to different information input devices are different, so that when the user uses multiple information input devices to operate on the same terminal, the user can directly identify which information input device the movement track corresponds to from the appearance.
  • the method distinguishes different information input devices by the frequency of the signal, does not need to send additional information input device ID, and does not affect the reporting rate.
  • the appearance of the movement track may include, but is not limited to: color, thickness, depth, or stroke, and so on.
  • the information input device may directly contact the terminal screen, or may not contact the terminal screen, for example, be close to the terminal screen, which is not limited in this embodiment of the present application. That is to say, as long as the terminal can detect the pulse signal sent by the information input device, the corresponding movement trajectory can be displayed.
  • the terminal can sense the pulse signal sent by the information input device, that is, the movement track can be displayed at the position where the pulse signal is detected. In this way, when the user has a writing intention, the movement track of the corresponding information input device can be displayed, and the function of "0-pressure-sensitive ink ejection" can be realized. This is a better experience for the user.
  • the appearance of the movement track can be determined in the following ways:
  • the terminal is preset. For example, the terminal displays a red moving track at the position where the first pulse signal with the first frequency is detected (ie, the first position), and at the position where the second pulse signal with the second frequency is detected (ie, the first position) The second position point) shows the movement trajectory in blue. In this way, the user can directly distinguish different information input devices from the difference in the appearance of the movement track.
  • the terminal determines the appearance of the movement track corresponding to the information input device, such as thickness, depth, etc., according to the pressure value when the information input device contacts the screen of the terminal. For example, when the pressure value is larger, the color of the movement track corresponding to the information input device is darker or the line is thicker.
  • the information input device can send the pressure value collected when touching the screen of the terminal and the identification of the information input device to the terminal through a wireless connection with the terminal.
  • the terminal can know which information input device the pressure value belongs to through the identifier, and determine the appearance of the movement track of the corresponding information input device according to the pressure value.
  • the terminal can associate and store the first frequency and the first identification, and the first identification is the identification of the first information input device; the first information input device detects the first pressure value, through The first wireless connection with the terminal sends a first message; the first message carries the first pressure value and the first identifier; the terminal receives the first message; wherein, the appearance of the first movement track is determined by The first pressure value in the first message carrying the first identifier is determined.
  • the first message may further include a time point of the collected first pressure value, so that the terminal can determine the pressure value of the first information input device at each time point, and detect the first pulse at the same time point The appearance of the movement trace displayed on the first position point of the signal is determined by the corresponding pressure value.
  • the second information input device can also collect and send the pressure value in the same way, for example, the second information input device can send a second message carrying the second pressure value and the identifier of the second information input device.
  • the terminal can distinguish the pressure values of different information input devices, and reflect the pressure values on the movement trajectory of the corresponding information input device, so as to achieve a fine and accurate display effect.
  • the user can control the appearance of the movement track by controlling the strength, which can bring a good user experience to the user.
  • the information input device can transmit the pressure value in an efficient and timely manner by using wireless communication technology, so that the terminal can render and display the corresponding movement trajectory in real time, so that the information input device has good chirality and can improve the user experience.
  • the terminal determines the appearance of the movement track corresponding to the information input device, such as thickness, depth, etc., according to the intensity of the detected pulse signal. For example, when the intensity of the pulse signal is greater, the color of the movement track corresponding to the information input device is darker or the line is thicker.
  • the appearance of the first movement track can be determined by the intensity of the first pulse signal.
  • the appearance of the second movement trace is determined by the strength of the second pulse signal.
  • the terminal determines, according to the inclination of the information input device, the appearance of the movement track corresponding to the information input device, such as the stroke, thickness, and the like. For example, when the inclination is larger, the line corresponding to the movement track of the information input device is thicker. The slope is determined by the pulse signal detected by the terminal.
  • the terminal can also assign a third frequency to the first information input device, and the third frequency is different from the second frequency; the first information input device transmits a third pulse signal, and the first information input device transmits a third pulse signal.
  • the frequency of the three-pulse signal is the third frequency; the terminal detects the third pulse signal at a third position; wherein, the appearance of the first movement track is determined by the inclination of the first information input device, and the first The inclination of the information input device is determined by the first position point where the first pulse signal is detected, and the third position point where the third pulse signal is detected.
  • the inclination of the first information input device at a certain time point is determined by the first position point at which the first pulse signal is detected at the time point, and the third position point at which the third pulse signal is detected at the time point .
  • the distance between the electrodes 2 of the pulse signal, d2 is the distance between the first position point and the second position point corresponding to the time point.
  • d1 may be pre-stored in the terminal, or may be sent to the terminal by the first information input device through the first wireless connection.
  • the terminal can distinguish the inclination of different information input devices, and reflect the inclination on the movement trajectory of the corresponding information input device, so as to achieve a fine and accurate display effect.
  • the user can control the appearance of the movement track by controlling the inclination, which can bring a good user experience to the user.
  • the working cycle of the terminal includes a plurality of signal detection time periods;
  • the working cycle of the first information input device includes: a plurality of first transmission time periods and a plurality of second transmission time periods;
  • the signal detection period covers the first transmission period and the second transmission period in timing;
  • the first information input device sends the first pulse signal during the first transmission period, and the second transmission period Sending the third pulse signal;
  • the terminal detects the first pulse signal and the third pulse signal in the signal detection period.
  • the first information input device and the terminal can cooperate to complete the transmission of the downlink signal (including the first pulse signal and the second pulse signal), and save the power of both parties to the greatest extent.
  • the terminal when the first transmission time period and the second transmission time period overlap, the first frequency is different from the third frequency; or, in the case of the first transmission time period and the third transmission time period When the two transmission time periods do not overlap, the first frequency and the third frequency are the same. In this way, for the first information input device, the terminal can distinguish the first signal and the second signal transmitted by the first information input device according to the difference in timing or frequency.
  • the second input device and the terminal may also have similar working time periods, which will not be repeated here.
  • the terminal may also send a DSSS signal, and the first information input device may use the first frequency to send the first pulse signal after detecting the DSSS signal.
  • the first information input device can detect the DSSS signal only when it is close to the terminal screen, and then send the first pulse signal, which can save the power consumption of the first information input device.
  • the working period of the terminal includes a signal transmission period; the working period of the first information input device includes a signal detection period; the signal detection period covers the signal transmission period in timing;
  • the DSSS signal is sent during the signal transmission period; the first information input device detects the DSSS signal during the signal detection period.
  • the first information input device and the terminal can cooperate to complete the transmission of the uplink signal (that is, the DSSS signal), and save the power of both parties to the greatest extent.
  • the duty cycle of the terminal and the duty cycle of the first information input device have the same length. In some embodiments, the working cycle of the terminal and the working cycle of the first information input device may also be consistent in timing.
  • the first information input device sends the first message within a first time window; the terminal scans the first message within the first time window.
  • the first information input device can periodically send the detected pressure value, and the terminal can also scan messages periodically, which can save the power consumption of both parties.
  • the terminal allocates a first frequency to the first information input device based on the first wireless connection.
  • the terminal may further allocate a fourth frequency to the first information input device, where the fourth frequency is different from the first frequency and the second frequency.
  • the terminal can perform frequency hopping processing on the first information input device, which can prevent the frequency of the first pulse signal transmitted by the first information input device from being close to the interference signal existing in the space, thereby preventing the terminal from detecting the frequency of the first information input device.
  • the first pulse signal is interfered by other signals in the space, so that the terminal can accurately identify the first pulse signal sent by the first information input device.
  • the terminal may run a first application program, where the first application program provides one or more of the following Function: drawing, office, pattern design, text input or data input. In this way, the terminal can identify different information input devices in scenes such as painting and writing.
  • an embodiment of the present application provides a method for controlling an information input device on a terminal, and the method is applied to the terminal side.
  • the method may include: assigning, by the terminal, a first frequency to the first information input device, and assigning a second frequency to the second information input device, the first frequency and the second frequency being different; the terminal is at a first position on the screen The first pulse signal with the frequency of the first frequency is detected at the point, and the first movement trajectory formed by the first position point is displayed on the screen; the first position point includes one or more position points; the terminal is in the A second pulse signal with a frequency of the second frequency is detected at the second position point of the screen, and a second movement track formed by the second position point is displayed on the screen; the second position point includes one or more position points ; wherein, the appearance of the first movement track and the second movement track are different.
  • an embodiment of the present application provides a method for controlling an information input device on a terminal, and the method is applied to the side of the first information input device.
  • the method may include: the first information input device receives a first frequency assigned by the terminal; the first information input device transmits a first pulse signal, and the frequency of the first pulse signal is the first frequency.
  • an embodiment of the present application provides a method for controlling an information input device on a terminal, and the method is applied to a communication system including a terminal and an information input device.
  • the method may include: the terminal assigns a first frequency to the information input device; the information input device transmits a pulse signal, and the frequency of the pulse signal is the first frequency; the terminal detects the pulse signal at a third position on the screen , and perform the function corresponding to the third position point.
  • the terminal can obtain the point reporting information according to the first pulse signal, and perform corresponding operations according to the reporting point information. For example, when the first information input device clicks on the icon of the application program on the home screen of the terminal, the terminal can start the application program corresponding to the icon. For another example, when the first information input device slides left and right on the home screen, the terminal can refresh the icons of the application programs displayed in the home interface, and the like.
  • an embodiment of the present application provides a terminal, where the terminal includes: a screen, a memory, and one or more processors; the screen and the memory are coupled to the one or more processors, and the The memory is used to store computer program code, the computer program code comprising computer instructions, the one or more processors invoking the computer instructions to cause the terminal to perform the second aspect or any one of the embodiments of the second aspect the method described.
  • an embodiment of the present application provides an information input device, the information input device includes: a memory and one or more processors; the memory is coupled to the one or more processors, and the memory uses to store computer program code, the computer program code comprising computer instructions, the one or more processors invoking the computer instructions to cause the information input device to perform the third aspect or any one of the embodiments of the third aspect the method described.
  • an embodiment of the present application provides a communication system, wherein the communication system includes a terminal and a first information input device, the terminal is the terminal described in the fifth aspect, and the first information input device The device is the information input device described in the sixth aspect.
  • the communication system of the seventh aspect may further include a second information input device.
  • the second information input device is configured to execute the method on the side of the second information input device described in the first aspect or any one of the implementation manners of the first aspect.
  • an embodiment of the present application provides a computer program product containing instructions, when the computer program product runs on an electronic device, the electronic device is made to execute any one of the second aspect or the second aspect The method described in the embodiment.
  • an embodiment of the present application provides a computer-readable storage medium, comprising instructions, wherein when the instructions are executed on an electronic device, the electronic device is caused to execute the second aspect or the second aspect The method described in any one of the embodiments of .
  • an embodiment of the present application provides a computer program product containing instructions, characterized in that, when the computer program product runs on an electronic device, the electronic device is caused to perform the third aspect or the third aspect The method described in any one of the embodiments of .
  • an embodiment of the present application provides a computer-readable storage medium, including instructions, characterized in that, when the instructions are executed on an electronic device, the electronic device is caused to execute the third aspect or the third The method of any one of the embodiments of the aspect.
  • the terminal can distinguish different information input devices, perform graphics rendering for different information input devices, and display the corresponding movement trajectory, that is, the terminal supports multiple simultaneous writing scenarios.
  • the method distinguishes different information input devices by the frequency of the signals, does not need to send additional information input device IDs, and does not affect the reporting rate.
  • the information input device can transmit the pressure value in an efficient and timely manner by using wireless communication technology, so that the terminal can render and display the corresponding movement trajectory in real time, so that the information input device has good chirality and can improve the user experience.
  • FIG. 1 is a schematic structural diagram of a communication system 10 according to an embodiment of the present application.
  • FIG. 2A is a schematic diagram of a hardware structure of a terminal provided by an embodiment of the present application.
  • 2B is a schematic diagram of a software structure of a terminal provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a hardware structure of an information input device provided by an embodiment of the present application.
  • FIG. 4A is a schematic structural diagram of a touch sensor of a terminal according to an embodiment of the present application.
  • FIG. 4B is a geometric diagram when calculating the inclination according to an embodiment of the present application.
  • FIG. 5 is a working time diagram of a terminal and an information input device provided by an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of a method for controlling an information input device on a terminal provided by an embodiment of the present application
  • 7A and 7B are a set of user interfaces implemented on a terminal provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a wireless message for frequency allocation provided by an embodiment of the present application.
  • FIG. 9 is a working time diagram of each device in the communication system 10 provided by the embodiment of the present application.
  • FIG. 10 is a schematic diagram of a PWM signal 1 and a PWM signal 2 provided by an embodiment of the application;
  • FIG. 11 is a schematic diagram of a terminal displaying movement trajectories of multiple information input devices according to an embodiment of the present application.
  • first and second are only used for descriptive purposes, and should not be construed as implying or implying relative importance or implying the number of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, the “multiple” The meaning is two or more.
  • GUI graphical user interface
  • Simultaneous writing with multiple strokes refers to a scenario in which multiple information input devices write, draw or manipulate on the same terminal.
  • the terminal needs to correspond to the pressure value, reporting point information and inclination of the same information input device, so that the different multiple information input devices can be used separately.
  • Point-reporting information refers to the location where the terminal senses the information input device, such as the location where the information input device directly touches the screen of the terminal, or the location where the terminal detects a signal when the information input device is close to the terminal.
  • the inclination refers to the inclination angle of the information input device relative to the screen of the terminal.
  • the prior art provides the following two methods for simultaneous writing of multiple strokes.
  • the first method the terminal obtains the pressure value, the reporting point information and the inclination of the information input device through the signal emitted by the pen tip of the information input device. In this way, the terminal can distinguish the pressure value, reporting point information and inclination of different information input devices. However, the transmission rate of the signal emitted by the pen tip is extremely low, resulting in a low point rate.
  • the second method the terminal obtains the point reporting information and the inclination of the information input device through the signal emitted by the pen tip of the information input device, and sends the Bluetooth message based on the Bluetooth low energy (BLE) technology through the information input device. to get the pressure value.
  • BLE Bluetooth low energy
  • the signal emitted by the pen tip needs to have a part (for example, 36 bits) to transmit the identity document (ID) of the information input device.
  • the Bluetooth message also carries the information input device ID, so that the terminal can input the same information into the device. corresponding to the pressure value, reporting point information and inclination.
  • the second method will lose part of the reporting information (for example, 24 reporting information), which affects the reporting rate.
  • the reporting rate is an important factor affecting the writing experience. A low reporting rate will cause the movement trajectory rendered and displayed by the terminal graphics to be inconsistent with the actual movement trajectory of the information input device on the terminal screen, which will affect the chirality.
  • the following embodiments of the present application provide a method, an apparatus, and a system for controlling an information input device on a terminal.
  • this method it is suitable for the scenario where multiple strokes are written at the same time.
  • the terminal may allocate different frequencies to different information input devices.
  • Each information input device can use the frequency assigned by the terminal to send the pulse signal, the terminal can detect the pulse signal on the screen, and display the movement track at the position where the pulse signal is detected, the appearance of the movement track corresponding to the pulse signal of different frequencies is different .
  • the terminal can distinguish pulse signals sent by different information input devices through different frequencies, and display moving trajectories with different appearances for different information input devices. This enables multiple simultaneous writing.
  • the appearance of the movement track may include, but is not limited to: color, thickness, depth, or stroke, and so on.
  • the information input device may directly contact the terminal screen, or may not contact the terminal screen, for example, be close to the terminal screen, which is not limited in this embodiment of the present application. That is to say, as long as the terminal can detect the pulse signal sent by the information input device, the corresponding movement trajectory can be displayed.
  • the terminal can sense the pulse signal sent by the information input device, that is, the movement track can be displayed at the position where the pulse signal is detected. In this way, when the user has a writing intention, the movement track of the corresponding information input device can be displayed, and the function of "0-pressure-sensitive ink ejection" can be realized. This is a better experience for the user.
  • the appearance of the movement track can be determined in the following ways:
  • the terminal is preset. For example, the movement trajectories corresponding to two pulse signals of different frequencies can be displayed in red and the other in blue. In this way, the user can directly distinguish different information input devices from the difference in the appearance of the movement track.
  • the terminal determines the appearance of the movement track corresponding to the information input device, such as thickness, depth, etc., according to the pressure value when the information input device contacts the screen of the terminal. For example, when the pressure value is larger, the color of the movement track corresponding to the information input device is darker or the line is thicker.
  • the information input device can send the pressure value collected when touching the screen of the terminal and the identification of the information input device to the terminal through a wireless connection with the terminal.
  • the terminal can know which information input device the pressure value belongs to through the identifier, and determine the appearance of the movement track of the corresponding information input device according to the pressure value.
  • the terminal can distinguish the pressure values of different information input devices, and reflect the pressure values on the movement trajectory of the corresponding information input device, so as to achieve a fine and accurate display effect.
  • the user can control the appearance of the movement track by controlling the strength, which can bring a good user experience to the user.
  • the terminal determines the appearance of the movement track corresponding to the information input device, such as thickness, depth, etc., according to the intensity of the detected pulse signal. For example, when the intensity of the pulse signal is greater, the color of the movement track corresponding to the information input device is darker or the line is thicker.
  • the terminal determines, according to the inclination of the information input device, the appearance of the movement track corresponding to the information input device, such as the stroke, thickness, and the like. For example, when the inclination is larger, the line corresponding to the movement track of the information input device is thicker.
  • the terminal can distinguish the inclination of different information input devices, and reflect the inclination on the movement trajectory of the corresponding information input device, so as to achieve a fine and accurate display effect.
  • the user can control the appearance of the movement track by controlling the inclination, which can bring a good user experience to the user.
  • the terminal can distinguish different information input devices, perform graphics rendering for different information input devices, and display the corresponding movement trajectory, that is, the terminal supports multiple simultaneous writing scenarios.
  • the method distinguishes different information input devices by the frequency of the signals, does not need to send additional information input device IDs, and does not affect the reporting rate.
  • the information input device can transmit the pressure value in an efficient and timely manner by using wireless communication technology, so that the terminal can render and display the corresponding movement trajectory in real time, so that the information input device has good chirality and can improve the user experience.
  • a scenario in which multiple strokes are written at the same time refers to a scenario in which one or more users use multiple information input devices to write on the same terminal.
  • the scenario of writing with multiple strokes may include, but is not limited to, one or more users using multiple information input devices to draw, work, design patterns, input text or data (eg, signature) on the same terminal, and so on.
  • the content written by the user on the terminal using the information input device may be text, line, drawing or any pattern, which is not limited here.
  • the wireless communication technologies used by the information input device may include but are not limited to: Bluetooth (bluetooth, BT), near field communication (near field communication, NFC), wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (WiFi)), radio frequency identification (radio frequency identification, RFID) or ZigBee and so on.
  • Bluetooth may include Classic Bluetooth or Bluetooth Low Energy BLE.
  • FIG. 1 shows a communication system 10 provided by an embodiment of the present application.
  • the communication system 10 may include: a terminal 400, and one or more information input devices.
  • an information input device 100 , an information input device 200 and an information input device 300 are shown in FIG. 1 .
  • the information input device 100 , the information input device 200 , and the information input device 300 may be manipulated by the same user, or may be manipulated by different users.
  • the information input device 100 can be manipulated by the user 1
  • the information input device 200 can be manipulated by the user 2
  • the information input device 300 can be manipulated by the user 3 .
  • the terminal 400 is configured with a screen. In some embodiments, the terminal 400 may be configured with a larger size screen.
  • the terminal 400 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, and a laptop computer (laptop).
  • portable electronic devices include, but are not limited to, portable electronic devices powered by iOS, android, microsoft, or other operating systems. It should also be understood that, in some other embodiments of the present application, the electronic device may not be a portable electronic device, but a smart TV, smart screen, desktop computer or electronic billboard having a touch-sensitive surface (such as a touch panel). etc.
  • the information input device is an active information input device, such as an active capacitive stylus. It is understandable that the information input device is only a word used in the embodiment of this application, and the meaning it represents is an information input device, and the functions it performs have been recorded in this embodiment, and its name does not affect this embodiment. constitute any restriction. In addition, in some other embodiments of the present application, the information input device may also be referred to as, for example, a stylus pen, an active stylus pen, a signal pen, or other terms.
  • a wireless connection may be established between the terminal 400 and multiple information input devices based on a wireless communication technology, respectively.
  • the terminal 400 may establish BLE connections with multiple information input devices respectively.
  • the terminal 400 can allocate different frequencies to different information input devices based on the wireless connection.
  • the terminal 400 can allocate one or two frequencies to the same information input device.
  • the frequency allocated by the terminal 400 to each information input device is a low frequency, for example, a frequency between 100KHz and 400KHz.
  • the frequency allocated by the terminal 400 to the information input device can be used by the information input device to send signals to the terminal 400 during the writing process subsequently.
  • the terminal 400 may store the correspondence between the respective information input devices and the frequencies allocated to the respective information input devices.
  • the terminal 400 may also send more abundant information based on the wireless connection with each information input device, such as information such as the remaining power of the information input device, whether a button of the information input device is pressed, and the like.
  • the terminal 400 may periodically transmit a signal based on direct sequence spread spectrum (DSSS) (hereinafter referred to as a DSSS signal) through the touch panel.
  • DSSS direct sequence spread spectrum
  • the pen tip of the information input device touches or is about to touch the screen of the terminal 400, it can detect the DSSS signal sent by the terminal 400 to know that the screen of the terminal 400 is nearby, that is, the user has a writing intention.
  • the information input device may transmit a pulse width modulation (PMW) type signal (hereinafter referred to as a PWM signal) to the terminal 400 using the frequency allocated by the terminal 400 .
  • PMW pulse width modulation
  • the information input device can use the frequency to send one PWM signal.
  • the terminal 400 can determine the information input device that transmits the signal according to the frequency of the received PWM signal of the 1 channel, and can also obtain the notification information of the information input device according to the PWM signal of the 1 channel.
  • the information input device can use the two frequencies to send one PWM signal respectively, that is, to send two PWM signals.
  • the terminal 400 can determine the information input device that transmits the signal according to the frequency of the received 2-channel PWM signal, and can also obtain the alarm point information and the inclination of the information input device according to the 2-channel PWM signal.
  • the information input device may continuously send the PWM signal to the screen of the terminal 400 through the pen tip, or may periodically send the signal, which is not limited herein.
  • the information input device can also detect the pressure value when the pen tip touches the screen of the terminal 400, and send a wireless message to the terminal 400 through the wireless connection with the terminal 400, where the wireless message carries the pressure value and the ID of the information input device. After receiving the wireless message, the terminal 400 can determine the pressure value of the information input device corresponding to the information input device ID.
  • the terminal 400 may determine the pressure value, point information and inclination of each information input device, or the terminal 400 may determine the pressure value and point information of each information input device, and perform graphic rendering according to the determined content. Then, the movement track of the corresponding information input device on the upper part of the screen is displayed on the screen.
  • the communication system 10 there are at least three information channels between the terminal 400 and each information input device. in:
  • the first information channel is an uplink channel for the terminal 400 to send a DSSS signal to the information input device.
  • the second information channel is a downlink channel for the information input device to send a PWM signal to the terminal 400 using the allocated frequency.
  • the second information channel may include the first sub-channel.
  • the first sub-channel is used for the information input device to send 1 channel of PWM signal to the terminal using the allocated frequency, and the 1 channel of PWM signal is used for the terminal 400 to obtain the report information of the information input device.
  • the second information channel may further include a second sub-channel, and the second sub-channel is used for the information input device to send a PWM signal to the terminal 400 using the assigned frequency.
  • the two PWM signals transmitted by the second word channel and the first sub-channel are combined for the terminal 400 to know the inclination of the information input device.
  • the third information channel is an uplink and downlink bidirectional channel, used by the terminal 400 to assign frequencies to the information input device, and also used by the information input device to send a wireless message carrying the pressure value and the ID of the information input device to the terminal 400 .
  • This frequency is used for the information input device to send a signal to the terminal 400 through the second information channel.
  • the first information channel and the second information channel may be two unidirectional channels, or may be two transmission directions of a bidirectional channel.
  • Subsequent embodiments will combine the hardware structures of the terminal 400 and the information input device to describe in detail the constitution of the three information channels and the principle of transmitting information, which will not be described here.
  • FIG. 2A exemplarily shows a schematic structural diagram of a terminal 400 provided by an embodiment of the present application.
  • the terminal 400 may include: 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 , and a battery 142 , Antenna 1, Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Audio Module 170, Speaker 170A, Receiver 170B, Microphone 170C, Headphone Interface 170D, Sensor Module 180, Key 190, Motor 191, Indicator 192, Camera 193 , a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • a processor 110 an external memory interface 120
  • an internal memory 121 a universal serial bus (USB) interface 130
  • USB universal serial bus
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a touch chip such as a touch panel integrated circuit (TPIC), a graphics processor (graphics processing unit, GPU), image signal processor (image signal processor, ISP), controller, memory, digital signal processor (digital signal processor, DSP), etc.
  • AP application processor
  • TPIC touch panel integrated circuit
  • GPU graphics processor
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • DSP digital signal processor
  • the controller may be the nerve center and command center of the terminal 400 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the terminal 400 by executing the instructions stored in the internal memory 121 .
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the terminal 400 and the like.
  • the wireless communication function of the terminal 400 may be implemented by the antenna 1, the antenna 2, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in terminal 400 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the wireless communication module 160 may be configured to establish wireless connections with multiple information input devices based on wireless communication technologies, respectively.
  • the wireless connection can be used by the terminal 400 to assign different frequencies to different information input devices.
  • the terminal 400 can allocate 2 frequencies to the same information input device. This frequency can be used by the information input device to send a PWM signal to the terminal 400 in the subsequent writing process.
  • the wireless communication module 160 may also receive a wireless message (eg, BLE message) sent by the information input device during the writing process based on the wireless connection, where the wireless message carries the pressure value detected by the information input device and the ID of the information input device.
  • the wireless message is transmitted to the AP, and the AP determines the pressure value of the information input device corresponding to the information input device ID according to the wireless message. After that, the AP can transmit the pressure value of the information input device to the GPU for subsequent graphics rendering for the information input device.
  • the terminal 400 implements a display function through the GPU, the display screen 194, and the AP.
  • the GPU is a microprocessor for image processing, and connects the display screen 194 and the AP.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the GPU may render graphics according to the pressure value, reporting point information, and inclination of each information input device, and transmit the rendered result to the display screen 194, which displays the corresponding movement trajectory.
  • Display screen 194 is used to display images, videos, and the like. In this embodiment of the present application, the display screen 194 may be used to display the movement trajectories of multiple information input devices respectively.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • the terminal 400 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the pressure sensor 180A is used to sense the pressure signal, and can convert the pressure signal into a signal.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the terminal 400 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the terminal 400 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the terminal 400 can also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can communicate the detected touch operation to the AP to determine the touch event type.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the terminal 400 , which is different from the position where the display screen 194 is located.
  • the touch sensor 180K can be used to transmit a signal (eg, a DSSS signal) to the information input device, and the signal can be used by the information input device to know that the screen of the terminal 400 is nearby, that is, to know that the user has a writing intention.
  • a signal eg, a DSSS signal
  • the touch sensor 180K may also be used to receive a signal transmitted by the information input device, and the processor 110 may determine the point announcement information and the inclination according to the signal.
  • the working principle of the touch sensor 180K will be described in detail later, which will not be repeated here.
  • the screen of the terminal 400 may refer to a device composed of a protective glass (not shown in the figure), a touch sensor 180K, a display screen 194, a bottom plate (not shown in the figure) and some peripheral circuits.
  • the screen is, from top to bottom, the protective glass, the touch sensor 180K, the display screen 194, and the bottom plate.
  • the terminal 400 may include more or less components than those shown in the drawings, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiments of the present application take an Android system with a layered architecture as an example to exemplarily describe the software structure of the electronic device 100 .
  • FIG. 2B is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide the communication function of the electronic device 100 .
  • the management of call status including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
  • Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library eg: OpenGL ES
  • 2D graphics engine eg: SGL
  • the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
  • FIG. 3 is a schematic structural diagram of an information input device provided by an embodiment of the present application.
  • the information input device may be any information input device in the communication system 100 shown in FIG. 1 , for example, the information input device 100 , the information input device 200 or the information input device 300 .
  • the information input device shown in FIG. 3 may be an active capacitive stylus.
  • the active capacitive stylus may include: a processor 201, a power supply 202, a microcontroller unit (MCU) 203, a direct current-direct current converter (DC/DC) ) 204 , a signal transmission circuit 205 , a signal detection circuit 206 , a pressure sensor 207 and a wireless communication module 208 .
  • MCU microcontroller unit
  • DC/DC direct current-direct current converter
  • the processor 201 may include one or more processing units, for example, the processor 201 may include an application processor (application processor, AP), a controller, a memory, and the like. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • controller controller
  • memory and the like.
  • different processing units may be independent devices, or may be integrated in one or more processors.
  • the power source 202 may be a rechargeable lithium battery or a replaceable standard battery or the like. During operation, the power supply 202 supplies power to the MCU 203, the signal transmission circuit 205, the signal detection circuit 206, the pressure sensor 207 and the wireless communication module 208 through the DC/DC power converter 204.
  • the signal detection circuit 203 can be disposed at the position of the pen tip of the information input device.
  • Signal detection circuit 203 may include one or more electrodes.
  • the signal detection circuit 203 may be used to detect signals (eg, DSSS signals) emitted by the screen of the terminal 400 .
  • the pressure sensor 207 can be disposed at the position of the pen tip of the information input device.
  • the pressure sensor 207 can be used to detect the pressure value that the pen tip of the information input device bears, that is, the pressure value.
  • the wireless communication module 208 can provide a wireless communication technology solution applied on the information input device, for example, a wireless communication solution such as WLAN (such as Wi-Fi), BT, GNSS, FM, NFC, IR, RFID or ZigBee.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 208 can be used together with an antenna (not shown in FIG. 3 ) of the information input device, receives electromagnetic waves via the antenna, demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 208 .
  • the wireless communication module 208 can also receive the signal to be sent from the processor 201, perform frequency modulation on it, amplify the signal, and convert it into electromagnetic waves for radiation through the antenna.
  • the wireless communication module 208 may be configured to establish a wireless connection with the terminal 400, and receive the frequency allocated by the terminal 400 for the information input device based on the wireless connection.
  • the wireless communication module 208 may also send a wireless message carrying the pressure value and the ID of the information input device to the terminal 400 based on the wireless connection with the terminal 400 .
  • the MCU 203 Under the control of the clock generated by the internal crystal oscillator, the MCU 203 generates a PWM signal consistent with the frequency allocated by the terminal 400, and drives the signal transmitting circuit 205 to transmit the PWM signal.
  • Signal transmission circuit 205 may include one or more electrodes.
  • the signal transmitting circuit 205 can be disposed at the position of the pen tip of the information input device.
  • the PWM signal transmitted by the signal transmitting circuit 205 is transmitted to the screen of the terminal 400 through the pen tip of the information input device in the form of a high-voltage square wave signal.
  • the signal transmitting circuit 205 can be used to transmit a PWM signal, and the PWM signal is used for the terminal 400 to determine the alarm information of the information input device. In other embodiments, the signal transmitting circuit 205 can be used to transmit two PWM signals, wherein one PWM signal is used for the terminal 400 to determine the reporting point information of the information input device, and the two PWM signals are combined for the terminal 400 to determine the information input device. of inclination.
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the information input device.
  • the information input device may include more or less components than those shown in the figure, such as buttons, LED indicators, or the information input device may also combine some components, or separate some components, Or a different component arrangement.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the third information channel the wireless connection established between the wireless communication module 160 of the terminal 400 and the wireless communication module 208 of the information input device, such as BLE connection, WiFi direct connection, NFC connection, ZigBee connection and so on.
  • the third information channel is used for the terminal 400 to assign a frequency to the information input device, and is also used for the information input device to send a wireless message carrying the pressure value and the ID of the information input device to the terminal 400 .
  • the terminal 400 can assign one or two frequencies to one information input device.
  • the frequency allocated by the terminal 400 for the information input device is used for the pen tip electrode of the information input device to transmit the PWM signal.
  • the second information channel the channel through which the signal transmitting circuit 205 of the information input device transmits the PWM signal to the screen of the terminal 400 using the frequency allocated to it by the terminal 400 .
  • the second information channel may include a first sub-channel, and the first sub-channel is composed of one electrode included in the signal transmitting circuit 205 of the pen tip of the information input device, and the screen of the terminal 400 .
  • the first sub-channel is used for the pen tip electrode of the information input device to transmit a signal PWM signal to the screen of the terminal 400 by using the assigned frequency, and the signal is used for the terminal 400 to obtain the report point information of the information input device. The principle is explained in detail below.
  • the in-screen touch sensor 180K of the terminal 400 may include an X-axis electrode layer and a Y-axis electrode layer.
  • the X-axis electrode layer may include a plurality of transmit (transmit, Tx) electrodes distributed in a matrix
  • the Y-axis electrode layer may include a plurality of receive (receive, Rx) electrodes distributed in a matrix.
  • the Tx electrodes and the Rx electrodes form a crisscross network, and the intersections (ie coordinate points) of the Tx electrodes and the Rx electrodes form a mutual capacitance (ie the capacitance formed by the Tx electrodes and the adjacent Rx electrodes).
  • the touch chip connected to the touch sensor 180K can send an excitation signal to each Tx electrode in turn, and then the touch chip scans the signal received by each receiving Rx electrode, Convert the measured voltage value to digital signal and calculate the capacitance value.
  • the terminal 400 detects the touch operation of the finger, and the principle of detecting the input content of the information input device is different.
  • the finger, the touch sensor 180K and the insulating material between them can form a coupling capacitance, causing a slight change in current and a change in mutual capacitance.
  • the terminal 400 detects the change of the capacitance of the touch point by scanning the X-axis electrode matrix and the Y-axis electrode matrix, and calculates the position of the finger.
  • the terminal 400 may determine the position point at which the PWM signal is received.
  • the terminal 400 enters the information input device detection mode that is, during the signal detection period of the working cycle of the terminal 400
  • the Tx electrode on the touch sensor 180K is converted into an Rx electrode, which alternately senses the X and Y axes with the original Rx electrode.
  • Measure the transmitted signal of information input devices such as active capacitive stylus.
  • the signals received on the Tx electrodes (which have been converted into Rx electrodes) and the original Rx electrodes can be amplified by the amplifying circuit of the touch chip.
  • the numerical envelope composed of the amplitude value of the received signal (or the capacitance value of the X-axis and Y-axis) can be obtained on the X-axis electrode and the Y-axis electrode respectively, and the coordinates (x, y) of the signal receiving point can be obtained by AP calculation. ), that is, reporting point information.
  • a calculation method can be performed by substituting the numerical envelope into the prior information input device envelope model for calculation.
  • the touch chip transforms the signal from time-frequency to frequency domain. For example, by performing fast Fourier transform on the signal, the frequency of the signal sent by the information input device can be obtained.
  • the second information channel may further include a second sub-channel, the second sub-channel is composed of one electrode included in the signal transmitting circuit 205 of the pen tip of the information input device, and the screen of the terminal 400 .
  • the electrodes in the second subchannel are different from the electrodes in the first subchannel.
  • the second sub-channel is used for the pen tip electrode of the information input device to transmit a PWM signal to the screen of the terminal 400 using the assigned frequency.
  • the signal transmitted by the second sub-channel and the signal transmitted by the first sub-channel are jointly used for the terminal 400 to know the inclination of the information input device. The principle is explained in detail below.
  • the signal transmitting circuit 205 of the information input device may include two electrodes: electrode 1 and electrode 2 . Electrode 1 and the screen form the first sub-channel, and electrode 2 and the screen form the second sub-channel.
  • the inclination angle ⁇ is the inclination of the information input device.
  • d1 is the distance between electrode 1 and electrode 2.
  • the terminal 400 may acquire d1 during or after establishing a connection with the information input device.
  • the touch sensor 180K When the information input device is close to the screen, the signals respectively emitted by the electrodes 1 and 2 can be sensed by the touch sensor 180K.
  • the touch chip of the terminal 400 can calculate the capacitance value of each coordinate point of the touch sensor 180K, and report the capacitance value of each coordinate point to the AP. Projection distance d2 between projection points.
  • the envelope model can also be obtained by modeling the signal amplitude envelopes generated by the signals of the electrode 1 and the electrode 2 received at different tilt angles.
  • the terminal 400 may store the envelope model, and after entering the information input device detection mode, substitute the real-time generated signal amplitude envelope into the envelope model to extract the tilt angle.
  • the PWM signal transmitted by the first subchannel may be referred to as PWM signal 1
  • the PWM signal transmitted by the second subchannel may be referred to as PWM signal 2.
  • the first information channel the channel through which the screen of the terminal 400 transmits the DSSS signal to the signal detection circuit 203 of the information input device.
  • the first information channel is composed of the screen of the terminal 400 and one or more receiving electrodes of the signal detection circuit 203 of the information input device.
  • a signal is sent by one or more Tx electrodes on the screen and/or Tx electrodes converted from the Rx electrodes, such as a signal modulated by DSSS, which is received by one or more receiving electrodes of the pen tip of the information input device .
  • the signal can be used for the information input device to know that the terminal screen is nearby, that is, to know that the user has a writing intention.
  • the DSSS signal sent by the terminal 400 to the information input device and the signals (eg PWM signal 1 and PWM signal 2) sent by the information input device to the terminal 400 are all on the terminal 400.
  • the signal transmitted between the screen of the terminal 400 and the pen tip of the information input device needs to be detected or sent by the screen of the terminal 400 or the pen tip of the information input device.
  • the following introduces the screen of the terminal 400 and the mechanism of the pen tip of the information input device for detecting and sending signals.
  • the information input device can continuously transmit the PWM signal, and can also continuously detect the DSSS signal transmitted by the terminal 400 .
  • the information input device may detect and transmit the signal periodically, and the transmission and detection may be separated in timing. That is, the information input device performs signal transmission and signal detection respectively in different time periods of the same cycle. In this way, interference between signals can be avoided, and the power of the information input device can be saved.
  • the terminal 400 can continuously transmit the DSSS signal, and can also continuously detect the PWM signal transmitted by the information input device.
  • terminal 400 may periodically detect and transmit signals, and may perform transmission and detection separately in timing. In this way, interference between signals can be avoided, and power of the terminal 400 can be saved.
  • the information input device transmits two PWM signals (ie, PWM signal 1 and PWM signal 2) in one cycle, the two PWM signals may have overlapping parts in time sequence, or may not overlap in time sequence, the embodiment of this application There is no restriction on this.
  • FIG. 5 exemplarily shows a working time diagram of a terminal 400 and an information input device.
  • the information input device transmits two PWM signals, namely PWM signal 1 and PWM signal 2 .
  • terminal 400 detects and transmits signals periodically, and transmits and detects separately in timing.
  • one duty cycle of the screen detection and signal transmission of the terminal 400 is T.
  • one signal transmission time period and multiple signal detection time periods may be included.
  • the signal transmission time period may be: 120us ⁇ 320us.
  • the multiple signal detection time periods may include: 800us-2800us, 4300us-5600us, 7200us-8400us, 9200us-11200us, 12700us-14000us, 15600us-16800us.
  • the terminal 400 can transmit a signal (for example, a DSSS signal) through the screen during the transmission period, and detect the 2-channel PWM signal transmitted by the information input device during the signal detection period.
  • a signal for example, a DSSS signal
  • the screen of the terminal 400 may also detect the touch input of the finger within the duty cycle T.
  • the terminal 400 can detect the touch input of the finger in the following time periods within the working cycle T of 16800us: 2800us-4300us, 5600us-7200us, 11200us-12700us, 14000us-15600us.
  • the principle of detecting the touch input of the finger by the terminal 400 is different from the principle of detecting the signal emitted by the information input device. Reference may be made to the implementation manner of the prior art and the foregoing related descriptions, which will not be repeated here.
  • one duty cycle of the information input device for detecting and transmitting signals may also be T.
  • it may include one signal detection time period, multiple first transmission time periods, and multiple second transmission time periods.
  • the signal detection time period may be: 120us ⁇ 320us.
  • the multiple first transmission time periods may include: 800us-2800us, 4300us-5600us, 7200us-8400us, 9200us-11200us, 12700us-14000us, 15600us-16800us.
  • the multiple second transmission time periods may include: 1600us-2800us, 4400us-5600us, 7200us-8400us, 1000us-11200us, 12800us-14000us, 15600us-16800us.
  • the information input device can detect the signal (eg DSSS signal) transmitted by the terminal 400 through the signal detection circuit 206 in the signal detection period, transmit the PWM signal 1 through the signal transmission circuit 205 in the first transmission period, and pass the signal in the second transmission period
  • the transmit circuit 205 transmits the PWM signal 2 .
  • the signal detection time period of the information input device covers the transmission time period of the terminal 400; the signal detection time period of the terminal 400 is the same as the first transmission time period of the information input device, and covers the information input device the second launch period.
  • the information input device and the terminal 400 can cooperate to complete the transmission of the uplink signal (eg DSSS signal) and the downlink signal (eg PWM signal), and save the power of both parties to the greatest extent.
  • the uplink signal eg DSSS signal
  • the downlink signal eg PWM signal
  • the information input device may only transmit one PWM signal (ie, PWM signal 1), that is, the working cycle of the information input device does not include the second transmission time period.
  • PWM signal 1 the PWM signal 1
  • the terminal 400 and the information input device may also use other periods and time periods to transmit or detect signals.
  • the terminal 400 shown in FIGS. 2A and 2B Based on the communication system 100 shown in FIG. 1 , the terminal 400 shown in FIGS. 2A and 2B , the information input device shown in FIG. 3 , the working principles of the three information channels described above, and the terminal 400 and the information input device
  • the mechanisms for detecting and sending signals respectively the following describes in detail the method for controlling the information input device on the terminal provided by the embodiments of the present application.
  • the method provided by the embodiment of the present application can be used in a scenario of simultaneous writing of multiple strokes, and the following description is made by taking the implementation of the method provided by the embodiment of the present application in a scenario of simultaneous writing of multiple strokes as an example.
  • FIG. 6 is a schematic flowchart of a method for operating an information input device on a terminal according to an embodiment of the present application.
  • FIG. 6 exemplarily shows the interaction flow between the terminal 400 and the information input device 100 and the information input device 200.
  • the terminal 400 can also interact with more information input devices, for example, the information input device 300. This embodiment of the present application does not limit this.
  • the method may include the following steps:
  • the terminal 400 establishes wireless connections with multiple information input devices respectively.
  • the terminal 400 may establish wireless connections with multiple information input devices (for example, the information input device 100 , the information input device 200 , and the information input device 300 ) respectively, and maintain wireless connections with the multiple information input devices at the same time.
  • the wireless connection may include, but is not limited to, a connection established based on wireless communication technologies such as BT, WLAN (eg, Wi-Fi), GNSS, FM, NFC, IR, RFID, or ZigBee.
  • BT can be classic Bluetooth or BLE.
  • the terminal 400 may establish a BLE connection with a plurality of information input devices respectively based on the BLE protocol stack.
  • the terminal 400 may use a wireless communication technology (eg, BLE) to search for a nearby information input device, and after searching for a nearby information input device, send a connection request to the information input device in response to a received user operation. After the information input device accepts the request, the terminal 400 may establish a wireless connection with the information input device.
  • a wireless communication technology eg, BLE
  • FIG. 7A and FIG. 7B respectively illustrate a manner in which the terminal 400 is connected to the information input device.
  • FIG. 7A shows the user interface 71 displayed on the terminal 400 .
  • the user interface 71 may be provided by a “settings” application installed on the terminal 400 .
  • 'Settings' is an application for managing various functions on the terminal 400 .
  • the user interface 71 includes a Bluetooth switch control 701 , and the state of the Bluetooth switch control in the figure indicates that the Bluetooth function of the terminal 400 is currently enabled.
  • the terminal 400 may use Bluetooth (eg, BLE) to search for other nearby Bluetooth devices (eg, information input devices), and display the names of the searched other Bluetooth devices in the area 702 .
  • the names of the respective Bluetooth devices displayed in the area 702 can monitor user operations (such as finger-input click operations, touch operations), and the terminal 400 can respond to the user operations detected on the names of the Bluetooth devices to the Bluetooth device corresponding to the name.
  • a connection request is sent, and after the Bluetooth device accepts the request, a wireless connection is established with the Bluetooth device.
  • the user may click on the name 702 a of the information input device 100 in the area 702 to trigger the terminal 400 to send a Bluetooth connection request to the information input device 100 .
  • the name of the Bluetooth device may be a media access control (media access control, MAC) address, a user-defined name, a device model, etc., which is not limited in this embodiment of the present application.
  • the user can also trigger the terminal 400 to establish a Bluetooth connection with other nearby information input devices through similar user operations.
  • the terminal 400 establishes a Bluetooth connection with other information input devices, the previously established Bluetooth connection will not be disconnected, that is, the terminal 400 can maintain a Bluetooth connection with multiple information input devices at the same time.
  • FIG. 7B shows the user interface 72 displayed on the terminal 400 .
  • the side of the terminal 400 such as the frame where the volume keys are located, may be provided with a magnetic attraction device (eg, a magnetic strip) for attracting the information input device.
  • the user interface 72 may be that the terminal 400 responds to the operation that the information input device is adsorbed at the magnetic attraction device on the side of the terminal 400, uses a wireless communication technology (such as BLE) to search for nearby information input devices, and after the information input device is found The interface appears on the display.
  • a wireless communication technology such as BLE
  • the user interface 72 includes a window 703 , and the window 703 can be used to indicate the information input device searched by the terminal 400 .
  • the window 703 may include an icon 703a, a device name 703b, a control 703c, and a control 703d.
  • the icon 703a can be used to indicate the device type searched by the terminal 400, for example, the icon 703a can be a picture of the information input device.
  • the device name 703a may be a MAC address, a user-defined name, a device model, and the like.
  • the control 703c can be used to monitor a user operation, and the terminal 400 can stop displaying the window 703 in response to the user operation.
  • the control 703d can be used to monitor the user operation, and the terminal 400 can send a connection request to the information input device corresponding to the device name 703a in response to the user operation, and after the information input device accepts the request, establish a wireless connection with the information input device.
  • the window 703 indicates that the terminal 400 has searched for the information input device 100 , and the user can click on the control 703d to trigger the terminal 400 to send a connection request to the information input device 100 .
  • the user can also trigger the terminal 400 to establish a wireless connection with other nearby information input devices through similar user operations.
  • the terminal 400 may display multiple windows 703 corresponding to the multiple information input devices in the user interface 72; if the terminal 400 searches for multiple information input devices successively device, the window 703 corresponding to the information input device may be displayed in the user interface 72 successively.
  • the terminal 400 when the terminal 400 establishes a wireless connection with other information input devices, the previously successfully established wireless connection will not be disconnected, that is, the terminal 400 can maintain a wireless connection with multiple information input devices at the same time.
  • the window 703 can also be used to indicate that the wireless communication connection is currently being established, for example, the window 703 can output the text "connecting".
  • the window 703 can also be used to indicate that the wireless communication connection has been successfully established. For example, the window 703 can output the text "information input device 100 is connected”.
  • the terminal 400 allocates different frequencies to the multiple information input devices respectively based on the wireless connection with the information input devices.
  • the frequency allocated by the terminal 400 to each information input device may be, for example, a frequency between 100 KHz and 400 KHz.
  • the terminal 400 allocates different frequencies to different information input devices, and allocates one frequency to the same information input device. This frequency can be used by the information input device to send the PWM signal 1 to the terminal 400 using the first sub-channel in the second information channel.
  • the PWM signal 1 can be used for the terminal 400 to acquire the point information of the information input device.
  • the terminal 400 can distinguish the PWM signals 1 sent by different information input devices in the subsequent working process of the information input devices.
  • the terminal 400 may assign f1 to the information input device 100 , f2 to the information input device 200 , and f3 to the information input device 300 . f1, f2 and f3 are different.
  • the terminal 400 allocates different frequencies to different information input devices, and the terminal 400 may allocate two frequencies to the same information input device.
  • One of the frequencies is used for the information input device to send the PWM signal 1 to the terminal 400
  • the other frequency is used for the information input device to send the PWM signal 2 to the terminal 400 .
  • the two frequencies allocated by the terminal 400 to one information input device are different from the two frequencies allocated to another information input device.
  • the terminal 400 can distinguish the PWM signal 1 and the PWM signal 2 sent by different information input devices in the subsequent working process of the information input device.
  • the terminal 400 allocates two frequencies for an information input device, if the signal detection time period of the terminal 400 overlaps with the first transmission time period of the information input device, and, the signal detection time period of the terminal 400 and the information input device overlap.
  • the overlapped part of the second transmission time period of overlaps in timing.
  • the terminal 400 may allocate two different frequencies to the information input device. If the above-mentioned two parts do not overlap in timing, the terminal 400 may allocate the same two frequencies to the information input device. In this way, for the same information input device, the terminal 400 can distinguish the PWM signal 1 and the PWM signal 2 transmitted by the information input device according to the difference in time sequence or frequency.
  • the terminal 400 may allocate two frequencies f1 and f4 to the information input device 100, two frequencies f2 and f5 to the information input device 100, and two frequencies f3 and f6 to the information input device 100.
  • f1-f6 may be respectively: 100KHz, 101.91KHz, 110.34KHz, 112.68KHz, 120.30KHz, and 122.61KHz.
  • the terminal 400 may send a wireless message to the information input device based on the wireless connection with the information input device, and the message carries the indication information of the frequency allocated to the information input device by the terminal 400 .
  • the information input device can parse the message and learn the frequency allocated to it by the terminal 400 .
  • the following describes the format of the BLE message sent by the terminal 400 to the information input device by taking the BLE connection established between the terminal 400 and the information input device as an example.
  • the BLE message may be an ATT command packet in a BLE data packet.
  • FIG. 8 exemplarily shows the format of a protocol data unit (protocol data unit, PDU) in an ATT command packet sent by the terminal 400 to the information input device.
  • PDU protocol data unit
  • the rest of the ATT command packet such as the preamble, the access address, and the cyclic redundancy check (CRC)
  • CRC cyclic redundancy check
  • the PDU of the ATT command packet may include: Opcode, attribute parameters (attribute parameters), and authorization signature (authorization signature).
  • the attribute parameters may include: attribute handle, attribute type, attribute detailed information (attribute value), and attribute read and write permissions (attribute permissions).
  • the detailed information of the attribute can include the following three parts: characteristic (characteristic property), characteristic value index (characteristic value handle), characteristic universally unique identifier (UUID)).
  • a characteristic may occupy 1 octet, an eigenvalue index may occupy 2 octets, and a UUID may occupy 2 or 16 octets.
  • the characteristic value handle may be used to carry the ID of the information input device in the embodiment of the present application and the indication information of the frequency allocated to the information input device by the terminal 400.
  • the indication information of the frequency may include, for example, a frequency value, an index of the frequency value, or information on a frequency division and multiplication value of a crystal oscillator, which is not limited in this embodiment of the present application.
  • the information input device can parse the ATT command packet, obtain the indication information of the frequency from the characteristic value index in the ATT command packet, and learn that the terminal 400 allocates the frequency to itself according to the indication information. Frequency of.
  • the terminal 400 may also store the correspondence between each information input device and the frequency allocated to each information input device. Exemplarily, referring to Table 1, Table 1 exemplarily shows a corresponding relationship stored by the terminal 400 .
  • the terminal 400 enters a writing scene.
  • the writing scene refers to a scene in which one or more users use multiple information input devices to write on the same terminal.
  • the writing scene may include, but is not limited to, drawing, working, designing patterns, inputting text or data, etc. on the same terminal by one or more information input devices.
  • the content written by the information input device on the terminal may be text, lines, drawings, or any pattern, which is not limited here.
  • entering the writing scene by the terminal 400 may specifically mean that the terminal 400 starts or runs an application program or a user interface that provides functions such as drawing, office work, pattern design, text or data input, and the like.
  • the text or data input may include: signature, signature, and the like.
  • the application may be, for example, "Pendo", “Memo”, “Paint”, and the like.
  • the terminal 400 may start the application in response to a user operation detected on the icon of the application on the home screen.
  • the user operation may be, for example, a click operation, a long-press operation, a touch operation, etc. on an icon by a user using a finger or an information input device.
  • the application program that is started when the terminal 400 enters the writing scene may be referred to as the first application program.
  • the terminal 400 enters the writing scene it can notify the information input device through wireless connection with each information input device.
  • the information input device transmits a PWM signal using the frequency allocated to it by the terminal 400.
  • the information input device uses the frequency and transmits the PWM signal 1 through the first sub-channel.
  • the information input device uses one of the frequencies to transmit PWM signal 1 through the first sub-channel, and uses the other frequency to transmit PWM signal 2 through the second sub-channel.
  • the information input device may start to transmit a PWM signal after learning the frequency allocated to it by the terminal 400 or after learning that the terminal 400 has entered a writing scene, which is not limited in this embodiment of the present application.
  • the information input device may continuously transmit the signal using the frequency assigned by the terminal.
  • the information input device may send the PWM signal periodically. This can reduce the power consumption of the information input device.
  • the information input device may transmit the PWM signal 1 using a frequency allocated by the terminal 400 in the first transmission period of each working cycle T.
  • the information input device may also transmit the PWM signal 2 using another frequency allocated by the terminal 400 during the second transmission period.
  • the information input device may store a work schedule similar to that of the information input device shown in FIG. 5 , and after detecting the DSSS signal transmitted by the terminal 400, according to the signal detection time period and the first transmission in the work schedule The relationship between the time period and the second transmission time period determines the first transmission time period and the second transmission time period, and transmits corresponding signals within the time period.
  • the terminal 400 may store a work schedule similar to that of the terminal shown in FIG. 5 , and periodically transmit the DSSS signal during the signal transmission time period within each work cycle T.
  • the information input device can detect the signal. That is, when the information input device has a writing intention, the information input device can detect the signal and start to transmit the signal periodically.
  • the work schedules of different information input devices may be the same or different.
  • the working time of each information input device may be set by default at the factory, or may be negotiated jointly by the terminal 100 and the information input device.
  • the working time period of the information input device 100 may be as shown in FIG. 5 ;
  • the working time period of the information input device 200 may be: the working period T, the signal detection time period, the second transmission time period are the same as the terminal 200, the first transmission time period
  • the segment can include: 900us ⁇ 2800us, 4400us ⁇ 5600us, 7300us ⁇ 8400us, 9300us ⁇ 11200us, 12800us ⁇ 14000us, 15700us ⁇ 16800us;
  • the working time segment of the information input device 300 can be: working cycle T, signal detection time segment, first
  • the transmission time period is the same as that of the terminal 200, and the second transmission time period may include: 1700us-2800us, 4500us-5600us, 7300us-8400us, 1100us-11200us, 12900us-14000us, 15700us-16800us.
  • the working time periods of the information input device 100 , the information input device 200 and the information input device 300 may all be as shown in FIG. 5 .
  • FIG. 9 shows the working time, working frequency and working time of the terminal 400 of each information input device under the same working time period of the information input devices 100 - 300 .
  • both the PWM signal 1 and the PWM signal 2 transmitted by the information input device may be PWM signals generated by the signal transmitting circuit 205 of the MCU 203 driving the pen tip.
  • the transmission frequency of the PWM signal refers to the number of times per second in the PWM signal generated by the information input device from high level to low level and then back to high level
  • the duty cycle of the PWM signal refers to the number of times in one signal cycle.
  • the ratio of the time occupied by the pulse to the total time of the signal period When the PWM signal 1 and the PWM signal 2 are PWM signals, the transmission frequencies of the PWM signal 1 and the PWM signal 2 may refer to the foregoing.
  • the embodiments of the present application do not limit the duty ratios of the PWM signal 1 and the PWM signal 2 .
  • the duty ratios of the PWM signal 1 and the PWM signal 2 sent by different information input devices may be the same or different.
  • the duty ratios of the PWM signal 1 and the PWM signal 2 sent by the same information input device may be the same or different.
  • FIG. 10 exemplarily shows a PWM signal 1 and a PWM signal 2 respectively transmitted by an information input device using the two assigned frequencies.
  • the information input device may be, for example, the information input device 100, the information input device 200 or the information Input device 300 . It can be seen from Figure 10 that the frequencies of the two PWM signals transmitted by the same information input device are different, and the frequency of the PWM signal 2 is higher than the frequency of the PWM signal 1. In FIG. 10 , the duty cycles of PWM signal 1 and PWM signal 2 are the same.
  • the terminal 400 detects the PWM signal sent by each information input device, determines the information input device that sends the PWM signal according to the frequency of the PWM signal, and determines the reporting point information of the information input device according to the PWM signal.
  • the terminal 400 may successively detect the PWM signal sent by the same information input device at one or more position points.
  • the terminal 400 can continuously detect the PWM signals sent by each information input device.
  • the terminal 400 may periodically detect the PWM signal. Specifically, referring to FIG. 9 , the terminal 400 may detect the PWM signal in the signal detection period of each duty cycle T. As shown in FIG. In this way, the power consumption of the terminal 400 can be reduced.
  • the terminal 400 may receive the PWM signal 1 respectively sent by each information input device.
  • the terminal 400 may perform time-frequency domain conversion on each of the received PWM signals 1 , so as to determine the frequency of each of the PWM signals 1 .
  • the terminal 400 may determine the sender of each PWM signal 1 according to the frequency allocated to each information input device.
  • the terminal 400 analyzes each PWM signal 1, and associates the signal point information obtained by the analysis with the information input device. That is, the terminal 400 can respectively determine the reporting point information of each information input device according to the PWM signal 1 sent by each information input device.
  • the terminal 400 determines the reporting point information according to the PWM signal 1, reference may be made to the foregoing related descriptions.
  • the terminal 400 may also receive the PWM signal 2 sent by each information input device respectively.
  • the terminal 400 can perform time-frequency domain conversion on each of the received PWM signals 2 , so as to determine the frequency of each of the PWM signals 2 .
  • the terminal 400 may determine the sender of each PWM signal 2 according to the frequency allocated to each information input device.
  • the terminal 400 may determine the inclination of the information input device according to the PWM signal 1 and the PWM signal 2 of the same information input device.
  • the terminal 400 can determine the inclination of each information input device.
  • the terminal 400 may also record the time points at which each PWM signal 1 or PWM signal 2 is received, so as to determine the reporting point information of each information input device at each time point, and even the inclination of each time point.
  • the method shown in FIG. 6 may further include the following optional steps S160 and S170.
  • the information input device detects the pressure value on the pen tip, and sends a wireless message to the terminal 400 based on the wireless connection with the terminal 400, where the wireless message carries the pressure value and the ID of the information input device.
  • the information input device may continuously detect the pressure value of the pen tip, or may detect periodically, which is not limited in the embodiments of the present application.
  • the wireless message sent by the information input device also carries the time point when the pressure value is detected.
  • the wireless message sent by the information input device may be a BLE data packet.
  • the format of the BLE data packet may be carried based on the data format specified by the BLE protocol stack (for example, the human interface device (HID) protocol), which is not repeated in this embodiment of the present application.
  • the BLE protocol stack for example, the human interface device (HID) protocol
  • the information input device may send a wireless message to the terminal 400 immediately after detecting the pressure value on the pen tip. In this way, the terminal 400 can know the pressure value of the information input device in real time, so as to avoid time delay.
  • the information input device may send a wireless message to the terminal 400 after receiving the notification that the terminal 400 enters the writing scene.
  • the information input device can send pressure-sensitive information to the terminal 400 only in scenarios such as painting and writing that require pressure-sensitive information, thereby reducing the power consumption of the information input device.
  • the information input device may send the detected pressure value to the terminal 400 within the short-range wireless communication time window.
  • the short-range wireless communication time window may occur periodically.
  • the short-range wireless communication time window may be negotiated between the information input device and the terminal 400, or may be set by default by the information input device.
  • the short-range wireless communication time windows of the multiple information input devices may be the same or different, which is not limited in this embodiment of the present application.
  • the information input device can periodically send the detected pressure value, which can save power consumption.
  • the short-range wireless communication time window may be referred to as the first time window.
  • the terminal 400 receives the short-range wireless message carrying the pressure value and the information input device ID sent by each information input device, and determines the pressure value of the information input device corresponding to the information input device ID according to the short-range wireless message.
  • the terminal 400 may turn on the wireless communication module 160 (eg, a Bluetooth module) within the short-range wireless communication time window corresponding to each information input device to receive wireless messages sent by each information input device.
  • the wireless communication module 160 eg, a Bluetooth module
  • the terminal 400 can parse the wireless message, and determine the pressure value of the information input device corresponding to the information input device ID carried in the message according to the analysis result.
  • the message further includes a time point, and the terminal 400 can also learn the pressure value of the information input device at the corresponding time point according to the message.
  • the terminal 400 displays the movement trajectories corresponding to different information input devices on the screen.
  • the terminal 400 can obtain the report point information of each information input device, and at the location of the report point information (that is, it detects the signal transmitted by the information input device)
  • the position of the PWM signal shows the movement track of the corresponding information input device, and the appearance of the movement track of different information input devices is different.
  • the appearance of the movement track of each information input device may be preset by the terminal.
  • the terminal 400 can obtain the inclination value and reporting point information of each information input device, and render it, and display the corresponding frequency on the screen according to the rendering result.
  • the movement trajectory of the information input device Further, the terminal 400 can render the inclination and reporting information of each information input device at each time point, and display the movement track of the corresponding information input device on the screen according to the rendering result, so that the movement can be displayed accurately and in real time. trajectory.
  • the terminal 400 can obtain the pressure value and report point information of each information input device, render it, and display the movement trajectory of the corresponding information input device on the screen according to the rendering result. Further, the terminal 400 can render the pressure value and reporting point information of each information input device at each time point, and display the movement trajectory of the corresponding information input device on the screen according to the rendering result, so that the movement can be displayed accurately and in real time. trajectory.
  • the position of the movement track of the information input device is the position corresponding to the report point information of the information input device, that is, the position where the terminal 400 detects the PWM signal 1 transmitted by the information input device.
  • the appearance of the movement track of the information input device is determined by the inclination and/or the pressure value, and reference may be made to the foregoing related descriptions.
  • the trajectory of the movement trajectory displayed on the screen is the same as the movement trajectory of the pen tip of the information input device on the screen.
  • the greater the pressure exerted by the pen tip of the information input device on the screen the thicker or darker the stroke of the movement track displayed on the screen.
  • the stroke effect of the movement track displayed on the screen is different.
  • FIG. 11 may show a movement track displayed by the terminal 400 on the screen.
  • the user interface shown in FIG. 11 may be provided by a drawing application installed on the terminal 100 .
  • the user interface 1201 may include a movement trajectory 1201 displayed by the terminal 400 according to the pressure value, point information and inclination of the information input device 100 , and a display according to the pressure value, point information and inclination of the information input device 200 . 1202 , the movement trajectory 1203 displayed according to the pressure value, point information and inclination of the information input device 300 , the movement trajectory 1203 displayed according to the pressure value, point information and inclination of the information input device 300 .
  • different information input devices can use different frequencies to send signals to the terminal, and send wireless messages to the terminal based on the wireless communication technology.
  • the terminal can determine the information input device that transmits the signal according to the frequency of the received signal, and learn the reporting point information of the information input device according to the signal.
  • the terminal may also know the inclination of the information input device according to the signal.
  • the wireless message sent by the information input device carries the pressure value and the ID of the information input device, and the terminal can also learn the pressure value of the information input device from the wireless message. That is to say, the terminal can distinguish the pressure value, report point information and inclination of different information input devices, and display the corresponding movement on the screen after rendering graphics according to the pressure value, report point information and inclination of each information input device. trajectory.
  • the method shown in FIG. 6 can distinguish different information input devices by the frequency of the signals, without additionally sending the ID of the information input device, and without affecting the reporting rate.
  • the information input device can transmit the pressure value in an efficient and timely manner by using wireless communication technology, so that the terminal can render and display the corresponding movement trajectory in real time, so that the information input device has good chirality and can improve the user experience.
  • the method shown in FIG. 6 may further include the following steps:
  • the terminal 400 reassigns frequencies to some or all of the multiple information input devices based on the wireless connection with the information input devices.
  • terminal 400 may periodically reallocate frequencies to some or all of the plurality of information input devices.
  • the terminal 400 may reallocate frequencies for some or all of the multiple information input devices when the interference between the received signals is relatively large. Specifically, when there is an interference signal in the space with a frequency similar to that used by the information input device, the terminal 400 cannot distinguish the interference signal from the signal sent by the information input device, that is, the terminal 400 cannot correctly parse the signal transmitted by the information input device. Affects the display of movement tracks. In this case, the terminal 400 may re-allocate frequencies for some or all of the multiple information input devices according to the interference situation, and the frequencies of the respective information input devices are still different after the frequencies are re-allocated.
  • the terminal 400 After the terminal 400 detects the signal (including the interference signal and the signal sent by the information input device), if the signal transmitted by the information input device cannot be analyzed, it can re-allocate the frequency for the information input device using the detected signal frequency. In this way, performing frequency hopping processing on part or all of each information input device can prevent the frequency of the signal transmitted by each information input device from being similar to the interference signal, thereby preventing the terminal 400 from being affected by other signals in the space when detecting the signal transmitted by the information input device. interference, so that the terminal 400 can accurately identify the signals sent by different information input devices.
  • the terminal 400 can reallocate 1 or 2 frequencies to an information input device.
  • each information input device may transmit a signal according to the reassigned frequency.
  • each information input device may also store the frequency assigned to it by the terminal 400 .
  • the information input device may store the identification of the terminal 400 in association with the frequency.
  • the information input device subsequently establishes a wireless connection with the terminal 400 again, it can directly use the stored frequency for transmitting the signal to the terminal 400 last time to transmit the signal. In this way, the process of negotiation frequency between the same terminal and the information input device can be reduced, the power consumption of both parties can be reduced, and the information input device and the terminal can be put into work faster.
  • the display speed of the terminal is faster, and the information Better follow chirality for input devices.
  • the information input device 100 may be referred to as a first information input device, and the information input device 200 may be referred to as a second information input device.
  • the wireless connection established between the terminal 400 and the information input device 100 may be referred to as a first wireless connection.
  • the wireless connection established between the terminal 400 and the information input device 200 may be referred to as a second wireless connection.
  • one frequency (eg f1) allocated by the terminal 400 to the information input device 100 may be referred to as the first frequency, and another frequency (eg f4) may be referred to as the third frequency.
  • One frequency (eg, f2) allocated by the terminal 400 to the information input device 200 may be referred to as a second frequency, and the other frequency (eg, f5) may be referred to as a fourth frequency.
  • the PWM signal 1 sent by the information input device 100 using one frequency allocated by the terminal 400 may be referred to as the first pulse signal, and the PWM signal 2 sent using another frequency allocated by the terminal 400 may be referred to as the third pulse. Signal.
  • the PWM signal 1 transmitted by the information input device 200 using one frequency allocated by the terminal 400 may be referred to as a second pulse signal, and the PWM signal 2 transmitted using another frequency allocated by the terminal 400 may be referred to as a fourth pulse signal.
  • the point announcement information of the information input device 100 determined by the terminal 400 may be referred to as a first position point, and the first position point includes one or more position points where the first pulse signal is detected successively.
  • the announcement point information of the information input device 200 determined by the terminal 400 may be referred to as a second position point, and the second position point includes one or more position points where the second pulse signal is detected successively.
  • the wireless message carrying the pressure value and the ID of the information input device sent by the information input device 100 to the terminal 400 based on the wireless connection may be referred to as a first message.
  • the wireless message carrying the pressure value and the information input device ID sent by the information input device 200 to the terminal 400 based on the wireless connection may be referred to as a second message.
  • the pressure value detected by the information input device 100 may be referred to as a first pressure value, and the pressure value detected by the information input device 200 may be referred to as a second pressure value.
  • the ID of the information input device 100 may be referred to as a first identification, and the ID of the information input device 200 may be referred to as a second identification.
  • the one frequency newly allocated by the terminal 400 to the information input device 100 may be referred to as the fourth frequency.
  • the embodiments of the present application may also be used for common information input device manipulation scenes.
  • the information input device manipulation scene is similar to the finger manipulation scene, for example, the information input device clicks the control, the information input device slides the user interface, and so on.
  • the information input device can only use the frequency allocated by the terminal 400 to send the PWM signal 1, and the PWM signal 2 and the wireless message can be sent or not sent, so that the terminal 400 can know according to the PWM signal 1.
  • Report point information and perform corresponding operations according to the location of the point report information.
  • the terminal according to the detected information input point information determined by the PWM signal 1 sent by the device may be referred to as the third position point.
  • the terminal 400 may start the application program corresponding to the icon.
  • the terminal 400 can refresh the icons of the application programs displayed in the home interface, and so on.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer program instructions when loaded and executed on a computer, result in whole or in part of the processes or functions described herein.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk), and the like.
  • the process can be completed by instructing the relevant hardware by a computer program, and the program can be stored in a computer-readable storage medium.
  • the program When the program is executed , which may include the processes of the foregoing method embodiments.
  • the aforementioned storage medium includes: ROM or random storage memory RAM, magnetic disk or optical disk and other mediums that can store program codes.

Landscapes

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

Abstract

A method, an apparatus, and a system (10) for controlling information input devices (100, 200, 300) on a terminal (400); in the method, the terminal (400) can allocate different frequencies (f1-f6) to different information input devices (100, 200, 300), distinguish the information input devices (100, 200, 300) by means of the frequencies (f1-f6), and implement graphics rendering and display corresponding motion trajectories (1201, 1202, 1203) for the different information input devices (100, 200, 300) in order to support a multiple stroke simultaneous writing scenario. In addition, as the method comprises different information input devices (100, 200, 300) being distinguished by means of the frequency (f1-f6) of the signals, there is no need to additionally transmit the ID of the information input devices (100, 200, 300), so the the reporting rate is not affected.

Description

信息输入设备在终端上操控的方法、装置及系统Method, device and system for controlling information input device on terminal
本申请要求于2020年07月27日提交中国专利局、申请号为202010731534.7、申请名称为“信息输入设备在终端上操控的方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on July 27, 2020 with the application number 202010731534.7 and titled "Method, Device and System for Controlling Information Input Devices on Terminals", the entire contents of which are obtained through Reference is incorporated in this application.
技术领域technical field
本申请实施例涉及通信领域及终端领域,尤其涉及信息输入设备在终端上操控的方法、装置及系统。The embodiments of the present application relate to the field of communications and the field of terminals, and in particular, to a method, an apparatus, and a system for operating an information input device on a terminal.
背景技术Background technique
随着终端技术的发展,信息输入设备作为手机、平板等智能设备的配件之一得到广泛的应用。信息输入设备可以使得用户在智能设备上进行精确快速的书写、绘画、操控等,可以为用户提供相比手指操作更精细的使用体验。With the development of terminal technology, information input devices are widely used as one of the accessories of smart devices such as mobile phones and tablets. The information input device can enable users to write, draw, and manipulate accurately and quickly on the smart device, and can provide users with a more refined experience than finger operations.
目前信息输入设备主要配合平板、手机等小屏产品使用,因而方案设计上仅考虑一个笔在一个终端上书写,而未考虑多个笔在同一个终端上书写的场景。未来,大尺寸的触控终端如平板、智能电视、智慧屏等设备将越来越普及,多个信息输入设备在同一个终端上书写的场景将越来越多。如何在同一个终端上实现多个笔同时书写,是本领域值得研究的方向。At present, information input devices are mainly used with small screen products such as tablets and mobile phones. Therefore, only one pen is considered for writing on one terminal in the design of the scheme, and the scenario of multiple pens writing on the same terminal is not considered. In the future, large-sized touch terminals such as tablets, smart TVs, smart screens and other devices will become more and more popular, and there will be more and more scenarios where multiple information input devices write on the same terminal. How to realize simultaneous writing with multiple pens on the same terminal is a worthy research direction in this field.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了信息输入设备在终端上操控的方法、装置及系统。实施本申请实施例,终端可以区分不同的信息输入设备,并针对不同的信息输入设备进行图形渲染并显示对应的移动轨迹。The embodiments of the present application provide a method, an apparatus, and a system for controlling an information input device on a terminal. By implementing the embodiments of the present application, the terminal can distinguish different information input devices, perform graphics rendering for different information input devices, and display corresponding movement trajectories.
第一方面,本申请实施例提供了一种信息输入设备在终端上操控的方法,该方法应用于包含终端、第一信息输入设备、第二信息输入设备的通信系统。该方法可包括:该终端为该第一信息输入设备分配第一频率,为该第二信息输入设备分配第二频率,该第一频率和该第二频率不同;该第一信息输入设备发射第一脉冲信号,该第一脉冲信号的频率为该第一频率;该第二信息输入设备发射第二脉冲信号,该第二脉冲信号的频率为该第二频率;该终端在屏幕的第一位置点检测到该第一脉冲信号,在屏幕上显示由该第一位置点构成的第一移动轨迹;该第一位置点包括一个或多个位置点;该终端在该屏幕的第二位置点检测到该第二脉冲信号,在该屏幕上显示由该第二位置点构成的第二移动轨迹;该第二位置点包括一个或多个位置点;其中,该第一移动轨迹和该第二移动轨迹的外观不同。In a first aspect, an embodiment of the present application provides a method for operating an information input device on a terminal, and the method is applied to a communication system including a terminal, a first information input device, and a second information input device. The method may include: the terminal assigns a first frequency to the first information input device, and assigns a second frequency to the second information input device, the first frequency and the second frequency are different; the first information input device transmits the first frequency a pulse signal, the frequency of the first pulse signal is the first frequency; the second information input device transmits a second pulse signal, the frequency of the second pulse signal is the second frequency; the terminal is at the first position of the screen When the first pulse signal is detected, the first movement track formed by the first position point is displayed on the screen; the first position point includes one or more position points; the terminal detects the second position point on the screen to the second pulse signal, a second movement track formed by the second position point is displayed on the screen; the second position point includes one or more position points; wherein, the first movement track and the second movement track The traces look different.
实施第一方面的方法,终端可以通过频率区分不同信息输入设备发送的脉冲信号,并在接收到信息输入设备发送的脉冲信号的位置点处显示移动轨迹。其中,不同的信息输入设备对应的移动轨迹的外观不同,这样用户在使用多个信息输入设备在同一终端上操控时,可以直接从外观识别出移动轨迹分别对应哪一个信息输入设备。此外,该方法通过信号的 频率来区分不同的信息输入设备,无需额外发送信息输入设备ID,不影响报点率。By implementing the method of the first aspect, the terminal can distinguish the pulse signals sent by different information input devices by frequency, and display the movement track at the position point where the pulse signals sent by the information input device are received. The appearances of the movement tracks corresponding to different information input devices are different, so that when the user uses multiple information input devices to operate on the same terminal, the user can directly identify which information input device the movement track corresponds to from the appearance. In addition, the method distinguishes different information input devices by the frequency of the signal, does not need to send additional information input device ID, and does not affect the reporting rate.
移动轨迹的外观可包括但不限于:颜色、粗细、深浅或笔触等等。The appearance of the movement track may include, but is not limited to: color, thickness, depth, or stroke, and so on.
信息输入设备可以直接接触终端屏幕,也可以不接触终端屏幕例如靠近终端屏幕,本申请实施例不作限制。也就是说,只要终端能够检测到信息输入设备发送的脉冲信号,即可显示对应的移动轨迹。The information input device may directly contact the terminal screen, or may not contact the terminal screen, for example, be close to the terminal screen, which is not limited in this embodiment of the present application. That is to say, as long as the terminal can detect the pulse signal sent by the information input device, the corresponding movement trajectory can be displayed.
在信息输入设备靠近终端屏幕时,终端可感应到信息输入设备发送的脉冲信号,即可以在检测到该脉冲信号的位置上显示移动轨迹。这样可以在用户有书写意图时即显示对应信息输入设备的移动轨迹,实现“0压感出墨”的功能。这样对于用户来说体验更佳。When the information input device is close to the screen of the terminal, the terminal can sense the pulse signal sent by the information input device, that is, the movement track can be displayed at the position where the pulse signal is detected. In this way, when the user has a writing intention, the movement track of the corresponding information input device can be displayed, and the function of "0-pressure-sensitive ink ejection" can be realized. This is a better experience for the user.
在本申请实施例中,移动轨迹的外观可以有以下几种确定方式:In this embodiment of the present application, the appearance of the movement track can be determined in the following ways:
1.终端预先设置。例如,终端在检测到频率为第一频率的第一脉冲信号的位置点(即第一位置点)显示红色的移动轨迹,在检测到频率为第二频率的第二脉冲信号的位置点(即第二位置点)显示蓝色的移动轨迹。这样用户可以直接从移动轨迹外观的不同,区分不同的信息输入设备。1. The terminal is preset. For example, the terminal displays a red moving track at the position where the first pulse signal with the first frequency is detected (ie, the first position), and at the position where the second pulse signal with the second frequency is detected (ie, the first position) The second position point) shows the movement trajectory in blue. In this way, the user can directly distinguish different information input devices from the difference in the appearance of the movement track.
2.终端根据信息输入设备接触终端屏幕时的压力值,来确定对应信息输入设备的移动轨迹的外观,例如粗细、深浅等。例如,当压力值越大时,对应信息输入设备的移动轨迹的颜色越深或者线条越粗。2. The terminal determines the appearance of the movement track corresponding to the information input device, such as thickness, depth, etc., according to the pressure value when the information input device contacts the screen of the terminal. For example, when the pressure value is larger, the color of the movement track corresponding to the information input device is darker or the line is thicker.
信息输入设备可以将接触终端屏幕时采集到的压力值和该信息输入设备的标识,通过和终端之间的无线连接发送给终端。终端可通过该标识获知该压力值属于哪个信息输入设备,并根据该压力值来确定对应信息输入设备的移动轨迹的外观。The information input device can send the pressure value collected when touching the screen of the terminal and the identification of the information input device to the terminal through a wireless connection with the terminal. The terminal can know which information input device the pressure value belongs to through the identifier, and determine the appearance of the movement track of the corresponding information input device according to the pressure value.
以第一信息输入设备为例,终端可以关联存储该第一频率和第一标识,该第一标识为该第一信息输入设备的标识;该第一信息输入设备检测到第一压力值,通过和该终端之间的第一无线连接发送第一消息;该第一消息携带该第一压力值和该第一标识;该终端接收到该第一消息;其中,该第一移动轨迹的外观由携带该第一标识的该第一消息中的该第一压力值确定。Taking the first information input device as an example, the terminal can associate and store the first frequency and the first identification, and the first identification is the identification of the first information input device; the first information input device detects the first pressure value, through The first wireless connection with the terminal sends a first message; the first message carries the first pressure value and the first identifier; the terminal receives the first message; wherein, the appearance of the first movement track is determined by The first pressure value in the first message carrying the first identifier is determined.
在一些实施例中,第一消息还可以包含采集到的第一压力值的时间点,这样终端可以确定第一信息输入设备在每一个时间点的压力值,在相同时间点检测到第一脉冲信号的第一位置点上显示的移动轨迹的外观由对应的压力值确定。In some embodiments, the first message may further include a time point of the collected first pressure value, so that the terminal can determine the pressure value of the first information input device at each time point, and detect the first pulse at the same time point The appearance of the movement trace displayed on the first position point of the signal is determined by the corresponding pressure value.
可理解的,第二信息输入设备也可以相同的方式来采集并发送压力值,例如第二信息输入设备可以发送携带第二压力值和第二信息输入设备的标识的第二消息。It is understandable that the second information input device can also collect and send the pressure value in the same way, for example, the second information input device can send a second message carrying the second pressure value and the identifier of the second information input device.
通过第2种方式,终端可以区分不同信息输入设备的压力值,将压力值反映到对应信息输入设备的移动轨迹上,能够实现精细准确的显示效果。这样用户可以通过控制力度来控制移动轨迹的外观,可以给用户带来良好的使用体验。此外,信息输入设备使用无线通信技术可以高效及时地传输压力值,使得终端能够实时渲染并显示对应的移动轨迹,这样信息输入设备使用起来有良好的跟手性,可以提升用户体验。Through the second method, the terminal can distinguish the pressure values of different information input devices, and reflect the pressure values on the movement trajectory of the corresponding information input device, so as to achieve a fine and accurate display effect. In this way, the user can control the appearance of the movement track by controlling the strength, which can bring a good user experience to the user. In addition, the information input device can transmit the pressure value in an efficient and timely manner by using wireless communication technology, so that the terminal can render and display the corresponding movement trajectory in real time, so that the information input device has good chirality and can improve the user experience.
3.终端根据检测到的脉冲信号的强度,来确定对应信息输入设备的移动轨迹的外观,例如粗细、深浅等。例如,当脉冲信号的强度越大时,对应信息输入设备的移动轨迹的颜色越深或者线条越粗。3. The terminal determines the appearance of the movement track corresponding to the information input device, such as thickness, depth, etc., according to the intensity of the detected pulse signal. For example, when the intensity of the pulse signal is greater, the color of the movement track corresponding to the information input device is darker or the line is thicker.
以第一信息输入设备为例,该第一移动轨迹的外观可以由该第一脉冲信号的强度确定。 类似的,第二移动轨迹的外观由该第二脉冲信号的强度确定。Taking the first information input device as an example, the appearance of the first movement track can be determined by the intensity of the first pulse signal. Similarly, the appearance of the second movement trace is determined by the strength of the second pulse signal.
4.终端根据信息输入设备的倾斜度来确定对应信息输入设备的移动轨迹的外观,例如笔触、粗细等。例如,当倾斜度越大时,对应信息输入设备的移动轨迹的线条越粗。倾斜度由终端检测到的脉冲信号来决定。4. The terminal determines, according to the inclination of the information input device, the appearance of the movement track corresponding to the information input device, such as the stroke, thickness, and the like. For example, when the inclination is larger, the line corresponding to the movement track of the information input device is thicker. The slope is determined by the pulse signal detected by the terminal.
以第一信息输入设备为例,该终端还可以为该第一信息输入设备分配第三频率,该第三频率和该第二频率不同;该第一信息输入设备发射第三脉冲信号,该第三脉冲信号的频率为该第三频率;该终端在第三位置点检测到该第三脉冲信号;其中,该第一移动轨迹的外观由该第一信息输入设备的倾斜度确定,该第一信息输入设备的倾斜度由检测到该第一脉冲信号的该第一位置点,和,检测到该第三脉冲信号的第三位置点确定。Taking the first information input device as an example, the terminal can also assign a third frequency to the first information input device, and the third frequency is different from the second frequency; the first information input device transmits a third pulse signal, and the first information input device transmits a third pulse signal. The frequency of the three-pulse signal is the third frequency; the terminal detects the third pulse signal at a third position; wherein, the appearance of the first movement track is determined by the inclination of the first information input device, and the first The inclination of the information input device is determined by the first position point where the first pulse signal is detected, and the third position point where the third pulse signal is detected.
进一步地,第一信息输入设备在某个时间点的倾斜度由在该时间点检测到第一脉冲信号的第一位置点,和在该时间点检测到第三脉冲信号的第三位置点确定。具体的,终端可以利用反正割函数θ=arcsec(d1/d2)计算出在某个时间点的倾斜角θ,其中,d1为第一信息输入设备发射第一脉冲信号的电极1和发送第三脉冲信号的电极2之间的距离,d2为该时间点对应的第一位置点和第二位置点之间的距离。d1可以预存在终端中,也可以由第一信息输入设备通过第一无线连接发送给终端。Further, the inclination of the first information input device at a certain time point is determined by the first position point at which the first pulse signal is detected at the time point, and the third position point at which the third pulse signal is detected at the time point . Specifically, the terminal can use the inverse secant function θ=arcsec(d1/d2) to calculate the tilt angle θ at a certain time point, where d1 is the electrode 1 of the first information input device that transmits the first pulse signal and the third electrode that transmits the third pulse signal. The distance between the electrodes 2 of the pulse signal, d2 is the distance between the first position point and the second position point corresponding to the time point. d1 may be pre-stored in the terminal, or may be sent to the terminal by the first information input device through the first wireless connection.
通过第4种方式,终端可以区分不同信息输入设备的倾斜度,将倾斜度反映到对应信息输入设备的移动轨迹上,能够实现精细准确的显示效果。这样用户可以通过控制倾斜度来控制移动轨迹的外观,可以给用户带来良好的使用体验。Through the fourth method, the terminal can distinguish the inclination of different information input devices, and reflect the inclination on the movement trajectory of the corresponding information input device, so as to achieve a fine and accurate display effect. In this way, the user can control the appearance of the movement track by controlling the inclination, which can bring a good user experience to the user.
上述第1、2、3、4种方式可以任意结合实施,本申请实施例对此不作限制。The foregoing first, second, third, and fourth manners may be implemented in any combination, which is not limited in the embodiments of the present application.
结合第一方面,在一些实施例中,终端的工作周期包括多个信号检测时间段;该第一信息输入设备的工作周期包括:多个第一发射时间段、多个第二发射时间段;该信号检测时间段在时序上覆盖该第一发射时间段和该第二发射时间段;该第一信息输入设备在该第一发射时间段发送该第一脉冲信号,在该第二发射时间段发送该第三脉冲信号;该终端在该信号检测时间段检测到该第一脉冲信号和该第三脉冲信号。这样可以使得第一信息输入设备和终端配合完成下行信号(包括第一脉冲信号和第二脉冲信号)的传输,并且最大程度的节省双方的电量。With reference to the first aspect, in some embodiments, the working cycle of the terminal includes a plurality of signal detection time periods; the working cycle of the first information input device includes: a plurality of first transmission time periods and a plurality of second transmission time periods; The signal detection period covers the first transmission period and the second transmission period in timing; the first information input device sends the first pulse signal during the first transmission period, and the second transmission period Sending the third pulse signal; the terminal detects the first pulse signal and the third pulse signal in the signal detection period. In this way, the first information input device and the terminal can cooperate to complete the transmission of the downlink signal (including the first pulse signal and the second pulse signal), and save the power of both parties to the greatest extent.
在一些实施例中,在该第一发射时间段和该第二发射时间段有重叠部分的情况下,该第一频率不同于该第三频率;或者,在该第一发射时间段和该第二发射时间段无重叠部分的情况下,该第一频率和该第三频率相同。这样,针对第一信息输入设备,终端可以根据时序或者频率的不同,区分该第一信息输入设备发射的第一信号和第二信号。In some embodiments, when the first transmission time period and the second transmission time period overlap, the first frequency is different from the third frequency; or, in the case of the first transmission time period and the third transmission time period When the two transmission time periods do not overlap, the first frequency and the third frequency are the same. In this way, for the first information input device, the terminal can distinguish the first signal and the second signal transmitted by the first information input device according to the difference in timing or frequency.
可理解的,和第一信息输入设备类似,第二输入设备和终端也可以有类似的工作时间段,这里不再赘述。It is understandable that, similar to the first information input device, the second input device and the terminal may also have similar working time periods, which will not be repeated here.
结合第一方面,在一些实施例中,该终端还可以发送DSSS信号,该第一信息输入设备可以在检测到该DSSS信号后,使用该第一频率发送该第一脉冲信号。这样,第一信息输入设备可以在靠近终端屏幕时,才检测到该DSSS信号,进而发送第一脉冲信号,这样可以节省第一信息输入设备的功耗。With reference to the first aspect, in some embodiments, the terminal may also send a DSSS signal, and the first information input device may use the first frequency to send the first pulse signal after detecting the DSSS signal. In this way, the first information input device can detect the DSSS signal only when it is close to the terminal screen, and then send the first pulse signal, which can save the power consumption of the first information input device.
在一些实施例中,该终端的工作周期包括信号发射时间段;该第一信息输入设备的工作周期包括信号检测时间段;该信号检测时间段在时序上覆盖该信号发射时间段;该终端 在该信号发射时间段发送该DSSS信号;该第一信息输入设备在该信号检测时间段检测该DSSS信号。这样可以使得第一信息输入设备和终端配合完成上行信号(即该DSSS信号)的传输,并且最大程度的节省双方的电量。In some embodiments, the working period of the terminal includes a signal transmission period; the working period of the first information input device includes a signal detection period; the signal detection period covers the signal transmission period in timing; The DSSS signal is sent during the signal transmission period; the first information input device detects the DSSS signal during the signal detection period. In this way, the first information input device and the terminal can cooperate to complete the transmission of the uplink signal (that is, the DSSS signal), and save the power of both parties to the greatest extent.
在一些实施例中,该终端的工作周期和该第一信息输入设备的工作周期的长度相同。在一些实施例中,该终端的工作周期和该第一信息输入设备的工作周期的在时序上也可以一致。In some embodiments, the duty cycle of the terminal and the duty cycle of the first information input device have the same length. In some embodiments, the working cycle of the terminal and the working cycle of the first information input device may also be consistent in timing.
结合第一方面,在一些实施例中,该第一信息输入设备在第一时间窗口内发送该第一消息;该终端在该第一时间窗口内扫描该第一消息。这样,第一信息输入设备可以周期性发送检测到的压力值,终端也可以周期性地扫描消息,可以节省双方的功耗。With reference to the first aspect, in some embodiments, the first information input device sends the first message within a first time window; the terminal scans the first message within the first time window. In this way, the first information input device can periodically send the detected pressure value, and the terminal can also scan messages periodically, which can save the power consumption of both parties.
结合第一方面,在一些实施例中,该终端基于该第一无线连接向该第一信息输入设备分配第一频率。In conjunction with the first aspect, in some embodiments, the terminal allocates a first frequency to the first information input device based on the first wireless connection.
结合第一方面,在一些实施例中,该终端还可以重新为该第一信息输入设备分配第四频率,该第四频率不同于该第一频率和该第二频率。这样,终端可以对第一信息输入设备做跳频处理,可以避免第一信息输入设备发射的第一脉冲信号和空间中存在的干扰信号的频率相近,从而避免终端检测第一信息输入设备发射的第一脉冲信号时受到空间中其他信号的干扰,使得终端能够准确地识别第一信息输入设备发送的第一脉冲信号。In combination with the first aspect, in some embodiments, the terminal may further allocate a fourth frequency to the first information input device, where the fourth frequency is different from the first frequency and the second frequency. In this way, the terminal can perform frequency hopping processing on the first information input device, which can prevent the frequency of the first pulse signal transmitted by the first information input device from being close to the interference signal existing in the space, thereby preventing the terminal from detecting the frequency of the first information input device. The first pulse signal is interfered by other signals in the space, so that the terminal can accurately identify the first pulse signal sent by the first information input device.
结合第一方面,在一些实施例中,该终端在屏幕上显示由该第一位置点构成的第一移动轨迹之前,可以运行第一应用程序,该第一应用程序提供以下一项或多项功能:绘画、办公、图案设计、文本输入或数据输入。这样终端可以在绘画、写字等场景中识别不同的信息输入设备。In combination with the first aspect, in some embodiments, before the terminal displays the first movement trajectory formed by the first position point on the screen, the terminal may run a first application program, where the first application program provides one or more of the following Function: drawing, office, pattern design, text input or data input. In this way, the terminal can identify different information input devices in scenes such as painting and writing.
第二方面,本申请实施例提供了一种信息输入设备在终端上操控的方法,该方法应用于终端侧。该方法可包括:该终端为该第一信息输入设备分配第一频率,为该第二信息输入设备分配第二频率,该第一频率和该第二频率不同;该终端在屏幕的第一位置点检测到频率为该第一频率的第一脉冲信号,在该屏幕上显示由该第一位置点构成的第一移动轨迹;该第一位置点包括一个或多个位置点;该终端在该屏幕的第二位置点检测到频率为该第二频率的第二脉冲信号,在该屏幕上显示由该第二位置点构成的第二移动轨迹;该第二位置点包括一个或多个位置点;其中,该第一移动轨迹和该第二移动轨迹的外观不同。In a second aspect, an embodiment of the present application provides a method for controlling an information input device on a terminal, and the method is applied to the terminal side. The method may include: assigning, by the terminal, a first frequency to the first information input device, and assigning a second frequency to the second information input device, the first frequency and the second frequency being different; the terminal is at a first position on the screen The first pulse signal with the frequency of the first frequency is detected at the point, and the first movement trajectory formed by the first position point is displayed on the screen; the first position point includes one or more position points; the terminal is in the A second pulse signal with a frequency of the second frequency is detected at the second position point of the screen, and a second movement track formed by the second position point is displayed on the screen; the second position point includes one or more position points ; wherein, the appearance of the first movement track and the second movement track are different.
第二方面提供的方法中,终端侧的可选实施例可参考第一方面提供的方法中终端侧的实现,这里不再赘述。In the method provided in the second aspect, for an optional embodiment on the terminal side, reference may be made to the implementation on the terminal side in the method provided in the first aspect, and details are not repeated here.
第三方面,本申请实施例提供了一种信息输入设备在终端上操控的方法,该方法应用于第一信息输入设备侧。该方法可包括:该第一信息输入设备接收到该终端分配的第一频率;该第一信息输入设备发射第一脉冲信号,该第一脉冲信号的频率为该第一频率。In a third aspect, an embodiment of the present application provides a method for controlling an information input device on a terminal, and the method is applied to the side of the first information input device. The method may include: the first information input device receives a first frequency assigned by the terminal; the first information input device transmits a first pulse signal, and the frequency of the first pulse signal is the first frequency.
第三方面提供的方法中,第一信息输入设备侧的可选实施例可参考第一方面提供的方法中第一信息输入设备侧的实现,这里不再赘述。In the method provided by the third aspect, for an optional embodiment on the side of the first information input device, reference may be made to the implementation on the side of the first information input device in the method provided by the first aspect, and details are not repeated here.
第四方面,本申请实施例提供了一种信息输入设备在终端上操控的方法,该方法应用于包含终端、信息输入设备的通信系统。该方法可包括:该终端为该信息输入设备分配第一频率;该信息输入设备发射脉冲信号,该脉冲信号的频率为该第一频率;该终端在屏幕的第三位置点检测到该脉冲信号,并执行和该第三位置点对应的功能。In a fourth aspect, an embodiment of the present application provides a method for controlling an information input device on a terminal, and the method is applied to a communication system including a terminal and an information input device. The method may include: the terminal assigns a first frequency to the information input device; the information input device transmits a pulse signal, and the frequency of the pulse signal is the first frequency; the terminal detects the pulse signal at a third position on the screen , and perform the function corresponding to the third position point.
实施第四方面的方法,终端根据第一脉冲信号即可获知报点信息,并根据报点信息来执行对应的操作。例如,当第一信息输入设备点击终端的主屏幕上的应用程序的图标时,终端可以启动该图标对应的应用程序。又例如,当第一信息输入设备在主屏幕上左右滑动时,终端可以刷新主界面中显示的应用程序的图标等等。By implementing the method of the fourth aspect, the terminal can obtain the point reporting information according to the first pulse signal, and perform corresponding operations according to the reporting point information. For example, when the first information input device clicks on the icon of the application program on the home screen of the terminal, the terminal can start the application program corresponding to the icon. For another example, when the first information input device slides left and right on the home screen, the terminal can refresh the icons of the application programs displayed in the home interface, and the like.
第四方面提及的第一脉冲信号,可参考第一方面的相关描述,在此不赘述。For the first pulse signal mentioned in the fourth aspect, reference may be made to the relevant description of the first aspect, and details are not repeated here.
第五方面,本申请实施例提供了一种终端,所述终端包括:屏幕、存储器、一个或多个处理器;所述屏幕、所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述终端执行如第二方面或第二方面的任意一种实施方式所述的方法。In a fifth aspect, an embodiment of the present application provides a terminal, where the terminal includes: a screen, a memory, and one or more processors; the screen and the memory are coupled to the one or more processors, and the The memory is used to store computer program code, the computer program code comprising computer instructions, the one or more processors invoking the computer instructions to cause the terminal to perform the second aspect or any one of the embodiments of the second aspect the method described.
第六方面,本申请实施例提供了一种信息输入设备,所述信息输入设备包括:存储器、一个或多个处理器;所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述信息输入设备执行如第三方面或第三方面的任意一种实施方式所述的方法。In a sixth aspect, an embodiment of the present application provides an information input device, the information input device includes: a memory and one or more processors; the memory is coupled to the one or more processors, and the memory uses to store computer program code, the computer program code comprising computer instructions, the one or more processors invoking the computer instructions to cause the information input device to perform the third aspect or any one of the embodiments of the third aspect the method described.
第七方面,本申请实施例提供了一种通信系统,其特征在于,所述通信系统包括终端和第一信息输入设备,所述终端为第五方面所述的终端,所述第一信息输入设备为第六方面所述的信息输入设备。In a seventh aspect, an embodiment of the present application provides a communication system, wherein the communication system includes a terminal and a first information input device, the terminal is the terminal described in the fifth aspect, and the first information input device The device is the information input device described in the sixth aspect.
在一些实施例中,第七方面的通信系统还可包括第二信息输入设备。第二信息输入设备用于执行第一方面或第一方面的任意一种实施方式所述的第二信息输入设备侧的方法。In some embodiments, the communication system of the seventh aspect may further include a second information input device. The second information input device is configured to execute the method on the side of the second information input device described in the first aspect or any one of the implementation manners of the first aspect.
第八方面,本申请实施例提供了一种包含指令的计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如第二方面或第二方面的任意一种实施方式所述的方法。In an eighth aspect, an embodiment of the present application provides a computer program product containing instructions, when the computer program product runs on an electronic device, the electronic device is made to execute any one of the second aspect or the second aspect The method described in the embodiment.
第九方面,本申请实施例提供了一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如第二方面或第二方面的任意一种实施方式所述的方法。In a ninth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, wherein when the instructions are executed on an electronic device, the electronic device is caused to execute the second aspect or the second aspect The method described in any one of the embodiments of .
第十方面,本申请实施例提供了一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如第三方面或第三方面的任意一种实施方式所述的方法。In a tenth aspect, an embodiment of the present application provides a computer program product containing instructions, characterized in that, when the computer program product runs on an electronic device, the electronic device is caused to perform the third aspect or the third aspect The method described in any one of the embodiments of .
第十一方面,本申请实施例提供了一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如第三方面或第三方面的任意一种实施方式所述的方法。In an eleventh aspect, an embodiment of the present application provides a computer-readable storage medium, including instructions, characterized in that, when the instructions are executed on an electronic device, the electronic device is caused to execute the third aspect or the third The method of any one of the embodiments of the aspect.
实施本申请实施例提供的方法,终端可以区分不同的信息输入设备,并针对不同的信息输入设备进行图形渲染并显示对应的移动轨迹,即终端支持多笔同写场景。该方法通过信号的频率来区分不同的信息输入设备,无需额外发送信息输入设备ID,不影响报点率。此外,信息输入设备使用无线通信技术可以高效及时地传输压力值,使得终端能够实时渲染并显示对应的移动轨迹,这样信息输入设备使用起来有良好的跟手性,可以提升用户体验。By implementing the method provided by the embodiment of the present application, the terminal can distinguish different information input devices, perform graphics rendering for different information input devices, and display the corresponding movement trajectory, that is, the terminal supports multiple simultaneous writing scenarios. The method distinguishes different information input devices by the frequency of the signals, does not need to send additional information input device IDs, and does not affect the reporting rate. In addition, the information input device can transmit the pressure value in an efficient and timely manner by using wireless communication technology, so that the terminal can render and display the corresponding movement trajectory in real time, so that the information input device has good chirality and can improve the user experience.
附图说明Description of drawings
图1为本申请实施例提供的通信系统10的结构示意图;FIG. 1 is a schematic structural diagram of a communication system 10 according to an embodiment of the present application;
图2A为本申请实施例提供的终端的硬件结构示意图;2A is a schematic diagram of a hardware structure of a terminal provided by an embodiment of the present application;
图2B为本申请实施例提供的终端的软件结构示意图;2B is a schematic diagram of a software structure of a terminal provided by an embodiment of the present application;
图3为本申请实施例提供的信息输入设备的硬件结构示意图;3 is a schematic diagram of a hardware structure of an information input device provided by an embodiment of the present application;
图4A为本申请实施例提供的终端的触摸传感器的结构示意图;4A is a schematic structural diagram of a touch sensor of a terminal according to an embodiment of the present application;
图4B为本申请实施例提供的计算倾斜度时的几何图;FIG. 4B is a geometric diagram when calculating the inclination according to an embodiment of the present application;
图5为本申请实施例提供的终端和信息输入设备的工作时间图;FIG. 5 is a working time diagram of a terminal and an information input device provided by an embodiment of the present application;
图6为本申请实施例提供的信息输入设备在终端上操控的方法的流程示意图;6 is a schematic flowchart of a method for controlling an information input device on a terminal provided by an embodiment of the present application;
图7A及图7B为本申请实施例提供的在终端上实现的一组用户界面;7A and 7B are a set of user interfaces implemented on a terminal provided by an embodiment of the present application;
图8为本申请实施例提供的用于分配频率的无线消息的结构示意图;8 is a schematic structural diagram of a wireless message for frequency allocation provided by an embodiment of the present application;
图9为本申请实施例提供的通信系统10中各设备的工作时间图;FIG. 9 is a working time diagram of each device in the communication system 10 provided by the embodiment of the present application;
图10为本申请实施例提供的PWM信号1和PWM信号2的示意图;10 is a schematic diagram of a PWM signal 1 and a PWM signal 2 provided by an embodiment of the application;
图11为本申请实施例提供的终端显示多个信息输入设备的移动轨迹的示意图。FIG. 11 is a schematic diagram of a terminal displaying movement trajectories of multiple information input devices according to an embodiment of the present application.
具体实施方式detailed description
下面将结合附图对本申请实施例中的技术方案进行清楚、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be described clearly and in detail below with reference to the accompanying drawings. Wherein, in the description of the embodiments of the present application, unless otherwise specified, “/” means or, for example, A/B can mean A or B; “and/or” in the text is only a description of an associated object The association relationship indicates that there can be three kinds of relationships, for example, A and/or B can indicate that A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of this application , "plurality" means two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are only used for descriptive purposes, and should not be construed as implying or implying relative importance or implying the number of indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, the "multiple" The meaning is two or more.
本申请以下实施例中的术语“用户界面(user interface,UI)”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在电子设备上经过解析,图形渲染,最终呈现为用户可以识别的内容。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的文本、图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。The term "user interface (UI)" in the following embodiments of this application is a medium interface for interaction and information exchange between an application program or an operating system and a user, which realizes the internal form of information and the form acceptable to the user. conversion between. The user interface is the source code written in a specific computer language such as java and extensible markup language (XML). A commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed graphically. It can be text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and other visual interface elements displayed on the display screen of the electronic device.
多笔同写是指多个信息输入设备在同一个终端上书写、绘画或操控的场景。在多笔同写的场景中,为了给用户提供精确真是的书写体验,终端需将同一个信息输入设备的压力值、报点信息以及倾斜度对应起来,才能针对不同的多个信息输入设备分别进行图形渲染,并显示多个信息输入设备分别对应的移动轨迹。Simultaneous writing with multiple strokes refers to a scenario in which multiple information input devices write, draw or manipulate on the same terminal. In the scenario of simultaneous writing of multiple strokes, in order to provide users with an accurate and real writing experience, the terminal needs to correspond to the pressure value, reporting point information and inclination of the same information input device, so that the different multiple information input devices can be used separately. Perform graphics rendering, and display the corresponding movement trajectories of multiple information input devices.
报点信息是指终端感应到信息输入设备的位置点,例如信息输入设备直接接触终端屏 幕的位置点,或者信息输入设备靠近终端时终端检测到信号的位置点。倾斜度是指信息输入设备相对终端的屏幕的倾斜角度。Point-reporting information refers to the location where the terminal senses the information input device, such as the location where the information input device directly touches the screen of the terminal, or the location where the terminal detects a signal when the information input device is close to the terminal. The inclination refers to the inclination angle of the information input device relative to the screen of the terminal.
现有技术提供了以下两种多笔同写的方法。The prior art provides the following two methods for simultaneous writing of multiple strokes.
1.第一种方法:终端通过信息输入设备笔尖发射的信号来获知信息输入设备的压力值、报点信息以及倾斜度。这样终端能够区分不同信息输入设备的压力值、报点信息以及倾斜度。但是,笔尖发射的信号传输速率极低,会导致报点率低。1. The first method: the terminal obtains the pressure value, the reporting point information and the inclination of the information input device through the signal emitted by the pen tip of the information input device. In this way, the terminal can distinguish the pressure value, reporting point information and inclination of different information input devices. However, the transmission rate of the signal emitted by the pen tip is extremely low, resulting in a low point rate.
2.第二种方法:终端通过信息输入设备笔尖发射的信号来获知信息输入设备的报点信息和倾斜度,通过信息输入设备基于低功耗蓝牙(bluetooth low engery,BLE)技术发送的蓝牙消息来获知压力值。笔尖发射的信号需要有一部分(例如36个比特(bit))来传输信息输入设备标识(identity document,ID),蓝牙消息中同样也携带有信息输入设备ID,这样终端能够将同一个信息输入设备的压力值、报点信息以及倾斜度对应起来。但是,笔尖成功传输完信息输入设备ID之前,例如传输36bit的信息输入设备ID耗费的90毫秒(ms)内,都无法将报点信息和信息输入设备对应起来。因此,第二种方法会丢失一部分报点信息(例如24个报点信息),影响报点率。2. The second method: the terminal obtains the point reporting information and the inclination of the information input device through the signal emitted by the pen tip of the information input device, and sends the Bluetooth message based on the Bluetooth low energy (BLE) technology through the information input device. to get the pressure value. The signal emitted by the pen tip needs to have a part (for example, 36 bits) to transmit the identity document (ID) of the information input device. The Bluetooth message also carries the information input device ID, so that the terminal can input the same information into the device. corresponding to the pressure value, reporting point information and inclination. However, before the pen tip successfully transmits the ID of the information input device, for example, within 90 milliseconds (ms) of transmitting the ID of the 36-bit information input device, the point information cannot be matched with the information input device. Therefore, the second method will lose part of the reporting information (for example, 24 reporting information), which affects the reporting rate.
报点率是影响书写体验的重要因素。报点率低会导致终端图形渲染并显示的移动轨迹和信息输入设备实际在终端屏幕上的移动轨迹不一致,影响跟手性。The reporting rate is an important factor affecting the writing experience. A low reporting rate will cause the movement trajectory rendered and displayed by the terminal graphics to be inconsistent with the actual movement trajectory of the information input device on the terminal screen, which will affect the chirality.
基于现有技术的不足,本申请以下实施例提供了信息输入设备在终端上操控的方法、装置及系统。在该方法适用于多笔同写的场景。Based on the deficiencies of the prior art, the following embodiments of the present application provide a method, an apparatus, and a system for controlling an information input device on a terminal. In this method, it is suitable for the scenario where multiple strokes are written at the same time.
在本申请实施例提供的该方法中,终端可以为不同的信息输入设备分配不同的频率。各个信息输入设备可以使用终端分配的频率发送脉冲信号,终端可以在屏幕上检测到脉冲信号,并在检测到脉冲信号的位置上显示移动轨迹,不同频率的脉冲信号所对应的移动轨迹的外观不同。这样,终端可以通过不同的频率区分不同信息输入设备所发送的脉冲信号,并针对不同信息输入设备显示不同的外观的移动轨迹。这样可以实现多笔同写。In the method provided by the embodiment of the present application, the terminal may allocate different frequencies to different information input devices. Each information input device can use the frequency assigned by the terminal to send the pulse signal, the terminal can detect the pulse signal on the screen, and display the movement track at the position where the pulse signal is detected, the appearance of the movement track corresponding to the pulse signal of different frequencies is different . In this way, the terminal can distinguish pulse signals sent by different information input devices through different frequencies, and display moving trajectories with different appearances for different information input devices. This enables multiple simultaneous writing.
移动轨迹的外观可包括但不限于:颜色、粗细、深浅或笔触等等。The appearance of the movement track may include, but is not limited to: color, thickness, depth, or stroke, and so on.
信息输入设备可以直接接触终端屏幕,也可以不接触终端屏幕例如靠近终端屏幕,本申请实施例不作限制。也就是说,只要终端能够检测到信息输入设备发送的脉冲信号,即可显示对应的移动轨迹。The information input device may directly contact the terminal screen, or may not contact the terminal screen, for example, be close to the terminal screen, which is not limited in this embodiment of the present application. That is to say, as long as the terminal can detect the pulse signal sent by the information input device, the corresponding movement trajectory can be displayed.
在信息输入设备靠近终端屏幕时,终端可感应到信息输入设备发送的脉冲信号,即可以在检测到该脉冲信号的位置上显示移动轨迹。这样可以在用户有书写意图时即显示对应信息输入设备的移动轨迹,实现“0压感出墨”的功能。这样对于用户来说体验更佳。When the information input device is close to the screen of the terminal, the terminal can sense the pulse signal sent by the information input device, that is, the movement track can be displayed at the position where the pulse signal is detected. In this way, when the user has a writing intention, the movement track of the corresponding information input device can be displayed, and the function of "0-pressure-sensitive ink ejection" can be realized. This is a better experience for the user.
在本申请实施例中,移动轨迹的外观可以有以下几种确定方式:In this embodiment of the present application, the appearance of the movement track can be determined in the following ways:
1.终端预先设置。例如,两个不同频率的脉冲信号分别对应的移动轨迹可以一个显示为红色,另一个显示为蓝色。这样用户可以直接从移动轨迹外观的不同,区分不同的信息输入设备。1. The terminal is preset. For example, the movement trajectories corresponding to two pulse signals of different frequencies can be displayed in red and the other in blue. In this way, the user can directly distinguish different information input devices from the difference in the appearance of the movement track.
2.终端根据信息输入设备接触终端屏幕时的压力值,来确定对应信息输入设备的移动轨迹的外观,例如粗细、深浅等。例如,当压力值越大时,对应信息输入设备的移动轨迹的颜色越深或者线条越粗。2. The terminal determines the appearance of the movement track corresponding to the information input device, such as thickness, depth, etc., according to the pressure value when the information input device contacts the screen of the terminal. For example, when the pressure value is larger, the color of the movement track corresponding to the information input device is darker or the line is thicker.
在一些实施例中,信息输入设备可以将接触终端屏幕时采集到的压力值和该信息输入 设备的标识,通过和终端之间的无线连接发送给终端。终端可通过该标识获知该压力值属于哪个信息输入设备,并根据该压力值来确定对应信息输入设备的移动轨迹的外观。In some embodiments, the information input device can send the pressure value collected when touching the screen of the terminal and the identification of the information input device to the terminal through a wireless connection with the terminal. The terminal can know which information input device the pressure value belongs to through the identifier, and determine the appearance of the movement track of the corresponding information input device according to the pressure value.
通过第2种方式,终端可以区分不同信息输入设备的压力值,将压力值反映到对应信息输入设备的移动轨迹上,能够实现精细准确的显示效果。这样用户可以通过控制力度来控制移动轨迹的外观,可以给用户带来良好的使用体验。Through the second method, the terminal can distinguish the pressure values of different information input devices, and reflect the pressure values on the movement trajectory of the corresponding information input device, so as to achieve a fine and accurate display effect. In this way, the user can control the appearance of the movement track by controlling the strength, which can bring a good user experience to the user.
3.终端根据检测到的脉冲信号的强度,来确定对应信息输入设备的移动轨迹的外观,例如粗细、深浅等。例如,当脉冲信号的强度越大时,对应信息输入设备的移动轨迹的颜色越深或者线条越粗。3. The terminal determines the appearance of the movement track corresponding to the information input device, such as thickness, depth, etc., according to the intensity of the detected pulse signal. For example, when the intensity of the pulse signal is greater, the color of the movement track corresponding to the information input device is darker or the line is thicker.
4.终端根据信息输入设备的倾斜度来确定对应信息输入设备的移动轨迹的外观,例如笔触、粗细等。例如,当倾斜度越大时,对应信息输入设备的移动轨迹的线条越粗。4. The terminal determines, according to the inclination of the information input device, the appearance of the movement track corresponding to the information input device, such as the stroke, thickness, and the like. For example, when the inclination is larger, the line corresponding to the movement track of the information input device is thicker.
通过第4种方式,终端可以区分不同信息输入设备的倾斜度,将倾斜度反映到对应信息输入设备的移动轨迹上,能够实现精细准确的显示效果。这样用户可以通过控制倾斜度来控制移动轨迹的外观,可以给用户带来良好的使用体验。Through the fourth method, the terminal can distinguish the inclination of different information input devices, and reflect the inclination on the movement trajectory of the corresponding information input device, so as to achieve a fine and accurate display effect. In this way, the user can control the appearance of the movement track by controlling the inclination, which can bring a good user experience to the user.
上述第1、2、3、4种方式可以任意结合实施,本申请实施例对此不作限制。The foregoing first, second, third, and fourth manners may be implemented in any combination, which is not limited in the embodiments of the present application.
实施本申请实施例提供的方法,终端可以区分不同的信息输入设备,并针对不同的信息输入设备进行图形渲染并显示对应的移动轨迹,即终端支持多笔同写场景。该方法通过信号的频率来区分不同的信息输入设备,无需额外发送信息输入设备ID,不影响报点率。此外,信息输入设备使用无线通信技术可以高效及时地传输压力值,使得终端能够实时渲染并显示对应的移动轨迹,这样信息输入设备使用起来有良好的跟手性,可以提升用户体验。By implementing the method provided by the embodiment of the present application, the terminal can distinguish different information input devices, perform graphics rendering for different information input devices, and display the corresponding movement trajectory, that is, the terminal supports multiple simultaneous writing scenarios. The method distinguishes different information input devices by the frequency of the signals, does not need to send additional information input device IDs, and does not affect the reporting rate. In addition, the information input device can transmit the pressure value in an efficient and timely manner by using wireless communication technology, so that the terminal can render and display the corresponding movement trajectory in real time, so that the information input device has good chirality and can improve the user experience.
在本申请以下实施例中,多笔同写的场景是指一个或多个用户使用多个信息输入设备在同一个终端上书写的场景。具体的,多笔同写的场景可包括但不限于:一个或多个用户使用多个信息输入设备在同一个终端上绘画、办公、设计图案、输入文本或数据(例如签名)等等。在本申请以下实施例中,用户使用信息输入设备在终端上书写的内容可以是文字、线条、图画或任意图案,这里不作限制。In the following embodiments of the present application, a scenario in which multiple strokes are written at the same time refers to a scenario in which one or more users use multiple information input devices to write on the same terminal. Specifically, the scenario of writing with multiple strokes may include, but is not limited to, one or more users using multiple information input devices to draw, work, design patterns, input text or data (eg, signature) on the same terminal, and so on. In the following embodiments of the present application, the content written by the user on the terminal using the information input device may be text, line, drawing or any pattern, which is not limited here.
在本申请以下实施例中,信息输入设备使用的无线通信技术可包括但不限于:蓝牙(bluetooth,BT)、近场通信(near field communication,NFC)、无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,WiFi))、射频识别(radio frequency identification,RFID)或ZigBee等等。蓝牙可包括经典蓝牙或低功耗蓝牙BLE。In the following embodiments of the present application, the wireless communication technologies used by the information input device may include but are not limited to: Bluetooth (bluetooth, BT), near field communication (near field communication, NFC), wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (WiFi)), radio frequency identification (radio frequency identification, RFID) or ZigBee and so on. Bluetooth may include Classic Bluetooth or Bluetooth Low Energy BLE.
下面,首先介绍本申请实施例提供的通信系统。In the following, the communication system provided by the embodiments of the present application is first introduced.
参考图1,图1示出了本申请实施例提供的通信系统10。如图1所示,通信系统10可包括:终端400,和,一个或多个信息输入设备。示例性地,图1中示出了信息输入设备100、信息输入设备200和信息输入设备300。信息输入设备100、信息输入设备200和信息输入设备300可以由同一用户操控,也可以由不同的用户操控。例如,信息输入设备100可以由用户1操控,信息输入设备200可以由用户2操控,信息输入设备300可以由用户3操控。Referring to FIG. 1 , FIG. 1 shows a communication system 10 provided by an embodiment of the present application. As shown in FIG. 1, the communication system 10 may include: a terminal 400, and one or more information input devices. Illustratively, an information input device 100 , an information input device 200 and an information input device 300 are shown in FIG. 1 . The information input device 100 , the information input device 200 , and the information input device 300 may be manipulated by the same user, or may be manipulated by different users. For example, the information input device 100 can be manipulated by the user 1 , the information input device 200 can be manipulated by the user 2 , and the information input device 300 can be manipulated by the user 3 .
终端400配置有屏幕。在一些实施例中,终端400可以配置有较大尺寸的屏幕。The terminal 400 is configured with a screen. In some embodiments, the terminal 400 may be configured with a larger size screen.
终端400可以为手机、平板电脑、个人数字助理(personal digital assistant,PDA)、可穿戴设备、膝上型计算机(laptop)等便携式电子设备。便携式电子设备的示例性实施例包括但不限于搭载iOS、android、microsoft或者其他操作系统的便携式电子设备。还应当理解的是,在本申请其他一些实施例中,电子设备也可以不是便携式电子设备,而是具有触敏表面(例如触控面板)的智能电视机、智慧屏、台式电脑或者电子广告牌等等。The terminal 400 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, and a laptop computer (laptop). Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices powered by iOS, android, microsoft, or other operating systems. It should also be understood that, in some other embodiments of the present application, the electronic device may not be a portable electronic device, but a smart TV, smart screen, desktop computer or electronic billboard having a touch-sensitive surface (such as a touch panel). etc.
信息输入设备为主动式信息输入设备,例如可以为主动式电容手写笔。可理解的,信息输入设备仅仅是本申请实施例中所使用的一个词语,其代表的含义是一种信息输入设备,其执行的功能在本实施例中已经记载,其名称并不能对本实施例构成任何限制。另外,在本申请其他一些实施例中,信息输入设备也可以被称为例如触控笔、主动式手写笔、信号笔或其他名词。The information input device is an active information input device, such as an active capacitive stylus. It is understandable that the information input device is only a word used in the embodiment of this application, and the meaning it represents is an information input device, and the functions it performs have been recorded in this embodiment, and its name does not affect this embodiment. constitute any restriction. In addition, in some other embodiments of the present application, the information input device may also be referred to as, for example, a stylus pen, an active stylus pen, a signal pen, or other terms.
在本申请实施例中,终端400和多个信息输入设备之间可以基于无线通信技术分别建立无线连接。例如,终端400可以和多个信息输入设备分别建立BLE连接。In this embodiment of the present application, a wireless connection may be established between the terminal 400 and multiple information input devices based on a wireless communication technology, respectively. For example, the terminal 400 may establish BLE connections with multiple information input devices respectively.
终端400和信息输入设备建立无线连接后,终端400可以基于该无线连接为不同的信息输入设备分配不同的频率。终端400可以为同一个信息输入设备分配1个或2个频率。在一些实施例中,终端400为各个信息输入设备分配的频率为低频,例如可以为100KHz到400KHz之间的频率。终端400分配给信息输入设备的频率可以用于该信息输入设备后续在书写过程中向终端400发送信号。After the terminal 400 and the information input device establish a wireless connection, the terminal 400 can allocate different frequencies to different information input devices based on the wireless connection. The terminal 400 can allocate one or two frequencies to the same information input device. In some embodiments, the frequency allocated by the terminal 400 to each information input device is a low frequency, for example, a frequency between 100KHz and 400KHz. The frequency allocated by the terminal 400 to the information input device can be used by the information input device to send signals to the terminal 400 during the writing process subsequently.
终端400中可以存储各个信息输入设备和分配给各个信息输入设备的频率之间的对应关系。The terminal 400 may store the correspondence between the respective information input devices and the frequencies allocated to the respective information input devices.
在其他一些实施例中,终端400还可以基于和各个信息输入设备之间的无线连接发送更加丰富的信息,例如信息输入设备的剩余电量、信息输入设备的按键是否被按压等信息。In some other embodiments, the terminal 400 may also send more abundant information based on the wireless connection with each information input device, such as information such as the remaining power of the information input device, whether a button of the information input device is pressed, and the like.
终端400可以通过触控面板周期性地发送基于直接序列扩频(direct sequence spread spectrum,DSSS)的信号(以下称DSSS信号)。信息输入设备的笔尖在接触到或快接触到终端400的屏幕时,可以检测到终端400发送的DSSS信号从而获知终端400的屏幕在附近,即获知用户有书写意图。The terminal 400 may periodically transmit a signal based on direct sequence spread spectrum (DSSS) (hereinafter referred to as a DSSS signal) through the touch panel. When the pen tip of the information input device touches or is about to touch the screen of the terminal 400, it can detect the DSSS signal sent by the terminal 400 to know that the screen of the terminal 400 is nearby, that is, the user has a writing intention.
信息输入设备可以使用终端400分配的频率向终端400发送脉冲宽度调制(pulse width modulation,PMW)式信号(以下称PWM信号)。The information input device may transmit a pulse width modulation (PMW) type signal (hereinafter referred to as a PWM signal) to the terminal 400 using the frequency allocated by the terminal 400 .
当终端400为信息输入设备分配了1个频率时,该信息输入设备可以使用该频率发送1路PWM信号。终端400可以根据接收到的该1路PWM信号的频率确定发送该信号的信息输入设备,还可以根据该1路PWM信号获知该信息输入设备的报点信息。When the terminal 400 allocates one frequency to the information input device, the information input device can use the frequency to send one PWM signal. The terminal 400 can determine the information input device that transmits the signal according to the frequency of the received PWM signal of the 1 channel, and can also obtain the notification information of the information input device according to the PWM signal of the 1 channel.
当终端400为信息输入设备分配了2个频率时,该信息输入设备可以使用该2个频率分别发送1路PWM信号,即发送2路PWM信号。终端400可以根据接收到的该2路PWM信号的频率确定发送该信号的信息输入设备,还可以根据该2路PWM信号获知该信息输入设备的报点信息和倾斜度。When the terminal 400 allocates two frequencies to the information input device, the information input device can use the two frequencies to send one PWM signal respectively, that is, to send two PWM signals. The terminal 400 can determine the information input device that transmits the signal according to the frequency of the received 2-channel PWM signal, and can also obtain the alarm point information and the inclination of the information input device according to the 2-channel PWM signal.
信息输入设备可以通过笔尖持续向终端400的屏幕发送PWM信号,也可以周期性发送等,在此不予限定。The information input device may continuously send the PWM signal to the screen of the terminal 400 through the pen tip, or may periodically send the signal, which is not limited herein.
信息输入设备还可以检测笔尖接触终端400的屏幕时的压力值,并通过和终端400之间的无线连接向终端400发送无线消息,该无线消息携带该压力值和信息输入设备ID。终 端400接收到无线消息后,可以确定该信息输入设备ID对应的信息输入设备的压力值。The information input device can also detect the pressure value when the pen tip touches the screen of the terminal 400, and send a wireless message to the terminal 400 through the wireless connection with the terminal 400, where the wireless message carries the pressure value and the ID of the information input device. After receiving the wireless message, the terminal 400 can determine the pressure value of the information input device corresponding to the information input device ID.
因此,终端400可以确定每一个信息输入设备的压力值、报点信息和倾斜度,或者,终端400可以确定每一个信息输入设备的压力值和报点信息,并根据确定的上述内容进行图形渲染后在屏幕上显示对应信息输入设备在屏幕上方的移动轨迹。Therefore, the terminal 400 may determine the pressure value, point information and inclination of each information input device, or the terminal 400 may determine the pressure value and point information of each information input device, and perform graphic rendering according to the determined content. Then, the movement track of the corresponding information input device on the upper part of the screen is displayed on the screen.
综上可知,在通信系统10中,终端400和每支信息输入设备之间均存在至少3个信息通道。其中:To sum up, in the communication system 10, there are at least three information channels between the terminal 400 and each information input device. in:
第一信息通道为上行通道,用于终端400向信息输入设备发送DSSS信号。The first information channel is an uplink channel for the terminal 400 to send a DSSS signal to the information input device.
第二信息通道为下行通道,用于信息输入设备使用分配的频率向终端400发送PWM信号。The second information channel is a downlink channel for the information input device to send a PWM signal to the terminal 400 using the allocated frequency.
第二信息通道可包含第一子通道。第一子通道用于信息输入设备使用分配的频率向终端发送1路PWM信号,该1路PWM信号用于终端400获知信息输入设备的报点信息。The second information channel may include the first sub-channel. The first sub-channel is used for the information input device to send 1 channel of PWM signal to the terminal using the allocated frequency, and the 1 channel of PWM signal is used for the terminal 400 to obtain the report information of the information input device.
在一些实施例中,第二信息通道还可包含第二子通道,第二子通道用于信息输入设备使用分配的频率向终端400发送1路PWM信号。第二字通道和第一子通道传输的2路PWM信号联合用于终端400获知信息输入设备的倾斜度。In some embodiments, the second information channel may further include a second sub-channel, and the second sub-channel is used for the information input device to send a PWM signal to the terminal 400 using the assigned frequency. The two PWM signals transmitted by the second word channel and the first sub-channel are combined for the terminal 400 to know the inclination of the information input device.
第三信息通道为上下行双向通道,用于终端400向信息输入设备分配频率,还用于信息输入设备向终端400发送携带压力值和信息输入设备ID的无线消息。该频率用于信息输入设备通过第二信息通道向终端400发送信号。The third information channel is an uplink and downlink bidirectional channel, used by the terminal 400 to assign frequencies to the information input device, and also used by the information input device to send a wireless message carrying the pressure value and the ID of the information input device to the terminal 400 . This frequency is used for the information input device to send a signal to the terminal 400 through the second information channel.
可理解的,第一信息通道和第二信息通道可以为两个单向通道,也可以为一个双向通道的两个传输方向。Understandably, the first information channel and the second information channel may be two unidirectional channels, or may be two transmission directions of a bidirectional channel.
后续实施例将结合终端400和信息输入设备的硬件结构,详细描述3个信息通道的构成以及传输信息的原理,在此暂不赘述。Subsequent embodiments will combine the hardware structures of the terminal 400 and the information input device to describe in detail the constitution of the three information channels and the principle of transmitting information, which will not be described here.
参考图2A,图2A示例性示出了本申请实施例提供的终端400的结构示意图。Referring to FIG. 2A , FIG. 2A exemplarily shows a schematic structural diagram of a terminal 400 provided by an embodiment of the present application.
如图2A所示,终端400可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。As shown in FIG. 2A , the terminal 400 may include: 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 , and a battery 142 , Antenna 1, Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Audio Module 170, Speaker 170A, Receiver 170B, Microphone 170C, Headphone Interface 170D, Sensor Module 180, Key 190, Motor 191, Indicator 192, Camera 193 , a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195 and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),触控芯片如触控面板集成电路(touch panel integrated circuit,TPIC),图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,数字信号处理器(digital signal processor,DSP)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a touch chip such as a touch panel integrated circuit (TPIC), a graphics processor (graphics processing unit, GPU), image signal processor (image signal processor, ISP), controller, memory, digital signal processor (digital signal processor, DSP), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
其中,控制器可以是终端400的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the terminal 400 . The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行终端400的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储终端400使用过程中所创建的数据(比如音频数据,电话本等)等。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the terminal 400 by executing the instructions stored in the internal memory 121 . The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like. The storage data area may store data (such as audio data, phone book, etc.) created during the use of the terminal 400 and the like.
终端400的无线通信功能可以通过天线1,天线2,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal 400 may be implemented by the antenna 1, the antenna 2, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。终端400中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal 400 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
无线通信模块160QE全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),NFC,红外技术(infrared,IR)、RFID或ZigBee等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,对电磁波信号进行解调以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。Wireless communication module 160QE global navigation satellite system (GNSS), frequency modulation (FM), NFC, infrared technology (infrared, IR), RFID or ZigBee and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
在本申请实施例中,无线通信模块160可用于和多个信息输入设备基于无线通信技术分别建立无线连接。该无线连接可用于终端400为不同的信息输入设备分配不同的频率。终端400可以为同一个信息输入设备分配2个频率。该频率可用于信息输入设备在后续的书写过程中向终端400发送PWM信号。In this embodiment of the present application, the wireless communication module 160 may be configured to establish wireless connections with multiple information input devices based on wireless communication technologies, respectively. The wireless connection can be used by the terminal 400 to assign different frequencies to different information input devices. The terminal 400 can allocate 2 frequencies to the same information input device. This frequency can be used by the information input device to send a PWM signal to the terminal 400 in the subsequent writing process.
无线通信模块160还可以基于该无线连接接收到信息输入设备在书写过程中发送的无线消息(例如BLE消息),该无线消息携带有信息输入设备检测到的压力值和信息输入设备ID。该无线消息被传递给AP,由AP根据该无线消息确定该信息输入设备ID对应的信息输入设备的压力值。之后,AP可以将该信息输入设备的压力值传递给GPU,用于后续针对该信息输入设备的图形渲染。The wireless communication module 160 may also receive a wireless message (eg, BLE message) sent by the information input device during the writing process based on the wireless connection, where the wireless message carries the pressure value detected by the information input device and the ID of the information input device. The wireless message is transmitted to the AP, and the AP determines the pressure value of the information input device corresponding to the information input device ID according to the wireless message. After that, the AP can transmit the pressure value of the information input device to the GPU for subsequent graphics rendering for the information input device.
终端400通过GPU,显示屏194,以及AP等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和AP。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal 400 implements a display function through the GPU, the display screen 194, and the AP. The GPU is a microprocessor for image processing, and connects the display screen 194 and the AP. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
在本申请实施例中,GPU可以根据每支信息输入设备的压力值、报点信息以及倾斜度进行图形渲染,并将渲染后的结果传递给显示屏194,由显示屏194显示对应的移动轨迹。In this embodiment of the present application, the GPU may render graphics according to the pressure value, reporting point information, and inclination of each information input device, and transmit the rendered result to the display screen 194, which displays the corresponding movement trajectory. .
显示屏194用于显示图像,视频等。在本申请实施例中,显示屏194可用于分别显示多个信息输入设备的移动轨迹。显示屏194包括显示面板。显示面板可以采用液晶显示屏 (liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端400可以包括1个或N个显示屏194,N为大于1的正整数。Display screen 194 is used to display images, videos, and the like. In this embodiment of the present application, the display screen 194 may be used to display the movement trajectories of multiple information input devices respectively. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light). emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the terminal 400 may include one or N display screens 194 , where N is a positive integer greater than one.
压力传感器180A用于感受压力信号,可以将压力信号转换成信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。终端400根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,终端400根据压力传感器180A检测所述触摸操作强度。终端400也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal, and can convert the pressure signal into a signal. In some embodiments, the pressure sensor 180A may be provided on the display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, and the like. The capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The terminal 400 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the terminal 400 detects the intensity of the touch operation according to the pressure sensor 180A. The terminal 400 can also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给AP,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于终端400的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can communicate the detected touch operation to the AP to determine the touch event type. Visual output related to touch operations may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the terminal 400 , which is different from the position where the display screen 194 is located.
在本申请实施例中,触摸传感器180K可用于向信息输入设备发射信号(例如DSSS信号),该信号可用于信息输入设备获知终端400的屏幕在附近,即获知用户有书写意图。In this embodiment of the present application, the touch sensor 180K can be used to transmit a signal (eg, a DSSS signal) to the information input device, and the signal can be used by the information input device to know that the screen of the terminal 400 is nearby, that is, to know that the user has a writing intention.
在本申请实施例中,触摸传感器180K还可以用于接收信息输入设备发射的信号,处理器110可根据该信号确定报点信息和倾斜度。后续将详细描述触摸传感器180K的工作原理,在此暂不赘述。In this embodiment of the present application, the touch sensor 180K may also be used to receive a signal transmitted by the information input device, and the processor 110 may determine the point announcement information and the inclination according to the signal. The working principle of the touch sensor 180K will be described in detail later, which will not be repeated here.
在本申请实施例中,终端400的屏幕可以是指由保护玻璃(图中未示出)、触摸传感器180K、显示屏194、底板(图中未示出)以及一些外围电路组成的装置。其中,屏幕由上至下依次为保护玻璃、触摸传感器180K、显示屏194、底板。In this embodiment of the present application, the screen of the terminal 400 may refer to a device composed of a protective glass (not shown in the figure), a touch sensor 180K, a display screen 194, a bottom plate (not shown in the figure) and some peripheral circuits. Among them, the screen is, from top to bottom, the protective glass, the touch sensor 180K, the display screen 194, and the bottom plate.
可以理解的是,本申请实施例示意的结构并不构成对终端400的具体限定。在本申请另一些实施例中,终端400可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the terminal 400 . In other embodiments of the present application, the terminal 400 may include more or less components than those shown in the drawings, or combine some components, or separate some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of the present application take an Android system with a layered architecture as an example to exemplarily describe the software structure of the electronic device 100 .
图2B是本申请实施例的电子设备100的软件结构框图。FIG. 2B is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件 接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图2B所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Fig. 2B, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2B所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 2B, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make these data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications. A display interface can consist 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.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide the communication function of the electronic device 100 . For example, the management of call status (including connecting, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
2D图形引擎是2D绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
参考图3,图3为本申请实施例提供的信息输入设备的结构示意图。该信息输入设备可以为图1所示的通信系统100中的任意一个信息输入设备,例如信息输入设备100、信息输入设备200或信息输入设备300。Referring to FIG. 3 , FIG. 3 is a schematic structural diagram of an information input device provided by an embodiment of the present application. The information input device may be any information input device in the communication system 100 shown in FIG. 1 , for example, the information input device 100 , the information input device 200 or the information input device 300 .
图3所示的信息输入设备可以为主动式电容手写笔。如图3所示,该主动式电容手写笔可以包括:处理器201、电源202、微控制单元(microcontroller unit,MCU)203、直流转直流电源转换器(direct current-direct current converter,DC/DC)204、信号发射电路205、信号检测电路206、压力传感器207以及无线通信模块208。The information input device shown in FIG. 3 may be an active capacitive stylus. As shown in FIG. 3, the active capacitive stylus may include: a processor 201, a power supply 202, a microcontroller unit (MCU) 203, a direct current-direct current converter (DC/DC) ) 204 , a signal transmission circuit 205 , a signal detection circuit 206 , a pressure sensor 207 and a wireless communication module 208 .
处理器201可以包括一个或多个处理单元,例如:处理器201可以包括应用处理器(application processor,AP),控制器,存储器等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 201 may include one or more processing units, for example, the processor 201 may include an application processor (application processor, AP), a controller, a memory, and the like. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
电源202可以是可充电锂电池或者可更换标准电池等。工作时,电源202通过DC/DC电源转换器204向MCU 203、信号发射电路205、信号检测电路206、压力传感器207以及无线通信模块208供电。The power source 202 may be a rechargeable lithium battery or a replaceable standard battery or the like. During operation, the power supply 202 supplies power to the MCU 203, the signal transmission circuit 205, the signal detection circuit 206, the pressure sensor 207 and the wireless communication module 208 through the DC/DC power converter 204.
信号检测电路203可设置于信息输入设备的笔尖位置。信号检测电路203可以包括一个或多个电极。信号检测电路203可用于检测终端400的屏幕发射的信号(例如DSSS信号)。The signal detection circuit 203 can be disposed at the position of the pen tip of the information input device. Signal detection circuit 203 may include one or more electrodes. The signal detection circuit 203 may be used to detect signals (eg, DSSS signals) emitted by the screen of the terminal 400 .
压力传感器207可设置于信息输入设备的笔尖位置。压力传感器207可用于检测信息输入设备的笔尖所承受的压力值,即压力值。The pressure sensor 207 can be disposed at the position of the pen tip of the information input device. The pressure sensor 207 can be used to detect the pressure value that the pen tip of the information input device bears, that is, the pressure value.
无线通信模块208可以提供应用在信息输入设备上的无线通信技术解决方案,例如可包括WLAN(如Wi-Fi),BT,GNSS,FM,NFC,IR、RFID或ZigBee等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块208可以配合信息输入设备的天线(图3未示出)一起使用,经由天线接收电磁波,对电磁波信号进行解调以及滤波处理,将处理后的信号发送到处理器208。无线通信模块208还可以从处理器201接收待发送的信号,对其进行调频,放大,经天线转为电磁波辐射出去。The wireless communication module 208 can provide a wireless communication technology solution applied on the information input device, for example, a wireless communication solution such as WLAN (such as Wi-Fi), BT, GNSS, FM, NFC, IR, RFID or ZigBee. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 208 can be used together with an antenna (not shown in FIG. 3 ) of the information input device, receives electromagnetic waves via the antenna, demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 208 . The wireless communication module 208 can also receive the signal to be sent from the processor 201, perform frequency modulation on it, amplify the signal, and convert it into electromagnetic waves for radiation through the antenna.
在一些实施例中,无线通信模块208可用于和终端400建立无线连接,并基于该无线连接接收到终端400为信息输入设备分配的频率。无线通信模块208还可基于和终端400之间的无线连接向终端400发送携带压力值和信息输入设备ID的无线消息。In some embodiments, the wireless communication module 208 may be configured to establish a wireless connection with the terminal 400, and receive the frequency allocated by the terminal 400 for the information input device based on the wireless connection. The wireless communication module 208 may also send a wireless message carrying the pressure value and the ID of the information input device to the terminal 400 based on the wireless connection with the terminal 400 .
MCU 203在内部晶振所产生的时钟的控制下生成和终端400分配的频率一致的PWM信号,并驱动信号发射电路205将PWM信号发射出去。Under the control of the clock generated by the internal crystal oscillator, the MCU 203 generates a PWM signal consistent with the frequency allocated by the terminal 400, and drives the signal transmitting circuit 205 to transmit the PWM signal.
信号发射电路205可以包括一个或多个电极。信号发射电路205可设置于信息输入设备的笔尖位置。信号发射电路205发射的PWM信号以高压方波信号的形式通过信息输入设备的笔尖发射至终端400的屏幕。 Signal transmission circuit 205 may include one or more electrodes. The signal transmitting circuit 205 can be disposed at the position of the pen tip of the information input device. The PWM signal transmitted by the signal transmitting circuit 205 is transmitted to the screen of the terminal 400 through the pen tip of the information input device in the form of a high-voltage square wave signal.
在一些实施例中,信号发射电路205可用于发射1路PWM信号,该PWM信号用于 终端400确定信息输入设备的报点信息。在另一些实施例中,信号发射电路205可用于发射2路PWM信号,其中1路PWM信号用于终端400确定信息输入设备的报点信息,2路PWM信号联合用于终端400确定信息输入设备的倾斜度。In some embodiments, the signal transmitting circuit 205 can be used to transmit a PWM signal, and the PWM signal is used for the terminal 400 to determine the alarm information of the information input device. In other embodiments, the signal transmitting circuit 205 can be used to transmit two PWM signals, wherein one PWM signal is used for the terminal 400 to determine the reporting point information of the information input device, and the two PWM signals are combined for the terminal 400 to determine the information input device. of inclination.
可以理解的是,本申请实施例示意的结构并不构成对信息输入设备的具体限定。在本申请另一些实施例中,信息输入设备可以包括比图示更多或更少的部件,例如按键、LED指示灯,或者信息输入设备还可以组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the information input device. In other embodiments of the present application, the information input device may include more or less components than those shown in the figure, such as buttons, LED indicators, or the information input device may also combine some components, or separate some components, Or a different component arrangement. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
下面结合图2A所示的终端400和图3所示的信息输入设备,详细说明终端400和信息输入设备之间的三个信息通道的工作原理。The working principles of the three information channels between the terminal 400 and the information input device will be described in detail below with reference to the terminal 400 shown in FIG. 2A and the information input device shown in FIG. 3 .
1.第三信息通道:终端400的无线通信模块160,和,信息输入设备的无线通信模块208之间建立的无线连接,例如BLE连接、WiFi直连连接、NFC连接、ZigBee连接等等。1. The third information channel: the wireless connection established between the wireless communication module 160 of the terminal 400 and the wireless communication module 208 of the information input device, such as BLE connection, WiFi direct connection, NFC connection, ZigBee connection and so on.
第三信息通道用于终端400为信息输入设备分配频率,还用于信息输入设备向终端400发送携带压力值和信息输入设备ID的无线消息。终端400可以为一个信息输入设备分配1个或2个频率。终端400为信息输入设备分配的频率用于信息输入设备的笔尖电极发送PWM信号。The third information channel is used for the terminal 400 to assign a frequency to the information input device, and is also used for the information input device to send a wireless message carrying the pressure value and the ID of the information input device to the terminal 400 . The terminal 400 can assign one or two frequencies to one information input device. The frequency allocated by the terminal 400 for the information input device is used for the pen tip electrode of the information input device to transmit the PWM signal.
2.第二信息通道:信息输入设备的信号发射电路205使用终端400为其分配的频率向终端400的屏幕发射PWM信号的通路。2. The second information channel: the channel through which the signal transmitting circuit 205 of the information input device transmits the PWM signal to the screen of the terminal 400 using the frequency allocated to it by the terminal 400 .
第二信息通道可包含第一子通道,该第一子通道由信息输入设备笔尖的信号发射电路205包含的1个电极,和,终端400的屏幕组成。该第一子通道用于信息输入设备笔尖电极使用分配的频率向终端400的屏幕发射信号PWM信号,该信号用于终端400获知信息输入设备的报点信息。下面详细解释原理。The second information channel may include a first sub-channel, and the first sub-channel is composed of one electrode included in the signal transmitting circuit 205 of the pen tip of the information input device, and the screen of the terminal 400 . The first sub-channel is used for the pen tip electrode of the information input device to transmit a signal PWM signal to the screen of the terminal 400 by using the assigned frequency, and the signal is used for the terminal 400 to obtain the report point information of the information input device. The principle is explained in detail below.
参考图4A,终端400的屏幕中触摸传感器180K可以包括X轴电极层和Y轴电极层。其中,X轴电极层可以包括多个成矩阵式分布的发射(transmit,Tx)电极,Y轴电极层可以包括多个成矩阵式分布的接收(receive,Rx)电极。Tx电极和Rx电极形成纵横交错的网络,Tx电极和Rx电极的交叉点(即坐标点)形成互电容(即Tx电极与相邻Rx电极构成的电容)。Referring to FIG. 4A , the in-screen touch sensor 180K of the terminal 400 may include an X-axis electrode layer and a Y-axis electrode layer. The X-axis electrode layer may include a plurality of transmit (transmit, Tx) electrodes distributed in a matrix, and the Y-axis electrode layer may include a plurality of receive (receive, Rx) electrodes distributed in a matrix. The Tx electrodes and the Rx electrodes form a crisscross network, and the intersections (ie coordinate points) of the Tx electrodes and the Rx electrodes form a mutual capacitance (ie the capacitance formed by the Tx electrodes and the adjacent Rx electrodes).
终端检测触摸传感器180K上各个坐标点的互电容大小时,和触摸传感器180K相连的触控芯片可以在每根Tx电极依次发出激励信号,然后触控芯片扫描每根接收Rx电极接收到的信号,将测量到的电压值模数转换为数字信号并计算电容值。When the terminal detects the mutual capacitance of each coordinate point on the touch sensor 180K, the touch chip connected to the touch sensor 180K can send an excitation signal to each Tx electrode in turn, and then the touch chip scans the signal received by each receiving Rx electrode, Convert the measured voltage value to digital signal and calculate the capacitance value.
终端400检测手指的触摸操作,和,检测信息输入设备的输入内容的原理不同。The terminal 400 detects the touch operation of the finger, and the principle of detecting the input content of the information input device is different.
在手指触摸屏幕时,手指、触控传感器180K以及二者之间的绝缘物质(如屏幕的保护玻璃)可以形成一个耦合电容,引起电流的微弱变动,引起互电容改变。终端400通过扫描X轴电极矩阵和Y轴电极矩阵,检测触摸点电容量的变化,计算出手指所在位置。When a finger touches the screen, the finger, the touch sensor 180K and the insulating material between them (such as the protective glass of the screen) can form a coupling capacitance, causing a slight change in current and a change in mutual capacitance. The terminal 400 detects the change of the capacitance of the touch point by scanning the X-axis electrode matrix and the Y-axis electrode matrix, and calculates the position of the finger.
在信息输入设备靠近或接触终端400的屏幕时,终端400可确定接收到PWM信号的位置点。当终端400进入信息输入设备检测模式后,即终端400在工作周期的信号检测时间段内,触摸传感器180K上的Tx电极转化为Rx电极,与原有的Rx电极轮流在X、Y轴向感测信息输入设备(例如主动式电容笔)的发射信号。Tx电极(已转化为Rx电极)和 原有的Rx电极上接收到的信号可以经过触控芯片的放大电路进行放大。在X轴电极和Y轴电极上分别可以获取接收到的信号的幅度值(或X轴Y轴的电容值)组成的数值包络,通过AP计算即可获得信号接收点的坐标(x,y),即报点信息。一种计算方式如可以将数值包络代入先验的信息输入设备包络模型进行计算。本领域的技术人员可以理解,其计算方式可以为本领域的常规方案,在此不再赘述。触控芯片将信号由时频变换到频域,如将信号进行快速傅里叶变换,即可获得信息输入设备发送信号的频率。When the information input device approaches or touches the screen of the terminal 400, the terminal 400 may determine the position point at which the PWM signal is received. When the terminal 400 enters the information input device detection mode, that is, during the signal detection period of the working cycle of the terminal 400, the Tx electrode on the touch sensor 180K is converted into an Rx electrode, which alternately senses the X and Y axes with the original Rx electrode. Measure the transmitted signal of information input devices (such as active capacitive stylus). The signals received on the Tx electrodes (which have been converted into Rx electrodes) and the original Rx electrodes can be amplified by the amplifying circuit of the touch chip. The numerical envelope composed of the amplitude value of the received signal (or the capacitance value of the X-axis and Y-axis) can be obtained on the X-axis electrode and the Y-axis electrode respectively, and the coordinates (x, y) of the signal receiving point can be obtained by AP calculation. ), that is, reporting point information. For example, a calculation method can be performed by substituting the numerical envelope into the prior information input device envelope model for calculation. Those skilled in the art can understand that the calculation method can be a conventional solution in the field, and details are not repeated here. The touch chip transforms the signal from time-frequency to frequency domain. For example, by performing fast Fourier transform on the signal, the frequency of the signal sent by the information input device can be obtained.
在一些实施例中,第二信息通道还可包含第二子通道,该第二子通道由信息输入设备笔尖的信号发射电路205包含的1个电极,和,终端400的屏幕组成。第二子通道中的电极和第一子通道中的电极不同。该第二子通道用于信息输入设备笔尖电极使用分配的频率向终端400的屏幕发射PWM信号。该第二子通道传输的信号,和,第一子通道传输的信号,联合用于终端400获知信息输入设备的倾斜度。下面详细解释原理。In some embodiments, the second information channel may further include a second sub-channel, the second sub-channel is composed of one electrode included in the signal transmitting circuit 205 of the pen tip of the information input device, and the screen of the terminal 400 . The electrodes in the second subchannel are different from the electrodes in the first subchannel. The second sub-channel is used for the pen tip electrode of the information input device to transmit a PWM signal to the screen of the terminal 400 using the assigned frequency. The signal transmitted by the second sub-channel and the signal transmitted by the first sub-channel are jointly used for the terminal 400 to know the inclination of the information input device. The principle is explained in detail below.
示例性地,参考图4B,信息输入设备的信号发射电路205可包括两个电极:电极1和电极2。电极1和屏幕组成第一子通道,电极2和屏幕组成第二子通道。For example, referring to FIG. 4B , the signal transmitting circuit 205 of the information input device may include two electrodes: electrode 1 and electrode 2 . Electrode 1 and the screen form the first sub-channel, and electrode 2 and the screen form the second sub-channel.
在一些实施例中,终端400可以根据倾斜角θ、d1和d2之间的几何关系,用反正割函数θ=arcsec(d1/d2)计算出倾斜角θ。倾斜角θ即为信息输入设备的倾斜度。其中,d1为电极1和电极2之间的距离。终端400可以在和信息输入设备建立连接的过程中或之后获取d1。信息输入设备靠近屏幕时,电极1、电极2分别发射的信号可以被触摸传感器180K感应到。终端400的触控芯片可以计算触摸传感器180K各个坐标点的电容值,并将各个坐标点的电容值上报给AP,由AP定位电极1和电极2投影到屏幕上的位置点,并计算两个投影点之间的投影距离d2。In some embodiments, the terminal 400 may calculate the inclination angle θ using an arcsecant function θ=arcsec(d1/d2) according to the geometric relationship between the inclination angles θ, d1 and d2. The inclination angle θ is the inclination of the information input device. Among them, d1 is the distance between electrode 1 and electrode 2. The terminal 400 may acquire d1 during or after establishing a connection with the information input device. When the information input device is close to the screen, the signals respectively emitted by the electrodes 1 and 2 can be sensed by the touch sensor 180K. The touch chip of the terminal 400 can calculate the capacitance value of each coordinate point of the touch sensor 180K, and report the capacitance value of each coordinate point to the AP. Projection distance d2 between projection points.
在另一些实施例中,还可以通过对不同倾斜角时接收到的电极1和电极2的信号后产生的信号幅度包络进行建模,得到包络模型。终端400可以存储该包络模型,并在进入信息输入设备检测模式后,将实时产生的信号幅度包络代入包络模型提取到倾斜角。In other embodiments, the envelope model can also be obtained by modeling the signal amplitude envelopes generated by the signals of the electrode 1 and the electrode 2 received at different tilt angles. The terminal 400 may store the envelope model, and after entering the information input device detection mode, substitute the real-time generated signal amplitude envelope into the envelope model to extract the tilt angle.
在本申请以下实施例中,可以将第一子通道传输的PWM信号称为PWM信号1,将第二子通道传输的PWM信号称为PWM信号2。In the following embodiments of the present application, the PWM signal transmitted by the first subchannel may be referred to as PWM signal 1, and the PWM signal transmitted by the second subchannel may be referred to as PWM signal 2.
3.第一信息通道:终端400的屏幕向信息输入设备的信号检测电路203发射DSSS信号的通路。3. The first information channel: the channel through which the screen of the terminal 400 transmits the DSSS signal to the signal detection circuit 203 of the information input device.
第一信息通道由终端400的屏幕和信息输入设备的信号检测电路203的一个或多个接收电极组成。The first information channel is composed of the screen of the terminal 400 and one or more receiving electrodes of the signal detection circuit 203 of the information input device.
具体地,由屏幕上的一个或多个Tx电极和/或由Rx电极转换而来的Tx电极发送信号,如通过DSSS调制的信号,该信号由信息输入设备笔尖的一个或多个接收电极接收。该信号可用于信息输入设备获知终端屏幕位于附近,即获知用户有书写意图。Specifically, a signal is sent by one or more Tx electrodes on the screen and/or Tx electrodes converted from the Rx electrodes, such as a signal modulated by DSSS, which is received by one or more receiving electrodes of the pen tip of the information input device . The signal can be used for the information input device to know that the terminal screen is nearby, that is, to know that the user has a writing intention.
从上述内容可知,信息输入设备在终端400上书写时,终端400向信息输入设备发送的DSSS信号、信息输入设备向终端400发送的信号(例如PWM信号1、PWM信号2)均是在终端400的屏幕和信息输入设备笔尖之间传输的信号,需要终端400的屏幕或信息输入设备笔尖来检测或者发送。It can be seen from the above that when the information input device writes on the terminal 400, the DSSS signal sent by the terminal 400 to the information input device and the signals (eg PWM signal 1 and PWM signal 2) sent by the information input device to the terminal 400 are all on the terminal 400. The signal transmitted between the screen of the terminal 400 and the pen tip of the information input device needs to be detected or sent by the screen of the terminal 400 or the pen tip of the information input device.
下面介绍终端400的屏幕以及信息输入设备笔尖检测、发送信号的机制。The following introduces the screen of the terminal 400 and the mechanism of the pen tip of the information input device for detecting and sending signals.
在一些实施例中,信息输入设备可以持续性发射PWM信号,还可以持续性地检测终端400发射的DSSS信号。In some embodiments, the information input device can continuously transmit the PWM signal, and can also continuously detect the DSSS signal transmitted by the terminal 400 .
在另一些实施例中,信息输入设备可以周期性检测和发射信号,并且可以在时序上分开进行发射和检测。即,信息输入设备在同一周期的不同时间段分别进行信号发射和信号检测。这样可以避免信号间的干扰,节省信息输入设备的电能。In other embodiments, the information input device may detect and transmit the signal periodically, and the transmission and detection may be separated in timing. That is, the information input device performs signal transmission and signal detection respectively in different time periods of the same cycle. In this way, interference between signals can be avoided, and the power of the information input device can be saved.
在一些实施例中,终端400可以持续性地发射DSSS信号,还可以持续性地检测信息输入设备发射的PWM信号。In some embodiments, the terminal 400 can continuously transmit the DSSS signal, and can also continuously detect the PWM signal transmitted by the information input device.
在另一些实施例中,终端400可以周期性检测和发射信号,并且可以在时序上分开进行发射和检测。这样可以避免信号间的干扰,节省终端400的电能。信息输入设备在一个周期内发射2路PWM信号(即PWM信号1和PWM信号2)时,这2路PWM信号在时序上可以有重合的部分,也可以在时序上不重合,本申请实施例对此不作限制。In other embodiments, terminal 400 may periodically detect and transmit signals, and may perform transmission and detection separately in timing. In this way, interference between signals can be avoided, and power of the terminal 400 can be saved. When the information input device transmits two PWM signals (ie, PWM signal 1 and PWM signal 2) in one cycle, the two PWM signals may have overlapping parts in time sequence, or may not overlap in time sequence, the embodiment of this application There is no restriction on this.
参考图5,图5示例性示出了一种终端400和信息输入设备的工作时间示意图。在图5所示的示例中,信息输入设备发射2路PWM信号,即PWM信号1和PWM信号2。Referring to FIG. 5, FIG. 5 exemplarily shows a working time diagram of a terminal 400 and an information input device. In the example shown in FIG. 5 , the information input device transmits two PWM signals, namely PWM signal 1 and PWM signal 2 .
在图5所示的示例中,终端400周期性检测和发射信号,并且在时序上分开进行发射和检测。如图5所示,终端400的屏幕检测和发射信号的一个工作周期为T。在一个工作周期T内,可以包括1个信号发射时间段和多个信号检测时间段。例如,在时长16800us的工作周期T内,信号发射时间段可以为:120us~320us。多个信号检测时间段可以包括:800us~2800us、4300us~5600us、7200us~8400us、9200us~11200us、12700us~14000us、15600us~16800us。In the example shown in FIG. 5, terminal 400 detects and transmits signals periodically, and transmits and detects separately in timing. As shown in FIG. 5 , one duty cycle of the screen detection and signal transmission of the terminal 400 is T. In one working cycle T, one signal transmission time period and multiple signal detection time periods may be included. For example, in the working cycle T with a duration of 16800us, the signal transmission time period may be: 120us˜320us. The multiple signal detection time periods may include: 800us-2800us, 4300us-5600us, 7200us-8400us, 9200us-11200us, 12700us-14000us, 15600us-16800us.
终端400可以通过屏幕在发射时间段发射信号(例如DSSS信号),在信号检测时间段检测信息输入设备发射的2路PWM信号。The terminal 400 can transmit a signal (for example, a DSSS signal) through the screen during the transmission period, and detect the 2-channel PWM signal transmitted by the information input device during the signal detection period.
在一些实施例中,终端400的屏幕还可以在工作周期T内检测手指的触摸输入。例如,终端400可以在时长16800us的工作周期T内,在以下时间段检测手指的触摸输入:2800us~4300us、5600us~7200us、11200us~12700us、14000us~15600us。终端400检测手指的触摸输入的原理和检测信息输入设备发射的信号的原理不同,可参考现有技术的实现方式以及前文相关描述,在此不赘述。In some embodiments, the screen of the terminal 400 may also detect the touch input of the finger within the duty cycle T. For example, the terminal 400 can detect the touch input of the finger in the following time periods within the working cycle T of 16800us: 2800us-4300us, 5600us-7200us, 11200us-12700us, 14000us-15600us. The principle of detecting the touch input of the finger by the terminal 400 is different from the principle of detecting the signal emitted by the information input device. Reference may be made to the implementation manner of the prior art and the foregoing related descriptions, which will not be repeated here.
在图5所示的示例中,信息输入设备周期性检测和发射信号,并且在时序上分开进行发射和检测,且信息输入设备发射的PWM信号2在时序上被PWM信号1覆盖。如图5所示,和终端400相同,信息输入设备检测和发射信号的一个工作周期也可以为T。在一个工作周期T内,可以包括1个信号检测时间段、多个第一发射时间段、多个第二发射时间段。例如,在时长16800us的工作周期T内,信号检测时间段可以为:120us~320us。多个第一发射时间段可以包括:800us~2800us、4300us~5600us、7200us~8400us、9200us~11200us、12700us~14000us、15600us~16800us。多个第二发射时间段可以包括:1600us~2800us、4400us~5600us、7200us~8400us、1000us~11200us、12800us~14000us、15600us~16800us。In the example shown in FIG. 5 , the information input device periodically detects and transmits signals, and the transmission and detection are separated in timing, and the PWM signal 2 transmitted by the information input device is covered by the PWM signal 1 in timing. As shown in FIG. 5 , like the terminal 400 , one duty cycle of the information input device for detecting and transmitting signals may also be T. In one working cycle T, it may include one signal detection time period, multiple first transmission time periods, and multiple second transmission time periods. For example, in the working cycle T with a duration of 16800us, the signal detection time period may be: 120us˜320us. The multiple first transmission time periods may include: 800us-2800us, 4300us-5600us, 7200us-8400us, 9200us-11200us, 12700us-14000us, 15600us-16800us. The multiple second transmission time periods may include: 1600us-2800us, 4400us-5600us, 7200us-8400us, 1000us-11200us, 12800us-14000us, 15600us-16800us.
信息输入设备可以在信号检测时间段通过信号检测电路206检测终端400发射的信号(例如DSSS信号),在第一发射时间段通过信号发射电路205发射PWM信号1,在第二 发射时间段通过信号发射电路205发射PWM信号2。The information input device can detect the signal (eg DSSS signal) transmitted by the terminal 400 through the signal detection circuit 206 in the signal detection period, transmit the PWM signal 1 through the signal transmission circuit 205 in the first transmission period, and pass the signal in the second transmission period The transmit circuit 205 transmits the PWM signal 2 .
在图5所示的示例中,信息输入设备的信号检测时间段覆盖终端400的发射时间段;终端400的信号检测时间段和信息输入设备的第一发射时间段相同,并覆盖了信息输入设备的第二发射时间段。这样可以使得信息输入设备和终端400配合完成上行信号(例如DSSS信号)和下行信号(例如PWM信号)的传输,并且最大程度的节省双方的电量。In the example shown in FIG. 5 , the signal detection time period of the information input device covers the transmission time period of the terminal 400; the signal detection time period of the terminal 400 is the same as the first transmission time period of the information input device, and covers the information input device the second launch period. In this way, the information input device and the terminal 400 can cooperate to complete the transmission of the uplink signal (eg DSSS signal) and the downlink signal (eg PWM signal), and save the power of both parties to the greatest extent.
上述图5示例仅仅用于解释本申请,不应构成限定。在其他一些实施例中,信息输入设备可以仅发送1路PWM信号(即PWM信号1),即信息输入设备的工作周期内不包含第二发射时间段。在其他一些实施例中,终端400、信息输入设备还可以采用另外的周期以及时间段来发射或检测信号。The above example of FIG. 5 is only used to explain the present application, and should not be construed as a limitation. In some other embodiments, the information input device may only transmit one PWM signal (ie, PWM signal 1), that is, the working cycle of the information input device does not include the second transmission time period. In some other embodiments, the terminal 400 and the information input device may also use other periods and time periods to transmit or detect signals.
基于上述图1所示的通信系统100、图2A及图2B所示的终端400、图3所示的信息输入设备、上述描述的3个信息通道的工作原理,以及,终端400和信息输入设备分别检测、发送信号的机制,下面详细描述本申请实施例提供的信息输入设备在终端上操控的方法。Based on the communication system 100 shown in FIG. 1 , the terminal 400 shown in FIGS. 2A and 2B , the information input device shown in FIG. 3 , the working principles of the three information channels described above, and the terminal 400 and the information input device The mechanisms for detecting and sending signals respectively, the following describes in detail the method for controlling the information input device on the terminal provided by the embodiments of the present application.
本申请实施例提供的方法可用于多笔同写场景,下面以在多笔同写场景中实施本申请实施例提供的方法为例进行描述。The method provided by the embodiment of the present application can be used in a scenario of simultaneous writing of multiple strokes, and the following description is made by taking the implementation of the method provided by the embodiment of the present application in a scenario of simultaneous writing of multiple strokes as an example.
参考图6,图6为本申请实施例提供的信息输入设备在终端上操控的方法的流程示意图。图6示例性示出了终端400和信息输入设备100、信息输入设备200之间的交互流程,具体实现中,终端400还可以和更多的信息输入设备例如还可以和信息输入设备300交互,本申请实施例对此不作限制。Referring to FIG. 6 , FIG. 6 is a schematic flowchart of a method for operating an information input device on a terminal according to an embodiment of the present application. FIG. 6 exemplarily shows the interaction flow between the terminal 400 and the information input device 100 and the information input device 200. In a specific implementation, the terminal 400 can also interact with more information input devices, for example, the information input device 300. This embodiment of the present application does not limit this.
如图6所示,该方法可包括如下步骤:As shown in Figure 6, the method may include the following steps:
S110,终端400和多个信息输入设备分别建立无线连接。S110, the terminal 400 establishes wireless connections with multiple information input devices respectively.
在本申请实施例中,终端400可以和多个信息输入设备(例如信息输入设备100、信息输入设备200和信息输入设备300)分别建立无线连接,并同时和该多个信息输入设备保持无线连接。该无线连接可包括但不限于:基于BT,WLAN(如Wi-Fi),GNSS,FM,NFC,IR、RFID或ZigBee等无线通信技术建立的连接。其中,BT可以为经典蓝牙,也可以为BLE。终端400和信息输入设备建立无线连接的具体步骤可参考现有近距离无线通信协议,本申请实施例对此不做详细描述。In this embodiment of the present application, the terminal 400 may establish wireless connections with multiple information input devices (for example, the information input device 100 , the information input device 200 , and the information input device 300 ) respectively, and maintain wireless connections with the multiple information input devices at the same time. . The wireless connection may include, but is not limited to, a connection established based on wireless communication technologies such as BT, WLAN (eg, Wi-Fi), GNSS, FM, NFC, IR, RFID, or ZigBee. Among them, BT can be classic Bluetooth or BLE. For the specific steps of establishing a wireless connection between the terminal 400 and the information input device, reference may be made to an existing short-range wireless communication protocol, which is not described in detail in this embodiment of the present application.
在一个具体的例子中,终端400可以基于BLE协议栈,和多个信息输入设备分别建立BLE连接。In a specific example, the terminal 400 may establish a BLE connection with a plurality of information input devices respectively based on the BLE protocol stack.
具体的,终端400可以使用无线通信技术(例如BLE)搜索附近的信息输入设备,并在搜索到附近的信息输入设备之后,响应于接收到的用户操作向信息输入设备发送连接请求。在信息输入设备接受该请求后,终端400可以和该信息输入设备建立无线连接。Specifically, the terminal 400 may use a wireless communication technology (eg, BLE) to search for a nearby information input device, and after searching for a nearby information input device, send a connection request to the information input device in response to a received user operation. After the information input device accepts the request, the terminal 400 may establish a wireless connection with the information input device.
示例性地,参考图7A及图7B,其分别示出了一种终端400连接信息输入设备的方式。Exemplarily, refer to FIG. 7A and FIG. 7B , which respectively illustrate a manner in which the terminal 400 is connected to the information input device.
图7A示出了终端400上显示的用户界面71。用户界面71可以由终端400上安装的“设置”应用提供。“设置”是一款用于管理终端400上的各项功能的应用程序。如图7A所示,用户界面71中包括蓝牙的开关控件701,图中蓝牙的开关控件的状态指示当前终端400的蓝牙功能已开启。FIG. 7A shows the user interface 71 displayed on the terminal 400 . The user interface 71 may be provided by a “settings” application installed on the terminal 400 . 'Settings' is an application for managing various functions on the terminal 400 . As shown in FIG. 7A , the user interface 71 includes a Bluetooth switch control 701 , and the state of the Bluetooth switch control in the figure indicates that the Bluetooth function of the terminal 400 is currently enabled.
终端400可以使用蓝牙(例如BLE)搜索附近的其他蓝牙设备(例如信息输入设备),并将搜索到的其他蓝牙设备的名称显示于区域702中。区域702中显示的各个蓝牙设备的名称可以监听用户操作(例如手指输入的点击操作、触摸操作),终端400可以响应于在蓝牙设备的名称上检测到的用户操作,向该名称对应的蓝牙设备发送连接请求,并在该蓝牙设备接受该请求后,和该蓝牙设备建立无线连接。示例性地,用户可以点击区域702中信息输入设备100的名称702a,触发终端400向信息输入设备100发送蓝牙连接请求。蓝牙设备的名称可以为媒体访问控制(media access control,MAC)地址、用户自定义的名称、设备型号等等,本申请实施例对此不作限制。The terminal 400 may use Bluetooth (eg, BLE) to search for other nearby Bluetooth devices (eg, information input devices), and display the names of the searched other Bluetooth devices in the area 702 . The names of the respective Bluetooth devices displayed in the area 702 can monitor user operations (such as finger-input click operations, touch operations), and the terminal 400 can respond to the user operations detected on the names of the Bluetooth devices to the Bluetooth device corresponding to the name. A connection request is sent, and after the Bluetooth device accepts the request, a wireless connection is established with the Bluetooth device. Exemplarily, the user may click on the name 702 a of the information input device 100 in the area 702 to trigger the terminal 400 to send a Bluetooth connection request to the information input device 100 . The name of the Bluetooth device may be a media access control (media access control, MAC) address, a user-defined name, a device model, etc., which is not limited in this embodiment of the present application.
在图7A所示的示例中,终端400和信息输入设备100成功建立蓝牙连接后,用户还可以通过类似的用户操作触发终端400和附近的其他信息输入设备建立蓝牙连接。终端400和其他信息输入设备建立蓝牙连接时,不会断开之前已成功建立的蓝牙连接,即终端400可以同时和多个信息输入设备保持蓝牙连接。In the example shown in FIG. 7A , after the terminal 400 and the information input device 100 successfully establish a Bluetooth connection, the user can also trigger the terminal 400 to establish a Bluetooth connection with other nearby information input devices through similar user operations. When the terminal 400 establishes a Bluetooth connection with other information input devices, the previously established Bluetooth connection will not be disconnected, that is, the terminal 400 can maintain a Bluetooth connection with multiple information input devices at the same time.
图7B示出了终端400上显示的用户界面72。终端400的侧边例如音量键所在的边框可设置有磁吸装置(例如磁条),用于吸附信息输入设备。用户界面72可以是终端400响应于信息输入设备吸附于终端400侧边的磁吸装置处的操作,使用无线通信技术(例如BLE)搜索附近的信息输入设备,并在搜索到信息输入设备后在显示屏上显示界面。FIG. 7B shows the user interface 72 displayed on the terminal 400 . The side of the terminal 400 , such as the frame where the volume keys are located, may be provided with a magnetic attraction device (eg, a magnetic strip) for attracting the information input device. The user interface 72 may be that the terminal 400 responds to the operation that the information input device is adsorbed at the magnetic attraction device on the side of the terminal 400, uses a wireless communication technology (such as BLE) to search for nearby information input devices, and after the information input device is found The interface appears on the display.
如图7B所示,用户界面72中包括窗口703,窗口703可用于指示终端400搜索到的信息输入设备。窗口703可包括:图标703a、设备名称703b、控件703c和控件703d。图标703a可用于指示终端400搜索到的设备类型,例如图标703a可以为信息输入设备的图片。设备名称703a可以MAC地址、用户自定义的名称、设备型号等等。控件703c可用于监听用户操作,终端400可响应于该用户操作停止显示窗口703。控件703d可用于监听用户操作,终端400可响应于该用户操作向设备名称703a对应的信息输入设备发送连接请求,并在该信息输入设备接受该请求后,和该信息输入设备建立无线连接。示例性地,窗口703表明终端400搜索到了信息输入设备100,用户可以点击控件703d,触发终端400向信息输入设备100发送连接请求。As shown in FIG. 7B , the user interface 72 includes a window 703 , and the window 703 can be used to indicate the information input device searched by the terminal 400 . The window 703 may include an icon 703a, a device name 703b, a control 703c, and a control 703d. The icon 703a can be used to indicate the device type searched by the terminal 400, for example, the icon 703a can be a picture of the information input device. The device name 703a may be a MAC address, a user-defined name, a device model, and the like. The control 703c can be used to monitor a user operation, and the terminal 400 can stop displaying the window 703 in response to the user operation. The control 703d can be used to monitor the user operation, and the terminal 400 can send a connection request to the information input device corresponding to the device name 703a in response to the user operation, and after the information input device accepts the request, establish a wireless connection with the information input device. Exemplarily, the window 703 indicates that the terminal 400 has searched for the information input device 100 , and the user can click on the control 703d to trigger the terminal 400 to send a connection request to the information input device 100 .
在图7B所示的示例中,终端400和信息输入设备100成功建立连接后,用户还可以通过类似的用户操作触发终端400和附近的其他信息输入设备建立无线连接。在一些实施例中,终端400若同时搜索到多个信息输入设备,则可以在用户界面72中显示分别对应该多个信息输入设备的多个窗口703;终端400若先后搜索到多个信息输入设备,则可以先后在用户界面72中显示对应信息输入设备的窗口703。这里,终端400和其他信息输入设备建立无线连接时,不会断开之前已成功建立的无线连接,即终端400可以同时和多个信息输入设备保持无线连接。In the example shown in FIG. 7B , after the terminal 400 and the information input device 100 successfully establish a connection, the user can also trigger the terminal 400 to establish a wireless connection with other nearby information input devices through similar user operations. In some embodiments, if the terminal 400 searches for multiple information input devices at the same time, it may display multiple windows 703 corresponding to the multiple information input devices in the user interface 72; if the terminal 400 searches for multiple information input devices successively device, the window 703 corresponding to the information input device may be displayed in the user interface 72 successively. Here, when the terminal 400 establishes a wireless connection with other information input devices, the previously successfully established wireless connection will not be disconnected, that is, the terminal 400 can maintain a wireless connection with multiple information input devices at the same time.
在终端400和信息输入设备建立无线通信连接的过程中,窗口703还可以用于指示当前正在建立无线通信连接,例如窗口703可以输出文本“正在连接中”。在终端400和信息输入设备成功建立无线通信连接后,窗口703还可以用于指示当前已成功建立无线通信连接,例如窗口703可以输出文本“已连接信息输入设备100”。During the process of establishing a wireless communication connection between the terminal 400 and the information input device, the window 703 can also be used to indicate that the wireless communication connection is currently being established, for example, the window 703 can output the text "connecting". After the terminal 400 and the information input device successfully establish a wireless communication connection, the window 703 can also be used to indicate that the wireless communication connection has been successfully established. For example, the window 703 can output the text "information input device 100 is connected".
S120,终端400基于和信息输入设备之间的无线连接,为多个信息输入设备分别分配 不同的频率。S120, the terminal 400 allocates different frequencies to the multiple information input devices respectively based on the wireless connection with the information input devices.
在一些实施例中,终端400为各个信息输入设备分配的频率例如可以为100KHz~400KHz之间的频率。In some embodiments, the frequency allocated by the terminal 400 to each information input device may be, for example, a frequency between 100 KHz and 400 KHz.
在一些实施例中,终端400为不同的信息输入设备分配不同的频率,且为同一个信息输入设备分配1个频率。该频率可用于信息输入设备利用第二信息通道中的第一子通道向终端400发送PWM信号1。该PWM信号1可用于终端400获知信息输入设备的报点信息。通过为不同的信息输入设备分配不同的频率,终端400可以在后续信息输入设备的工作过程中区分不同信息输入设备发送的PWM信号1。示例性地,终端400可以为信息输入设备100分配f1,为信息输入设备200分配f2,为信息输入设备300分配f3。f1、f2和f3各不相同。In some embodiments, the terminal 400 allocates different frequencies to different information input devices, and allocates one frequency to the same information input device. This frequency can be used by the information input device to send the PWM signal 1 to the terminal 400 using the first sub-channel in the second information channel. The PWM signal 1 can be used for the terminal 400 to acquire the point information of the information input device. By assigning different frequencies to different information input devices, the terminal 400 can distinguish the PWM signals 1 sent by different information input devices in the subsequent working process of the information input devices. Exemplarily, the terminal 400 may assign f1 to the information input device 100 , f2 to the information input device 200 , and f3 to the information input device 300 . f1, f2 and f3 are different.
在另一些实施例中,终端400为不同的信息输入设备分配不同的频率,且终端400可以为同一个信息输入设备分配两个频率。其中一个频率用于信息输入设备向终端400发送PWM信号1,另一个频率用于信息输入设备向终端400发送PWM信号2。终端400为一个信息输入设备分配的两个频率,和为另一个信息输入设备分配的两个频率,均不相同。通过为不同的信息输入设备分配不同的频率,终端400可以在后续信息输入设备的工作过程中区分不同信息输入设备发送的PWM信号1和PWM信号2。In other embodiments, the terminal 400 allocates different frequencies to different information input devices, and the terminal 400 may allocate two frequencies to the same information input device. One of the frequencies is used for the information input device to send the PWM signal 1 to the terminal 400 , and the other frequency is used for the information input device to send the PWM signal 2 to the terminal 400 . The two frequencies allocated by the terminal 400 to one information input device are different from the two frequencies allocated to another information input device. By assigning different frequencies to different information input devices, the terminal 400 can distinguish the PWM signal 1 and the PWM signal 2 sent by different information input devices in the subsequent working process of the information input device.
终端400为一个信息输入设备分配两个频率时,若终端400的信号检测时间段和该信息输入设备的第一发射时间段重叠的部分,和,终端400的信号检测时间段和该信息输入设备的第二发射时间段重叠的部分,在时序上有重叠,例如图5所示的实例中,终端400可以为该信息输入设备分配不同的两个频率。若上述提到的两部分在时序上无重叠,则终端400可以为该信息输入设备分配相同的两个频率。这样,针对同一个信息输入设备,终端400可以根据时序或者频率的不同,区分该信息输入设备发射的PWM信号1和PWM信号2。When the terminal 400 allocates two frequencies for an information input device, if the signal detection time period of the terminal 400 overlaps with the first transmission time period of the information input device, and, the signal detection time period of the terminal 400 and the information input device overlap. The overlapped part of the second transmission time period of , overlaps in timing. For example, in the example shown in FIG. 5 , the terminal 400 may allocate two different frequencies to the information input device. If the above-mentioned two parts do not overlap in timing, the terminal 400 may allocate the same two frequencies to the information input device. In this way, for the same information input device, the terminal 400 can distinguish the PWM signal 1 and the PWM signal 2 transmitted by the information input device according to the difference in time sequence or frequency.
示例性地,如图6所示,终端400可以为信息输入设备100分配两个频率f1和f4,为信息输入设备100分配两个频率f2和f5,信息输入设备100分配两个频率f3和f6。在一个具体的实施例中,f1-f6可以分别为:100KHz、101.91KHz、110.34KHz,112.68KHz、120.30KHz,122.61KHz。Exemplarily, as shown in FIG. 6 , the terminal 400 may allocate two frequencies f1 and f4 to the information input device 100, two frequencies f2 and f5 to the information input device 100, and two frequencies f3 and f6 to the information input device 100. . In a specific embodiment, f1-f6 may be respectively: 100KHz, 101.91KHz, 110.34KHz, 112.68KHz, 120.30KHz, and 122.61KHz.
具体实现中,终端400可以基于和信息输入设备之间的无线连接,向信息输入设备发送无线消息,该消息中携带有终端400分配给该信息输入设备的频率的指示信息。信息输入设备接收到该无线消息后,可以解析该消息,并获知终端400为其分配的频率。In a specific implementation, the terminal 400 may send a wireless message to the information input device based on the wireless connection with the information input device, and the message carries the indication information of the frequency allocated to the information input device by the terminal 400 . After receiving the wireless message, the information input device can parse the message and learn the frequency allocated to it by the terminal 400 .
下面以终端400和信息输入设备之间建立有BLE连接为例,说明终端400向信息输入设备发送的BLE消息的格式。该BLE消息可以为BLE数据包中的ATT指令包。The following describes the format of the BLE message sent by the terminal 400 to the information input device by taking the BLE connection established between the terminal 400 and the information input device as an example. The BLE message may be an ATT command packet in a BLE data packet.
参考图8,图8示例性示出了终端400向信息输入设备发送的ATT指令包中的协议数据单元(protocol data unit,PDU)的格式。可理解的,该ATT指令包中的其余部分例如前导(preamble)、接入地址(access address)以及循环冗余校验码(cyclic redundancy check,CRC)可参考现有蓝牙协议所规定的BLE数据包中的描述,这里不再赘述。Referring to FIG. 8 , FIG. 8 exemplarily shows the format of a protocol data unit (protocol data unit, PDU) in an ATT command packet sent by the terminal 400 to the information input device. Understandably, the rest of the ATT command packet, such as the preamble, the access address, and the cyclic redundancy check (CRC), can refer to the BLE data specified by the existing Bluetooth protocol. The description in the package will not be repeated here.
如图8所示,ATT指令包的PDU可包括:Opcode、属性参数(attribute parameters)、授权签名(authorization signature)。其中,属性参数可包括:属性索引(attribute handle)、 属性类型(attribute type)、属性的详细信息(attribute value)和属性的读写权限(attribute permissions)。属性的详细信息可包括以下3部分:特性(characteristic property)、特征值索引(characteristic value handle)、特征通用唯一识别码(characteristic universally unique identifier(UUID))。特性可占用1个八位组(octet),特征值索引可占用2个八位组,UUID可占用2个或16个八位组。其中,特征值索引(characteristic value handle)可用于携带本申请实施例中的信息输入设备ID和终端400分配给该信息输入设备的频率的指示信息。频率的指示信息例如可包括频率值、频率值的索引或晶振分频倍值信息等,本申请实施例对此不作限制。As shown in FIG. 8 , the PDU of the ATT command packet may include: Opcode, attribute parameters (attribute parameters), and authorization signature (authorization signature). The attribute parameters may include: attribute handle, attribute type, attribute detailed information (attribute value), and attribute read and write permissions (attribute permissions). The detailed information of the attribute can include the following three parts: characteristic (characteristic property), characteristic value index (characteristic value handle), characteristic universally unique identifier (UUID)). A characteristic may occupy 1 octet, an eigenvalue index may occupy 2 octets, and a UUID may occupy 2 or 16 octets. The characteristic value handle may be used to carry the ID of the information input device in the embodiment of the present application and the indication information of the frequency allocated to the information input device by the terminal 400. The indication information of the frequency may include, for example, a frequency value, an index of the frequency value, or information on a frequency division and multiplication value of a crystal oscillator, which is not limited in this embodiment of the present application.
信息输入设备在接收到终端400发送的ATT指令包后,可以解析该ATT指令包,从该ATT指令包中的特征值索引中获取频率的指示信息,并根据该指示信息获知终端400分配给自身的频率。After receiving the ATT command packet sent by the terminal 400, the information input device can parse the ATT command packet, obtain the indication information of the frequency from the characteristic value index in the ATT command packet, and learn that the terminal 400 allocates the frequency to itself according to the indication information. Frequency of.
在本申请实施例中,终端400为各个信息输入设备分配频率后,还可以存储各个信息输入设备和分配给各个信息输入设备的频率之间的对应关系。示例性地,参考表1,表1示例性示出了终端400存储的一个对应关系。In this embodiment of the present application, after the terminal 400 allocates frequencies to each information input device, the terminal 400 may also store the correspondence between each information input device and the frequency allocated to each information input device. Exemplarily, referring to Table 1, Table 1 exemplarily shows a corresponding relationship stored by the terminal 400 .
信息输入设备IDInformation input device ID 频率frequency
信息输入设备100 Information input device 100 f1、f4f1, f4
信息输入设备200 Information input device 200 f2、f5f2, f5
信息输入设备300 Information input device 300 f3、f6f3, f6
表1Table 1
S130,终端400进入书写场景。S130, the terminal 400 enters a writing scene.
在本申请实施例中,书写场景是指一个或多个用户使用多个信息输入设备在同一个终端上书写的场景。具体的,书写场景可包括但不限于:一个或多个信息输入设备在同一个终端上绘画、办公、设计图案、输入文本或数据等等。在本申请实施例中,信息输入设备在终端上书写的内容可以是文字、线条、图画或任意图案,这里不作限制。In this embodiment of the present application, the writing scene refers to a scene in which one or more users use multiple information input devices to write on the same terminal. Specifically, the writing scene may include, but is not limited to, drawing, working, designing patterns, inputting text or data, etc. on the same terminal by one or more information input devices. In this embodiment of the present application, the content written by the information input device on the terminal may be text, lines, drawings, or any pattern, which is not limited here.
在一些实施例中,终端400进入书写场景具体可以是指:终端400启动或运行提供绘画、办公、图案设计、文本或数据输入等功能的应用程序或用户界面。其中,文本或数据输入可包括:签字、签名等等。应用程序可例如“Pendo”、“备忘录”、“画图”等应用程序。具体的,终端400可以响应于在主屏幕上的该应用程序的图标上检测到的用户操作,启动该应用程序。该用户操作例如可以是用户使用手指或者信息输入设备在图标上的点击操作、长按操作、触摸操作等等。在本申请实施例中,可以将终端400进入书写场景时所启动的应用程序称为第一应用程序。在一些实施例中,终端400进入书写场景后,可以通过和各个信息输入设备之间的无线连接通知信息输入设备。In some embodiments, entering the writing scene by the terminal 400 may specifically mean that the terminal 400 starts or runs an application program or a user interface that provides functions such as drawing, office work, pattern design, text or data input, and the like. Among them, the text or data input may include: signature, signature, and the like. The application may be, for example, "Pendo", "Memo", "Paint", and the like. Specifically, the terminal 400 may start the application in response to a user operation detected on the icon of the application on the home screen. The user operation may be, for example, a click operation, a long-press operation, a touch operation, etc. on an icon by a user using a finger or an information input device. In this embodiment of the present application, the application program that is started when the terminal 400 enters the writing scene may be referred to as the first application program. In some embodiments, after the terminal 400 enters the writing scene, it can notify the information input device through wireless connection with each information input device.
S140,信息输入设备使用终端400为其分配的频率发射PWM信号。S140, the information input device transmits a PWM signal using the frequency allocated to it by the terminal 400.
具体的,终端400为信息输入设备分配了1个频率时,信息输入设备使用该频率并通过第一子通道发射PWM信号1。终端400为信息输入设备分配了2个频率时,信息输入设备使用其中的一个频率通过第一子通道发射PWM信号1,使用另一个频率通过第二子通道 发射PWM信号2。Specifically, when the terminal 400 allocates one frequency to the information input device, the information input device uses the frequency and transmits the PWM signal 1 through the first sub-channel. When the terminal 400 allocates two frequencies to the information input device, the information input device uses one of the frequencies to transmit PWM signal 1 through the first sub-channel, and uses the other frequency to transmit PWM signal 2 through the second sub-channel.
信息输入设备可以在获知终端400为其分配的频率后,或者获知终端400进入书写场景后,开始发射PWM信号,本申请实施例对此不作限制。The information input device may start to transmit a PWM signal after learning the frequency allocated to it by the terminal 400 or after learning that the terminal 400 has entered a writing scene, which is not limited in this embodiment of the present application.
在一些实施例中,信息输入设备可以使用终端分配的频率持续性发送信号。In some embodiments, the information input device may continuously transmit the signal using the frequency assigned by the terminal.
在另一些实施例中,信息输入设备可以周期性地发送PWM信号。这样可以减少信息输入设备的功耗。In other embodiments, the information input device may send the PWM signal periodically. This can reduce the power consumption of the information input device.
具体的,参考图5以及相关描述,信息输入设备可以在每个工作周期T的第一发射时间段使用终端400分配的一个频率发射PWM信号1。在一些实施例中,信息输入设备还可以在第二发射时间段使用终端400分配的另一个频率发射PWM信号2。这里,信息输入设备可以存储有类似图5所示的信息输入设备的工作时间表,并可以在检测到的终端400发射的DSSS信号后,根据如工作时间表中信号检测时间段和第一发射时间段和第二发射时间段之间的关系,确定第一发射时间段和第二发射时间段,并在该时间段内发射对应的信号。在一些实施例中,终端400可以存储有类似图5所示的终端的工作时间表,并周期性地在每个工作周期T内的信号发射时间段发射DSSS信号。当信息输入设备的笔尖接近终端400的屏幕时,该信息输入设备可以检测到该信号。也即是说,当信息输入设备有书写意图时,信息输入设备可以检测到该信号,并开始周期性地发射信号。Specifically, with reference to FIG. 5 and related descriptions, the information input device may transmit the PWM signal 1 using a frequency allocated by the terminal 400 in the first transmission period of each working cycle T. In some embodiments, the information input device may also transmit the PWM signal 2 using another frequency allocated by the terminal 400 during the second transmission period. Here, the information input device may store a work schedule similar to that of the information input device shown in FIG. 5 , and after detecting the DSSS signal transmitted by the terminal 400, according to the signal detection time period and the first transmission in the work schedule The relationship between the time period and the second transmission time period determines the first transmission time period and the second transmission time period, and transmits corresponding signals within the time period. In some embodiments, the terminal 400 may store a work schedule similar to that of the terminal shown in FIG. 5 , and periodically transmit the DSSS signal during the signal transmission time period within each work cycle T. When the pen tip of the information input device approaches the screen of the terminal 400, the information input device can detect the signal. That is, when the information input device has a writing intention, the information input device can detect the signal and start to transmit the signal periodically.
在上段描述的实施例中,不同的信息输入设备的工作时间表可以相同,也可以不同。每支信息输入设备的工作时间可以是出厂时默认设置的,也可以是由终端100和信息输入设备共同协商的。In the embodiment described in the previous paragraph, the work schedules of different information input devices may be the same or different. The working time of each information input device may be set by default at the factory, or may be negotiated jointly by the terminal 100 and the information input device.
例如,信息输入设备100的工作时间段可以如图5所示;信息输入设备200的工作时间段可以为:工作周期T、信号检测时间段、第二发射时间段同终端200,第一发射时间段可包括:900us~2800us、4400us~5600us、7300us~8400us、9300us~11200us、12800us~14000us、15700us~16800us;信息输入设备300的工作时间段可以为:工作周期T、信号检测时间段、第一发射时间段同终端200,第二发射时间段可包括:1700us~2800us、4500us~5600us、7300us~8400us、1100us~11200us、12900us~14000us、15700us~16800us。For example, the working time period of the information input device 100 may be as shown in FIG. 5 ; the working time period of the information input device 200 may be: the working period T, the signal detection time period, the second transmission time period are the same as the terminal 200, the first transmission time period The segment can include: 900us~2800us, 4400us~5600us, 7300us~8400us, 9300us~11200us, 12800us~14000us, 15700us~16800us; the working time segment of the information input device 300 can be: working cycle T, signal detection time segment, first The transmission time period is the same as that of the terminal 200, and the second transmission time period may include: 1700us-2800us, 4500us-5600us, 7300us-8400us, 1100us-11200us, 12900us-14000us, 15700us-16800us.
又例如,信息输入设备100、信息输入设备200和信息输入设备300的工作时间段均可以如图5所示。示例性地,参考图9,图9示出了信息输入设备100-300的工作时间段相同的情况下,各个信息输入设备的工作时间、工作频率以及终端400的工作时间。For another example, the working time periods of the information input device 100 , the information input device 200 and the information input device 300 may all be as shown in FIG. 5 . For example, referring to FIG. 9 , FIG. 9 shows the working time, working frequency and working time of the terminal 400 of each information input device under the same working time period of the information input devices 100 - 300 .
在本申请实施例中,信息输入设备发射的PWM信号1和PWM信号2均可以是MCU203驱动笔尖的信号发射电路205生成的PWM信号。其中,PWM信号的发射频率是指信息输入设备生成的该PWM信号中每秒钟从高电平到低电平再回到高电平的次数,PWM信号的占空比是指在一个信号周期内,脉冲占用的时间与信号周期总时间的比值。当PWM信号1和PWM信号2为PWM信号时,PWM信号1和PWM信号2的发射频率可参考前文。本申请实施例对PWM信号1和PWM信号2的占空比不作限制。不同信息输入设备发送的PWM信号1和PWM信号2的占空比可以相同,也可以不同。同一信息输入设备发送的PWM信号1和PWM信号2的占空比可以相同,也可以不同。In the embodiment of the present application, both the PWM signal 1 and the PWM signal 2 transmitted by the information input device may be PWM signals generated by the signal transmitting circuit 205 of the MCU 203 driving the pen tip. Among them, the transmission frequency of the PWM signal refers to the number of times per second in the PWM signal generated by the information input device from high level to low level and then back to high level, and the duty cycle of the PWM signal refers to the number of times in one signal cycle. , the ratio of the time occupied by the pulse to the total time of the signal period. When the PWM signal 1 and the PWM signal 2 are PWM signals, the transmission frequencies of the PWM signal 1 and the PWM signal 2 may refer to the foregoing. The embodiments of the present application do not limit the duty ratios of the PWM signal 1 and the PWM signal 2 . The duty ratios of the PWM signal 1 and the PWM signal 2 sent by different information input devices may be the same or different. The duty ratios of the PWM signal 1 and the PWM signal 2 sent by the same information input device may be the same or different.
参考图10,图10示例性示出了一个信息输入设备使用分配的两个频率分别发射的PWM信号1和PWM信号2,该信息输入设备例如可以为信息输入设备100、信息输入设 备200或信息输入设备300。从图10可以看出,同一个信息输入设备发射的2路PWM信号的频率不同,PWM信号2的频率高于PWM信号1的频率。图10中PWM信号1和PWM信号2的占空比相同。Referring to FIG. 10, FIG. 10 exemplarily shows a PWM signal 1 and a PWM signal 2 respectively transmitted by an information input device using the two assigned frequencies. The information input device may be, for example, the information input device 100, the information input device 200 or the information Input device 300 . It can be seen from Figure 10 that the frequencies of the two PWM signals transmitted by the same information input device are different, and the frequency of the PWM signal 2 is higher than the frequency of the PWM signal 1. In FIG. 10 , the duty cycles of PWM signal 1 and PWM signal 2 are the same.
S150,终端400检测到各个信息输入设备发送的PWM信号,并根据该PWM信号的频率确定发送该PWM信号的信息输入设备,并根据该PWM信号确定该信息输入设备的报点信息。S150, the terminal 400 detects the PWM signal sent by each information input device, determines the information input device that sends the PWM signal according to the frequency of the PWM signal, and determines the reporting point information of the information input device according to the PWM signal.
终端400可以在一个或多个位置点上先后检测到同一个信息输入设备发送的PWM信号。The terminal 400 may successively detect the PWM signal sent by the same information input device at one or more position points.
在一些实施例中,终端400可以持续性地检测各个信息输入设备发送的PWM信号。In some embodiments, the terminal 400 can continuously detect the PWM signals sent by each information input device.
在另一些实施例中,终端400可以周期性地检测PWM信号。具体的,参考图9,终端400可以在每个工作周期T的信号检测时间段检测PWM信号。这样可以减少终端400的功耗。In other embodiments, the terminal 400 may periodically detect the PWM signal. Specifically, referring to FIG. 9 , the terminal 400 may detect the PWM signal in the signal detection period of each duty cycle T. As shown in FIG. In this way, the power consumption of the terminal 400 can be reduced.
具体的,终端400可以接收到各个信息输入设备分别发送的PWM信号1。终端400可以对接收到的各个PWM信号1做时频域转换,从而确定各个PWM信号1的频率。之后,终端400可以根据分配给各个信息输入设备的频率,确定各个PWM信号1的发送方。这样,终端400解析各个PWM信号1,并将解析得到的报点信息与信息输入设备对应起来。即,终端400可以根据各个信息输入设备发送的PWM信号1分别确定各个信息输入设备的报点信息。终端400根据PWM信号1确定报点信息的具体方式可参考前文相关描述。Specifically, the terminal 400 may receive the PWM signal 1 respectively sent by each information input device. The terminal 400 may perform time-frequency domain conversion on each of the received PWM signals 1 , so as to determine the frequency of each of the PWM signals 1 . Afterwards, the terminal 400 may determine the sender of each PWM signal 1 according to the frequency allocated to each information input device. In this way, the terminal 400 analyzes each PWM signal 1, and associates the signal point information obtained by the analysis with the information input device. That is, the terminal 400 can respectively determine the reporting point information of each information input device according to the PWM signal 1 sent by each information input device. For the specific manner in which the terminal 400 determines the reporting point information according to the PWM signal 1, reference may be made to the foregoing related descriptions.
在一些实施例中,终端400还可以接收到各个信息输入设备分别发送的PWM信号2。终端400可以对接收到的各个PWM信号2做时频域转换,从而确定各个PWM信号2的频率。之后,终端400可以根据分配给各个信息输入设备的频率,确定各个PWM信号2的发送方。终端400可以根据同一个信息输入设备的PWM信号1和PWM信号2确定该信息输入设备的倾斜度。终端400根据PWM信号1和PWM信号2确定倾斜度的具体方式可参考前文相关描述。也即是说,终端400可以确定各个信息输入设备的倾斜度。In some embodiments, the terminal 400 may also receive the PWM signal 2 sent by each information input device respectively. The terminal 400 can perform time-frequency domain conversion on each of the received PWM signals 2 , so as to determine the frequency of each of the PWM signals 2 . Afterwards, the terminal 400 may determine the sender of each PWM signal 2 according to the frequency allocated to each information input device. The terminal 400 may determine the inclination of the information input device according to the PWM signal 1 and the PWM signal 2 of the same information input device. For the specific manner in which the terminal 400 determines the inclination according to the PWM signal 1 and the PWM signal 2, reference may be made to the foregoing related descriptions. That is, the terminal 400 can determine the inclination of each information input device.
在一些实施例中,终端400还可以记录接收到各个PWM信号1或PWM信号2的时间点,从而确定每个信息输入设备在各个时间点的报点信息,甚至各个时间点的倾斜度。In some embodiments, the terminal 400 may also record the time points at which each PWM signal 1 or PWM signal 2 is received, so as to determine the reporting point information of each information input device at each time point, and even the inclination of each time point.
图6所示的方法还可包括以下可选步骤S160和S170。The method shown in FIG. 6 may further include the following optional steps S160 and S170.
S160,信息输入设备检测笔尖受到的压力值,并基于和终端400之间的无线连接向终端400发送无线消息,该无线消息携带该压力值和该信息输入设备的ID。S160, the information input device detects the pressure value on the pen tip, and sends a wireless message to the terminal 400 based on the wireless connection with the terminal 400, where the wireless message carries the pressure value and the ID of the information input device.
在本申请实施例中,信息输入设备可以持续检测笔尖的压力值,也可以周期性检测,本申请实施例不做限制。In the embodiments of the present application, the information input device may continuously detect the pressure value of the pen tip, or may detect periodically, which is not limited in the embodiments of the present application.
在一些实施例中,信息输入设备发送的无线消息还携带有检测到压力值的时间点。In some embodiments, the wireless message sent by the information input device also carries the time point when the pressure value is detected.
在一个具体的实施例中,信息输入设备发送的无线消息可以为BLE数据包。该BLE数据包的格式可以基于BLE协议栈(例如人机交互(the human interface device,HID)协议)所规定的数据格式进行携带,本申请实施例不再赘述。In a specific embodiment, the wireless message sent by the information input device may be a BLE data packet. The format of the BLE data packet may be carried based on the data format specified by the BLE protocol stack (for example, the human interface device (HID) protocol), which is not repeated in this embodiment of the present application.
在一些实施例中,信息输入设备可以在检测到笔尖受到的压力值后,立即向终端400 发送无线消息。这样可以使得终端400实时获知信息输入设备的压力值,避免时延。In some embodiments, the information input device may send a wireless message to the terminal 400 immediately after detecting the pressure value on the pen tip. In this way, the terminal 400 can know the pressure value of the information input device in real time, so as to avoid time delay.
在另一些实施例中,信息输入设备可以在收到终端400进入书写场景的通知后,向终端400发送无线消息。这样信息输入设备可以仅在绘画、写字等需要压感信息的场景中向终端400发送压感信息,从而减少信息输入设备的功耗。In other embodiments, the information input device may send a wireless message to the terminal 400 after receiving the notification that the terminal 400 enters the writing scene. In this way, the information input device can send pressure-sensitive information to the terminal 400 only in scenarios such as painting and writing that require pressure-sensitive information, thereby reducing the power consumption of the information input device.
在另一些实施例中,信息输入设备可以在近距离无线通信时间窗口内将检测到的压力值发送给终端400。近距离无线通信时间窗口可以是周期性出现的。该近距离无线通信时间窗口可以是信息输入设备和终端400协商的,也可以是信息输入设备默认设置的。多个信息输入设备的近距离无线通信时间窗口可以相同,也可以不同,本申请实施例对此不作限制。通过近距离无线通信时间窗口,信息输入设备可以周期性发送检测到的压力值,可以节省功耗。近距离无线通信时间窗口可以被称为第一时间窗口。In other embodiments, the information input device may send the detected pressure value to the terminal 400 within the short-range wireless communication time window. The short-range wireless communication time window may occur periodically. The short-range wireless communication time window may be negotiated between the information input device and the terminal 400, or may be set by default by the information input device. The short-range wireless communication time windows of the multiple information input devices may be the same or different, which is not limited in this embodiment of the present application. Through the short-range wireless communication time window, the information input device can periodically send the detected pressure value, which can save power consumption. The short-range wireless communication time window may be referred to as the first time window.
S170,终端400接收到各支信息输入设备发送的携带压力值和信息输入设备ID的近距离无线消息,根据该近距离无线消息中确定信息输入设备ID对应的信息输入设备的压力值。S170, the terminal 400 receives the short-range wireless message carrying the pressure value and the information input device ID sent by each information input device, and determines the pressure value of the information input device corresponding to the information input device ID according to the short-range wireless message.
终端400可以在各个信息输入设备对应的近距离无线通信时间窗口内开启无线通信模块160(例如蓝牙模块),以接收各个信息输入设备发送的无线消息。The terminal 400 may turn on the wireless communication module 160 (eg, a Bluetooth module) within the short-range wireless communication time window corresponding to each information input device to receive wireless messages sent by each information input device.
具体的,终端400接收到各个信息输入设备发送的无线消息后,可以解析该无线消息,并根据解析结果确定该消息中携带的信息输入设备ID对应的信息输入设备的压力值。在一些实施例中,该消息中还包含有时间点,终端400还可以根据该消息获知信息输入设备在对应时间点的压力值。Specifically, after receiving the wireless message sent by each information input device, the terminal 400 can parse the wireless message, and determine the pressure value of the information input device corresponding to the information input device ID carried in the message according to the analysis result. In some embodiments, the message further includes a time point, and the terminal 400 can also learn the pressure value of the information input device at the corresponding time point according to the message.
S180,终端400在屏幕上显示不同信息输入设备分别对应的移动轨迹。S180, the terminal 400 displays the movement trajectories corresponding to different information input devices on the screen.
若S120中,终端400仅为同一个信息输入设备分配了1个频率,则终端400可以获知每一个信息输入设备的报点信息,并在报点信息所在位置(即检测到信息输入设备发射的PWM信号的位置)显示对应信息输入设备的移动轨迹,并且,不同信息输入设备的移动轨迹的外观不同。各个信息输入设备的移动轨迹的外观可以由终端预先设置。If in S120, the terminal 400 only allocates one frequency to the same information input device, then the terminal 400 can obtain the report point information of each information input device, and at the location of the report point information (that is, it detects the signal transmitted by the information input device) The position of the PWM signal) shows the movement track of the corresponding information input device, and the appearance of the movement track of different information input devices is different. The appearance of the movement track of each information input device may be preset by the terminal.
若S120中,终端400为同一个信息输入设备分配了2个频率,则终端400可以获知每一个信息输入设备的倾斜度值、报点信息,并进行渲染,并根据渲染结果在屏幕上显示对应信息输入设备的移动轨迹。进一步地,终端400可以对每一个信息输入设备在每一个时间点的倾斜度、报点信息进行渲染,并根据渲染结果在屏幕上显示对应信息输入设备的移动轨迹,这样可以准确实时地显示移动轨迹。If in S120, the terminal 400 allocates 2 frequencies to the same information input device, the terminal 400 can obtain the inclination value and reporting point information of each information input device, and render it, and display the corresponding frequency on the screen according to the rendering result. The movement trajectory of the information input device. Further, the terminal 400 can render the inclination and reporting information of each information input device at each time point, and display the movement track of the corresponding information input device on the screen according to the rendering result, so that the movement can be displayed accurately and in real time. trajectory.
若图6所示的方法包含S160和S170,终端400可以获知每一个信息输入设备的压力值、报点信息,并进行渲染,并根据渲染结果在屏幕上显示对应信息输入设备的移动轨迹。进一步地,终端400可以对每一个信息输入设备在每一个时间点的压力值、报点信息进行渲染,并根据渲染结果在屏幕上显示对应信息输入设备的移动轨迹,这样可以准确实时地显示移动轨迹。If the method shown in FIG. 6 includes S160 and S170, the terminal 400 can obtain the pressure value and report point information of each information input device, render it, and display the movement trajectory of the corresponding information input device on the screen according to the rendering result. Further, the terminal 400 can render the pressure value and reporting point information of each information input device at each time point, and display the movement trajectory of the corresponding information input device on the screen according to the rendering result, so that the movement can be displayed accurately and in real time. trajectory.
可理解的,信息输入设备的移动轨迹所在位置是该信息输入设备的报点信息对应的位置,即终端400检测到该信息输入设备发射的PWM信号1的位置。信息输入设备的移动轨迹的外观由倾斜度和/或压力值决定,可参考前文相关描述。It is understandable that the position of the movement track of the information input device is the position corresponding to the report point information of the information input device, that is, the position where the terminal 400 detects the PWM signal 1 transmitted by the information input device. The appearance of the movement track of the information input device is determined by the inclination and/or the pressure value, and reference may be made to the foregoing related descriptions.
屏幕上显示的移动轨迹的轨迹和信息输入设备笔尖在屏幕上的运动轨迹相同。信息输 入设备笔尖在屏幕上作用的压力越大,屏幕上显示的移动轨迹的笔画越粗或越深。信息输入设备笔尖在屏幕上的倾斜度不同时,屏幕上显示的移动轨迹的笔触效果不同。The trajectory of the movement trajectory displayed on the screen is the same as the movement trajectory of the pen tip of the information input device on the screen. The greater the pressure exerted by the pen tip of the information input device on the screen, the thicker or darker the stroke of the movement track displayed on the screen. When the inclination of the pen tip of the information input device on the screen is different, the stroke effect of the movement track displayed on the screen is different.
示例性地,参考图11,图11可以示出了终端400在屏幕上显示的移动轨迹。图11所示的用户界面可以是终端100上安装的绘画类应用程序提供。如图11所示,用户界面1201可以包括终端400根据信息输入设备100的压力值、报点信息和倾斜度显示的移动轨迹1201、根据信息输入设备200的压力值、报点信息和倾斜度显示的移动轨迹1202、根据信息输入设备300的压力值、报点信息和倾斜度显示的移动轨迹1203、根据信息输入设备300的压力值、报点信息和倾斜度显示的移动轨迹1203。For example, referring to FIG. 11 , FIG. 11 may show a movement track displayed by the terminal 400 on the screen. The user interface shown in FIG. 11 may be provided by a drawing application installed on the terminal 100 . As shown in FIG. 11 , the user interface 1201 may include a movement trajectory 1201 displayed by the terminal 400 according to the pressure value, point information and inclination of the information input device 100 , and a display according to the pressure value, point information and inclination of the information input device 200 . 1202 , the movement trajectory 1203 displayed according to the pressure value, point information and inclination of the information input device 300 , the movement trajectory 1203 displayed according to the pressure value, point information and inclination of the information input device 300 .
通过上述步骤S110-S180,不同的信息输入设备可以使用不同的频率向终端发送信号,并基于无线通信技术向终端发送无线消息。终端可以根据接收到的信号的频率确定发送该信号的信息输入设备,根据该信号获知该信息输入设备的报点信息。在一些实施例中,终端还可以根据该信号获知该信息输入设备的倾斜度。信息输入设备发送的无线消息中携带有携带压力值和信息输入设备ID,终端还可以从该无线消息中获知该信息输入设备的压力值。也就是说,终端可以区分不同信息输入设备的压力值、报点信息以及倾斜度,并根据每一个信息输入设备的压力值、报点信息以及倾斜度进行图形渲染后在屏幕上显示对应的移动轨迹。Through the above steps S110-S180, different information input devices can use different frequencies to send signals to the terminal, and send wireless messages to the terminal based on the wireless communication technology. The terminal can determine the information input device that transmits the signal according to the frequency of the received signal, and learn the reporting point information of the information input device according to the signal. In some embodiments, the terminal may also know the inclination of the information input device according to the signal. The wireless message sent by the information input device carries the pressure value and the ID of the information input device, and the terminal can also learn the pressure value of the information input device from the wireless message. That is to say, the terminal can distinguish the pressure value, report point information and inclination of different information input devices, and display the corresponding movement on the screen after rendering graphics according to the pressure value, report point information and inclination of each information input device. trajectory.
图6所示的方法可以通过信号的频率来区分不同的信息输入设备,无需额外发送信息输入设备ID,不影响报点率。此外,信息输入设备使用无线通信技术可以高效及时地传输压力值,使得终端能够实时渲染并显示对应的移动轨迹,这样信息输入设备使用起来有良好的跟手性,可以提升用户体验。The method shown in FIG. 6 can distinguish different information input devices by the frequency of the signals, without additionally sending the ID of the information input device, and without affecting the reporting rate. In addition, the information input device can transmit the pressure value in an efficient and timely manner by using wireless communication technology, so that the terminal can render and display the corresponding movement trajectory in real time, so that the information input device has good chirality and can improve the user experience.
在一些实施例中,图6所示的方法还可包括以下步骤:In some embodiments, the method shown in FIG. 6 may further include the following steps:
S190,终端400基于和信息输入设备之间的无线连接,为多个信息输入设备中的部分或全部重新分配频率。S190, the terminal 400 reassigns frequencies to some or all of the multiple information input devices based on the wireless connection with the information input devices.
在一些实施例中,终端400可以周期性地为多个信息输入设备中的部分或全部重新分配频率。In some embodiments, terminal 400 may periodically reallocate frequencies to some or all of the plurality of information input devices.
在另一些实施例中,终端400可以在接收到的各个信号之间的干扰较大时,为多个信息输入设备中的部分或全部重新分配频率。具体的,当空间中存在有和信息输入设备所用频率相近的干扰信号时,会导致终端400无法区分干扰信号和信息输入设备发送的信号,即终端400无法正确解析出信息输入设备发射的信号,影响移动轨迹的显示。在这种情况下,终端400可以根据干扰情况为多个信息输入设备中的部分或者全部重新分配频率,重新分配频率后各个信息输入设备的频率仍然是不同的。例如,终端400检测到信号(包括干扰信号和信息输入设备发送的信号)后,若无法解析出信息输入设备发射的信号,则可以为使用检测到的该信号频率的信息输入设备重新分配频率。这样,对各个信息输入设备中的部分或者全部做跳频处理,可以避免各个信息输入设备发射的信号和干扰信号的频率相近,从而避免终端400检测信息输入设备发射的信号时受到空间中其他信号的干扰,使得终端400能够准确地识别不同信息输入设备发送的信号。In other embodiments, the terminal 400 may reallocate frequencies for some or all of the multiple information input devices when the interference between the received signals is relatively large. Specifically, when there is an interference signal in the space with a frequency similar to that used by the information input device, the terminal 400 cannot distinguish the interference signal from the signal sent by the information input device, that is, the terminal 400 cannot correctly parse the signal transmitted by the information input device. Affects the display of movement tracks. In this case, the terminal 400 may re-allocate frequencies for some or all of the multiple information input devices according to the interference situation, and the frequencies of the respective information input devices are still different after the frequencies are re-allocated. For example, after the terminal 400 detects the signal (including the interference signal and the signal sent by the information input device), if the signal transmitted by the information input device cannot be analyzed, it can re-allocate the frequency for the information input device using the detected signal frequency. In this way, performing frequency hopping processing on part or all of each information input device can prevent the frequency of the signal transmitted by each information input device from being similar to the interference signal, thereby preventing the terminal 400 from being affected by other signals in the space when detecting the signal transmitted by the information input device. interference, so that the terminal 400 can accurately identify the signals sent by different information input devices.
终端400可以为一个信息输入设备重新分配1个或2个频率。The terminal 400 can reallocate 1 or 2 frequencies to an information input device.
S190之后,各个信息输入设备可以根据重新分配的频率发射信号。After S190, each information input device may transmit a signal according to the reassigned frequency.
在一些实施例中,各个信息输入设备还可以存储终端400为其分配的频率。例如,信息输入设备可以将终端400的标识和该频率关联存储。当信息输入设备后续再次和终端400建立无线连接后,可以直接使用存储的上一次向终端400发射信号时所使用的频率来发射信号。这样可以减少相同的终端和信息输入设备之间的协商频率的过程,减少双方的功耗,且使得信息输入设备和终端能够更快地进入工作,对于用户来说终端的显示速度更快,信息输入设备的跟手性更好。In some embodiments, each information input device may also store the frequency assigned to it by the terminal 400 . For example, the information input device may store the identification of the terminal 400 in association with the frequency. When the information input device subsequently establishes a wireless connection with the terminal 400 again, it can directly use the stored frequency for transmitting the signal to the terminal 400 last time to transmit the signal. In this way, the process of negotiation frequency between the same terminal and the information input device can be reduced, the power consumption of both parties can be reduced, and the information input device and the terminal can be put into work faster. For the user, the display speed of the terminal is faster, and the information Better follow chirality for input devices.
在本申请实施例中,可以将信息输入设备100称为第一信息输入设备,将信息输入设备200称为第二信息输入设备。In this embodiment of the present application, the information input device 100 may be referred to as a first information input device, and the information input device 200 may be referred to as a second information input device.
上述步骤S110中,终端400和信息输入设备100之间建立的无线连接可以被称为第一无线连接。终端400和信息输入设备200之间建立的无线连接可以被称为第二无线连接。In the above step S110, the wireless connection established between the terminal 400 and the information input device 100 may be referred to as a first wireless connection. The wireless connection established between the terminal 400 and the information input device 200 may be referred to as a second wireless connection.
上述步骤S120中,终端400分配给信息输入设备100的一个频率(如f1)可以被称为第一频率,另一个频率(如f4)可以称为第三频率。终端400分配给信息输入设备200的一个频率(如f2)可以被称为第二频率,另一个频率(如f5)可以称为第四频率。In the above step S120, one frequency (eg f1) allocated by the terminal 400 to the information input device 100 may be referred to as the first frequency, and another frequency (eg f4) may be referred to as the third frequency. One frequency (eg, f2) allocated by the terminal 400 to the information input device 200 may be referred to as a second frequency, and the other frequency (eg, f5) may be referred to as a fourth frequency.
上述步骤S140中,信息输入设备100使用终端400分配的一个频率发送的PWM信号1可以被称为第一脉冲信号,使用终端400分配的另一个频率发送的PWM信号2可以被称为第三脉冲信号。信息输入设备200使用终端400分配的一个频率发送的PWM信号1可以被称为第二脉冲信号,使用终端400分配的另一个频率发送的PWM信号2可以被称为第四脉冲信号。In the above step S140, the PWM signal 1 sent by the information input device 100 using one frequency allocated by the terminal 400 may be referred to as the first pulse signal, and the PWM signal 2 sent using another frequency allocated by the terminal 400 may be referred to as the third pulse. Signal. The PWM signal 1 transmitted by the information input device 200 using one frequency allocated by the terminal 400 may be referred to as a second pulse signal, and the PWM signal 2 transmitted using another frequency allocated by the terminal 400 may be referred to as a fourth pulse signal.
上述步骤S150中,终端400确定的信息输入设备100的报点信息可以被称为第一位置点,该第一位置点包括先后检测到第一脉冲信号的一个或多个位置点。终端400确定的信息输入设备200的报点信息可以被称为第二位置点,该第二位置点包括先后检测到第二脉冲信号的一个或多个位置点。In the above step S150, the point announcement information of the information input device 100 determined by the terminal 400 may be referred to as a first position point, and the first position point includes one or more position points where the first pulse signal is detected successively. The announcement point information of the information input device 200 determined by the terminal 400 may be referred to as a second position point, and the second position point includes one or more position points where the second pulse signal is detected successively.
上述步骤S160中,信息输入设备100基于无线连接向终端400发送的携带压力值和信息输入设备ID的无线消息可以被称为第一消息。信息输入设备200基于无线连接向终端400发送的携带压力值和信息输入设备ID的无线消息可以被称为第二消息。信息输入设备100检测到的压力值可以被称为第一压力值,信息输入设备200检测到的压力值可以被称为第二压力值。信息输入设备100的ID可以被称为第一标识,信息输入设备200的ID可以被称为第二标识。In the above step S160, the wireless message carrying the pressure value and the ID of the information input device sent by the information input device 100 to the terminal 400 based on the wireless connection may be referred to as a first message. The wireless message carrying the pressure value and the information input device ID sent by the information input device 200 to the terminal 400 based on the wireless connection may be referred to as a second message. The pressure value detected by the information input device 100 may be referred to as a first pressure value, and the pressure value detected by the information input device 200 may be referred to as a second pressure value. The ID of the information input device 100 may be referred to as a first identification, and the ID of the information input device 200 may be referred to as a second identification.
上述步骤S190中,终端400重新为信息输入设备100分配的1个频率可以被称为第四频率。In the above step S190, the one frequency newly allocated by the terminal 400 to the information input device 100 may be referred to as the fourth frequency.
不限于上述实施例描述的书写场景,本申请实施例提供的还可以用于普通的信息输入设备操控场景。信息输入设备操控场景和手指操控场景类似,例如信息输入设备点击控件、信息输入设备滑动用户界面等等。在信息输入设备操控场景中,信息输入设备可以仅使用终端400为其分配的频率来发送PWM信号1,PWM信号2和无线消息可以发也可以不发,这样终端400根据PWM信号1即可获知报点信息,并根据该报点信息所在的位置来执行对应的操作。在该场景中,终端根据检测到的信息输入设备发送的PWM信号1确定的报点信息,可以被称为第三位置点。例如,当信息输入设备点击终端400的主屏幕上的应用程序的图标时,终端400可以启动该图标对应的应用程序。又例如,当信息输入设备在主 屏幕上左右滑动时,终端400可以刷新主界面中显示的应用程序的图标等等。Not limited to the writing scene described in the foregoing embodiments, the embodiments of the present application may also be used for common information input device manipulation scenes. The information input device manipulation scene is similar to the finger manipulation scene, for example, the information input device clicks the control, the information input device slides the user interface, and so on. In the information input device manipulation scenario, the information input device can only use the frequency allocated by the terminal 400 to send the PWM signal 1, and the PWM signal 2 and the wireless message can be sent or not sent, so that the terminal 400 can know according to the PWM signal 1. Report point information, and perform corresponding operations according to the location of the point report information. In this scenario, the terminal according to the detected information input point information determined by the PWM signal 1 sent by the device may be referred to as the third position point. For example, when the information input device clicks an icon of an application program on the home screen of the terminal 400, the terminal 400 may start the application program corresponding to the icon. For another example, when the information input device slides left and right on the home screen, the terminal 400 can refresh the icons of the application programs displayed in the home interface, and so on.
本申请的各实施方式可以任意进行组合,以实现不同的技术效果。The various embodiments of the present application can be arbitrarily combined to achieve different technical effects.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk)等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer program instructions, when loaded and executed on a computer, result in whole or in part of the processes or functions described herein. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk), and the like.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented. The process can be completed by instructing the relevant hardware by a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed , which may include the processes of the foregoing method embodiments. The aforementioned storage medium includes: ROM or random storage memory RAM, magnetic disk or optical disk and other mediums that can store program codes.
总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡根据本发明的揭露,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。In a word, the above descriptions are merely examples of the technical solutions of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention shall be included within the protection scope of the present invention.

Claims (20)

  1. 一种信息输入设备在终端上操控的方法,其特征在于,所述方法应用于包含所述终端、第一信息输入设备、第二信息输入设备的通信系统,所述方法包括:A method for operating an information input device on a terminal, wherein the method is applied to a communication system including the terminal, a first information input device, and a second information input device, and the method includes:
    所述终端为所述第一信息输入设备分配第一频率,为所述第二信息输入设备分配第二频率,所述第一频率和所述第二频率不同;assigning, by the terminal, a first frequency to the first information input device, and assigning a second frequency to the second information input device, the first frequency and the second frequency being different;
    所述第一信息输入设备发射第一脉冲信号,所述第一脉冲信号的频率为所述第一频率;The first information input device transmits a first pulse signal, and the frequency of the first pulse signal is the first frequency;
    所述第二信息输入设备发射第二脉冲信号,所述第二脉冲信号的频率为所述第二频率;The second information input device transmits a second pulse signal, and the frequency of the second pulse signal is the second frequency;
    所述终端在屏幕的第一位置点检测到所述第一脉冲信号,在屏幕上显示由所述第一位置点构成的第一移动轨迹;所述第一位置点包括一个或多个位置点;The terminal detects the first pulse signal at a first position point on the screen, and displays a first movement track formed by the first position point on the screen; the first position point includes one or more position points ;
    所述终端在所述屏幕的第二位置点检测到所述第二脉冲信号,在所述屏幕上显示由所述第二位置点构成的第二移动轨迹;所述第二位置点包括一个或多个位置点;The terminal detects the second pulse signal at a second position point on the screen, and displays a second movement track formed by the second position point on the screen; the second position point includes one or multiple location points;
    其中,所述第一移动轨迹和所述第二移动轨迹的外观不同。Wherein, the appearance of the first movement track and the second movement track are different.
  2. 根据权利要求1所述的方法,其特征在于,所述终端在屏幕上显示由所述第一位置点构成的第一移动轨迹之前,所述方法还包括:The method according to claim 1, wherein before the terminal displays the first movement track formed by the first position point on the screen, the method further comprises:
    所述终端关联存储所述第一频率和第一标识,所述第一标识为所述第一信息输入设备的标识;The terminal associates and stores the first frequency and the first identifier, and the first identifier is the identifier of the first information input device;
    所述第一信息输入设备检测到第一压力值,通过和所述终端之间的第一无线连接发送第一消息;所述第一消息携带所述第一压力值和所述第一标识;The first information input device detects the first pressure value, and sends a first message through the first wireless connection with the terminal; the first message carries the first pressure value and the first identifier;
    所述终端接收到所述第一消息;the terminal receives the first message;
    其中,所述第一移动轨迹的外观由携带所述第一标识的所述第一消息中的所述第一压力值确定。Wherein, the appearance of the first movement track is determined by the first pressure value in the first message carrying the first identifier.
  3. 根据权利要求1或2所述的方法,其特征在于,The method according to claim 1 or 2, characterized in that,
    所述第一移动轨迹的外观由所述第一脉冲信号的强度确定。The appearance of the first movement trajectory is determined by the intensity of the first pulse signal.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述终端在屏幕上显示由所述第一位置点构成的第一移动轨迹之前,所述方法还包括:所述终端为所述第一信息输入设备分配第三频率,所述第三频率和所述第二频率不同;The method according to any one of claims 1-3, wherein before the terminal displays the first movement track formed by the first position point on the screen, the method further comprises: the terminal is a the first information input device assigns a third frequency, the third frequency and the second frequency are different;
    所述第一信息输入设备发射第三脉冲信号,所述第三脉冲信号的频率为所述第三频率;The first information input device transmits a third pulse signal, and the frequency of the third pulse signal is the third frequency;
    所述终端在第三位置点检测到所述第三脉冲信号;the terminal detects the third pulse signal at a third position;
    其中,所述第一移动轨迹的外观由所述第一信息输入设备的倾斜度确定,所述第一信息输入设备的倾斜度由检测到所述第一脉冲信号的所述第一位置点,和,检测到所述第三脉冲信号的第三位置点确定。Wherein, the appearance of the first movement track is determined by the inclination of the first information input device, and the inclination of the first information input device is determined by the first position point where the first pulse signal is detected, And, the third position point at which the third pulse signal is detected is determined.
  5. 根据权利要求4所述的方法,其特征在于,所述终端的工作周期包括多个信号检测时间段;所述第一信息输入设备的工作周期包括:多个第一发射时间段、多个第二发射时 间段;所述信号检测时间段在时序上覆盖所述第一发射时间段和所述第二发射时间段;The method according to claim 4, wherein the working cycle of the terminal includes a plurality of signal detection time periods; the working cycle of the first information input device includes: a plurality of first transmission time periods, a plurality of first Two transmission time periods; the signal detection time period covers the first transmission time period and the second transmission time period in timing;
    所述第一信息输入设备在所述第一发射时间段发送所述第一脉冲信号,在所述第二发射时间段发送所述第三脉冲信号;The first information input device sends the first pulse signal during the first transmission period, and sends the third pulse signal during the second transmission period;
    所述终端在所述信号检测时间段检测到所述第一脉冲信号和所述第三脉冲信号。The terminal detects the first pulse signal and the third pulse signal in the signal detection period.
  6. 根据权利要求5所述的方法,其特征在于,The method of claim 5, wherein:
    在所述第一发射时间段和所述第二发射时间段有重叠部分的情况下,所述第一频率不同于所述第三频率;或者,In the case where the first transmission time period and the second transmission time period overlap, the first frequency is different from the third frequency; or,
    在所述第一发射时间段和所述第二发射时间段无重叠部分的情况下,所述第一频率和所述第三频率相同。In the case where the first transmission time period and the second transmission time period have no overlapping portion, the first frequency and the third frequency are the same.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-6, wherein the method further comprises:
    所述终端重新为所述第一信息输入设备分配第四频率,所述第四频率不同于所述第一频率和所述第二频率。The terminal re-allocates a fourth frequency to the first information input device, where the fourth frequency is different from the first frequency and the second frequency.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述终端在屏幕上显示由所述第一位置点构成的第一移动轨迹之前,所述方法还包括:The method according to any one of claims 1-7, wherein, before the terminal displays the first movement track formed by the first position point on the screen, the method further comprises:
    所述终端运行第一应用程序,所述第一应用程序提供以下一项或多项功能:绘画、办公、图案设计、文本输入或数据输入。The terminal runs a first application program, and the first application program provides one or more of the following functions: painting, office, pattern design, text input or data input.
  9. 一种信息输入设备在终端上操控的方法,其特征在于,所述方法应用于所述终端,所述方法包括:A method for operating an information input device on a terminal, wherein the method is applied to the terminal, and the method includes:
    所述终端为所述第一信息输入设备分配第一频率,为所述第二信息输入设备分配第二频率,所述第一频率和所述第二频率不同;assigning, by the terminal, a first frequency to the first information input device, and assigning a second frequency to the second information input device, the first frequency and the second frequency being different;
    所述终端在屏幕的第一位置点检测到频率为所述第一频率的第一脉冲信号,在所述屏幕上显示由所述第一位置点构成的第一移动轨迹;所述第一位置点包括一个或多个位置点;The terminal detects a first pulse signal with a frequency of the first frequency at a first position point of the screen, and displays a first movement track formed by the first position point on the screen; the first position point includes one or more location points;
    所述终端在所述屏幕的第二位置点检测到频率为所述第二频率的第二脉冲信号,在所述屏幕上显示由所述第二位置点构成的第二移动轨迹;所述第二位置点包括一个或多个位置点;The terminal detects a second pulse signal with the frequency of the second frequency at the second position point of the screen, and displays a second movement track formed by the second position point on the screen; Two location points include one or more location points;
    其中,所述第一移动轨迹和所述第二移动轨迹的外观不同。Wherein, the appearance of the first movement track and the second movement track are different.
  10. 根据权利要求9所述的方法,其特征在于,所述终端在屏幕上显示由所述第一位置点构成的第一移动轨迹之前,所述方法还包括:The method according to claim 9, wherein before the terminal displays the first movement track formed by the first position point on the screen, the method further comprises:
    所述终端关联存储所述第一频率和第一标识,所述第一标识为所述第一信息输入设备的标识;The terminal associates and stores the first frequency and the first identifier, and the first identifier is the identifier of the first information input device;
    所述终端通过和所述第一信息输入设备之间的第一无线连接接收到第一消息,所述第一消息携带所述第一压力值和所述第一标识;receiving, by the terminal through a first wireless connection with the first information input device, a first message, where the first message carries the first pressure value and the first identifier;
    其中,所述第一移动轨迹的外观由携带所述第一标识的所述第一消息中的所述第一压力值确定。Wherein, the appearance of the first movement track is determined by the first pressure value in the first message carrying the first identifier.
  11. 根据权利要求9或10所述的方法,其特征在于,The method according to claim 9 or 10, characterized in that,
    所述第一移动轨迹的外观由所述第一脉冲信号的强度确定。The appearance of the first movement trajectory is determined by the intensity of the first pulse signal.
  12. 根据权利要求9-11任一项所述的方法,其特征在于,所述终端在屏幕上显示由所述第一位置点构成的第一移动轨迹之前,所述方法还包括:The method according to any one of claims 9-11, wherein before the terminal displays the first movement track formed by the first position point on the screen, the method further comprises:
    所述终端为所述第一信息输入设备分配第三频率,所述第三频率和所述第二频率不同;assigning, by the terminal, a third frequency to the first information input device, where the third frequency is different from the second frequency;
    所述终端在第三位置点检测到频率为所述第三频率的第三脉冲信号;The terminal detects a third pulse signal with a frequency of the third frequency at a third position;
    其中,所述第一移动轨迹的外观由所述第一信息输入设备的倾斜度确定,所述第一信息输入设备的倾斜度由检测到所述第一脉冲信号的所述第一位置点,和,检测到所述第三脉冲信号的第三位置点确定。Wherein, the appearance of the first movement track is determined by the inclination of the first information input device, and the inclination of the first information input device is determined by the first position point where the first pulse signal is detected, And, the third position point at which the third pulse signal is detected is determined.
  13. 根据权利要求12所述的方法,其特征在于,所述终端的工作周期包括多个信号检测时间段;所述第一信息输入设备的工作周期包括:多个第一发射时间段、多个第二发射时间段;所述信号检测时间段在时序上覆盖所述第一发射时间段和所述第二发射时间段;The method according to claim 12, wherein the working cycle of the terminal includes a plurality of signal detection time periods; the working cycle of the first information input device includes: a plurality of first transmission time periods, a plurality of first Two transmission time periods; the signal detection time period covers the first transmission time period and the second transmission time period in timing;
    所述第一脉冲信号由所述第一信息输入设备在所述第一发射时间段发送,所述第三脉冲信号由所述第一信息输入设备在所述第二发射时间段发送;The first pulse signal is sent by the first information input device during the first transmission time period, and the third pulse signal is sent by the first information input device during the second transmission time period;
    所述终端在所述信号检测时间段检测到所述第一脉冲信号和所述第三脉冲信号。The terminal detects the first pulse signal and the third pulse signal in the signal detection period.
  14. 根据权利要求13所述的方法,其特征在于,The method of claim 13, wherein:
    在所述第一发射时间段和所述第二发射时间段有重叠部分的情况下,所述第一频率不同于所述第三频率;或者,In the case where the first transmission time period and the second transmission time period overlap, the first frequency is different from the third frequency; or,
    在所述第一发射时间段和所述第二发射时间段无重叠部分的情况下,所述第一频率和所述第三频率相同。In the case where the first transmission time period and the second transmission time period have no overlapping portion, the first frequency and the third frequency are the same.
  15. 根据权利要求9-14任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 9-14, wherein the method further comprises:
    所述终端重新为所述第一信息输入设备分配第四频率,所述第四频率不同于所述第一频率和所述第二频率。The terminal re-allocates a fourth frequency to the first information input device, where the fourth frequency is different from the first frequency and the second frequency.
  16. 根据权利要求9-15任一项所述的方法,其特征在于,所述终端在屏幕上显示由所述第一位置点构成的第一移动轨迹之前,所述方法还包括:The method according to any one of claims 9-15, wherein before the terminal displays the first movement track formed by the first position point on the screen, the method further comprises:
    所述终端运行第一应用程序,所述第一应用程序提供以下一项或多项功能:绘画、办公、图案设计、文本输入或数据输入。The terminal runs a first application program, and the first application program provides one or more of the following functions: painting, office, pattern design, text input or data input.
  17. 一种终端,其特征在于,所述终端包括:屏幕、存储器、一个或多个处理器;所述 屏幕、所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述终端执行如权利要求9-16任一项所述的方法。A terminal, characterized in that the terminal includes: a screen, a memory, and one or more processors; the screen and the memory are coupled to the one or more processors, and the memory is used to store computer programs code, the computer program code comprising computer instructions invoked by the one or more processors to cause the terminal to perform the method of any of claims 9-16.
  18. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求9-16任一项所述的方法。A computer program product comprising instructions, characterized in that, when the computer program product is run on an electronic device, the electronic device is caused to perform the method according to any one of claims 9-16.
  19. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求9-16任一项所述的方法。A computer-readable storage medium comprising instructions, characterized in that, when the instructions are executed on an electronic device, the electronic device is caused to perform the method according to any one of claims 9-16.
  20. 一种通信系统,其特征在于,所述通信系统包括:终端、第一信息输入设备和第二信息输入设备,所述终端用于执行如权利要求9-16任一项所述的方法,所述第一信息输入设备用于发射第一脉冲信号,所述第二信息输入设备用于发射第二脉冲信号。A communication system, characterized in that the communication system comprises: a terminal, a first information input device and a second information input device, the terminal is configured to execute the method according to any one of claims 9-16, and the The first information input device is used for transmitting a first pulse signal, and the second information input device is used for transmitting a second pulse signal.
PCT/CN2021/107927 2020-07-27 2021-07-22 Method, apparatus, and system for controlling information input devices on terminal WO2022022387A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010731534.7A CN114003137A (en) 2020-07-27 2020-07-27 Method, device and system for controlling information input equipment on terminal
CN202010731534.7 2020-07-27

Publications (1)

Publication Number Publication Date
WO2022022387A1 true WO2022022387A1 (en) 2022-02-03

Family

ID=79920165

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/107927 WO2022022387A1 (en) 2020-07-27 2021-07-22 Method, apparatus, and system for controlling information input devices on terminal

Country Status (2)

Country Link
CN (1) CN114003137A (en)
WO (1) WO2022022387A1 (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539816A (en) * 2009-04-16 2009-09-23 台均科技(深圳)有限公司 Electromagnetic pen, electromagnetic signal transmitting method, processing method, device and equipment
CN203759658U (en) * 2014-03-31 2014-08-06 上海华师京城高新技术(集团)有限公司 Electromagnetic induction display device with a plurality of pens for simultaneous writing
CN105807990A (en) * 2016-03-01 2016-07-27 京东方科技集团股份有限公司 Display screen, touch pen and display module
CN206684693U (en) * 2017-04-18 2017-11-28 成都吉锐时代触摸技术有限公司 A kind of ultrasonic pen of variable transmission frequency
CN107491210A (en) * 2017-08-14 2017-12-19 广州视源电子科技股份有限公司 More time writer writing differentiating method, device and electronic equipments
CN109582170A (en) * 2017-09-29 2019-04-05 乐金显示有限公司 Touch display unit, touch circuit, pen, touch system and more method for sensing
US20190235647A1 (en) * 2016-03-08 2019-08-01 Egalax_Empia Technology Inc. Stylus and touch control apparatus for detecting tilt angle of stylus and control method thereof
CN110688022A (en) * 2019-09-30 2020-01-14 京东方科技集团股份有限公司 Active pen, control method and device thereof, and handwriting display method and device
US20200064940A1 (en) * 2013-11-08 2020-02-27 Egalax_Empia Technology Inc. Stylus and Operating Method Thereof for Transmitting Electrical Signals Carrying Pressure Information

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539816A (en) * 2009-04-16 2009-09-23 台均科技(深圳)有限公司 Electromagnetic pen, electromagnetic signal transmitting method, processing method, device and equipment
US20200064940A1 (en) * 2013-11-08 2020-02-27 Egalax_Empia Technology Inc. Stylus and Operating Method Thereof for Transmitting Electrical Signals Carrying Pressure Information
CN203759658U (en) * 2014-03-31 2014-08-06 上海华师京城高新技术(集团)有限公司 Electromagnetic induction display device with a plurality of pens for simultaneous writing
CN105807990A (en) * 2016-03-01 2016-07-27 京东方科技集团股份有限公司 Display screen, touch pen and display module
US20190235647A1 (en) * 2016-03-08 2019-08-01 Egalax_Empia Technology Inc. Stylus and touch control apparatus for detecting tilt angle of stylus and control method thereof
CN206684693U (en) * 2017-04-18 2017-11-28 成都吉锐时代触摸技术有限公司 A kind of ultrasonic pen of variable transmission frequency
CN107491210A (en) * 2017-08-14 2017-12-19 广州视源电子科技股份有限公司 More time writer writing differentiating method, device and electronic equipments
CN109582170A (en) * 2017-09-29 2019-04-05 乐金显示有限公司 Touch display unit, touch circuit, pen, touch system and more method for sensing
CN110688022A (en) * 2019-09-30 2020-01-14 京东方科技集团股份有限公司 Active pen, control method and device thereof, and handwriting display method and device

Also Published As

Publication number Publication date
CN114003137A (en) 2022-02-01

Similar Documents

Publication Publication Date Title
US11521410B2 (en) Electronic device having a biometric sensor
US10372326B2 (en) Mobile terminal device, operation method, program, and storage medium
WO2022100315A1 (en) Method for generating application interface, and related apparatus
US10331242B2 (en) Stylus having a plurality of operating portions configured to transmit synchronized signals
US10299110B2 (en) Information transmission method and system, device, and computer readable recording medium thereof
KR102162836B1 (en) Apparatas and method for supplying content according to field attribute
JP5931298B2 (en) Virtual keyboard display method, apparatus, terminal, program, and recording medium
EP2869181A1 (en) Method for executing functions in response to touch input and electronic device implementing the same
CN103677711A (en) Method for connecting mobile terminal and external display and apparatus implementing the same
US20150253968A1 (en) Portable terminal and method of enlarging and displaying contents
EP2927796A1 (en) User interface method and apparatus of electronic device for receiving user input
EP4130943A1 (en) Touch operation method and device
CN104423837A (en) Method for display control and electronic device thereof
JP2022501739A (en) Stylus pen detection method, system and related equipment
CN109144723B (en) Method and terminal for allocating storage space
WO2017128986A1 (en) Selection method, device and storage medium for multimedia menu item
KR20150051278A (en) Object moving method and electronic device implementing the same
CN114428561B (en) Touch pen switching method and system and touch pen
WO2022022387A1 (en) Method, apparatus, and system for controlling information input devices on terminal
CN112654955B (en) Detecting positioning of a pen relative to an electronic device
CN110431518A (en) A kind of method and electronic equipment exporting touching signals
WO2022022342A1 (en) Device pairing method and system, and accessory device and computer-readable storage medium
US20150169129A1 (en) Method of displaying touch indicator and electronic device thereof
KR20160144656A (en) Communication apparatus and channel scanning method thereof
WO2021197242A1 (en) Copying and pasting method, electronic device and system

Legal Events

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

Ref document number: 21849132

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21849132

Country of ref document: EP

Kind code of ref document: A1