WO2022166945A1 - 触控笔的处理方法、装置和电子设备 - Google Patents

触控笔的处理方法、装置和电子设备 Download PDF

Info

Publication number
WO2022166945A1
WO2022166945A1 PCT/CN2022/075339 CN2022075339W WO2022166945A1 WO 2022166945 A1 WO2022166945 A1 WO 2022166945A1 CN 2022075339 W CN2022075339 W CN 2022075339W WO 2022166945 A1 WO2022166945 A1 WO 2022166945A1
Authority
WO
WIPO (PCT)
Prior art keywords
stylus
pen slot
pen
electronic device
target image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2022/075339
Other languages
English (en)
French (fr)
Inventor
吴炉彬
张卿远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Publication of WO2022166945A1 publication Critical patent/WO2022166945A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of two-dimensional [2D] relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • G06F3/0383Signal control means within the pointing device
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2200/00Indexing scheme relating to G06F1/04 - G06F1/32
    • G06F2200/16Indexing scheme relating to G06F1/16 - G06F1/18
    • G06F2200/163Indexing scheme relating to constructional details of the computer
    • G06F2200/1632Pen holder integrated in the computer

Definitions

  • the present application belongs to the technical field of touch control, and in particular relates to a processing method, device and electronic device of a touch pen.
  • some electronic devices are provided with a pen slot for placing a stylus.
  • the user can take the stylus out of the pen slot to use the stylus to operate the display screen with the stylus; after the user is finished using the stylus, the user can insert the stylus into the pen slot to avoid the stylus lost.
  • the purpose of the embodiments of the present application is to provide a processing method, device and electronic device for a stylus, which can solve the technical problem that the use of the stylus is not convenient due to the inability to know the position of the stylus in the pen slot.
  • an embodiment of the present application provides a method for processing a stylus, including:
  • the position information of the stylus is acquired in real time, and the position information represents the position of the stylus body in the pen slot. length;
  • the dynamic image includes N frames of images, each frame of image is used to represent the length of the stylus body in the pen slot, and N is a positive integer greater than 1.
  • an embodiment of the present application provides a processing device for a touch pen, including:
  • the acquisition module is used to acquire the position information of the stylus in real time during the process of taking out the stylus from the pen slot or the process of inserting the stylus into the pen slot, and the position information represents the location where the stylus body is located. Describe the length in the pen slot;
  • a display module for displaying dynamic images based on the location information
  • the dynamic image includes N frames of images, each frame of image is used to represent the length of the stylus body in the pen slot, and N is a positive integer greater than 1.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
  • an embodiment of the present application provides an electronic device, the electronic device includes a housing and a stylus, the housing has a pen slot for accommodating the stylus, wherein the pen slot is internally provided There is a sensing component, and the sensing component acquires the position information of the stylus in real time, so that the electronic device displays a dynamic image based on the position information.
  • an embodiment of the present application provides a computer program product, the computer program product is stored in a non-volatile storage medium, and the computer program product is executed by at least one processor to implement the first aspect. method described.
  • the position information of the stylus is acquired in real time during the process of taking the stylus out from the pen slot, or the process of inserting the stylus into the pen slot; and based on the position information, on the display screen of the electronic device A dynamic image is displayed, wherein each frame of the image in the dynamic image is used to represent the length of the stylus body in the pen slot.
  • FIG. 1 is a flowchart of a method for processing a stylus provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of an application scenario of the processing method for a stylus provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of another application scenario of the processing method for a stylus provided by an embodiment of the present application.
  • FIGS. 4a-4c are structural diagrams of an electronic device provided by an embodiment of the present application.
  • FIG. 5 is a structural diagram of a processing device for a stylus provided by an embodiment of the present application.
  • FIG. 6 is a structural diagram of an electronic device provided by an embodiment of the present application.
  • the processing method for a stylus provided in the present application is applied to an electronic device, and the electronic device includes a pen slot, and the pen slot is used for placing the stylus.
  • the above-mentioned pen tray may be disposed inside the electronic device, or the above-mentioned pen tray may be disposed in the protective cover of the electronic device.
  • the position information of the stylus pen is acquired in real time during the process of taking the stylus pen out of the pen slot, or the process of inserting the stylus pen into the pen slot;
  • the dynamic image of the length of the stylus body in the stylus allows the user to intuitively know the position of the stylus in the stylus, thereby improving the convenience in the use of the stylus.
  • FIG. 1 is a flowchart of a processing method of a touch pen provided by an embodiment of the present application.
  • the processing method of the touch pen provided by the embodiment of the present application includes the following steps:
  • a distance measuring device is provided in the pen slot, and the distance measuring device can detect the length of the stylus body in the pen slot in real time, or the distance measuring device can be used when the stylus body is in the pen slot. When the length of the stylus changes, the length of the stylus body in the pen slot is detected.
  • the electronic device obtains the position information of the stylus in real time through the ranging device disposed in the pen slot.
  • the position information represents the length of the stylus body in the pen groove.
  • a dynamic image is displayed on the display screen of the electronic device. It should be noted that, if the electronic device includes multiple display screens, the dynamic image may be displayed on one display screen or may be displayed on multiple display screens, which is not specifically limited herein.
  • the above dynamic image includes N frames of images, each frame of image is used to represent the length of the stylus body in the pen slot, and N is a positive integer greater than 1.
  • the above dynamic image includes at least two frames of images, wherein one frame of image represents that the stylus body is completely inserted into the pen slot, and the other frame of image represents that the stylus body is completely removed from the pen slot.
  • one frame of the dynamic image may represent the length range of the stylus body in the pen slot.
  • a frame of image can be set to be associated with the length of the stylus body in the pen slot of 1 cm to 3 cm. This image is displayed when the length is 1 cm to cm.
  • Figure 2 shows three scenarios from left to right, showing the process of inserting the stylus into the pen slot.
  • the displayed dynamic image includes three frames, and each frame of image is a heart pattern.
  • the display position of the heart pattern is related to the length of the stylus body in the pen slot. .
  • Figure 3 shows two scenarios from left to right, showing the process of taking out the stylus from the pen tray.
  • a dynamic image can be displayed to represent the process of taking out the stylus from the pen slot, and the playback progress of the dynamic image corresponds to the process of taking out the stylus from the pen slot.
  • the position information of the stylus is acquired in real time during the process of taking the stylus out from the pen slot, or the process of inserting the stylus into the pen slot; and based on the position information, on the display screen of the electronic device A dynamic image is displayed, wherein each frame of the image in the dynamic image is used to represent the length of the stylus body in the pen slot.
  • the displaying a dynamic image based on the location information includes:
  • the position information is analyzed to determine the length of the stylus body in the pen slot; and the target image is displayed on the operation interface in a preset manner.
  • the position information of the stylus is acquired in real time, and the position information is analyzed to determine the body of the stylus. Length inside the pen slot.
  • the operation interface of the electronic device may display relevant content.
  • the target image is displayed on the operation interface in a preset manner.
  • the preset manner includes at least one of the following: floating and displaying the target image on the operation interface; displaying the target image with translucent transparency on the operation interface.
  • the above-mentioned target image is a frame of image associated with the length of the stylus body in the pen slot in the dynamic image.
  • An optional implementation manner is to display the target image in a suspended manner on the operation interface.
  • the target image can be displayed in the form of a floating window, and the user can drag the floating window to adjust the display position of the target image.
  • Another optional implementation is to set the transparency of the target image to be translucent, and display the target image on the operation interface.
  • the operation interface of the electronic device is a lock screen interface.
  • the lock screen interface can be directly hidden and the target image can be displayed.
  • the displaying the target image on the operation interface in a preset manner includes:
  • the display mode of the target image can be flexibly adjusted according to the area of the target image.
  • An optional implementation is that when the area of the target image is larger than the preset area, indicating that the display area of the target image is relatively large, the transparency of the target image can be set to be translucent, so that it can be Under the premise of the content displayed on the operation interface, the target image is displayed.
  • Another optional implementation is that when the area of the target image is less than or equal to the preset area, it means that the display area of the target image is small, and the target image may be a pattern.
  • the target image is suspended and displayed on the operation interface, so that the user can drag the target image to adjust the display position of the target image.
  • the method further includes:
  • a length range is preset, and if the length of the stylus body in the pen groove is within the length range, a prompt message is output.
  • the above-mentioned preset length range may be 1 cm to 3 cm, that is, the length of the stylus body in the pen slot is 1 cm to 3 cm, indicating that the length of the stylus inserted into the pen slot is shorter, or the touch Most of the body of the pen has been taken out from the pen tray, and in this case, the electronic device outputs a prompt message.
  • the length range can be set to include the length of the stylus.
  • the length of the stylus is 10 cm
  • the preset length range can be set to be 9 cm to 10 cm. In this way, when the stylus is completely inserted into the pen slot, the electronic device outputs a prompt message.
  • the length range can be set to include 0.
  • the preset length range can be set to be 0 to 1 cm, so that when the stylus is completely taken out from the pen tray, the electronic device outputs a prompt message.
  • the prompt message in this embodiment includes at least one of the following: a voice message; and the electronic device is in a vibrating state.
  • the above-mentioned voice messages may be voice messages such as sound effects or recordings; when the length of the stylus body in the pen slot is within the preset length range, the vibrator of the electronic device is controlled to work, so that the electronic device is in a vibrating state, so that the Output prompt message.
  • a prompt message is output, thereby enriching the usage of the stylus.
  • the electronic device during the process of inserting the stylus into the pen slot, or during the process of removing the stylus from the pen slot, the electronic device only displays a corresponding dynamic image and does not output a prompt message.
  • the electronic device always outputs a prompt message, that is, the above-mentioned length range can be set is the length of the stylus.
  • FIG. 4a-FIG. 4c are structural diagrams of an electronic device provided by an embodiment of the present application.
  • the embodiment of the present application also provides an electronic device, the electronic device includes a casing and a stylus, and the casing has a pen slot for accommodating the stylus, wherein a sensing component is arranged inside the pen slot, and the sensing component acquires real-time acquisitions The location information of the stylus, so that the electronic device displays dynamic images based on the location information.
  • the sensing component is an infrared sensor
  • the first end of the pen slot close to the edge of the electronic device is provided with an opening
  • the second end of the pen slot away from the opening is provided with an infrared sensor
  • the The infrared sensor is used for determining the position information of the stylus by emitting first infrared rays and receiving the second infrared rays reflected by the stylus.
  • the sensing component is an infrared sensor.
  • the infrared sensor is used for emitting first infrared rays to the stylus, and receiving the second infrared rays reflected by the stylus. Obtain the transmission time of the first infrared rays and the reception time of the second infrared rays; determine the difference between the reception time and the transmission time as the time difference value; calculate the product of the time difference value and the first preset value; Divide the value to determine the position information of the stylus. In this case, the position information represents the length of the stylus body that is not in the pen groove.
  • the first preset value may be the speed of light value
  • the second preset value may be 2.
  • the infrared sensor always emits infrared rays, which increases the power consumption of the electronic device.
  • both ends of the stylus are composed of magnets
  • the sensing component is an infrared sensor
  • the first end of the pen slot close to the edge of the electronic device is provided with an opening
  • the first end of the pen slot is provided with an opening.
  • the end is provided with at least 2 Hall sensors
  • the second end of the pen slot away from the opening is provided with an infrared sensor
  • the Hall sensor is used to detect the magnetic field and generate a Hall when the magnetic field changes. electric current
  • the infrared sensor is used for emitting first infrared rays and receiving second infrared rays reflected by the stylus in the presence of Hall current to determine the position information of the stylus.
  • the electronic device shown in FIG. 4b is based on the electronic device shown in FIG. 4a. At least two Hall sensors are arranged at the first end of the pen slot, and both ends of the stylus are composed of magnets. .
  • the infrared sensor is controlled to emit infrared rays, thereby reducing the power consumption of the electronic device.
  • an opening is provided at the first end of the pen slot close to the edge of the electronic device, the sensing component is a connector disposed on opposite sides of the opening, and the first side of the stylus is provided with an opening.
  • a resistor, a conductor is provided on the second side of the stylus, and the connector, the resistor and the conductor form a loop; the electronic device is used for determining the Location information for the stylus.
  • the sensing components are connecting pieces disposed on opposite sides of the opening, wherein the connecting pieces are formed of metal conductors.
  • the connector forms a loop.
  • the electronic device reads the resistance value of the above-mentioned loop; inquires the resistance value in the preset look-up table to determine the length of the stylus body in the pen slot, wherein the look-up table reflects the resistance value and the stylus body in the pen slot The mapping relationship of the length within.
  • the processing device 200 of the touch pen includes:
  • the acquiring module 201 is configured to acquire the position information of the stylus in real time during the process of taking the stylus out from the pen slot or the process of inserting the stylus into the pen slot;
  • the display module 202 is configured to display a dynamic image based on the location information.
  • the obtaining module 201 is further configured to:
  • the obtaining module 201 is further configured to:
  • the target image is displayed on the operation interface by floating.
  • processing device 200 of the stylus further includes:
  • the output module is configured to output a prompt message when the length of the stylus body in the pen slot is within a preset length range.
  • the processing device of the touch pen in the embodiment of the present application may be a mobile terminal, or may be a component, an integrated circuit, or a chip in the terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the processing device of the touch pen in the embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the device for processing a stylus provided in this embodiment of the present application can implement each process implemented by the method for processing a stylus in the method embodiment of FIG. 1 , which is not repeated here in order to avoid repetition.
  • the position information of the stylus is acquired in real time during the process of taking the stylus out from the pen slot, or the process of inserting the stylus into the pen slot; and based on the position information, on the display screen of the electronic device A dynamic image is displayed, wherein each frame of the image in the dynamic image is used to represent the length of the stylus body in the pen slot.
  • an embodiment of the present application further provides an electronic device, including a processor 310, a memory 309, a program or instruction stored in the memory 309 and executable on the processor 310, the program or instruction being executed by the processor
  • an electronic device including a processor 310, a memory 309, a program or instruction stored in the memory 309 and executable on the processor 310, the program or instruction being executed by the processor
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 300 includes but is not limited to: a radio frequency unit 301, a network module 302, an audio output unit 303, an input unit 304, a sensor 305, a display unit 306, a user input unit 307, an interface unit 308, a memory 309, and a processor 310, etc. part.
  • the electronic device 300 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 310 through a power management system, so that the power management system can manage charging, discharging, and power management. consumption management and other functions.
  • a power source such as a battery
  • the power management system can manage charging, discharging, and power management. consumption management and other functions.
  • the structure of the electronic device shown in FIG. 6 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than those shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
  • the processor 310 is configured to acquire the position information of the stylus in real time during the process of taking the stylus pen out of the pen slot or the process of inserting the stylus pen into the pen slot;
  • the processor 310 is further configured to parse the position information and determine the length of the stylus body in the pen slot;
  • the processor 310 is further configured to display the target image with translucent transparency on the operation interface when the area of the target image is greater than the preset area;
  • the target image is displayed on the operation interface by floating.
  • the processor 310 is further configured to output a prompt message when the length of the stylus body in the pen slot is within a preset length range.
  • the position information of the stylus is acquired in real time during the process of taking the stylus out from the pen slot, or the process of inserting the stylus into the pen slot; and based on the position information, on the display screen of the electronic device A dynamic image is displayed, wherein each frame of the image in the dynamic image is used to represent the length of the stylus body in the pen slot.
  • Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the method for processing a stylus pen is implemented, and The same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or an instruction to implement the above-mentioned processing method for a stylus pen
  • the chip includes a processor and a communication interface
  • the communication interface is coupled to the processor
  • the processor is used for running a program or an instruction to implement the above-mentioned processing method for a stylus pen
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.

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)
  • Position Input By Displaying (AREA)

