WO2021104271A1 - Control method, stylus, and electronic assembly - Google Patents

Control method, stylus, and electronic assembly Download PDF

Info

Publication number
WO2021104271A1
WO2021104271A1 PCT/CN2020/131199 CN2020131199W WO2021104271A1 WO 2021104271 A1 WO2021104271 A1 WO 2021104271A1 CN 2020131199 W CN2020131199 W CN 2020131199W WO 2021104271 A1 WO2021104271 A1 WO 2021104271A1
Authority
WO
WIPO (PCT)
Prior art keywords
function
target
input
stylus
electronic device
Prior art date
Application number
PCT/CN2020/131199
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 WO2021104271A1 publication Critical patent/WO2021104271A1/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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the present invention relates to the technical field of intelligent control, in particular to a control method, a touch pen and an electronic component.
  • electronic devices such as mobile terminals such as smart phones
  • smart phones As smart phones become more and more popular, and at the same time, the functions of smart phones are continuously upgraded and optimized. Smart phones have been integrated into all aspects of life. Users often use smart phones in various places and places.
  • the electronic device can be equipped with some assistive touch tools, such as a stylus. The user can use the stylus to perform operation object selection, text writing, graphic drawing, etc. on the electronic device.
  • the user In the process of operating the electronic device, it is usually necessary to switch the operating function of the electronic device to implement corresponding processing operations on the target object.
  • the copy and paste operation function as an example, the user needs to first select the object to be copied through the display screen of the electronic device or a stylus, and perform a pressing operation on the object to be copied to trigger the display of the function selection menu.
  • the purpose of the embodiments of the present invention is to provide a control method, a stylus pen, and an electronic component, so as to solve the problems of the existing control method that the function switching process is cumbersome, the user has many operation steps, and the user experience is poor.
  • embodiments of the present invention provide a control method, which is applied to a stylus, the stylus has a touch screen and/or a physical switch button, and the stylus is communicatively connected with an electronic device ,
  • Methods include:
  • the electronic device In response to the target input, the electronic device is controlled to select the target function, so that the electronic device performs corresponding processing on the target object based on the target function.
  • an embodiment of the present invention provides a stylus, including: the stylus has a touch display screen and/or a physical switch button, the stylus is in communication connection with an electronic device, and the stylus includes:
  • the target input receiving module is used to receive the user's target input on the touch screen and/or the physical switch button;
  • the function setting control module is used to control the electronic device to select the target function in response to the target input, so that the electronic device performs corresponding processing on the target object based on the target function.
  • an embodiment of the present invention provides an electronic component, including: an electronic device and the stylus according to the second aspect;
  • the stylus is in communication connection with the electronic device.
  • an embodiment of the present invention provides a stylus, including: a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • the stylus is implemented as in the first aspect. The steps of the control method.
  • an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the control method as in the first aspect are implemented.
  • the stylus end receives the user's target input on the touch display screen and/or the physical switch button; in response to the target input, the electronic device is controlled to select the target function, So that the electronic device performs corresponding processing on the target object based on the target function.
  • the function of the electronic device can be selected and switched on the stylus, so that the user does not need to input function switching instructions on the electronic device, saving In the process of first calling up the function menu on the electronic device and then hiding the function menu, the electronic device can automatically trigger the electronic device to select the target function through the stylus, so that the electronic device can perform the processing operation corresponding to the target function on the target object, which simplifies the electronic
  • the function switching steps of the equipment improve the operation speed, flexibility and diversity of electronic equipment.
  • FIG. 1 is a schematic diagram of an application scenario of a control method provided by an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of the first control method provided by an embodiment of the present invention.
  • 3a is a schematic diagram of the first implementation principle of the target function switching of the control method provided by an embodiment of the present invention
  • 3b is a schematic diagram of the second implementation principle of the target function switching of the control method provided by the embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a second flow of a control method provided by an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of the realization principle of function synchronization of the control method provided by an embodiment of the present invention.
  • FIG. 6a is a schematic diagram of a third flow of a control method provided by an embodiment of the present invention.
  • FIG. 6b is a schematic diagram of a fourth flow of a control method provided by an embodiment of the present invention.
  • FIG. 7a is a schematic diagram of the third implementation principle of the target function switching of the control method provided by an embodiment of the present invention.
  • FIG. 7b is a schematic diagram of the fourth implementation principle of the target function switching of the control method provided by the embodiment of the present invention.
  • FIG. 8a is a schematic diagram of a fifth implementation principle of the target function switching of the control method provided by an embodiment of the present invention.
  • FIG. 8b is a schematic diagram of the sixth implementation principle of the target function switching of the control method provided by the embodiment of the present invention.
  • FIG. 9 is a schematic diagram of the module composition of a stylus provided by an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of the structure of a stylus provided by an embodiment of the present invention.
  • the embodiment of the present invention provides a control method, a stylus pen, and an electronic component.
  • the function of the electronic device can be selected on the stylus pen.
  • the electronic device can automatically trigger the electronic device to select the target function through the stylus.
  • the electronic device performs processing operations corresponding to the target function on the target object, which simplifies the function switching steps of the electronic device, and improves the operation speed, flexibility and diversity of the electronic device.
  • the stylus is in communication connection with the electronic device.
  • the electronic device may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle terminal, a wearable device, and a pedometer.
  • a smart phone Taking a smart phone as an example, the control method provided by the embodiment of the present invention can be applied to the application scenario shown in FIG. 1.
  • FIG. 1 includes an electronic device 100 and a stylus 200.
  • the stylus 200 has a touch screen and /Or a physical switch button, the electronic device 100 is communicatively connected with the stylus 200.
  • the stylus 200 has at least a touch screen as an example.
  • the stylus terminal receives the user's target input on the touch display screen and/or the physical switch button; in response to the target input, the electronic device is controlled to select the target function, so that the electronic device is based on The target function handles the target object accordingly.
  • the function of the electronic device can be selected and switched on the stylus, so that the user does not need to input function switching instructions on the electronic device, saving In the process of first calling up the function menu on the electronic device and then hiding the function menu, the electronic device can automatically trigger the electronic device to select the target function through the stylus, so that the electronic device can perform the processing operation corresponding to the target function on the target object, which simplifies the electronic
  • the function switching steps of the equipment improve the operation speed, flexibility and diversity of electronic equipment.
  • FIG. 2 is a schematic flow chart of the first control method provided by an embodiment of the present invention.
  • the method in FIG. 2 can be executed by the stylus 200 in FIG. 1, for example, can be executed by a program module provided in the stylus 200.
  • the method includes at least S201 and S202.
  • the stylus may be provided with a touch screen, and the user can perform touch operations on the touch screen, and the stylus pen determines the target input on the touch screen according to the detected touch operation;
  • the touch display screen may be a touchable flexible display screen, and the touch display screen may be arranged at any position of the stylus body, and the selection information for the function options can be input through the touch screen display screen.
  • the stylus can also be provided with a physical switch button.
  • the user can perform a gear switch operation on the physical switch button.
  • the stylus determines the target input on the physical switch button according to the detected gear switch operation;
  • the switch button can be a push-type physical button or a rotatable physical knob.
  • the physical switch button can also be arranged at any position of the stylus body, and the selection information for the function option can be input through the physical switch button.
  • the stylus can also be equipped with a touch screen and a physical switch button at the same time, and the current function is displayed on the touch screen.
  • the user can combine the current function to switch the position of the physical switch button.
  • the gear shifting operation of, determines the target input used to indicate the target function to be set.
  • the electronic device in response to the foregoing target input, the electronic device is controlled to select the target function, so that the electronic device performs corresponding processing on the target object based on the target function.
  • the above-mentioned target function may include conventional function options such as copy, paste, delete, switch, zoom in, and zoom out.
  • the target function may also include function options for specific applications, such as brushes, lasso and other functions in a photo-retouching application.
  • the instruction information corresponding to the target input is determined to switch to the copy function, and correspondingly, the target function is determined to be the copy function; for another example, if the user is detected Switch the position of the physical switch button to n file, and n file corresponds to the paste function, then it is determined that the instruction information corresponding to the target input is switching to the paste function, and correspondingly, the target function is determined to be the paste function.
  • the stylus sends the identification information of the target function to the electronic device, so that the electronic device switches the operation function to the target function, that is, selects the target function.
  • the electronic device then performs a processing operation corresponding to the target function on the selected target object.
  • the selected target object will be copied; for example, if the target function is paste, then the copied target object will be pasted to the specified area; for another example, if the target function is zoom in, then the target object will be copied.
  • the selected target object is zoomed in.
  • the user can select the target object on the electronic device by using a stylus pen, or can perform a touch operation on the target object on the electronic device to select the target object.
  • the target function is determined to be the paste function.
  • the paste function is displayed on the display screen, and identification information of the paste function is sent to the electronic device.
  • the electronic device selects the paste function. If the electronic device detects that the stylus selects the second area (that is, the paste area) under the display interface of the application 2, it will paste the copied target text into the second area.
  • the function of the electronic device can be selected and switched on the stylus pen, so that there is no need for the user to input functions on the electronic device
  • the switching instruction eliminates the need to call up the function menu and then hide the function menu on the electronic device.
  • the touch pen can automatically trigger the electronic device to select the target function, so that the electronic device can execute the target function corresponding to the target object.
  • the processing operation simplifies the function switching steps of the electronic device, and improves the operation speed, flexibility and diversity of the electronic device.
  • the function options that the stylus needs to have are determined by the function options of the electronic device, it is necessary to perform function settings on the stylus side based on the function options of the electronic device in advance, that is, the function options used on the electronic device Synchronize to the stylus.
  • the function options used on the electronic device Synchronize to the stylus.
  • S203 Receive a function synchronization request sent by the electronic device, where the function synchronization request carries identification information of the target application and identification information of the first function.
  • a common function selection menu can be set for different applications.
  • the function selection menu summarizes the options corresponding to the optional functions of each application. You can also set up their own function selection menus for different applications. Narrow the range of target function selection, improve the pertinence of target function selection, thereby improving the efficiency of target function selection.
  • a list of function options of application n is displayed on the electronic device. If the electronic device detects that the user selects the paste function, the identification information of application n will be applied And the identification information of the paste function is sent to the stylus. The stylus adds the paste function to the function selection menu of application n. Similarly, the copy function, cut function, zoom function, and zoom function can be synchronized to the stylus.
  • the function selection menu has added an option corresponding to the first function.
  • the foregoing S201 receiving a user's target input on the touch display screen and/or the physical switch button, may include:
  • S2012 Receive the user's target input on the touch display screen for the function selection menu after adding the option corresponding to the first function.
  • the user may have the need to switch to a certain function during the operation of the electronic device on a certain application.
  • the first function is the target function that the user needs to select.
  • the electronic device will currently run the application.
  • the identification information of is sent to the stylus. After receiving the identification information, the stylus retrieves the function selection menu corresponding to the identification information, and displays the function selection menu on the touch screen, so that the user can select the menu based on the function on the touch screen. Perform a touch operation, and the input is used to characterize the target input of the first function selected, where the touch operation can be a click operation or a sliding operation.
  • the user can also select a menu based on the function to perform a gear switch operation on the physical switch button, and input a target input used to characterize the selection of the first function, where the gear switch operation It can be a pressing operation or a rotating operation.
  • the icon of the currently selected function is displayed on the touch screen to identify the function currently selected by the user, so that the user Quickly select the desired target function.
  • the stylus has a physical switch button.
  • the above S201 receiving the user's target input on the touch screen and/or the physical switch button, may specifically include:
  • S2014 If a parameter setting request is detected within a preset time, receive a second input from the user on the physical switch button, where the second input includes: parameter setting input for the target function corresponding to the first input;
  • S2015 Determine the received combination of the first input and the second input as the target input.
  • a multi-level function selection menu can be set for the function. After a function is selected, the user enters the parameter setting of the function step by step on the touch screen. Set the interface, select the specific parameters for the function to realize the switching instruction input of the multi-level function; you can also directly use the physical switch button to realize the switching instruction of the multi-level function without setting the multi-level function sub-menu enter.
  • the user switches the current function to the zoom function by performing a shift operation on the physical switch button, that is, receives the user's first input on the physical switch button, and the first input is used to characterize the switch To the zoom function. If the user's pressing operation on the preset button is detected within the preset time, it is determined that the parameter setting request is detected within the preset time. The user continues to perform the gear switching operation on the physical switch button. At this time, the gear switching operation is used to characterize the switch selection of the trigger magnification factor.
  • the current function is switched to the magnification function and the magnification is 150%, that is, receiving the user on the physical switch button
  • the second input is used to characterize switching to 150% magnification, that is, the second input may include a setting input for the magnification of the magnification function.
  • the color type can also be set, and for the setting of switching the function to the currently selected color type, the color type can also be set. Set the color transparency under the type.
  • the user switches the current function to the color setting function by performing a shift operation on the physical switch button, that is, receives the user's first input on the physical switch button, and the first input is used to characterize Switch to the color setting function; if the user's pressing operation on the preset button is detected within the preset time, it is determined that the parameter setting request is detected within the preset time, and the user continues to perform the shift operation by switching the physical switch button.
  • the gear switch operation is used to characterize the switch selection of the trigger color type
  • the current function is switched to the color setting function and red is selected, that is, the second input of the user on the physical switch button is received, and the second input is used to characterize the switch to The color is red, that is, the second input includes a setting input for the color type of the color setting function.
  • the gear switch operation is used to characterize the switch selection of triggering transparency.
  • the red transparency reaches 80%, that is, the second input includes: setting input for the transparency of the selected red.
  • the second input used to characterize switching to red is used as the new first input
  • the second input used to characterize switching to red with 80% transparency is the second input for the first input.
  • the stylus has a touch display screen and a physical switch button
  • the user's target input on the touch display screen and the physical switch button is received.
  • the determination process of the first input is similar.
  • receiving the user's first input on the physical switch button may specifically include step one and step two.
  • step one in the case of detecting a shift operation for the physical shift button, a function selection prompt message is displayed on the touch screen.
  • the function option prompt information may include: at least one of the currently selected function corresponding to the current shift position, the previous selectable function corresponding to the previous shift position, and the subsequent selectable function corresponding to the later shift position. ; That is, multiple optional function options are displayed in a preset order on the touch screen, and the currently selected function options can be displayed in a selected manner.
  • step two the user's first input on the physical switch button based on the above-mentioned function option prompt information is received.
  • not only the currently selected function corresponding to the current shift position is displayed on the touch screen, but also the previous selectable function corresponding to the previous shift position and the subsequent shift on the touch screen display
  • the subsequent optional functions corresponding to the gear position can effectively guide the user to more intuitively switch between the functions through the gear switching operation of the physical switch button, and quickly and accurately switch to the desired target function.
  • the received target input can correspond to at least two optional functions, and then the electronic device automatically selects an optional function from them.
  • the target function includes at least two optional functions.
  • the above-mentioned electronic device performs corresponding processing on the target object based on the target function, which may specifically include:
  • the above electronic device determines the type of touch operation of the stylus on the target object
  • the above-mentioned electronic device determines the optional function corresponding to the above-mentioned touch operation type
  • the above-mentioned electronic device performs processing operations corresponding to the determined optional functions on the target object.
  • the electronic device can then combine the touch operation type of the stylus on the target object to determine the currently selected target function, which can further Improve the switching efficiency of the target function, and reduce the number of input of the user's target input on the stylus.
  • the electronic device detects that the stylus performs an outward drag operation on the target object, it determines that the optional function is the zoom function; When the stylus performs an inward drag operation on the target object, it is determined that the optional function is the zoom out function.
  • the above-mentioned target input may include: a third input and a fourth input
  • the target function includes: and the third input
  • the electronic device used for control includes: a first device and a second device.
  • the aforementioned S202 in response to the aforementioned target input, controls the electronic device to select the target function, so that the electronic device performs corresponding processing on the target object based on the target function, which may specifically include:
  • Step 1 In response to the third input, control the first device to select the first function, so that the first device performs corresponding processing on the target object based on the first function;
  • Step 2 Receive the processed target object sent by the first device
  • Step 3 In response to the fourth input, control the second device to select the second function, so that the second device performs corresponding processing on the processed target object based on the second function.
  • the stylus sends the processed target object received from the first device to the second device, so that the second device performs corresponding processing on the processed target object based on the second function.
  • the target text on the first electronic device can be copied and pasted to the second electronic device through a stylus.
  • the stylus detects the user's click operation on the copy mark on the touch display screen, it determines that the target function is the copy function, displays the copy function on the touch screen, and sends it to the first
  • the electronic device sends the identification information of the copy function.
  • the first electronic device switches the operating function to the copy function, that is, the first electronic device selects the copy function. If the first electronic device detects that the stylus selects the target text in the first area (ie, the copy area) of the display interface 1, then Perform a copy operation on the target text.
  • the target text needs to be copied from one electronic device to another electronic device, that is, it needs to be switched to the second electronic device for pasting operation
  • the copied target text needs to be sent to the stylus to make the touch
  • the stylus then sends the copied target text to the second electronic device, and the second electronic device pastes the target text into the designated area.
  • the stylus detects the user's click operation on the paste mark on the touch display screen, then It is determined that the target function is the paste function, the paste function is displayed on the touch display screen, and the identification information of the paste function is sent to the second electronic device.
  • the second electronic device switches the operation function to the paste function, that is, the second electronic device selects the paste function, and if the second electronic device detects that the stylus selects the second area (ie the paste area) in the display interface 2, it will acquire the touch The copied target text sent by the pen, and the copied target text is pasted into the second area.
  • the stylus terminal receives the user's target input on the touch screen and/or the physical switch button; in response to the target input, the electronic device is controlled to select the target function, so that the electronic device is based on the The target function handles the target object accordingly.
  • the function of the electronic device can be selected and switched on the stylus, so that the user does not need to input function switching instructions on the electronic device, saving In the process of first calling up the function menu on the electronic device and then hiding the function menu, the electronic device can automatically trigger the electronic device to select the target function through the stylus, so that the electronic device can perform the processing operation corresponding to the target function on the target object, which simplifies the electronic
  • the function switching steps of the equipment improve the operation speed, flexibility and diversity of electronic equipment.
  • the embodiment of the present invention also provides a stylus.
  • 9 is a schematic diagram of the module composition of a stylus provided by an embodiment of the present invention.
  • the stylus is used to perform the control method described in Figs. 1 to 8b.
  • the stylus has a touch screen and/or a physical switch button.
  • the control pen communicates with the electronic device.
  • the stylus includes:
  • the target input receiving module 901 is used to receive the user's target input on the touch screen and/or the physical switch button;
  • the target function control module 902 is configured to control the electronic device to select the target function in response to the target input, so that the electronic device performs corresponding processing on the target object based on the target function.
  • the function of the electronic device can be selected and switched on the stylus pen, so that there is no need for the user to input functions on the electronic device
  • the switching instruction eliminates the need to call up the function menu and then hide the function menu on the electronic device.
  • the touch pen can automatically trigger the electronic device to select the target function, so that the electronic device can execute the target function corresponding to the target object.
  • the processing operation simplifies the function switching steps of the electronic device, and improves the operation speed, flexibility and diversity of the electronic device.
  • the aforementioned stylus further includes: a function synchronization module for:
  • the target input receiving module 901 is specifically configured to:
  • the target input receiving module 901 is also specifically configured to:
  • a parameter setting request is detected within the preset time, receiving a second input from the user on the physical switch button, where the second input includes a parameter setting input for the target function corresponding to the first input;
  • the combination of the first input and the second input is determined as the target input.
  • the target input receiving module 901 can also be used for:
  • the target input includes: a third input and a fourth input
  • the target function includes: a first function corresponding to the third input and a second function corresponding to the fourth input
  • the electronic device includes: a first device and a second device. equipment.
  • the target function control module 902 is also specifically used for:
  • the second device In response to the fourth input, the second device is controlled to select the second function, so that the second device performs corresponding processing on the processed target object based on the second function.
  • the stylus end receives the user's target input on the touch screen and/or the physical switch button; in response to the target input, the electronic device is controlled to select the target function so that the electronic device is based on The target function handles the target object accordingly.
  • the function of the electronic device can be selected and switched on the stylus, so that the user does not need to input function switching instructions on the electronic device, saving In the process of first calling up the function menu on the electronic device and then hiding the function menu, the electronic device can automatically trigger the electronic device to select the target function through the stylus, so that the electronic device can perform the processing operation corresponding to the target function on the target object, which simplifies the electronic
  • the function switching steps of the equipment improve the operation speed, flexibility and diversity of electronic equipment.
  • the stylus provided by the embodiment of the present invention can implement each process in the embodiment corresponding to the above-mentioned control method, and to avoid repetition, it will not be repeated here.
  • an embodiment of the present invention also provides an electronic component, which includes: an electronic device and a stylus as shown in FIG. 9, wherein the stylus Communicate and connect with electronic devices. Specifically, refer to the electronic device and stylus shown in FIG. 1 above.
  • the stylus end receives the user's target input on the touch screen and/or the physical switch button; in response to the target input, the electronic device is controlled to select the target function, so that the electronic device is based on the The target function handles the target object accordingly.
  • the function of the electronic device can be selected and switched on the stylus, so that the user does not need to input function switching instructions on the electronic device, saving In the process of first calling up the function menu on the electronic device and then hiding the function menu, the electronic device can automatically trigger the electronic device to select the target function through the stylus, so that the electronic device can perform the processing operation corresponding to the target function on the target object, which simplifies the electronic
  • the function switching steps of the equipment improve the operation speed, flexibility and diversity of electronic equipment.
  • the electronic component provided by the embodiment of the present invention can implement each process in the embodiment corresponding to the above-mentioned control method. In order to avoid repetition, details are not described herein again.
  • an embodiment of the present invention also provides a stylus, the stylus having a touch screen and/or a physical switch button, and the stylus is used for Performing the aforementioned control method, the stylus is communicatively connected with an electronic device.
  • FIG. 10 is a schematic diagram of the hardware structure of a stylus that implements various embodiments of the present invention.
  • the radio frequency unit 101 includes but is not limited to: The radio frequency unit 101, the network module 102, the audio output unit 103, the input unit 104, the sensor 105, the display unit 106, the user input unit 107 (which may correspond to the above-mentioned touch screen or physical switch button), the interface unit 108, the memory 109, The processor 110, and the power supply 111 and other components.
  • the radio frequency unit 101 includes but is not limited to: The radio frequency unit 101, the network module 102, the audio output unit 103, the input unit 104, the sensor 105, the display unit 106, the user input unit 107 (which may correspond to the above-mentioned touch screen or physical switch button), the interface unit 108, the memory 109, The processor 110, and the power supply 111 and other components.
  • the structure of the stylus shown in FIG. 10 does not constitute a limitation on the stylus, and the stylus may include more or fewer components than those shown in the figure, or a combination of certain components, or Different component arrangements.
  • the processor 110 is configured to: receive a user's target input on the touch display screen and/or the physical switch button;
  • the electronic device In response to the target input, the electronic device is controlled to select the target function, so that the electronic device performs corresponding processing on the target object based on the target function.
  • the function of the electronic device can be selected and switched on the stylus pen, so that there is no need for the user to input functions on the electronic device
  • the switching instruction eliminates the need to call up the function menu and then hide the function menu on the electronic device.
  • the touch pen can automatically trigger the electronic device to select the target function, so that the electronic device can execute the target function corresponding to the target object.
  • the processing operation simplifies the function switching steps of the electronic device, and improves the operation speed, flexibility and diversity of the electronic device.
  • processor 110 is also used to:
  • the function synchronization request Before receiving the user's target input on the touch screen and/or the physical switch button, receive a function synchronization request sent by the electronic device, where the function synchronization request carries identification information of the target application and identification information of the first function;
  • the stylus has a touch display screen
  • the processor 110 may also be used for:
  • the stylus has a physical switch button, and the processor 110 may also be used to:
  • Receive user target input on the touch screen and/or physical switch button including:
  • a parameter setting request is detected within the preset time, receiving a second input from the user on the physical switch button, where the second input includes a parameter setting input for the target function corresponding to the first input;
  • the combination of the first input and the second input is determined as the target input.
  • the stylus also has a touch display screen
  • the processor 110 may also be used for:
  • the target input includes: a third input and a fourth input
  • the target function includes: a first function corresponding to the third input and a second function corresponding to the fourth input
  • the electronic device includes: a first device and The second device.
  • the processor 110 may also be specifically configured to:
  • the second device In response to the fourth input, the second device is controlled to select the second function, so that the second device performs corresponding processing on the processed target object based on the second function.
  • the stylus end receives the user's target input on the touch display screen and/or the physical switch button; in response to the target input, the electronic device is controlled to select the target function, so that the electronic device Based on the target function, the target object is processed accordingly.
  • the function of the electronic device can be selected and switched on the stylus, so that the user does not need to input function switching instructions on the electronic device, saving In the process of first calling up the function menu on the electronic device and then hiding the function menu, the electronic device can automatically trigger the electronic device to select the target function through the stylus, so that the electronic device can perform the processing operation corresponding to the target function on the target object, which simplifies the electronic
  • the function switching steps of the equipment improve the operation speed, flexibility and diversity of electronic equipment.
  • the stylus 200 provided in the embodiment of the present invention can implement the various processes implemented by the stylus in the foregoing control method embodiment. To avoid repetition, details are not described herein again.
  • the radio frequency unit 101 can be used to send and receive information for processing by the processor 110; generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, and a low noise amplifier. , Duplexer, etc. In addition, the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
  • the stylus 200 communicates with the electronic device 100 through the network module 102.
  • the audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the stylus pen 200 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 104 is used to receive audio or video signals.
  • the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame can be displayed on the display unit 106.
  • the image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102.
  • the microphone 1042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
  • the stylus 200 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 1061 when the stylus 200 is moved to the ear. And/or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to recognize the stylus 200 posture (such as horizontal and vertical screen switching, Related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensors 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, Thermometers, infrared sensors, etc., will not be repeated here.
  • the display unit 106 is used to display information input by the user or information provided to the user.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the stylus pen 200.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072.
  • the touch panel 1071 also known as a touch screen (corresponding to the above-mentioned touch screen), can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071).
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed.
  • the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 107 may also include other input devices 1072 (for example, the aforementioned physical switch button).
  • other input devices 1072 may include, but are not limited to, physical rotation buttons, physical pressing buttons, trackballs, and joysticks, which will not be repeated here.
  • the touch panel 1071 can be overlaid on the display panel 1061.
  • the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 1061.
  • the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the stylus 200, in some embodiments, the touch panel 1071 and the display panel 1061 is integrated to realize the input and output functions of the stylus 200, which is not specifically limited here.
  • the interface unit 108 is an interface for connecting an external device with the stylus 200.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the stylus 200 or can be used to connect to the stylus 200 Transfer data between and external devices.
  • the memory 109 can be used to store software programs and various data.
  • the memory 109 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones, etc.
  • the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 110 is the control center of the stylus 200, which uses various interfaces and lines to connect the various parts of the entire stylus 200, runs or executes the software programs and/or modules stored in the memory 109, and calls the memory stored in the memory 109.
  • the data in 109 executes various functions of the stylus pen 200 and processes data, so as to monitor the stylus pen 200 as a whole.
  • the processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem
  • the processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
  • the stylus 200 may also include a power source 111 (such as a battery) for supplying power to various components.
  • a power source 111 such as a battery
  • the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. Consumption management and other functions.
  • the stylus 200 includes some functional modules not shown, which will not be repeated here.
  • the embodiment of the present invention also provides a stylus pen, including a processor 110, a memory 109, a computer program stored in the memory 109 and capable of running on the processor 110, and when the computer program is executed by the processor 110
  • a stylus pen including a processor 110, a memory 109, a computer program stored in the memory 109 and capable of running on the processor 110, and when the computer program is executed by the processor 110
  • the embodiment of the present invention also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by the processor 110, the implementation is as described above.
  • the steps of the embodiment of the control method can achieve the same technical effect. To avoid repetition, the details are not repeated here.
  • the computer-readable storage medium may be a non-transitory storage medium, such as read-only memory (Read-Only Memory, ROM for short), Random Access Memory (RAM for short), magnetic disks, or optical disks.
  • the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
  • the embodiments described in the embodiments of the present invention may be implemented by hardware, software, firmware, middleware, microcode, or a combination thereof.
  • the processing unit can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (Digital Signal Processing, DSP), digital signal processing devices (DSP Device, DSPD), programmable Logic device (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processors, controllers, microcontrollers, microprocessors, and others for performing the functions described in the present invention Electronic unit or its combination.
  • ASICs application specific integrated circuits
  • DSP digital signal processors
  • DSP Device digital signal processing devices
  • DPD digital signal processing devices
  • PLD programmable Logic Device
  • PLD Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • the technology described in the embodiments of the present invention can be implemented by modules (for example, procedures, functions, etc.) that execute the functions described in the embodiments of the present invention.
  • the software codes can be stored in the memory and executed by the processor.
  • the memory can be implemented in the processor or external to the processor.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.
  • a terminal which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

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

Abstract

A control method, a stylus, and an electronic assembly. The method comprises: receiving a target input performed by a user with respect to a touch display screen and/or a physical switch button (S201); and in response to the target input, controlling an electronic apparatus to select a target function, such that the electronic apparatus uses the target function to perform corresponding processing on a target object (S202).

Description

控制方法、触控笔及电子组件Control method, touch pen and electronic component
相关申请的交叉引用Cross-references to related applications
本申请主张2019年11月26日在中国提交的中国专利申请号201911176722.1的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201911176722.1 filed in China on November 26, 2019, the entire content of which is incorporated herein by reference.
技术领域Technical field
本发明涉及智能控制技术领域,尤其涉及一种控制方法、触控笔及电子组件。The present invention relates to the technical field of intelligent control, in particular to a control method, a touch pen and an electronic component.
背景技术Background technique
目前,随着移动通信技术的快速发展,电子设备(例如智能手机等移动终端)已成为人们日常生活中必不可少的电子消费品。随着智能手机越来越普及化,同时,智能手机的功能不断升级、优化,智能手机已经融入生活的各个方面,用户经常在各种场合各种地点使用智能手机。为了提高电子设备的触控识别精度,可以通过为电子设备配备一些辅助型触控工具,例如,触控笔。用户可以借助触控笔在电子设备上进行操作对象选定、文本书写、图文绘制等。At present, with the rapid development of mobile communication technology, electronic devices (such as mobile terminals such as smart phones) have become indispensable electronic consumer goods in people's daily lives. As smart phones become more and more popular, and at the same time, the functions of smart phones are continuously upgraded and optimized. Smart phones have been integrated into all aspects of life. Users often use smart phones in various places and places. In order to improve the touch recognition accuracy of the electronic device, the electronic device can be equipped with some assistive touch tools, such as a stylus. The user can use the stylus to perform operation object selection, text writing, graphic drawing, etc. on the electronic device.
在对电子设备进行操作过程中,通常需要对电子设备的操作功能进行切换,以实现对目标对象执行相应的处理操作。以复制、粘贴的操作功能为例,需要用户先通过电子设备的显示屏或触控笔选中待复制对象,对待复制对象执行按压操作,以触发显示功能选择菜单,用户点击“复制”功能,以完成对待复制对象的复制操作;然后,再在目标区域执行按压操作,以触发显示功能选择菜单,用户点击“粘贴”功能,从而完成对已复制对象的粘贴操作。In the process of operating the electronic device, it is usually necessary to switch the operating function of the electronic device to implement corresponding processing operations on the target object. Taking the copy and paste operation function as an example, the user needs to first select the object to be copied through the display screen of the electronic device or a stylus, and perform a pressing operation on the object to be copied to trigger the display of the function selection menu. The user clicks on the "copy" function to Complete the copy operation of the object to be copied; then, perform a pressing operation on the target area to trigger the display of the function selection menu, and the user clicks the "paste" function to complete the paste operation of the copied object.
由此可知,现有的控制方法存在功能切换过程繁琐、用户操作步骤比较多、用户体验差的问题。It can be seen that the existing control method has the problems of cumbersome function switching process, more user operation steps, and poor user experience.
发明内容Summary of the invention
本发明实施例的目的是提供一种控制方法、触控笔及电子组件,以解决现有的控制方法存在功能切换过程繁琐、用户操作步骤比较多、用户体验差的问 题。The purpose of the embodiments of the present invention is to provide a control method, a stylus pen, and an electronic component, so as to solve the problems of the existing control method that the function switching process is cumbersome, the user has many operation steps, and the user experience is poor.
为了解决上述技术问题,第一方面,本发明实施例提供了一种控制方法,应用于触控笔,触控笔具有触控显示屏和/或物理切换按钮,触控笔与电子设备通信连接,方法包括:In order to solve the above technical problems, in the first aspect, embodiments of the present invention provide a control method, which is applied to a stylus, the stylus has a touch screen and/or a physical switch button, and the stylus is communicatively connected with an electronic device , Methods include:
接收用户在触控显示屏和/或物理切换按钮上的目标输入;Receive user target input on the touch screen and/or physical switch button;
响应于目标输入,控制电子设备选中目标功能,以使电子设备基于目标功能对目标对象进行相应的处理。In response to the target input, the electronic device is controlled to select the target function, so that the electronic device performs corresponding processing on the target object based on the target function.
第二方面,本发明实施例提供了一种触控笔,包括:触控笔具有触控显示屏和/或物理切换按钮,触控笔与电子设备通信连接,触控笔包括:In a second aspect, an embodiment of the present invention provides a stylus, including: the stylus has a touch display screen and/or a physical switch button, the stylus is in communication connection with an electronic device, and the stylus includes:
目标输入接收模块,用于接收用户在触控显示屏和/或物理切换按钮上的目标输入;The target input receiving module is used to receive the user's target input on the touch screen and/or the physical switch button;
功能设置控制模块,用于响应于目标输入,控制电子设备选中目标功能,以使电子设备基于目标功能对目标对象进行相应的处理。The function setting control module is used to control the electronic device to select the target function in response to the target input, so that the electronic device performs corresponding processing on the target object based on the target function.
第三方面,本发明实施例提供了一种电子组件,包括:电子设备和根据第二方面的触控笔;In a third aspect, an embodiment of the present invention provides an electronic component, including: an electronic device and the stylus according to the second aspect;
其中,触控笔与电子设备通信连接。Among them, the stylus is in communication connection with the electronic device.
第四方面,本发明实施例提供了一种触控笔,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,计算机程序被处理器执行时实现如第一方面的控制方法的步骤。In a fourth aspect, an embodiment of the present invention provides a stylus, including: a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the stylus is implemented as in the first aspect. The steps of the control method.
第五方面,本发明实施例提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如第一方面的控制方法的步骤。In the fifth aspect, an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the control method as in the first aspect are implemented.
本发明实施例中的控制方法、触控笔及电子组件,触控笔端接收用户在触控显示屏和/或物理切换按钮上的目标输入;响应于该目标输入,控制电子设备选中目标功能,以使该电子设备基于该目标功能对目标对象进行相应的处理。通过在触控笔上设置触控显示屏和物理切换按钮中至少一个,实现在触控笔上对电子设备的功能进行选择与切换,这样无需用户在电子设备上输入功能切换指令,省去了在电子设备上先调出功能菜单再隐藏功能菜单的过程,通过触控笔即可自动触发电子设备选中目标功能,以使电子设备对目标对象执行与该目标功能对应的处理操作,简化了电子设备的功能切换步骤,提高了电子设备的操作快捷性、灵活性和多样性。In the control method, stylus and electronic components in the embodiments of the present invention, the stylus end receives the user's target input on the touch display screen and/or the physical switch button; in response to the target input, the electronic device is controlled to select the target function, So that the electronic device performs corresponding processing on the target object based on the target function. By setting at least one of the touch screen and the physical switch button on the stylus, the function of the electronic device can be selected and switched on the stylus, so that the user does not need to input function switching instructions on the electronic device, saving In the process of first calling up the function menu on the electronic device and then hiding the function menu, the electronic device can automatically trigger the electronic device to select the target function through the stylus, so that the electronic device can perform the processing operation corresponding to the target function on the target object, which simplifies the electronic The function switching steps of the equipment improve the operation speed, flexibility and diversity of electronic equipment.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,下面描述中的附图仅仅是本发明中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. The drawings in the following description are only for the present invention. For some of the embodiments described in, for those of ordinary skill in the art, other drawings may be obtained from these drawings without creative labor.
图1为本发明实施例提供的控制方法的应用场景示意图;FIG. 1 is a schematic diagram of an application scenario of a control method provided by an embodiment of the present invention;
图2为本发明实施例提供的控制方法的第一种流程示意图;FIG. 2 is a schematic flowchart of the first control method provided by an embodiment of the present invention;
图3a为本发明实施例提供的控制方法的目标功能切换的第一实现原理示意图;3a is a schematic diagram of the first implementation principle of the target function switching of the control method provided by an embodiment of the present invention;
图3b为本发明实施例提供的控制方法的目标功能切换的第二实现原理示意图;3b is a schematic diagram of the second implementation principle of the target function switching of the control method provided by the embodiment of the present invention;
图4为本发明实施例提供的控制方法的第二种流程示意图;4 is a schematic diagram of a second flow of a control method provided by an embodiment of the present invention;
图5为本发明实施例提供的控制方法的功能同步的实现原理示意图;FIG. 5 is a schematic diagram of the realization principle of function synchronization of the control method provided by an embodiment of the present invention;
图6a为本发明实施例提供的控制方法的第三种流程示意图;FIG. 6a is a schematic diagram of a third flow of a control method provided by an embodiment of the present invention;
图6b为本发明实施例提供的控制方法的第四种流程示意图;FIG. 6b is a schematic diagram of a fourth flow of a control method provided by an embodiment of the present invention;
图7a为本发明实施例提供的控制方法的目标功能切换的第三实现原理示意图;FIG. 7a is a schematic diagram of the third implementation principle of the target function switching of the control method provided by an embodiment of the present invention; FIG.
图7b为本发明实施例提供的控制方法的目标功能切换的第四实现原理示意图;FIG. 7b is a schematic diagram of the fourth implementation principle of the target function switching of the control method provided by the embodiment of the present invention;
图8a为本发明实施例提供的控制方法的目标功能切换的第五实现原理示意图;FIG. 8a is a schematic diagram of a fifth implementation principle of the target function switching of the control method provided by an embodiment of the present invention; FIG.
图8b为本发明实施例提供的控制方法的目标功能切换的第六实现原理示意图;8b is a schematic diagram of the sixth implementation principle of the target function switching of the control method provided by the embodiment of the present invention;
图9为本发明实施例提供的触控笔的模块组成示意图;9 is a schematic diagram of the module composition of a stylus provided by an embodiment of the present invention;
图10为本发明实施例提供的触控笔的结构示意图。FIG. 10 is a schematic diagram of the structure of a stylus provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基 于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the technical solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
本发明实施例提供了一种控制方法、触控笔及电子组件,通过在触控笔上设置触控显示屏和物理切换按钮中至少一个,实现在触控笔上对电子设备的功能进行选择与切换,这样无需用户在电子设备上输入功能切换指令,省去了在电子设备上先调出功能菜单再隐藏功能菜单的过程,通过触控笔即可自动触发电子设备选中目标功能,以使电子设备对目标对象执行与该目标功能对应的处理操作,简化了电子设备的功能切换步骤,提高了电子设备的操作快捷性、灵活性和多样性。The embodiment of the present invention provides a control method, a stylus pen, and an electronic component. By setting at least one of a touch display screen and a physical switch button on the stylus pen, the function of the electronic device can be selected on the stylus pen. With switching, the user does not need to input function switching instructions on the electronic device, eliminating the need to call up the function menu and then hide the function menu on the electronic device. The electronic device can automatically trigger the electronic device to select the target function through the stylus. The electronic device performs processing operations corresponding to the target function on the target object, which simplifies the function switching steps of the electronic device, and improves the operation speed, flexibility and diversity of the electronic device.
本发明实施例中,触控笔与电子设备通信连接,电子设备可以包括但不限于智能手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。以智能手机为例,本发明实施例提供的控制方法可以应用在如图1所示的应用场景中,图1包括电子设备100和触控笔200,该触控笔200具有触控显示屏和/或物理切换按钮,该电子设备100与触控笔200通信连接,其中,图1中以触控笔200至少具有触控显示屏为例。通过本发明实施例提供的控制方法,触控笔端接收用户在触控显示屏和/或物理切换按钮上的目标输入;响应于该目标输入,控制电子设备选中目标功能,以使该电子设备基于该目标功能对目标对象进行相应的处理。通过在触控笔上设置触控显示屏和物理切换按钮中至少一个,实现在触控笔上对电子设备的功能进行选择与切换,这样无需用户在电子设备上输入功能切换指令,省去了在电子设备上先调出功能菜单再隐藏功能菜单的过程,通过触控笔即可自动触发电子设备选中目标功能,以使电子设备对目标对象执行与该目标功能对应的处理操作,简化了电子设备的功能切换步骤,提高了电子设备的操作快捷性、灵活性和多样性。In the embodiment of the present invention, the stylus is in communication connection with the electronic device. The electronic device may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle terminal, a wearable device, and a pedometer. Taking a smart phone as an example, the control method provided by the embodiment of the present invention can be applied to the application scenario shown in FIG. 1. FIG. 1 includes an electronic device 100 and a stylus 200. The stylus 200 has a touch screen and /Or a physical switch button, the electronic device 100 is communicatively connected with the stylus 200. In FIG. 1, the stylus 200 has at least a touch screen as an example. Through the control method provided by the embodiment of the present invention, the stylus terminal receives the user's target input on the touch display screen and/or the physical switch button; in response to the target input, the electronic device is controlled to select the target function, so that the electronic device is based on The target function handles the target object accordingly. By setting at least one of the touch screen and the physical switch button on the stylus, the function of the electronic device can be selected and switched on the stylus, so that the user does not need to input function switching instructions on the electronic device, saving In the process of first calling up the function menu on the electronic device and then hiding the function menu, the electronic device can automatically trigger the electronic device to select the target function through the stylus, so that the electronic device can perform the processing operation corresponding to the target function on the target object, which simplifies the electronic The function switching steps of the equipment improve the operation speed, flexibility and diversity of electronic equipment.
图2为本发明实施例提供的控制方法的第一种流程示意图,图2中的方法可以由图1中的触控笔200执行,例如,可以由触控笔200中设置的程序模块执行。如图2所示,该方法至少包括S201和S202。FIG. 2 is a schematic flow chart of the first control method provided by an embodiment of the present invention. The method in FIG. 2 can be executed by the stylus 200 in FIG. 1, for example, can be executed by a program module provided in the stylus 200. As shown in Figure 2, the method includes at least S201 and S202.
在S201,接收用户在触控显示屏和/或物理切换按钮上的目标输入。In S201, the user's target input on the touch screen and/or the physical switch button is received.
具体地,触控笔可以设置有触控显示屏,用户可以在触控显示屏上进行触控操作,触控笔根据检测到的触控操作,确定在该触控显示屏上的目标输入;其中,该触控显示屏可以是可触控的柔性显示屏,该触控显示屏可以设置于触控笔本体的任意位置,通过该触控显示屏可以输入针对功能选项的选择信息。Specifically, the stylus may be provided with a touch screen, and the user can perform touch operations on the touch screen, and the stylus pen determines the target input on the touch screen according to the detected touch operation; Wherein, the touch display screen may be a touchable flexible display screen, and the touch display screen may be arranged at any position of the stylus body, and the selection information for the function options can be input through the touch screen display screen.
触控笔也可以设置有物理切换按钮,用户可以通过对物理切换按钮进行档位切换操作,触控笔根据检测到的档位切换操作,确定在该物理切换按钮的目标输入;其中,该物理切换按钮可以是按动式实体按键,也可以是可转动的实体旋钮,该物理切换按钮也可以设置于触控笔本体的任意位置,通过该物理切换按钮可以输入针对功能选项的选择信息。The stylus can also be provided with a physical switch button. The user can perform a gear switch operation on the physical switch button. The stylus determines the target input on the physical switch button according to the detected gear switch operation; The switch button can be a push-type physical button or a rotatable physical knob. The physical switch button can also be arranged at any position of the stylus body, and the selection information for the function option can be input through the physical switch button.
触控笔还可以同时设置有触控显示屏和物理切换按钮,在触控显示屏上显示当前功能,用户可以结合该当前功能通过对物理切换按钮进行档位切换操作,触控笔根据检测到的档位切换操作,确定用于指示所需设置的目标功能的目标输入。The stylus can also be equipped with a touch screen and a physical switch button at the same time, and the current function is displayed on the touch screen. The user can combine the current function to switch the position of the physical switch button. The gear shifting operation of, determines the target input used to indicate the target function to be set.
在S202,响应于上述目标输入,控制电子设备选中目标功能,以使该电子设备基于该目标功能对目标对象进行相应的处理。In S202, in response to the foregoing target input, the electronic device is controlled to select the target function, so that the electronic device performs corresponding processing on the target object based on the target function.
其中,上述目标功能可以包括复制、粘贴、删除、切换、放大、缩小等常规功能选项,目标功能还可以包括针对特定应用程序的功能选项,例如,修图应用中的画笔、套索等功能。Among them, the above-mentioned target function may include conventional function options such as copy, paste, delete, switch, zoom in, and zoom out. The target function may also include function options for specific applications, such as brushes, lasso and other functions in a photo-retouching application.
例如,若检测到用户针对触控显示屏上的复制标识的点击操作,则确定目标输入对应的指示信息为切换至复制功能,对应的,确定目标功能为复制功能;又例如,若检测到用户将物理切换按钮的档位切换至n档,且n档对应于粘贴功能,则确定目标输入对应的指示信息为切换至粘贴功能,对应的,确定目标功能为粘贴功能。For example, if the user's click operation on the copy logo on the touch screen is detected, the instruction information corresponding to the target input is determined to switch to the copy function, and correspondingly, the target function is determined to be the copy function; for another example, if the user is detected Switch the position of the physical switch button to n file, and n file corresponds to the paste function, then it is determined that the instruction information corresponding to the target input is switching to the paste function, and correspondingly, the target function is determined to be the paste function.
具体地,针对触发电子设备进行功能切换的过程,触控笔向电子设备发送目标功能的标识信息,以使电子设备将操作功能切换至目标功能,即选中目标功能。电子设备再对选中的目标对象执行与该目标功能对应的处理操作。Specifically, for the process of triggering the electronic device to perform function switching, the stylus sends the identification information of the target function to the electronic device, so that the electronic device switches the operation function to the target function, that is, selects the target function. The electronic device then performs a processing operation corresponding to the target function on the selected target object.
例如,若目标功能为复制,则对选中的目标对象进行复制操作;又例如,若目标功能为粘贴,则将已复制的目标对象粘贴至指定区域;再例如,若目标功能为放大,则对选中的目标对象进行放大操作。其中,用户可以通过触控笔在电子设备上选中目标对象,也可以通过在电子设备上对目标对象进行触控操作,以选中该目标对象。For example, if the target function is copy, the selected target object will be copied; for example, if the target function is paste, then the copied target object will be pasted to the specified area; for another example, if the target function is zoom in, then the target object will be copied. The selected target object is zoomed in. Among them, the user can select the target object on the electronic device by using a stylus pen, or can perform a touch operation on the target object on the electronic device to select the target object.
在具体实施时,以在电子设备上将应用程序1中的目标文本复制粘贴到应用程序2中为例,如图3a所示,若触控笔检测到用户对触控显示屏上的复制标识的点击操作,则确定目标功能为复制功能,在触控显示屏上显示复制功能,并向电子设备发送复制功能的标识信息。电子设备选中复制功能,若电子设备 检测到触控笔选中应用1的显示界面下的第一区域(即复制区域)内的目标文本,则对该目标文本执行复制操作。In the specific implementation, take copying and pasting the target text in application 1 to application 2 on the electronic device as an example, as shown in Figure 3a, if the stylus detects that the user’s copy mark on the touch screen is Clicking operation, the target function is determined to be the copy function, the copy function is displayed on the touch screen, and the identification information of the copy function is sent to the electronic device. The electronic device selects the copy function. If the electronic device detects that the stylus selects the target text in the first area (ie, the copy area) under the display interface of the application 1, the copy operation is performed on the target text.
对应的,如图3b所示,在电子设备对目标文本复制完成后,若触控笔检测到用户对触控显示屏上的粘贴标识的点击操作,则确定目标功能为粘贴功能,在触控显示屏上显示粘贴功能,并向电子设备发送粘贴功能的标识信息。电子设备选中粘贴功能,若电子设备检测到触控笔选中应用2的显示界面下的第二区域(即粘贴区域),则将已复制的目标文本粘贴至该第二区域。Correspondingly, as shown in Figure 3b, after the electronic device has copied the target text, if the stylus detects the user's click operation on the paste mark on the touch screen, the target function is determined to be the paste function. The paste function is displayed on the display screen, and identification information of the paste function is sent to the electronic device. The electronic device selects the paste function. If the electronic device detects that the stylus selects the second area (that is, the paste area) under the display interface of the application 2, it will paste the copied target text into the second area.
本发明实施例中,通过在触控笔上设置触控显示屏和物理切换按钮中至少一个,实现在触控笔上对电子设备的功能进行选择与切换,这样无需用户在电子设备上输入功能切换指令,省去了在电子设备上先调出功能菜单再隐藏功能菜单的过程,通过触控笔即可自动触发电子设备选中目标功能,以使电子设备对目标对象执行与该目标功能对应的处理操作,简化了电子设备的功能切换步骤,提高了电子设备的操作快捷性、灵活性和多样性。In the embodiment of the present invention, by setting at least one of a touch display screen and a physical switch button on the stylus pen, the function of the electronic device can be selected and switched on the stylus pen, so that there is no need for the user to input functions on the electronic device The switching instruction eliminates the need to call up the function menu and then hide the function menu on the electronic device. The touch pen can automatically trigger the electronic device to select the target function, so that the electronic device can execute the target function corresponding to the target object. The processing operation simplifies the function switching steps of the electronic device, and improves the operation speed, flexibility and diversity of the electronic device.
进一步的,由于触控笔需要具有的功能选项是由电子设备的功能选项决定的,因此,需要预先基于电子设备的功能选项,在触控笔端进行功能设置,即将电子设备上所用到的功能选项同步到触控笔上。考虑到功能选项越来越多,以及不同应用程序之间的功能选项存在一定差异,为了提高目标功能的选择效率,可以针对不同应用程序设置各自的功能选择菜单。为此,如图4所示,在上述S201,接收用户在触控显示屏和/或物理切换按钮上的目标输入之前,还可以包括:Further, since the function options that the stylus needs to have are determined by the function options of the electronic device, it is necessary to perform function settings on the stylus side based on the function options of the electronic device in advance, that is, the function options used on the electronic device Synchronize to the stylus. Considering that there are more and more function options, and there are certain differences in the function options between different applications, in order to improve the efficiency of selecting the target function, it is possible to set their own function selection menus for different applications. To this end, as shown in FIG. 4, in the above S201, before receiving the user's target input on the touch screen and/or the physical switch button, it may further include:
S203,接收电子设备发送的功能同步请求,其中,该功能同步请求携带有目标应用的标识信息和第一功能的标识信息;S203: Receive a function synchronization request sent by the electronic device, where the function synchronization request carries identification information of the target application and identification information of the first function.
S204,在触控笔端的目标应用对应的功能选择菜单中,增加第一功能对应的选项。S204: Add an option corresponding to the first function in the function selection menu corresponding to the target application on the stylus side.
具体地,可以针对不同应用程序设置通用的功能选择菜单,该功能选择菜单中汇总有各应用程序的可选功能对应的选项,还可以针对不同的应用程序,设置各自的功能选择菜单,这样能够缩小目标功能的选择范围,提高目标功能的选择针对性,从而提高目标功能的选择效率。另外,在触控笔上,也可以针对某一应用的已同步的功能选择菜单中的功能选项进行查看和编辑。Specifically, a common function selection menu can be set for different applications. The function selection menu summarizes the options corresponding to the optional functions of each application. You can also set up their own function selection menus for different applications. Narrow the range of target function selection, improve the pertinence of target function selection, thereby improving the efficiency of target function selection. In addition, on the stylus, you can also view and edit the function options in the menu for the synchronized functions of a certain application.
在一些实施例中,还可以在上述目标应用对应的功能选择菜单中,增加第二功能对应的选项、第三功能对应的选项,具体过程,增加第一功能对应的选 项的过程,在此不再赘述。In some embodiments, it is also possible to add options corresponding to the second function and options corresponding to the third function in the function selection menu corresponding to the target application. The specific process is the process of adding options corresponding to the first function. Go into details again.
如图5所示,以将应用n支持的功能同步到触控笔为例,在电子设备上显示应用n的功能选项列表,若电子设备检测到用户选中粘贴功能,则将应用n的标识信息和粘贴功能的标识信息发送至触控笔。触控笔将粘贴功能增加到应用n的功能选择菜单中,类似的,可以将复制功能、剪切功能、放大功能、缩小功能同步到触控笔上。As shown in Figure 5, taking the synchronization of functions supported by application n to the stylus as an example, a list of function options of application n is displayed on the electronic device. If the electronic device detects that the user selects the paste function, the identification information of application n will be applied And the identification information of the paste function is sent to the stylus. The stylus adds the paste function to the function selection menu of application n. Similarly, the copy function, cut function, zoom function, and zoom function can be synchronized to the stylus.
其中,若触控笔具有触控显示屏,且预先已针对目标应用,设置该目标应用的功能选择菜单,该功能选择菜单中已增加第一功能对应的选项。Wherein, if the stylus has a touch screen, and a function selection menu of the target application has been set for the target application in advance, the function selection menu has added an option corresponding to the first function.
在一些实施例中,在上述图4的基础上,如图6a所示,上述S201,接收用户在触控显示屏和/或物理切换按钮上的目标输入,可以包括:In some embodiments, on the basis of the foregoing FIG. 4, as shown in FIG. 6a, the foregoing S201, receiving a user's target input on the touch display screen and/or the physical switch button, may include:
S2011,在触控显示屏上,显示增加第一功能对应的选项后的功能选择菜单;S2011, on the touch screen, display the function selection menu after adding the option corresponding to the first function;
S2012,接收用户在触控显示屏上,针对增加第一功能对应的选项后的功能选择菜单的目标输入。S2012: Receive the user's target input on the touch display screen for the function selection menu after adding the option corresponding to the first function.
具体地,用户在电子设备对某一应用进行操作的过程中,可能具有切换到某一功能的需求,例如,第一功能即为用户需要选择的目标功能,对应的,电子设备将当前运行应用的标识信息发送至触控笔。触控笔在接收到该标识信息后,调取与该标识信息对应的功能选择菜单,并在触控显示屏上显示该功能选择菜单,以便用户可以基于该功能选择菜单在触控显示屏上进行触控操作,输入用于表征选中第一功能的目标输入,其中,该触控操作可以是点击操作,还可以是滑动操作。或者,若触控笔还具有物理切换按钮,用户还可以基于该功能选择菜单,对物理切换按钮进行档位切换操作,输入用于表征选中第一功能的目标输入,其中,该档位切换操作可以是按压操作,还可以是转动操作。Specifically, the user may have the need to switch to a certain function during the operation of the electronic device on a certain application. For example, the first function is the target function that the user needs to select. Correspondingly, the electronic device will currently run the application. The identification information of is sent to the stylus. After receiving the identification information, the stylus retrieves the function selection menu corresponding to the identification information, and displays the function selection menu on the touch screen, so that the user can select the menu based on the function on the touch screen. Perform a touch operation, and the input is used to characterize the target input of the first function selected, where the touch operation can be a click operation or a sliding operation. Or, if the stylus also has a physical switch button, the user can also select a menu based on the function to perform a gear switch operation on the physical switch button, and input a target input used to characterize the selection of the first function, where the gear switch operation It can be a pressing operation or a rotating operation.
同时,在接收到用户在触控显示屏和/或物理切换按钮上的目标输入的情况下,在触控显示屏上,显示当前所选功能的图标,以标识用户当前选择的功能,以便用户快速选定所需的目标功能。At the same time, when the user’s target input on the touch screen and/or the physical switch button is received, the icon of the currently selected function is displayed on the touch screen to identify the function currently selected by the user, so that the user Quickly select the desired target function.
进一步的,在一些实施例中,若触控笔具有物理切换按钮。Further, in some embodiments, if the stylus has a physical switch button.
物理切换按钮的切换信号反馈更强,并且在不需要设置多级功能子菜单的情况下,实现多级功能的切换指令输入。对应地,如图6b所示,上述S201,接收用户在触控显示屏和/或物理切换按钮上的目标输入,具体可以包括:The switch signal feedback of the physical switch button is stronger, and the switch command input of the multi-level function is realized without the need to set the multi-level function sub-menu. Correspondingly, as shown in FIG. 6b, the above S201, receiving the user's target input on the touch screen and/or the physical switch button, may specifically include:
S2013,接收用户在物理切换按钮上的第一输入;S2013, receiving the user's first input on the physical switching button;
S2014,若在预设时间内检测到参数设置请求,则接收用户在物理切换按钮上的第二输入,其中,该第二输入包括:针对第一输入对应的目标功能的参数设置输入;S2014: If a parameter setting request is detected within a preset time, receive a second input from the user on the physical switch button, where the second input includes: parameter setting input for the target function corresponding to the first input;
S2015,将接收到的第一输入和第二输入的组合确定为目标输入。S2015: Determine the received combination of the first input and the second input as the target input.
具体地,针对某一功能下包含具体参数选择的情况,可以通过针对该功能设置多级功能选择菜单,在选定一个功能之后,用户在触控显示屏上通过逐级进入该功能的参数设定界面,选择针对该功能的具体参数,来实现多级功能的切换指令输入;也可以直接通过物理切换按钮,在不需要设置多级功能子菜单的情况下,能够实现多级功能的切换指令输入。Specifically, for a certain function that contains specific parameter selection, a multi-level function selection menu can be set for the function. After a function is selected, the user enters the parameter setting of the function step by step on the touch screen. Set the interface, select the specific parameters for the function to realize the switching instruction input of the multi-level function; you can also directly use the physical switch button to realize the switching instruction of the multi-level function without setting the multi-level function sub-menu enter.
以一个二级功能设置为例,针对将功能切换到放大或缩小功能而言,还可以对放大倍数或缩小倍数进行设置。Taking a secondary function setting as an example, for switching the function to zoom in or zoom out, you can also set the zoom in or zoom out.
具体地,如图7a所示,用户通过对物理切换按钮进行档位切换操作,将当前功能切换至放大功能,即接收用户在物理切换按钮上的第一输入,该第一输入用于表征切换至放大功能。若在预设时间内检测到用户对预设按键的按压操作,则确定在预设时间内检测到参数设置请求。用户继续通过对物理切换按钮进行档位切换操作,此时该档位切换操作用于表征触发放大倍数的切换选择,将当前功能切换至放大功能且放大150%,即接收用户在物理切换按钮上的第二输入,该第二输入用于表征切换至放大150%,也就是说,该第二输入可以包括针对放大功能的放大倍数的设置输入。Specifically, as shown in FIG. 7a, the user switches the current function to the zoom function by performing a shift operation on the physical switch button, that is, receives the user's first input on the physical switch button, and the first input is used to characterize the switch To the zoom function. If the user's pressing operation on the preset button is detected within the preset time, it is determined that the parameter setting request is detected within the preset time. The user continues to perform the gear switching operation on the physical switch button. At this time, the gear switching operation is used to characterize the switch selection of the trigger magnification factor. The current function is switched to the magnification function and the magnification is 150%, that is, receiving the user on the physical switch button The second input is used to characterize switching to 150% magnification, that is, the second input may include a setting input for the magnification of the magnification function.
又例如,以一个三级功能设置为例,针对将功能切换到颜色设置功能而言,还可以对颜色类型进行设置,针对将功能切换到当前选择颜色类型的设置而言,还可以对该颜色类型下的颜色透明度进行设置。For another example, taking a three-level function setting as an example, for switching the function to the color setting function, the color type can also be set, and for the setting of switching the function to the currently selected color type, the color type can also be set. Set the color transparency under the type.
具体地,如图7b所示,用户通过对物理切换按钮进行档位切换操作,将当前功能切换至颜色设置功能,即接收用户在物理切换按钮上的第一输入,该第一输入用于表征切换至颜色设置功能;若在预设时间内检测到用户对预设按键的按压操作,则确定在预设时间内检测到参数设置请求,用户继续通过对物理切换按钮进行档位切换操作,此时该档位切换操作用于表征触发颜色类型的切换选择,将当前功能切换至颜色设置功能且选择红色,即接收用户在物理切换按钮上的第二输入,该第二输入用于表征切换至颜色为红色,也就是说,该第二输入包括针对颜色设置功能的颜色类型的设置输入。Specifically, as shown in FIG. 7b, the user switches the current function to the color setting function by performing a shift operation on the physical switch button, that is, receives the user's first input on the physical switch button, and the first input is used to characterize Switch to the color setting function; if the user's pressing operation on the preset button is detected within the preset time, it is determined that the parameter setting request is detected within the preset time, and the user continues to perform the shift operation by switching the physical switch button. When the gear switch operation is used to characterize the switch selection of the trigger color type, the current function is switched to the color setting function and red is selected, that is, the second input of the user on the physical switch button is received, and the second input is used to characterize the switch to The color is red, that is, the second input includes a setting input for the color type of the color setting function.
进一步的,若在预设时间内又检测到用户对预设按键的按压操作,则确定 在预设时间内检测到参数设置请求,用户继续通过对物理切换按钮进行档位切换操作,此时该档位切换操作用于表征触发透明度的切换选择,将当前功能切换至颜色设置功能且选择红色且透明度80%,即接收用户在物理切换按钮上的第二输入,该第二输入用于表征切换至红色透明度80%,也就是说,该第二输入包括:针对选中的红色的透明度的设置输入。其中,上述用于表征切换至颜色为红色的第二输入作为新的第一输入,用于表征切换至红色透明度80%即为针对该第一输入的第二输入,此时,将用于表征切换至颜色设置功能的第一输入、用于表征切换至颜色为红色的新的第一输入、用于表征切换至红色透明度80%的第二输入的组合确定为目标输入。类似的,针对更多级的功能设置,可以采用上述过程确定目标输入,在此不再赘述。Further, if the user's pressing operation on the preset button is detected within the preset time, it is determined that the parameter setting request is detected within the preset time, and the user continues to perform the gear switching operation on the physical switch button. The gear switch operation is used to characterize the switch selection of triggering transparency. Switch the current function to the color setting function and select red with a transparency of 80%, that is, to receive the user's second input on the physical switch button, which is used to characterize the switch The red transparency reaches 80%, that is, the second input includes: setting input for the transparency of the selected red. Wherein, the second input used to characterize switching to red is used as the new first input, and the second input used to characterize switching to red with 80% transparency is the second input for the first input. At this time, it will be used to characterize The combination of the first input for switching to the color setting function, the new first input for characterizing switching to red color, and the second input for characterizing switching to red transparency of 80% is determined as the target input. Similarly, for more levels of function settings, the above process can be used to determine the target input, which will not be repeated here.
进一步的,若触控笔具有触控显示屏和物理切换按钮,接收用户在触控显示屏和物理切换按钮上的目标输入。这使得用户能够更加直观地获知当前选择的功能,以便能够在触控笔上实现快速、准确地对电子设备的目标功能进行切换。对应地,以第一输入的确定过程为例,第二输入的确定过程类似,具体地,上述S2013,接收用户在物理切换按钮上的第一输入,具体可以包括步骤一和步骤二。Further, if the stylus has a touch display screen and a physical switch button, the user's target input on the touch display screen and the physical switch button is received. This enables the user to learn the currently selected function more intuitively, so that the target function of the electronic device can be quickly and accurately switched on the stylus. Correspondingly, taking the determination process of the first input as an example, the determination process of the second input is similar. Specifically, in S2013, receiving the user's first input on the physical switch button may specifically include step one and step two.
在步骤一,在检测到针对物理切换按钮的档位切换操作的情况下,在触控显示屏上,显示功能选择提示信息。In step one, in the case of detecting a shift operation for the physical shift button, a function selection prompt message is displayed on the touch screen.
其中,该功能选项提示信息可以包括:当前切换档位对应的当前选定功能、在前切换档位对应的在前可选功能、在后切换档位对应的在后可选功能中至少一项;即在触控显示屏上按照预设顺序显示可选的多个功能选项,其中,可以将当前选定的功能选项以选中方式显示。Wherein, the function option prompt information may include: at least one of the currently selected function corresponding to the current shift position, the previous selectable function corresponding to the previous shift position, and the subsequent selectable function corresponding to the later shift position. ; That is, multiple optional function options are displayed in a preset order on the touch screen, and the currently selected function options can be displayed in a selected manner.
在步骤二,接收用户基于上述功能选项提示信息在物理切换按钮上的第一输入。In step two, the user's first input on the physical switch button based on the above-mentioned function option prompt information is received.
在具体实施时,不仅在触控显示屏上显示当前切换档位对应的当前选定功能,还可以同时在触控显示屏上显示在前切换档位对应的在前可选功能、在后切换档位对应的在后可选功能,这样能够有效引导用户更加直观地通过对物理切换按钮的档位切换操作,来实现功能之间的切换,快速、准确地切换至所需选择的目标功能。In specific implementation, not only the currently selected function corresponding to the current shift position is displayed on the touch screen, but also the previous selectable function corresponding to the previous shift position and the subsequent shift on the touch screen display The subsequent optional functions corresponding to the gear position can effectively guide the user to more intuitively switch between the functions through the gear switching operation of the physical switch button, and quickly and accurately switch to the desired target function.
为了进一步提高目标功能的切换效率,减少用户在触控笔上的目标输入的输入次数,接收到的目标输入可以对应于至少两个可选功能,再由电子设备自 动从中选取一个可选功能作为最终要执行的目标功能。In order to further improve the switching efficiency of the target function and reduce the number of input of the user's target input on the stylus, the received target input can correspond to at least two optional functions, and then the electronic device automatically selects an optional function from them. The final target function to be executed.
因此,在一些实施例中,目标功能包括至少两个可选功能。对应的,上述电子设备基于目标功能对目标对象进行相应的处理,具体可以包括:Therefore, in some embodiments, the target function includes at least two optional functions. Correspondingly, the above-mentioned electronic device performs corresponding processing on the target object based on the target function, which may specifically include:
上述电子设备确定触控笔对目标对象的触控操作类型;The above electronic device determines the type of touch operation of the stylus on the target object;
上述电子设备确定与上述触控操作类型对应的可选功能;The above-mentioned electronic device determines the optional function corresponding to the above-mentioned touch operation type;
上述电子设备对目标对象执行与确定出的可选功能对应的处理操作。The above-mentioned electronic device performs processing operations corresponding to the determined optional functions on the target object.
具体地,针对基于接收到的目标输入,可以确定至少两个可选功能的情况,电子设备可以再结合触控笔对目标对象的触控操作类型,来确定当前选择的目标功能,这样能够进一步提高目标功能的切换效率,减少用户在触控笔上的目标输入的输入次数。Specifically, for the situation where at least two optional functions can be determined based on the received target input, the electronic device can then combine the touch operation type of the stylus on the target object to determine the currently selected target function, which can further Improve the switching efficiency of the target function, and reduce the number of input of the user's target input on the stylus.
在具体实施时,以至少两个可选功能为放大和缩小为例,电子设备若检测到触控笔对目标对象执行向外拖拽操作,则确定可选功能为放大功能;若检测到触控笔对目标对象执行向内拖拽操作,则确定可选功能为缩小功能。In specific implementation, taking at least two optional functions of zooming in and zooming out as an example, if the electronic device detects that the stylus performs an outward drag operation on the target object, it determines that the optional function is the zoom function; When the stylus performs an inward drag operation on the target object, it is determined that the optional function is the zoom out function.
进一步的,考虑到可能存在两个相互关联的操作功能分别在不同电子设备上执行的情况,基于此,上述目标输入可包括:第三输入和第四输入,该目标功能包括:与第三输入对应的第一功能和与第四输入对应的第二功能,用于控制的电子设备包括:第一设备和第二设备。Further, considering that there may be two interrelated operating functions that are executed on different electronic devices, based on this, the above-mentioned target input may include: a third input and a fourth input, and the target function includes: and the third input Corresponding to the first function and the second function corresponding to the fourth input, the electronic device used for control includes: a first device and a second device.
对应的,上述S202,响应于上述目标输入,控制电子设备选中目标功能,以使该电子设备基于该目标功能对目标对象进行相应的处理,具体可以包括:Correspondingly, the aforementioned S202, in response to the aforementioned target input, controls the electronic device to select the target function, so that the electronic device performs corresponding processing on the target object based on the target function, which may specifically include:
步骤一,响应于第三输入,控制第一设备选中第一功能,以使该第一设备基于第一功能对目标对象进行相应的处理;Step 1: In response to the third input, control the first device to select the first function, so that the first device performs corresponding processing on the target object based on the first function;
步骤二,接收第一设备发送的处理后的目标对象;Step 2: Receive the processed target object sent by the first device;
步骤三,响应于第四输入,控制第二设备选中第二功能,以使该第二设备基于第二功能对处理后的目标对象进行相应的处理。Step 3: In response to the fourth input, control the second device to select the second function, so that the second device performs corresponding processing on the processed target object based on the second function.
具体地,触控笔将从第一设备处接收的处理后的目标对象,发送至第二设备,以使该第二设备基于第二功能对处理后的目标对象进行相应的处理。Specifically, the stylus sends the processed target object received from the first device to the second device, so that the second device performs corresponding processing on the processed target object based on the second function.
在一些实施例中,可以针对第一电子设备与第二电子设备之间未联网的情况下,通过触控笔实现将第一电子设备上的目标文本复制并粘贴到第二电子设备上。In some embodiments, when the first electronic device and the second electronic device are not connected to the Internet, the target text on the first electronic device can be copied and pasted to the second electronic device through a stylus.
在具体实施时,如图8a、8b所示,以第一功能为复制功能,第二功能为粘贴功能为例,在第一电子设备的显示界面1中复制目标文本,并将目标文本 粘贴到第二电子设备的显示界面2中。In specific implementation, as shown in Figures 8a and 8b, taking the first function as the copy function and the second function as the paste function as an example, copy the target text in the display interface 1 of the first electronic device, and paste the target text into In the display interface 2 of the second electronic device.
具体地,在图8a中,若触控笔检测到用户对触控显示屏上的复制标识的点击操作,则确定目标功能为复制功能,在触控显示屏上显示复制功能,并向第一电子设备发送复制功能的标识信息。第一电子设备将操作功能切换至复制功能,即第一电子设备选中复制功能,若第一电子设备检测到触控笔选中显示界面1中第一区域(即复制区域)内的目标文本,则对该目标文本执行复制操作。Specifically, in FIG. 8a, if the stylus detects the user's click operation on the copy mark on the touch display screen, it determines that the target function is the copy function, displays the copy function on the touch screen, and sends it to the first The electronic device sends the identification information of the copy function. The first electronic device switches the operating function to the copy function, that is, the first electronic device selects the copy function. If the first electronic device detects that the stylus selects the target text in the first area (ie, the copy area) of the display interface 1, then Perform a copy operation on the target text.
其中,由于需要将目标文本从一个电子设备复制到另一个电子设备中,即需要切换至第二电子设备进行粘贴操作,因此,需要将已复制的目标文本发送至触控笔上,以使触控笔再将已复制的目标文本发送至第二电子设备,第二电子设备将目标文本粘贴到指定区域。Among them, since the target text needs to be copied from one electronic device to another electronic device, that is, it needs to be switched to the second electronic device for pasting operation, the copied target text needs to be sent to the stylus to make the touch The stylus then sends the copied target text to the second electronic device, and the second electronic device pastes the target text into the designated area.
具体地,在第一电子设备对目标文本复制完成并将目标文本发送至触控笔后,在图8b中,若触控笔检测到用户对触控显示屏上的粘贴标识的点击操作,则确定目标功能为粘贴功能,在触控显示屏上显示粘贴功能,并向第二电子设备发送粘贴功能的标识信息。第二电子设备将操作功能切换至粘贴功能,即第二电子设备选中粘贴功能,若第二电子设备检测到触控笔选中显示界面2中的第二区域(即粘贴区域),则获取触控笔发送的已复制的目标文本,并将已复制的目标文本粘贴至该第二区域。Specifically, after the first electronic device completes copying the target text and sends the target text to the stylus, in FIG. 8b, if the stylus detects the user's click operation on the paste mark on the touch display screen, then It is determined that the target function is the paste function, the paste function is displayed on the touch display screen, and the identification information of the paste function is sent to the second electronic device. The second electronic device switches the operation function to the paste function, that is, the second electronic device selects the paste function, and if the second electronic device detects that the stylus selects the second area (ie the paste area) in the display interface 2, it will acquire the touch The copied target text sent by the pen, and the copied target text is pasted into the second area.
需要说明的是,上述仅以复制功能和粘贴功能进行举例说明,同样的,也适用于其他两个相互关联的操作功能分别在不同电子设备上执行的情况,在此不再赘述。It should be noted that the above description only uses the copy function and the paste function as an example. The same applies to the case where the other two interrelated operating functions are executed on different electronic devices, and will not be repeated here.
本发明实施例中的控制方法,触控笔端接收用户在触控显示屏和/或物理切换按钮上的目标输入;响应于该目标输入,控制电子设备选中目标功能,以使该电子设备基于该目标功能对目标对象进行相应的处理。通过在触控笔上设置触控显示屏和物理切换按钮中至少一个,实现在触控笔上对电子设备的功能进行选择与切换,这样无需用户在电子设备上输入功能切换指令,省去了在电子设备上先调出功能菜单再隐藏功能菜单的过程,通过触控笔即可自动触发电子设备选中目标功能,以使电子设备对目标对象执行与该目标功能对应的处理操作,简化了电子设备的功能切换步骤,提高了电子设备的操作快捷性、灵活性和多样性。In the control method of the embodiment of the present invention, the stylus terminal receives the user's target input on the touch screen and/or the physical switch button; in response to the target input, the electronic device is controlled to select the target function, so that the electronic device is based on the The target function handles the target object accordingly. By setting at least one of the touch screen and the physical switch button on the stylus, the function of the electronic device can be selected and switched on the stylus, so that the user does not need to input function switching instructions on the electronic device, saving In the process of first calling up the function menu on the electronic device and then hiding the function menu, the electronic device can automatically trigger the electronic device to select the target function through the stylus, so that the electronic device can perform the processing operation corresponding to the target function on the target object, which simplifies the electronic The function switching steps of the equipment improve the operation speed, flexibility and diversity of electronic equipment.
对应上述实施例提供的控制方法,基于相同的技术构思,本发明实施例还 提供了一种触控笔。图9为本发明实施例提供的触控笔的模块组成示意图,该触控笔用于执行图1至图8b描述的控制方法,触控笔具有触控显示屏和/或物理切换按钮,触控笔与电子设备通信连接。如图9所示,该触控笔包括:Corresponding to the control method provided by the foregoing embodiment, based on the same technical concept, the embodiment of the present invention also provides a stylus. 9 is a schematic diagram of the module composition of a stylus provided by an embodiment of the present invention. The stylus is used to perform the control method described in Figs. 1 to 8b. The stylus has a touch screen and/or a physical switch button. The control pen communicates with the electronic device. As shown in Figure 9, the stylus includes:
目标输入接收模块901,用于接收用户在触控显示屏和/或物理切换按钮上的目标输入;The target input receiving module 901 is used to receive the user's target input on the touch screen and/or the physical switch button;
目标功能控制模块902,用于响应于目标输入,控制电子设备选中目标功能,以使电子设备基于目标功能对目标对象进行相应的处理。The target function control module 902 is configured to control the electronic device to select the target function in response to the target input, so that the electronic device performs corresponding processing on the target object based on the target function.
本发明实施例中,通过在触控笔上设置触控显示屏和物理切换按钮中至少一个,实现在触控笔上对电子设备的功能进行选择与切换,这样无需用户在电子设备上输入功能切换指令,省去了在电子设备上先调出功能菜单再隐藏功能菜单的过程,通过触控笔即可自动触发电子设备选中目标功能,以使电子设备对目标对象执行与该目标功能对应的处理操作,简化了电子设备的功能切换步骤,提高了电子设备的操作快捷性、灵活性和多样性。In the embodiment of the present invention, by setting at least one of a touch display screen and a physical switch button on the stylus pen, the function of the electronic device can be selected and switched on the stylus pen, so that there is no need for the user to input functions on the electronic device The switching instruction eliminates the need to call up the function menu and then hide the function menu on the electronic device. The touch pen can automatically trigger the electronic device to select the target function, so that the electronic device can execute the target function corresponding to the target object. The processing operation simplifies the function switching steps of the electronic device, and improves the operation speed, flexibility and diversity of the electronic device.
可选地,上述触控笔还包括:功能同步模块,用于:Optionally, the aforementioned stylus further includes: a function synchronization module for:
接收电子设备发送的功能同步请求,其中,功能同步请求携带有目标应用的标识信息和第一功能的标识信息;Receiving a function synchronization request sent by the electronic device, where the function synchronization request carries identification information of the target application and identification information of the first function;
在触控笔端的目标应用对应的功能选择菜单中,增加第一功能对应的选项。In the function selection menu corresponding to the target application on the stylus side, an option corresponding to the first function is added.
可选地,若触控笔具有触控显示屏,则目标输入接收模块901具体用于:Optionally, if the stylus has a touch display screen, the target input receiving module 901 is specifically configured to:
在触控显示屏上,显示增加第一功能对应的选项后的功能选择菜单;On the touch screen, display the function selection menu after adding the option corresponding to the first function;
接收用户在触控显示屏上,针对增加第一功能对应的选项后的功能选择菜单的目标输入。Receive the user's target input on the touch screen display for the function selection menu after adding the option corresponding to the first function.
可选地,若触控笔具有物理切换按钮,则目标输入接收模块901还具体用于:Optionally, if the stylus has a physical switch button, the target input receiving module 901 is also specifically configured to:
接收用户在物理切换按钮上的第一输入;Receive the user's first input on the physical switch button;
若在预设时间内检测到参数设置请求,则接收用户在物理切换按钮上的第二输入,其中,第二输入包括针对第一输入对应的目标功能的参数设置输入;If a parameter setting request is detected within the preset time, receiving a second input from the user on the physical switch button, where the second input includes a parameter setting input for the target function corresponding to the first input;
将第一输入和第二输入的组合确定为目标输入。The combination of the first input and the second input is determined as the target input.
可选地,若触控笔还具有触控显示屏,则目标输入接收模块901,还可以用于:Optionally, if the stylus also has a touch screen, the target input receiving module 901 can also be used for:
在检测到针对物理切换按钮的档位切换操作的情况下,在触控显示屏上,显示功能选项提示信息;In the case of detecting the gear switching operation for the physical switching button, display the function option prompt information on the touch screen;
接收用户基于功能选项提示信息在物理切换按钮上的第一输入。Receive the user's first input on the physical switch button based on the function option prompt information.
可选地,目标输入包括:第三输入和第四输入,目标功能包括:与第三输入对应的第一功能和与第四输入对应的第二功能,电子设备包括:第一设备和第二设备。Optionally, the target input includes: a third input and a fourth input, the target function includes: a first function corresponding to the third input and a second function corresponding to the fourth input, and the electronic device includes: a first device and a second device. equipment.
目标功能控制模块902还具体用于:The target function control module 902 is also specifically used for:
响应于第三输入,控制第一设备选中第一功能,以使第一设备基于第一功能对目标对象进行相应的处理;In response to the third input, controlling the first device to select the first function, so that the first device performs corresponding processing on the target object based on the first function;
接收第一设备发送的处理后的目标对象;Receiving the processed target object sent by the first device;
响应于第四输入,控制第二设备选中第二功能,以使第二设备基于第二功能对处理后的目标对象进行相应的处理。In response to the fourth input, the second device is controlled to select the second function, so that the second device performs corresponding processing on the processed target object based on the second function.
本发明实施例中的触控笔,触控笔端接收用户在触控显示屏和/或物理切换按钮上的目标输入;响应于该目标输入,控制电子设备选中目标功能,以使该电子设备基于该目标功能对目标对象进行相应的处理。通过在触控笔上设置触控显示屏和物理切换按钮中至少一个,实现在触控笔上对电子设备的功能进行选择与切换,这样无需用户在电子设备上输入功能切换指令,省去了在电子设备上先调出功能菜单再隐藏功能菜单的过程,通过触控笔即可自动触发电子设备选中目标功能,以使电子设备对目标对象执行与该目标功能对应的处理操作,简化了电子设备的功能切换步骤,提高了电子设备的操作快捷性、灵活性和多样性。In the stylus in the embodiment of the present invention, the stylus end receives the user's target input on the touch screen and/or the physical switch button; in response to the target input, the electronic device is controlled to select the target function so that the electronic device is based on The target function handles the target object accordingly. By setting at least one of the touch screen and the physical switch button on the stylus, the function of the electronic device can be selected and switched on the stylus, so that the user does not need to input function switching instructions on the electronic device, saving In the process of first calling up the function menu on the electronic device and then hiding the function menu, the electronic device can automatically trigger the electronic device to select the target function through the stylus, so that the electronic device can perform the processing operation corresponding to the target function on the target object, which simplifies the electronic The function switching steps of the equipment improve the operation speed, flexibility and diversity of electronic equipment.
本发明实施例提供的触控笔能够实现上述控制方法对应的实施例中的各个过程,为避免重复,这里不再赘述。The stylus provided by the embodiment of the present invention can implement each process in the embodiment corresponding to the above-mentioned control method, and to avoid repetition, it will not be repeated here.
需要说明的是,本发明实施例提供的触控笔与本发明实施例提供的控制方法基于同一发明构思,因此该实施例的具体实施可以参见前述控制方法的实施,重复之处不再赘述。It should be noted that the stylus provided in the embodiment of the present invention and the control method provided in the embodiment of the present invention are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned control method, and the repetition will not be repeated.
对应上述实施例提供的控制方法,基于相同的技术构思,本发明实施例还提供了一种电子组件,该电子组件包括:电子设备和如图9所示的触控笔,其中,触控笔与电子设备通信连接。具体地,可以参见上述图1中所示的电子设备和触控笔。Corresponding to the control method provided by the foregoing embodiment, based on the same technical concept, an embodiment of the present invention also provides an electronic component, which includes: an electronic device and a stylus as shown in FIG. 9, wherein the stylus Communicate and connect with electronic devices. Specifically, refer to the electronic device and stylus shown in FIG. 1 above.
本发明实施例中的电子组件,触控笔端接收用户在触控显示屏和/或物理切换按钮上的目标输入;响应于该目标输入,控制电子设备选中目标功能,以使该电子设备基于该目标功能对目标对象进行相应的处理。通过在触控笔上设置 触控显示屏和物理切换按钮中至少一个,实现在触控笔上对电子设备的功能进行选择与切换,这样无需用户在电子设备上输入功能切换指令,省去了在电子设备上先调出功能菜单再隐藏功能菜单的过程,通过触控笔即可自动触发电子设备选中目标功能,以使电子设备对目标对象执行与该目标功能对应的处理操作,简化了电子设备的功能切换步骤,提高了电子设备的操作快捷性、灵活性和多样性。In the electronic component of the embodiment of the present invention, the stylus end receives the user's target input on the touch screen and/or the physical switch button; in response to the target input, the electronic device is controlled to select the target function, so that the electronic device is based on the The target function handles the target object accordingly. By setting at least one of the touch screen and the physical switch button on the stylus, the function of the electronic device can be selected and switched on the stylus, so that the user does not need to input function switching instructions on the electronic device, saving In the process of first calling up the function menu on the electronic device and then hiding the function menu, the electronic device can automatically trigger the electronic device to select the target function through the stylus, so that the electronic device can perform the processing operation corresponding to the target function on the target object, which simplifies the electronic The function switching steps of the equipment improve the operation speed, flexibility and diversity of electronic equipment.
本发明实施例提供的电子组件能够实现上述控制方法对应的实施例中的各个过程,为避免重复,这里不再赘述。The electronic component provided by the embodiment of the present invention can implement each process in the embodiment corresponding to the above-mentioned control method. In order to avoid repetition, details are not described herein again.
需要说明的是,本发明实施例提供的电子组件与本发明实施例提供的控制方法基于同一发明构思,因此该实施例的具体实施可以参见前述控制方法的实施,重复之处不再赘述。It should be noted that the electronic component provided in the embodiment of the present invention and the control method provided in the embodiment of the present invention are based on the same inventive concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned control method, and the repetition will not be repeated.
对应上述实施例提供的控制方法,基于相同的技术构思,本发明实施例还提供了一种触控笔,该触控笔具有触控显示屏和/或物理切换按钮,该触控笔用于执行上述的控制方法,该触控笔与电子设备通信连接,图10为实现本发明各个实施例的一种触控笔的硬件结构示意图,图10所示的触控笔200包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107(可以对应于上述触控显示屏或物理切换按钮)、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图10中示出的触控笔结构并不构成对触控笔的限定,触控笔可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Corresponding to the control method provided by the foregoing embodiment, based on the same technical concept, an embodiment of the present invention also provides a stylus, the stylus having a touch screen and/or a physical switch button, and the stylus is used for Performing the aforementioned control method, the stylus is communicatively connected with an electronic device. FIG. 10 is a schematic diagram of the hardware structure of a stylus that implements various embodiments of the present invention. The stylus 200 shown in FIG. 10 includes but is not limited to: The radio frequency unit 101, the network module 102, the audio output unit 103, the input unit 104, the sensor 105, the display unit 106, the user input unit 107 (which may correspond to the above-mentioned touch screen or physical switch button), the interface unit 108, the memory 109, The processor 110, and the power supply 111 and other components. Those skilled in the art can understand that the structure of the stylus shown in FIG. 10 does not constitute a limitation on the stylus, and the stylus may include more or fewer components than those shown in the figure, or a combination of certain components, or Different component arrangements.
处理器110用于:接收用户在触控显示屏和/或物理切换按钮上的目标输入;The processor 110 is configured to: receive a user's target input on the touch display screen and/or the physical switch button;
响应于目标输入,控制电子设备选中目标功能,以使电子设备基于目标功能对目标对象进行相应的处理。In response to the target input, the electronic device is controlled to select the target function, so that the electronic device performs corresponding processing on the target object based on the target function.
本发明实施例中,通过在触控笔上设置触控显示屏和物理切换按钮中至少一个,实现在触控笔上对电子设备的功能进行选择与切换,这样无需用户在电子设备上输入功能切换指令,省去了在电子设备上先调出功能菜单再隐藏功能菜单的过程,通过触控笔即可自动触发电子设备选中目标功能,以使电子设备对目标对象执行与该目标功能对应的处理操作,简化了电子设备的功能切换步骤,提高了电子设备的操作快捷性、灵活性和多样性。In the embodiment of the present invention, by setting at least one of a touch display screen and a physical switch button on the stylus pen, the function of the electronic device can be selected and switched on the stylus pen, so that there is no need for the user to input functions on the electronic device The switching instruction eliminates the need to call up the function menu and then hide the function menu on the electronic device. The touch pen can automatically trigger the electronic device to select the target function, so that the electronic device can execute the target function corresponding to the target object. The processing operation simplifies the function switching steps of the electronic device, and improves the operation speed, flexibility and diversity of the electronic device.
此外,处理器110还用于:In addition, the processor 110 is also used to:
在接收用户在触控显示屏和/或物理切换按钮上的目标输入之前,接收电子设备发送的功能同步请求,其中,功能同步请求携带有目标应用的标识信息和第一功能的标识信息;Before receiving the user's target input on the touch screen and/or the physical switch button, receive a function synchronization request sent by the electronic device, where the function synchronization request carries identification information of the target application and identification information of the first function;
在触控笔端的目标应用对应的功能选择菜单中,增加第一功能对应的选项。In the function selection menu corresponding to the target application on the stylus side, an option corresponding to the first function is added.
在一些实施例中,触控笔具有触控显示屏,处理器110还可以用于:In some embodiments, the stylus has a touch display screen, and the processor 110 may also be used for:
在触控显示屏上,显示增加第一功能对应的选项后的功能选择菜单;以及,On the touch screen, display the function selection menu after adding the option corresponding to the first function; and,
接收用户在触控显示屏上,针对增加第一功能对应的选项后的功能选择菜单的目标输入。Receive the user's target input on the touch screen display for the function selection menu after adding the option corresponding to the first function.
在一些实施例中,触控笔具有物理切换按钮,处理器110还可以用于:In some embodiments, the stylus has a physical switch button, and the processor 110 may also be used to:
接收用户在触控显示屏和/或物理切换按钮上的目标输入,包括:Receive user target input on the touch screen and/or physical switch button, including:
接收用户在物理切换按钮上的第一输入;Receive the user's first input on the physical switch button;
若在预设时间内检测到参数设置请求,则接收用户在物理切换按钮上的第二输入,其中,第二输入包括针对第一输入对应的目标功能的参数设置输入;If a parameter setting request is detected within the preset time, receiving a second input from the user on the physical switch button, where the second input includes a parameter setting input for the target function corresponding to the first input;
将第一输入和第二输入的组合确定为目标输入。The combination of the first input and the second input is determined as the target input.
在一些实施例中,触控笔还具有触控显示屏,处理器110还可以用于:In some embodiments, the stylus also has a touch display screen, and the processor 110 may also be used for:
在检测到针对物理切换按钮的档位切换操作的情况下,在触控显示屏上,显示功能选项提示信息;In the case of detecting the gear switching operation for the physical switching button, display the function option prompt information on the touch screen;
接收用户基于功能选项提示信息在物理切换按钮上的第一输入。Receive the user's first input on the physical switch button based on the function option prompt information.
在一些实施例中,目标输入包括:第三输入和第四输入,目标功能包括:与第三输入对应的第一功能和与第四输入对应的第二功能,电子设备包括:第一设备和第二设备。In some embodiments, the target input includes: a third input and a fourth input, the target function includes: a first function corresponding to the third input and a second function corresponding to the fourth input, and the electronic device includes: a first device and The second device.
为了响应于目标输入,控制电子设备选中目标功能,以使电子设备基于目标功能对目标对象进行相应的处理,处理器110还可以具体用于:In order to control the electronic device to select the target function in response to the target input, so that the electronic device performs corresponding processing on the target object based on the target function, the processor 110 may also be specifically configured to:
响应于第三输入,控制第一设备选中第一功能,以使第一设备基于第一功能对目标对象进行相应的处理;In response to the third input, controlling the first device to select the first function, so that the first device performs corresponding processing on the target object based on the first function;
接收第一设备发送的处理后的目标对象;Receiving the processed target object sent by the first device;
响应于第四输入,控制第二设备选中第二功能,以使第二设备基于第二功能对处理后的目标对象进行相应的处理。In response to the fourth input, the second device is controlled to select the second function, so that the second device performs corresponding processing on the processed target object based on the second function.
本发明实施例中的触控笔200,触控笔端接收用户在触控显示屏和/或物理切换按钮上的目标输入;响应于该目标输入,控制电子设备选中目标功能,以使该电子设备基于该目标功能对目标对象进行相应的处理。通过在触控笔上设 置触控显示屏和物理切换按钮中至少一个,实现在触控笔上对电子设备的功能进行选择与切换,这样无需用户在电子设备上输入功能切换指令,省去了在电子设备上先调出功能菜单再隐藏功能菜单的过程,通过触控笔即可自动触发电子设备选中目标功能,以使电子设备对目标对象执行与该目标功能对应的处理操作,简化了电子设备的功能切换步骤,提高了电子设备的操作快捷性、灵活性和多样性。In the stylus 200 in the embodiment of the present invention, the stylus end receives the user's target input on the touch display screen and/or the physical switch button; in response to the target input, the electronic device is controlled to select the target function, so that the electronic device Based on the target function, the target object is processed accordingly. By setting at least one of the touch screen and the physical switch button on the stylus, the function of the electronic device can be selected and switched on the stylus, so that the user does not need to input function switching instructions on the electronic device, saving In the process of first calling up the function menu on the electronic device and then hiding the function menu, the electronic device can automatically trigger the electronic device to select the target function through the stylus, so that the electronic device can perform the processing operation corresponding to the target function on the target object, which simplifies the electronic The function switching steps of the equipment improve the operation speed, flexibility and diversity of electronic equipment.
需要说明的是,本发明实施例提供的触控笔200能够实现上述控制方法实施例中触控笔实现的各个过程,为避免重复,这里不再赘述。It should be noted that the stylus 200 provided in the embodiment of the present invention can implement the various processes implemented by the stylus in the foregoing control method embodiment. To avoid repetition, details are not described herein again.
应理解的是,本发明实施例中,射频单元101可用于收发信息,给处理器110处理;通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the radio frequency unit 101 can be used to send and receive information for processing by the processor 110; generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, and a low noise amplifier. , Duplexer, etc. In addition, the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
触控笔200通过网络模块102与电子设备100通信连接。The stylus 200 communicates with the electronic device 100 through the network module 102.
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与触控笔200执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。The audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the stylus pen 200 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(例如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。The input unit 104 is used to receive audio or video signals. The input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102. The microphone 1042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
触控笔200还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在触控笔200移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器 的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别触控笔200姿态(例如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(例如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The stylus 200 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light. The proximity sensor can close the display panel 1061 when the stylus 200 is moved to the ear. And/or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to recognize the stylus 200 posture (such as horizontal and vertical screen switching, Related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensors 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, Thermometers, infrared sensors, etc., will not be repeated here.
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元107可用于接收输入的数字或字符信息,以及产生与触控笔200的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。The user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the stylus pen 200. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072.
触控面板1071,也称为触摸屏(可以对应于上述触控显示屏),可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。The touch panel 1071, also known as a touch screen (corresponding to the above-mentioned touch screen), can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071). The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed. In addition, the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
除了触控面板1071,用户输入单元107还可以包括其他输入设备1072(例如上述物理切换按钮)。具体地,其他输入设备1072可以包括但不限于物理转动按钮、物理按压按键、轨迹球、操作杆,在此不再赘述。In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072 (for example, the aforementioned physical switch button). Specifically, other input devices 1072 may include, but are not limited to, physical rotation buttons, physical pressing buttons, trackballs, and joysticks, which will not be repeated here.
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图10中,触控面板1071与显示面板1061是作为两个独立的部件来实现触控笔200的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现触控笔200的输入和输出功能,具体此处不做限定。Further, the touch panel 1071 can be overlaid on the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch. The type of event provides corresponding visual output on the display panel 1061. Although in FIG. 10, the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the stylus 200, in some embodiments, the touch panel 1071 and the display panel 1061 is integrated to realize the input and output functions of the stylus 200, which is not specifically limited here.
接口单元108为外部装置与触控笔200连接的接口。例如,外部装置可以 包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到触控笔200内的一个或多个元件或者可以用于在触控笔200和外部装置之间传输数据。The interface unit 108 is an interface for connecting an external device with the stylus 200. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the stylus 200 or can be used to connect to the stylus 200 Transfer data between and external devices.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(例如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(例如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones, etc. In addition, the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器110是触控笔200的控制中心,利用各种接口和线路连接整个触控笔200的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行触控笔200的各种功能和处理数据,从而对触控笔200进行整体监控。处理器110可包括一个或多个处理单元;优选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the stylus 200, which uses various interfaces and lines to connect the various parts of the entire stylus 200, runs or executes the software programs and/or modules stored in the memory 109, and calls the memory stored in the memory 109. The data in 109 executes various functions of the stylus pen 200 and processes data, so as to monitor the stylus pen 200 as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
触控笔200还可以包括给各个部件供电的电源111(例如电池),可选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The stylus 200 may also include a power source 111 (such as a battery) for supplying power to various components. Optionally, the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. Consumption management and other functions.
另外,触控笔200包括一些未示出的功能模块,在此不再赘述。In addition, the stylus 200 includes some functional modules not shown, which will not be repeated here.
可选的,本发明实施例还提供一种触控笔,包括处理器110,存储器109,存储在存储器109上并可在处理器110上运行的计算机程序,该计算机程序被处理器110执行时实现上述控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, the embodiment of the present invention also provides a stylus pen, including a processor 110, a memory 109, a computer program stored in the memory 109 and capable of running on the processor 110, and when the computer program is executed by the processor 110 Each process of the foregoing control method embodiment is implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
进一步地,对应上述实施例提供的控制方法,本发明实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器110执行时实现如上述控制方法实施例的各步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,计算机可读存储介质可以是非暂态存储介质,例如只读存储器(Read-Only Memory,简称ROM)、随机存取 存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Further, corresponding to the control method provided by the above-mentioned embodiment, the embodiment of the present invention also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by the processor 110, the implementation is as described above. The steps of the embodiment of the control method can achieve the same technical effect. To avoid repetition, the details are not repeated here. The computer-readable storage medium may be a non-transitory storage medium, such as read-only memory (Read-Only Memory, ROM for short), Random Access Memory (RAM for short), magnetic disks, or optical disks.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are used to generate It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读 存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
可以理解的是,本发明实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable Logic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本发明所述功能的其它电子单元或其组合中。It can be understood that the embodiments described in the embodiments of the present invention may be implemented by hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (Digital Signal Processing, DSP), digital signal processing devices (DSP Device, DSPD), programmable Logic device (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processors, controllers, microcontrollers, microprocessors, and others for performing the functions described in the present invention Electronic unit or its combination.
对于软件实现,可通过执行本发明实施例所述功能的模块(例如过程、函数等)来实现本发明实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the technology described in the embodiments of the present invention can be implemented by modules (for example, procedures, functions, etc.) that execute the functions described in the embodiments of the present invention. The software codes can be stored in the memory and executed by the processor. The memory can be implemented in the processor or external to the processor.
还需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, product or device including a series of elements not only includes those elements , But also includes other elements that are not explicitly listed, or elements inherent to the process, method, commodity, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity, or equipment that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(例如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保 护的范围情况下,本发明可以有各种更改和变化。凡在本发明的构思和原理之内所作的任何修改、等同替换、改进等,均应包含在本发明的权利要求范围之内。The embodiments of the present invention are described above with reference to the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of the present invention, without departing from the purpose of the present invention and the scope of protection of the claims, the present invention can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the concept and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (12)

  1. 一种控制方法,应用于触控笔,所述触控笔具有触控显示屏和/或物理切换按钮,所述触控笔与电子设备通信连接,所述方法包括:A control method applied to a stylus, the stylus having a touch display screen and/or a physical switch button, and the stylus is communicatively connected with an electronic device, the method comprising:
    接收用户在所述触控显示屏和/或所述物理切换按钮上的目标输入;Receiving a user's target input on the touch display screen and/or the physical switch button;
    响应于所述目标输入,控制所述电子设备选中目标功能,以使所述电子设备基于所述目标功能对目标对象进行相应的处理。In response to the target input, the electronic device is controlled to select a target function, so that the electronic device performs corresponding processing on the target object based on the target function.
  2. 根据权利要求1所述的方法,其中,在接收用户在所述触控显示屏和/或所述物理切换按钮上的目标输入之前,所述方法还包括:The method according to claim 1, wherein before receiving a user's target input on the touch display screen and/or the physical switch button, the method further comprises:
    接收所述电子设备发送的功能同步请求,其中,所述功能同步请求携带有目标应用的标识信息和第一功能的标识信息;Receiving a function synchronization request sent by the electronic device, where the function synchronization request carries identification information of the target application and identification information of the first function;
    在所述触控笔端的所述目标应用对应的功能选择菜单中,增加所述第一功能对应的选项。In the function selection menu corresponding to the target application on the stylus side, an option corresponding to the first function is added.
  3. 根据权利要求2所述的方法,其中,所述触控笔具有触控显示屏,The method of claim 2, wherein the stylus has a touch display screen,
    所述接收用户在所述触控显示屏和/或所述物理切换按钮上的目标输入,包括:The receiving a user's target input on the touch display screen and/or the physical switch button includes:
    在所述触控显示屏上,显示增加所述第一功能对应的选项后的功能选择菜单;On the touch display screen, display a function selection menu after adding an option corresponding to the first function;
    接收用户在所述触控显示屏上,针对所述增加所述第一功能对应的选项后的功能选择菜单的目标输入。Receive a user's target input on the touch screen display for the function selection menu after the option corresponding to the first function is added.
  4. 根据权利要求1所述的方法,其中,所述触控笔具有物理切换按钮,The method of claim 1, wherein the stylus has a physical switch button,
    所述接收用户在所述触控显示屏和/或所述物理切换按钮上的目标输入,包括:The receiving a user's target input on the touch display screen and/or the physical switch button includes:
    接收用户在所述物理切换按钮上的第一输入;Receiving a user's first input on the physical switching button;
    若在预设时间内检测到参数设置请求,则接收所述用户在所述物理切换按钮上的第二输入,其中,所述第二输入包括针对所述第一输入对应的目标功能的参数设置输入;If a parameter setting request is detected within the preset time, a second input from the user on the physical switch button is received, where the second input includes the parameter setting for the target function corresponding to the first input enter;
    将所述第一输入和所述第二输入的组合确定为目标输入。The combination of the first input and the second input is determined as a target input.
  5. 根据权利要求4所述的方法,其中,所述触控笔还具有触控显示屏,The method according to claim 4, wherein the stylus also has a touch display screen,
    所述接收用户在所述物理切换按钮上的第一输入,包括:The receiving a user's first input on the physical switching button includes:
    在检测到针对物理切换按钮的档位切换操作的情况下,在所述触控显示屏上,显示功能选项提示信息;In the case of detecting the gear switching operation for the physical switching button, display the function option prompt information on the touch-sensitive display screen;
    接收用户基于所述功能选项提示信息在所述物理切换按钮上的第一输入。Receive a user's first input on the physical switch button based on the function option prompt information.
  6. 根据权利要求1所述的方法,其中,所述目标输入包括:第三输入和第四输入,所述目标功能包括:与所述第三输入对应的第一功能和与所述第四输入对应的第二功能,所述电子设备包括:第一设备和第二设备,The method according to claim 1, wherein the target input includes: a third input and a fourth input, and the target function includes: a first function corresponding to the third input and a first function corresponding to the fourth input The second function of the electronic device includes: a first device and a second device,
    所述响应于所述目标输入,控制所述电子设备选中目标功能,以使所述电子设备基于所述目标功能对目标对象进行相应的处理,包括:The controlling the electronic device to select a target function in response to the target input so that the electronic device performs corresponding processing on the target object based on the target function includes:
    响应于所述第三输入,控制所述第一设备选中所述第一功能,以使所述第一设备基于所述第一功能对目标对象进行相应的处理;In response to the third input, controlling the first device to select the first function, so that the first device performs corresponding processing on the target object based on the first function;
    接收所述第一设备发送的处理后的所述目标对象;Receiving the processed target object sent by the first device;
    响应于所述第四输入,控制所述第二设备选中所述第二功能,以使所述第二设备基于所述第二功能对所述处理后的所述目标对象进行相应的处理。In response to the fourth input, controlling the second device to select the second function, so that the second device performs corresponding processing on the processed target object based on the second function.
  7. 一种触控笔,具有触控显示屏和/或物理切换按钮,所述触控笔与电子设备通信连接,所述触控笔包括:A stylus has a touch screen and/or a physical switch button, the stylus is in communication connection with an electronic device, and the stylus includes:
    目标输入接收模块,用于接收用户在所述触控显示屏和/或所述物理切换按钮上的目标输入;A target input receiving module, configured to receive a user's target input on the touch screen and/or the physical switch button;
    目标功能控制模块,用于响应于所述目标输入,控制所述电子设备选中目标功能,以使所述电子设备基于所述目标功能对目标对象进行相应的处理。The target function control module is configured to control the electronic device to select a target function in response to the target input, so that the electronic device performs corresponding processing on the target object based on the target function.
  8. 一种电子组件,包括:电子设备和如权利要求7所述的触控笔,其中,所述触控笔与所述电子设备通信连接。An electronic component, comprising: an electronic device and the stylus according to claim 7, wherein the stylus is communicatively connected with the electronic device.
  9. 一种触控笔,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述的控制方法的步骤。A stylus pen, comprising: a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program being executed by the processor implements claims 1 to 6 The steps of any one of the control methods.
  10. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的控制方法的步骤。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the control method according to any one of claims 1 to 6 are realized.
  11. 一种计算机程序产品,所述程序产品被至少一个处理器执行以实现如权利要求1至6任一项所述的控制方法。A computer program product, which is executed by at least one processor to implement the control method according to any one of claims 1 to 6.
  12. 一种控制装置,所述控制装置被配置用于执行如权利要求1至6任一项所述的控制方法。A control device configured to execute the control method according to any one of claims 1 to 6.
PCT/CN2020/131199 2019-11-26 2020-11-24 Control method, stylus, and electronic assembly WO2021104271A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911176722.1A CN110908582A (en) 2019-11-26 2019-11-26 Control method, touch control pen and electronic assembly
CN201911176722.1 2019-11-26

Publications (1)

Publication Number Publication Date
WO2021104271A1 true WO2021104271A1 (en) 2021-06-03

Family

ID=69819735

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/131199 WO2021104271A1 (en) 2019-11-26 2020-11-24 Control method, stylus, and electronic assembly

Country Status (2)

Country Link
CN (1) CN110908582A (en)
WO (1) WO2021104271A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200095739A (en) 2019-02-01 2020-08-11 삼성전자주식회사 Electronic device and method for mapping function of electronic device and action of stylus pen
CN110908582A (en) * 2019-11-26 2020-03-24 维沃移动通信有限公司 Control method, touch control pen and electronic assembly
CN111443819B (en) * 2020-03-26 2024-03-22 维沃移动通信有限公司 Control method and electronic equipment
CN111665984A (en) * 2020-05-29 2020-09-15 维沃移动通信有限公司 Information processing method and device, electronic equipment and readable storage medium
CN111880706B (en) * 2020-07-23 2021-12-14 维沃移动通信有限公司 Function switching method and device, electronic equipment and readable storage medium
CN112256373B (en) * 2020-10-21 2023-05-23 中国联合网络通信集团有限公司 Setting method of USIM application shortcut, terminal and smart card
CN113220144B (en) * 2021-03-15 2022-06-07 荣耀终端有限公司 Touch control pen
CN113687872B (en) * 2021-07-19 2024-03-29 三六零数字安全科技集团有限公司 Selection component control method, device, storage medium and apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140253463A1 (en) * 2013-03-11 2014-09-11 Barnesandnoble.Com Llc Stylus-based touch-sensitive area for ui control of computing device
CN105302341A (en) * 2014-06-05 2016-02-03 宏达国际电子股份有限公司 Electronic system, stylus, and data transmission method between electronic device and the stylus
CN107924241A (en) * 2015-08-18 2018-04-17 微软技术许可有限责任公司 Annular button assembly in electronic product
CN108376036A (en) * 2017-01-30 2018-08-07 京瓷办公信息系统株式会社 Pen type input device and display input system
CN110908582A (en) * 2019-11-26 2020-03-24 维沃移动通信有限公司 Control method, touch control pen and electronic assembly

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101907463B1 (en) * 2012-02-24 2018-10-12 삼성전자주식회사 Composite touch screen and operating method thereof
CN103677330A (en) * 2012-09-26 2014-03-26 深圳富泰宏精密工业有限公司 Stylus and displaying method for writing state of stylus
CN205450996U (en) * 2016-03-25 2016-08-10 广州宇卡电子科技有限公司 Intelligence touch -control pen

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140253463A1 (en) * 2013-03-11 2014-09-11 Barnesandnoble.Com Llc Stylus-based touch-sensitive area for ui control of computing device
CN105302341A (en) * 2014-06-05 2016-02-03 宏达国际电子股份有限公司 Electronic system, stylus, and data transmission method between electronic device and the stylus
CN107924241A (en) * 2015-08-18 2018-04-17 微软技术许可有限责任公司 Annular button assembly in electronic product
CN108376036A (en) * 2017-01-30 2018-08-07 京瓷办公信息系统株式会社 Pen type input device and display input system
CN110908582A (en) * 2019-11-26 2020-03-24 维沃移动通信有限公司 Control method, touch control pen and electronic assembly

Also Published As

Publication number Publication date
CN110908582A (en) 2020-03-24

Similar Documents

Publication Publication Date Title
WO2021104271A1 (en) Control method, stylus, and electronic assembly
AU2020201096B2 (en) Quick screen splitting method, apparatus, and electronic device, display UI, and storage medium
US11204684B2 (en) Sticker presentation method and apparatus and computer-readable storage medium
US11054988B2 (en) Graphical user interface display method and electronic device
US11575636B2 (en) Method of managing processing progress of a message in a group communication interface and terminal
WO2021012931A1 (en) Icon management method and terminal
WO2019228297A1 (en) Display control method and terminal
EP3691235A1 (en) Display method and mobile terminal
CN110007835B (en) Object management method and mobile terminal
WO2021004426A1 (en) Content selection method, and terminal
WO2019196691A1 (en) Keyboard interface display method and mobile terminal
US11354017B2 (en) Display method and mobile terminal
WO2021104160A1 (en) Editing method and electronic device
CN108446156B (en) Application program control method and terminal
US11567725B2 (en) Data processing method and mobile device
CN110673770B (en) Message display method and terminal equipment
WO2020007114A1 (en) Method and apparatus for switching split-screen application, storage medium, and electronic device
WO2020007116A1 (en) Split-screen window adjustment method and apparatus, storage medium and electronic device
WO2021238719A1 (en) Information display method and electronic device
WO2021037074A1 (en) Audio output method and electronic apparatus
WO2020078234A1 (en) Display control method and terminal
WO2020134743A1 (en) Icon moving method and terminal
WO2021083090A1 (en) Message sending method and mobile terminal
WO2019076377A1 (en) Image viewing method and mobile terminal
CN111124345A (en) Audio source processing method and mobile terminal

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: 20892963

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: 20892963

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20892963

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 28.02.2023)