Abstract

本申请提供了一种触控笔的处理方法、装置和电子设备,所述方法包括:在触控笔从笔槽取出的过程中,或者触控笔插入笔槽的过程中,实时获取触控笔的位置信息,位置信息表征触控笔本体在笔槽内的长度;基于位置信息,显示动态图像;其中,动态图像包括N帧图像,每一帧图像用于表征触控笔本体在笔槽内的长度,N为大于1的正整数。

Description

触控笔的处理方法、装置和电子设备
相关申请的交叉引用
本申请主张在2021年02月08日在中国提交的中国专利申请No.202110183177.X的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于触控技术领域,具体涉及一种触控笔的处理方法、装置和电子设备。
背景技术
随着触控显示装置的普及,触控笔的应用也越来越广泛。目前,一些电子设备设置有笔槽用于放置触控笔。用户可以将触控笔从笔槽中取出,以使用触控笔使用触控笔对显示屏进行操作;用户在使用完触控笔后,可以将触控笔插入笔槽内,避免触控笔丢失。
然而,在触控笔插入笔槽,或者,在触控笔从笔槽取出的过程中,用户无法获知触控笔在笔槽内的位置,导致用户不能确定触控笔是否完全插入笔槽,或者,触控笔是否完全从笔槽内拔出,使得触控笔的使用方式不够便捷。
发明内容
本申请实施例的目的是提供一种触控笔的处理方法、装置和电子设备,能够解决因无法获知触控笔在笔槽内的位置,导致触控笔的使用方式不够便捷的技术问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本申请实施例提供了一种触控笔的处理方法,包括:
在触控笔从笔槽取出的过程中,或者触控笔插入笔槽的过程中,实时获取所述触控笔的位置信息,所述位置信息表征触控笔本体在所述笔槽内的长度;
基于所述位置信息,显示动态图像;
其中,所述动态图像包括N帧图像,每一帧图像用于表征触控笔本体在所述笔槽内的长度,N为大于1的正整数。
第二方面,本申请实施例提供了一种触控笔的处理装置,包括:
获取模块,用于在触控笔从笔槽取出的过程中,或者触控笔插入笔槽的过程中,实时获取所述触控笔的位置信息,所述位置信息表征触控笔本体在所述笔槽内的长度;
显示模块,用于基于所述位置信息,显示动态图像;
其中,所述动态图像包括N帧图像,每一帧图像用于表征触控笔本体在所述笔槽内的长度,N为大于1的正整数。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,本申请实施例提供了一种电子设备,该电子设备包括壳体和触控笔,所述壳体上具有容纳所述触控笔的笔槽,其中,所述笔槽内部设置有感应组件,所述感应组件实时获取所述触控笔的位置信息,以使所述电子设备基于所述位置信息显示动态图像。
第七方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品被存储在非易失的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如第一方面所述的方法。
本申请实施例中,在触控笔从笔槽取出的过程中,或者触控笔插入笔槽的过程中,实时获取触控笔的位置信息;并基于位置信息,在电子设备的显示屏上显示动态图像,其中,上述动态图像中的每一帧图像用于表征触控笔本体在笔槽内的长度。这样,用户能直观的获知触控笔在笔槽内的位置,进 而确定触控笔是否完全插入笔槽,或者,触控笔是否完全从笔槽内拔出,提高触控笔的使用过程中的便捷性。
附图说明
图1是本申请实施例提供的触控笔的处理方法的流程图;
图2是本申请实施例提供的触控笔的处理方法的一应用场景示意图;
图3是本申请实施例提供的触控笔的处理方法的另一应用场景示意图;
图4a-图4c是本申请实施例提供的电子设备的结构图;
图5是本申请实施例提供的触控笔的处理装置的结构图;
图6是本申请实施例提供的电子设备的结构图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
本申请提供的触控笔的处理方法应用于电子设备,电子设备包括笔槽,笔槽用于放置触控笔。
应理解,上述笔槽可以设置于电子设备内部,或者,上述笔槽可以设置于电子设备的保护套。
需要说明的是,在用户从笔槽取出触控笔的过程中,由于用户不能直观的知悉笔槽内触控笔的位置,因此无法判断触控笔是否完全从笔槽取出,用户可能在触控笔尚未从笔槽完全取出的情况下,拔出触控笔,导致触控笔损 坏。这样,需要确认触控笔完全从笔槽取出的情况下,才能使用触控笔进行相关操作,使得触控笔的使用过程不够便捷。
基于上述相同的原因,在将触控笔插入笔槽的过程中,也会存在上述技术问题。基于上述可能存在的技术问题,本申请提出以下技术构思:
本申请在触控笔从笔槽取出的过程中,或者触控笔插入笔槽的过程中,实时获取触控笔的位置信息;并基于位置信息,在电子设备的显示屏上显示能反映触控笔本体在笔槽内长度的动态图像,以使得用户能直观的获知触控笔在笔槽内的位置,进而提高触控笔的使用过程中的便捷性。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的触控笔的处理方法进行详细地说明。
请参阅图1,图1是本申请实施例提供的触控笔的处理方法的流程图。本申请实施例提供的触控笔的处理方法包括以下步骤:
S101,在触控笔从笔槽取出的过程中,或者触控笔插入笔槽的过程中,实时获取所述触控笔的位置信息。
本步骤中,可选的,笔槽内设置有测距装置,该测距装置可以实时检测触控笔本体在笔槽中的长度,或者,该测距装置可以在触控笔本体在笔槽中的长度发生变化的情况下,检测触控笔本体在笔槽中的长度。
应理解,在触控笔从笔槽取出的过程中,或者,触控笔插入笔槽的过程中,电子设备通过设置在笔槽的测距装置,实时获取触控笔的位置信息。其中,该位置信息表征触控笔本体在笔槽内的长度,具体的获取触控笔位置信息的技术方案,请参阅后续实施例。
S102,基于所述位置信息,显示动态图像。
本步骤中,得到触控笔的位置信息之后,在电子设备到的显示屏上显示动态图像。需要说明的是,若该电子设备包括有多块显示屏,则该动态图像可以显示在一块显示屏上,也可以显示在多块显示屏上,在此不作具体限制。
上述动态图像包括N帧图像,每一帧图像用于表征触控笔本体在笔槽内的长度,N为大于1的正整数。
应理解,在一些实施例中,上述动态图像至少包括2帧图像,其中,一帧图像表征触控笔本体完全插入笔槽,另一帧图像表征触控笔本体完全从笔 槽取出。
应理解,在一些实施例中,动态图像的一帧图像可以表征触控笔本体在笔槽内的长度范围。例如,可以设置一帧图像与触控笔本体在笔槽内的长度为1厘米至3厘米相关联,这样,在触控笔插入笔槽的过程中,当触控笔本体在笔槽内的长度为1厘米至厘米时,显示该图像。
为便于理解,请参阅图2和图3。
图2从左至右的三种场景,示出了将触控笔插入笔槽的过程。如图所示,在触控笔插入笔槽的过程中,显示的动态图像包括三帧,且每帧图像为爱心图案,该爱心图案的显示位置与触控笔本体在笔槽内的长度相关。
图3从左至右示的两种场景,示出了从笔槽取出触控笔的过程。如图所示,可以显示动态图像表征从笔槽取出触控笔的过程,动态图像的播放进度对应触控笔从笔槽中取出的过程。
本申请实施例中,在触控笔从笔槽取出的过程中,或者触控笔插入笔槽的过程中,实时获取触控笔的位置信息;并基于位置信息,在电子设备的显示屏上显示动态图像,其中,上述动态图像中的每一帧图像用于表征触控笔本体在笔槽内的长度。这样,用户能直观的获知触控笔在笔槽内的位置,进而确定触控笔是否完全插入笔槽,或者,触控笔是否完全从笔槽内拔出,提高触控笔的使用过程中的便捷性。
可选地,所述基于所述位置信息,显示动态图像包括:
解析所述位置信息,确定触控笔本体在所述笔槽内的长度;按照预设方式在操作界面上显示目标图像。
本实施例中,在触控笔插入笔槽的过程中,或者,触控笔从笔槽取出的过程中,实时获取触控笔的位置信息,对该位置信息进行解析,确定触控笔本体在笔槽内的长度。
本实施例中,当电子设备处于工作状态时,电子设备的操作界面可能显示有相关内容,这种情况下,按照预设方式在操作界面上显示目标图像。
可选地,预设方式包括以下至少一项:将目标图像悬浮显示于操作界面;在操作界面上显示透明度为半透明的目标图像。
需要说明的是,上述目标图像为动态图像中与触控笔本体在笔槽内的长 度关联的一帧图像。
一种可选的实施方式为,将目标图像悬浮显示于操作界面。
这种实施方式中,目标图像可以以悬浮窗的方式显示,用户可以拖动该悬浮窗,以调整目标图像的显示位置。
另一种可选的实施方式为,将目标图像的透明度设置为半透明,并在操作界面上显示该目标图像。
通过上述实施方式,确保目标图像不会遮挡操作界面的显示内容。
应理解,在一些实施例中,当电子设备处于待机状态时,电子设备的操作界面为锁屏界面,这种情况下,可以直接隐藏该锁屏界面,并显示目标图像。
可选地,所述按照预设方式在操作界面上显示目标图像包括:
在目标图像的面积大于预设面积的情况下,在所述操作界面上显示透明度为半透明的目标图像;在目标图像的面积小于或等于预设面积的情况下,将所述目标图像悬浮显示于所述操作界面。
本实施例中,可以根据目标图像的面积大小,灵活的调整目标图像的显示方式。
一种可选的实施方式为,在目标图像的面积大于预设面积的情况下,表示该目标图像的显示面积较大,则可以设置该目标图像的透明度为半透明,这样,可以在不遮挡操作界面显示内容的前提下,显示目标图像。
另一种可选的实施方式为,在目标图像的面积小于或等于预设面积的情况下,表示该目标图像的显示面积较小,该目标图像可能为图案,这种情况下,可以将该目标图像悬浮显示于操作界面,这样,用户可以对目标图像进行拖动,以调整目标图像的显示位置。
应理解,上述预设面积为经验数值,可以自定义设置。
可选地,所述基于所述位置信息,显示动态图像之后,所述方法还包括:
在触控笔本体在所述笔槽内的长度处于预设长度范围的情况下,输出提示消息。
本实施例中,预设有长度范围,若触控笔本体在笔槽内的长度处于该长度范围,则输出提示消息。
示例性的,上述预设长度范围可以是1厘米到3厘米,即触控笔本体在笔槽内的长度为1厘米到3厘米,表示触控笔插入笔槽的长度较短,或者触控笔的大部分本体已经从笔槽取出,这种情况下,电子设备输出提示消息。
一种可能存在的情况为,在触控笔完全插入笔槽的情况下,输出一次提示消息提醒用户。这种情况下,可以设置长度范围包括触控笔的长度。例如,触控笔的长度为10厘米,可以设置预设长度范围为9厘米至10厘米,这样,当触控笔完全插入笔槽时,电子设备输出提示消息。
另一种可能存在的情况为,在触控笔完全从笔槽取出的情况下,输出一次提示消息提醒用户。这种情况下,可以设置长度范围包括0。
例如,可以设置预设长度范围为0至1厘米,这样,当触控笔完全从笔槽取出时,电子设备输出提示消息。
需要说明的是,本实施例中的提示消息包括以下至少一项:语音消息;电子设备处于振动状态。
其中,上述语音消息可以为音效或者录音等语音消息;在触控笔本体在笔槽内的长度处于预设长度范围的情况下,控制电子设备的振动器工作,使电子设备处于振动状态,以输出提示消息。
本实施例中,在触控笔本体在笔槽内的长度处于预设长度范围,输出提示消息,以此丰富了触控笔的使用方式。
应理解,在一些实施例中,在触控笔插入笔槽的过程中,或者,在触控笔从笔槽取出的过程中,电子设备只显示对应的动态图像,并不输出提示消息。
应理解,在另一些实施例中,在触控笔插入笔槽的过程中,或者,在触控笔从笔槽取出的过程中,电子设备始终输出提示消息,即可以将上述长度范围设定为触控笔的长度。
请参阅图4a-图4c,图4a-图4c是本申请实施例提供的电子设备的结构图。本申请实施例还提供了一种电子设备,所述电子设备包括壳体和触控笔,壳体上具有容纳触控笔的笔槽,其中,笔槽内部设置有感应组件,感应组件实时获取触控笔的位置信息,以使电子设备基于位置信息显示动态图像。
可选地,所述感应组件为红外传感器,所述笔槽靠近所述电子设备边缘 的第一端设置有开口,所述笔槽远离所述开口的第二端端设置有红外传感器;所述红外传感器,用于通过发射第一红外线和接收所述触控笔反射的第二红外线,确定所述触控笔的位置信息。
请参阅图4a,在图4a所示的电子设备中,感应组件为红外传感器。
该红外传感器用于发射第一红外线至触控笔,并接收触控笔反射的第二红外线。获取第一红外线的发送时间,以及第二红外线的接收时间;将接收时间与发送时间的差确定为时间差值;计算时间差值与第一预设值的乘积;将乘积与第二预设值相除,确定触控笔的位置信息。这种情况下,位置信息表征触控笔本体未处于笔槽内的长度。
其中,上述第一预设值可以是光速值,上述第二预设值可以为2。通过计算时间差值与第一预设值的乘积,并将乘积除以2,得到触控笔本体未处于笔槽内的长度。
然而,在在图4a所示的电子设备中,红外传感器始终对外发射红外线,这提高了电子设备的功耗。
可选地,所述触控笔的两端由磁体构成,所述感应组件为红外传感器,所述笔槽靠近所述电子设备边缘的第一端设置有开口,且所述笔槽的第一端设置有至少2个霍尔传感器,所述笔槽远离所述开口的第二端设置有红外传感器;所述霍尔传感器,用于检测磁场,并在磁场发生变化的情况下,产生霍尔电流;所述红外传感器,用于在存在霍尔电流的情况下,发射第一红外线和接收所述触控笔反射的第二红外线,确定所述触控笔的位置信息。
请参阅图4b,图4b所示的电子设备在图4a所示的电子设备的基础上,在笔槽的第一端设置了至少2个霍尔传感器,且触控笔的两端由磁体构成。
在图4b所示的电子设备中,当触控笔通过开口时,触控笔两端的磁体切割磁场,导致磁场发生变化,霍尔传感器产生霍尔电流,电子设备在检测到霍尔电流的情况下,控制红外传感器发射红外线。
这样,只有在触控笔通过开口的情况下,才控制红外传感器发射红外线,以此降低电子设备的功耗。
可选地,所述笔槽靠近所述电子设备边缘的第一端设置有开口,所述感应组件为设置在所述开口相对两侧的连接件,所述触控笔的第一侧设置有电 阻器,所述触控笔的第二侧设置有导体,所述连接件、所述电阻器和所述导体形成回路;所述电子设备,用于根据所述回路的电阻值,确定所述触控笔的位置信息。
请参阅图4c,在图4c所示的电子设备中,感应组件为设置在开口相对两侧的连接件,其中,连接件由金属导体构成。
在将触控笔插入笔槽的过程中,或者将触控笔从笔槽取出的过程中,触控笔第一侧设置的电阻器,触控笔第二侧设置的导体和笔槽内部的连接件形成回路。电子设备读取上述回路的电阻值;在预设的查询表中对电阻值进行查询,确定触控笔本体在笔槽内的长度,其中,查询表反映电阻值与触控笔本体在笔槽内的长度的映射关系。
如图5所示,触控笔的处理装置200包括:
获取模块201,用于在触控笔从笔槽取出的过程中,或者触控笔插入笔槽的过程中,实时获取所述触控笔的位置信息;
显示模块202,用于基于所述位置信息,显示动态图像。
可选地,所述获取模块201,还用于:
解析所述位置信息,确定触控笔本体在所述笔槽内的长度;
按照预设方式在操作界面上显示目标图像。
可选地,所述获取模块201,还用于:
在目标图像的面积大于预设面积的情况下,在操作界面上显示透明度为半透明的目标图像;
在目标图像的面积小于或等于预设面积的情况下,将所述目标图像悬浮显示于操作界面。
可选地,所述触控笔的处理装置200还包括:
输出模块,用于在触控笔本体在所述笔槽内的长度处于预设长度范围的情况下,输出提示消息。
本申请实施例中的触控笔的处理装置可以是移动终端,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile  personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的触控笔的处理装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的触控笔的处理装置能够实现图1的方法实施例中触控笔的处理方法实现的各个过程,为避免重复,这里不再赘述。
本申请实施例中,在触控笔从笔槽取出的过程中,或者触控笔插入笔槽的过程中,实时获取触控笔的位置信息;并基于位置信息,在电子设备的显示屏上显示动态图像,其中,上述动态图像中的每一帧图像用于表征触控笔本体在笔槽内的长度。这样,用户能直观的获知触控笔在笔槽内的位置,进而确定触控笔是否完全插入笔槽,或者,触控笔是否完全从笔槽内拔出,提高触控笔的使用过程中的便捷性。
可选地,本申请实施例还提供一种电子设备,包括处理器310,存储器309,存储在存储器309上并可在所述处理器310上运行的程序或指令,该程序或指令被处理器310执行时实现上述触控笔的处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图6为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备300包括但不限于:射频单元301、网络模块302、音频输出单元303、输入单元304、传感器305、显示单元306、用户输入单元307、接口单元308、存储器309、以及处理器310等部件。
本领域技术人员可以理解,电子设备300还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器310逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多 或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器310,用于在所述触控笔从所述笔槽取出的过程中,或者所述触控笔插入所述笔槽的过程中,实时获取所述触控笔的位置信息;
基于所述位置信息,显示动态图像。
可选地,所述处理器310,还用于解析所述位置信息,确定触控笔本体在所述笔槽内的长度;
按照预设方式在操作界面上显示目标图像。
可选地,所述处理器310,还用于在目标图像的面积大于预设面积的情况下,在操作界面上显示透明度为半透明的目标图像;
在目标图像的面积小于或等于预设面积的情况下,将所述目标图像悬浮显示于操作界面。
可选地,所述处理器310,还用于在触控笔本体在所述笔槽内的长度处于预设长度范围的情况下,输出提示消息。
本申请实施例中,在触控笔从笔槽取出的过程中,或者触控笔插入笔槽的过程中,实时获取触控笔的位置信息;并基于位置信息,在电子设备的显示屏上显示动态图像,其中,上述动态图像中的每一帧图像用于表征触控笔本体在笔槽内的长度。这样,用户能直观的获知触控笔在笔槽内的位置,进而确定触控笔是否完全插入笔槽,或者,触控笔是否完全从笔槽内拔出,提高触控笔的使用过程中的便捷性。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述触控笔的处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述触控笔的处理方法实施例的各个过程,且能达到相同的技术效果,为避免重 复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (17)

  1. 一种触控笔的处理方法,应用于电子设备,所述电子设备包括笔槽,所述笔槽用于放置触控笔;所述方法包括:
    在所述触控笔从所述笔槽取出的过程中,或者所述触控笔插入所述笔槽的过程中,实时获取所述触控笔的位置信息,所述位置信息表征触控笔本体在所述笔槽内的长度;
    基于所述位置信息,显示动态图像;
    其中,所述动态图像包括N帧图像,每一帧图像用于表征触控笔本体在所述笔槽内的长度,N为大于1的正整数。
  2. 根据权利要求1所述的方法,其中,所述基于所述位置信息,显示动态图像包括:
    解析所述位置信息,确定触控笔本体在所述笔槽内的长度;
    按照预设方式在操作界面上显示目标图像,所述目标图像为所述动态图像中与所述触控笔本体在所述笔槽内的长度关联的一帧图像。
  3. 根据权利要求2所述的方法,其中,预设方式包括以下至少一项:
    将所述目标图像悬浮显示于所述操作界面;
    在所述操作界面上显示透明度为半透明的目标图像。
  4. 根据权利要求3所述的方法,其中,所述按照预设方式在操作界面上显示目标图像包括:
    在目标图像的面积大于预设面积的情况下,在所述操作界面上显示透明度为半透明的目标图像;
    在目标图像的面积小于或等于预设面积的情况下,将所述目标图像悬浮显示于所述操作界面。
  5. 根据权利要求1所述的方法,其中,所述基于所述位置信息,显示动态图像之后,所述方法还包括:
    在触控笔本体在所述笔槽内的长度处于预设长度范围的情况下,输出提示消息;
    其中,所述提示消息包括以下至少一项:
    语音消息;
    电子设备处于振动状态。
  6. 一种触控笔的处理装置,所述装置包括:
    获取模块,用于在触控笔从笔槽取出的过程中,或者触控笔插入笔槽的过程中,实时获取所述触控笔的位置信息,所述位置信息表征触控笔本体在所述笔槽内的长度;
    显示模块,用于基于所述位置信息,显示动态图像;
    其中,所述动态图像包括N帧图像,每一帧图像用于表征触控笔本体在所述笔槽内的长度,N为大于1的正整数。
  7. 根据权利要求6所述的装置,其中,所述获取模块,还用于:
    解析所述位置信息,确定触控笔本体在所述笔槽内的长度;
    按照预设方式在操作界面上显示目标图像,所述目标图像为所述动态图像中与所述触控笔本体在所述笔槽内的长度关联的一帧图像。
  8. 根据权利要求7所述的装置,其中,所述获取模块,还用于:
    在目标图像的面积大于预设面积的情况下,在操作界面上显示透明度为半透明的目标图像;
    在目标图像的面积小于或等于预设面积的情况下,将所述目标图像悬浮显示于操作界面。
  9. 根据权利要求6所述的装置,其中,所述装置还包括:
    输出模块,用于在触控笔本体在所述笔槽内的长度处于预设长度范围的情况下,输出提示消息;
    其中,所述提示消息包括以下至少一项:
    语音消息;
    电子设备处于振动状态。
  10. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,其中,所述程序或指令被所述处理器执行时实现如权利要求1-5中任一项所述的方法的步骤。
  11. 一种可读存储介质,所述可读存储介质上存储程序或指令,其中,所述程序或指令被处理器执行时实现如权利要求1-5中任一项所述的方法的步骤。
  12. 一种电子设备,包括壳体和触控笔,所述壳体上具有容纳所述触控笔的笔槽,其中,所述笔槽内部设置有感应组件,所述感应组件实时获取所述触控笔的位置信息,以使所述电子设备基于所述位置信息显示动态图像。
  13. 根据权利要求12所述的电子设备,其中,所述感应组件为红外传感器,所述笔槽靠近所述电子设备边缘的第一端设置有开口,所述笔槽远离所述开口的第二端端设置有红外传感器;
    所述红外传感器,用于通过发射第一红外线和接收所述触控笔反射的第二红外线,确定所述触控笔的位置信息。
  14. 根据权利要求12所述的电子设备,其中,所述触控笔的两端由磁体构成,所述感应组件为红外传感器,所述笔槽靠近所述电子设备边缘的第一端设置有开口,且所述笔槽的第一端设置有至少2个霍尔传感器,所述笔槽远离所述开口的第二端设置有红外传感器;
    所述霍尔传感器,用于检测磁场,并在磁场发生变化的情况下,产生霍尔电流;
    所述红外传感器,用于在检测到霍尔电流的情况下,发射第一红外线和接收所述触控笔反射的第二红外线,确定所述触控笔的位置信息。
  15. 根据权利要求12所述的电子设备,其中,所述笔槽靠近所述电子设备边缘的第一端设置有开口,所述感应组件为设置在所述开口相对两侧的连接件,所述触控笔的第一侧设置有电阻器,所述触控笔的第二侧设置有导体,所述连接件、所述电阻器和所述导体形成回路;
    所述电子设备,用于根据所述回路的电阻值,确定所述触控笔的位置信息。
  16. 一种芯片,包括处理器和通信接口,其中,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-5中任一项所述的方法的步骤。
  17. 一种计算机程序产品,其中,所述计算机程序产品被存储在非易失的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如权利要求1-5中任一项所述的方法的步骤。
PCT/CN2022/075339 2021-02-08 2022-02-07 触控笔的处理方法、装置和电子设备 Ceased WO2022166945A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110183177.XA CN112925426A (zh) 2021-02-08 2021-02-08 触控笔的处理方法、装置和电子设备
CN202110183177.X 2021-02-08

Publications (1)

Publication Number Publication Date
WO2022166945A1 true WO2022166945A1 (zh) 2022-08-11

Family

ID=76171479

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/075339 Ceased WO2022166945A1 (zh) 2021-02-08 2022-02-07 触控笔的处理方法、装置和电子设备

Country Status (2)

Country Link
CN (1) CN112925426A (zh)
WO (1) WO2022166945A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112925426A (zh) * 2021-02-08 2021-06-08 维沃移动通信有限公司 触控笔的处理方法、装置和电子设备
CN115543700A (zh) * 2021-06-29 2022-12-30 华为技术有限公司 手写笔检测方法、装置及终端设备
CN113485580B (zh) * 2021-06-30 2024-04-02 青岛海信商用显示股份有限公司 显示设备、触控笔检测方法、系统、设备及存储介质
CN113805835B (zh) * 2021-08-29 2024-02-06 北京工业大学 一种用于存储和自定义播放声音文件的笔式协同交互系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180032160A1 (en) * 2016-07-29 2018-02-01 Samsung Electronics Co., Ltd. Electronic device including electronic pen and method for recognizing the electronic pen therein
CN110941865A (zh) * 2019-12-11 2020-03-31 上海传英信息技术有限公司 一种移动终端手写笔的提醒方法、装置、移动终端及计算机可读存储介质
CN111787411A (zh) * 2020-06-18 2020-10-16 广州华多网络科技有限公司 虚拟资源的转移方法、装置、设备及存储介质
CN111897445A (zh) * 2020-07-30 2020-11-06 维沃移动通信有限公司 电子设备及控制方法
CN112286378A (zh) * 2020-10-28 2021-01-29 维沃移动通信有限公司 电子设备控制方法和电子设备
CN112925426A (zh) * 2021-02-08 2021-06-08 维沃移动通信有限公司 触控笔的处理方法、装置和电子设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR200290278Y1 (ko) * 2001-11-27 2002-09-26 (주)싸이버뱅크 다단 구조를 갖는 스타일러스 펜 및 이를 수용하는휴대용 개인 정보 단말기
CN201111011Y (zh) * 2007-11-07 2008-09-03 姚忠凯 触控笔提示插槽
CN112162788A (zh) * 2020-09-17 2021-01-01 维沃移动通信有限公司 应用启动方法、装置和电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180032160A1 (en) * 2016-07-29 2018-02-01 Samsung Electronics Co., Ltd. Electronic device including electronic pen and method for recognizing the electronic pen therein
CN110941865A (zh) * 2019-12-11 2020-03-31 上海传英信息技术有限公司 一种移动终端手写笔的提醒方法、装置、移动终端及计算机可读存储介质
CN111787411A (zh) * 2020-06-18 2020-10-16 广州华多网络科技有限公司 虚拟资源的转移方法、装置、设备及存储介质
CN111897445A (zh) * 2020-07-30 2020-11-06 维沃移动通信有限公司 电子设备及控制方法
CN112286378A (zh) * 2020-10-28 2021-01-29 维沃移动通信有限公司 电子设备控制方法和电子设备
CN112925426A (zh) * 2021-02-08 2021-06-08 维沃移动通信有限公司 触控笔的处理方法、装置和电子设备

Also Published As

Publication number Publication date
CN112925426A (zh) 2021-06-08

Similar Documents

Publication Publication Date Title
WO2022166945A1 (zh) 触控笔的处理方法、装置和电子设备
EP3335097B1 (en) Method for measuring angles between displays and electronic device using the same
CN108470571B (zh) 一种音频检测方法、装置及存储介质
CN107908489A (zh) 复制粘贴的方法和移动终端
CN111816139A (zh) 屏幕刷新率切换方法和电子设备
CN109298904B (zh) 信息处理方法、装置、存储介质及计算设备
KR20180005695A (ko) 정보 획득 방법 및 디바이스
CN108038112B (zh) 文件处理方法、移动终端及计算机可读存储介质
CN111694834A (zh) 图数据的入库方法、装置、设备及可读存储介质
WO2020211607A1 (zh) 生成视频的方法、装置、电子设备及介质
CN111752451A (zh) 信息显示方法、装置和电子设备
CN110046018A (zh) 显示消息的方法、装置、电子设备及介质
CN111752817A (zh) 页面加载时长的确定方法、装置、设备及存储介质
CN109783183B (zh) 请求处理方法、装置、电子设备及存储介质
CN108038232B (zh) 网页编辑方法、装置和系统、存储介质
WO2022156603A1 (zh) 消息处理方法、装置和电子设备
CN102176765A (zh) 控制电子装置上扬声器的方法与电子装置
EP3029563B1 (en) Stereophonic sound recording method, apparatus, and terminal
CN111597009A (zh) 应用程序显示的方法、装置及终端设备
CN112115037A (zh) 运行性能显示方法、装置、设备及存储介质
CN111651106A (zh) 未读消息的提示方法、装置、设备及可读存储介质
CN110795660B (zh) 数据分析方法、装置、电子设备及介质
CN111294320B (zh) 数据转换的方法和装置
CN111767261A (zh) 调试日志输出方法、装置、存储介质及电子设备
CN111991801A (zh) 显示方法、装置及电子设备

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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 17/01/2024)

122 Ep: pct application non-entry in european phase

Ref document number: 22749224

Country of ref document: EP

Kind code of ref document: A1