[go: up one dir, main page]

WO2019105187A1 - Touch sensing signal processing method, system and device, and electronic device - Google Patents

Touch sensing signal processing method, system and device, and electronic device Download PDF

Info

Publication number
WO2019105187A1
WO2019105187A1 PCT/CN2018/114056 CN2018114056W WO2019105187A1 WO 2019105187 A1 WO2019105187 A1 WO 2019105187A1 CN 2018114056 W CN2018114056 W CN 2018114056W WO 2019105187 A1 WO2019105187 A1 WO 2019105187A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
signal
operating system
input subsystem
data encoding
Prior art date
Application number
PCT/CN2018/114056
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 WO2019105187A1 publication Critical patent/WO2019105187A1/en

Links

Images

Classifications

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

Definitions

  • the present invention relates to the field of touch technologies, and in particular, to a method, system, device, and electronic device for processing a tactile signal.
  • touch devices such as capacitive, resistive, electromagnetic or infrared touch devices.
  • the touch sensor of the touch device can collect the touch signal, wherein When the type of the touch device is different, the touch signal may be different.
  • the touch signal when the touch device is electromagnetic, the collected touch signal includes the amount of change of the magnetic flux and the frequency of the received electromagnetic signal.
  • the touch device is capacitive, the collected device is collected.
  • the tactile signal includes a change in capacitance.
  • the control chip of the touch device can convert the touch signal into a touch signal, and encode the touch signal according to the data encoding specification supported by the operating system, and then transmit to the operating system of the electronic device, and the touch response is performed by the operating system. .
  • the touch device With the improvement of touch precision, the amount of signals that the control chip needs to process is getting larger and larger, and the requirements for its signal processing capability are getting higher and higher.
  • the touch device In order to improve the signal processing capability of the control chip, the touch device needs to adopt a high-performance chip.
  • the high cost and high volume of the high-performance chip will increase the cost and volume of the touch device.
  • the present invention provides a method, system, device, and electronic device for processing a tactile signal to solve the problem that the high-performance chip causes an increase in cost and an increase in volume of the touch device.
  • a processing system for a haptic signal comprising: a touch device including a touch sensor, the host device having an operating system mounted thereon, and the operating system including signal processing Code, virtual touch device and input subsystem;
  • the touch sensor generates a haptic signal, and the touch device transmits the haptic signal to the operating system;
  • the signal processing code converts a touch signal received by the operating system into a touch signal, and transmits the touch signal to the virtual touch device, wherein the touch signal includes at least a touch position signal;
  • the virtual touch device encodes the touch signal according to a data encoding specification supported by the input subsystem, and sends the encoded touch signal to the input subsystem;
  • the input subsystem generates a corresponding touch event in response to the encoded touch signal.
  • the data encoding specification is a standard data encoding specification or a predefined data encoding specification.
  • the touch sensor comprises one or more of the following:
  • Infrared touch frame electromagnetic board, capacitive touch pad, resistive touch pad, pressure sensor.
  • the tactile signal when the touch sensor is an electromagnetic plate, the tactile signal includes a magnetic flux change amount and a frequency of the received electromagnetic signal, and the touch signal includes a touch position signal corresponding to the magnetic flux change amount. a pressure sensitive signal corresponding to the frequency.
  • the touch device transmits the tactile signal to the operating system via any of the following interfaces:
  • USB-bulk interface USB-hid interface
  • RS232 interface RS232 interface
  • the virtual touch device if the touch signal includes position coordinates of more than six pixel points, the virtual touch device performs block coding on the touch signal according to the data encoding specification, and generates one data per coded group of touch signals.
  • a packet which contains a position coordinate of up to six pixels in a packet.
  • a method for processing a haptic signal for use in an operating system, including the steps of:
  • the touch signal is encoded and transmitted to the input subsystem in accordance with a data encoding specification supported by the input subsystem.
  • the encoding of the touch signal according to a data encoding specification supported by the input subsystem includes:
  • the touch signal includes position coordinates of more than six pixel points
  • the touch signal is group coded according to the data encoding specification, and one data packet is generated for each group of touch signals, and one set of touch signals includes at most six The position coordinates of the pixel.
  • a device for processing a haptic signal which is applied to an operating system, includes:
  • a signal receiving module configured to receive a tactile signal generated by a touch sensor of the touch device
  • a signal conversion module configured to convert the touch signal into a touch signal, wherein the touch signal includes at least a touch position signal
  • a signal encoding module configured to encode the touch signal according to a data encoding specification supported by the input subsystem
  • a signal transmission module for transmitting the encoded to the input subsystem.
  • an electronic device which is equipped with a touch device, a processor, and a memory for storing the processor-executable instructions;
  • the touch device includes a touch sensor;
  • the processor is coupled to the memory for reading program instructions stored by the memory and, in response, performing operations in the method as described above.
  • the electronic device comprises a smart tablet.
  • the smart tablet includes an electronic whiteboard.
  • one or more machine-readable storage medium having stored thereon instructions that, when executed by one or more processors, cause the terminal device to perform operations in the method as described above.
  • the touch sensor After the touch sensor generates a tactile signal, the touch sensor directly transmits the tactile signal to the operating system, and the operating system converts the tactile signal into a touch signal and transmits the code to the input subsystem. Therefore, the touch device does not need to perform the conversion process of the touch signal to the touch signal, the performance requirement of the control chip can be reduced, and the low performance chip is used as the control chip in the touch device, thereby reducing the cost and volume of the touch device.
  • FIG. 1 is a block diagram of a processing system for a haptic signal according to an exemplary embodiment of the present invention
  • FIG. 2 is a flow chart showing a method of processing a haptic signal according to an exemplary embodiment of the present invention
  • FIG. 3 is a block diagram of a processing device for a haptic signal according to an exemplary embodiment of the present invention
  • FIG. 4 is a hardware structural diagram of an electronic device according to an exemplary embodiment of the present invention.
  • first, second, third, etc. may be used to describe various information in the present invention, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as the second information without departing from the scope of the invention.
  • second information may also be referred to as the first information.
  • word "if” as used herein may be interpreted as "when” or "when” or “responding to certainty.”
  • FIG. 1 is a block diagram of a processing system 100 for a haptic signal according to an exemplary embodiment of the present invention.
  • the processing system 100 may include a touch device 120 and a host device 140.
  • the touch device 120 may include a touch sensor 121.
  • An operating system (not shown in FIG. 1) is mounted on the host device 140, and the operating system may include a signal processing code 141, a virtual touch device 142, and an input subsystem 143.
  • the host device 140 may be referred to as a part of the device for implementing a touch response in the host or the host of the electronic device.
  • the touch device 120 may be referred to as a touch input device other than the electronic device, or may be installed on various electronic devices.
  • Touch input device where the electronic device can be a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, a smart writing device, an email device, a game console, a tablet A combination of computers, wearables, smart locomotives, driverless cars, smart refrigerators, other smart home devices, or any of these devices.
  • the smart writing device can be an electronic whiteboard, an electronic blackboard, or the like.
  • the corresponding touch screen type of the touch device 120 may be electromagnetic, infrared, capacitive, resistive, or pressure sensitive.
  • the touch screen type of the smart phone is capacitive or resistive
  • the touch screen type of the smart writing board is The electromagnetic touch type of the infrared display is infrared.
  • touch sensors 121 are different in type, the types of the touch sensors 121 are different, the touch signals collected by the touch devices are different, and the touch signals obtained by the conversion are not completely the same.
  • touch sensors 121 are listed below for different types of touch screens:
  • the touch screen is an infrared touch screen
  • the touch sensor 121 is an infrared touch frame.
  • the touch signal collected may include a signal indicating that the infrared light is blocked, and the converted touch signal may include a position touch signal, and the touch signal may include a touch position.
  • the touch screen is an electromagnetic touch screen
  • the touch sensor 121 is an electromagnetic board.
  • the touch signal collected by the touch sensor may include a change amount of the magnetic flux and a frequency of the received electromagnetic signal, and the converted touch signal may include corresponding to the flux change amount.
  • the touch position signal, the pressure sensitive signal corresponding to the frequency, the touch position signal may include an X coordinate and a Y coordinate of the touch position.
  • the pressure sensitive signal can include a pressure value.
  • the touch screen is a capacitive touch screen
  • the touch sensor 121 is a capacitive touch panel.
  • the collected touch signal may include current flowing through each electrode of the touch screen
  • the converted touch signal may include a position touch signal
  • the touch signal at the position may be Includes the X and Y coordinates of the touch location.
  • the touch screen is a resistive touch screen, and the touch sensor 121 is a resistive touch panel.
  • the touch signal collected may include a voltage at a touch position, and the converted touch signal may include a position touch signal, where the touch signal may include a touch position.
  • the touch screen is a pressure sensitive touch screen
  • the touch sensor 121 is a pressure sensor
  • the collected touch signal may include a pressure signal
  • the converted touch signal may include a position touch signal
  • the touch position signal may include an X coordinate of the touch position and Y coordinate.
  • the touch screen of the touch device 120 may include at least two types of touch screens: an electromagnetic touch screen, an infrared touch screen, a capacitive touch screen, a resistive touch screen, and a pressure sensitive touch screen.
  • the touch sensor 121 may include an infrared touch frame. At least two of an electromagnetic board, a capacitive touch panel, a resistive touch panel, and a pressure sensor.
  • the touch device 120 may be other types of touch screens, which are not limited in this embodiment of the present specification.
  • the touch sensor 121 collects the tactile signal
  • the touch sensor when the touch device 120 transmits the tactile signal to the operating system, if the touch sensor is a device that has both the control function and the acquisition function, such as a touch sensor chip, the touch sensor 121 can directly pass through the predetermined interface.
  • the haptic signal is transmitted to an operating system.
  • the predetermined interface mentioned here may be a USB-bulk interface, an RS232 interface or a USB-hid interface (hid is an abbreviation of Human Interface Devices, ie, a human interface device), and the USB-hid interface may be a universal USB-hid interface.
  • the predetermined interface may also be a signal transmission interface customized by the designer of the solution of the present invention or other equipment manufacturer.
  • the touch device 120 may further include a touch processing device (not shown in FIG. 1 ).
  • a touch processing device When the touch device 120 transmits a tactile signal to the operating system, if the touch sensor 121 does not have a control function, the touch processing device may be used by the touch processing device. The touch sensor 121 reads the touch signal, and then the touch processing device transmits the touch signal to the transmission operating system through the predetermined interface.
  • the touch processing device mentioned herein may be a main control chip (also referred to as a main processing chip or a central processing unit) of the touch device 120, or may be another processing chip, and the processing chip may be installed in the touch device 120. It can also be disposed outside the touch device 120.
  • the conversion mode can be adopted according to the working principle of each type of touch screen.
  • the haptic signal is a current generated by the capacitive touch screen flowing through each electrode of the touch screen, and the X coordinate and the Y coordinate of the touch point position can be determined according to the ratio of the currents of the respective levels.
  • the signal processing code 141 is a module in a logical sense, and may be through a central processing unit (also referred to as a main control chip or a main processing chip) of the host device 140 or a processing chip other than the central processing unit.
  • a central processing unit also referred to as a main control chip or a main processing chip
  • Corresponding computer program instructions in a readable medium such as a volatile memory are read into memory for operation.
  • the central processing unit of the host device 140 or other processing chip other than the central processing unit can read the program instructions stored in its memory and, in response, convert the tactile signals into touch signals.
  • the virtual touch device 142 which is a virtual device that is simulated by software and has a function of the touch device 120 and runs in the operating system
  • the data of the signal transmitted to the input subsystem 143 can be reserved to the input subsystem 143.
  • the coding specification that is, the data coding specification supported by the input subsystem 143.
  • the virtual touch device 140 is different when the types of the touch devices 120 are different.
  • the touch device 120 is an infrared touch frame device
  • the virtual touch device 140 is a virtual touch frame device.
  • the data encoding specification supported by the input subsystem 143 may be an effective touch data protocol extracted from the USB multi-touch hid protocol corresponding to the USB-hid interface.
  • the emphasis here on "extraction" means that the standard USB multi-touch hid protocol will add some headers, messages, etc. required by the USB transmission protocol to the effective touch data protocol for transmission by the USB protocol, and these data inputs are added. Not required in the system.
  • the data encoding specification supported by the input subsystem 143 may also be a predetermined data encoding specification according to the application requirements of the touch device 120 by the designer of the solution, and the embodiment of the present specification is not limited herein.
  • the input subsystem (input_device) 143 may be composed of a device driver layer, an input core layer, and an event processing layer.
  • the device driver layer may convert the underlying hardware input into a unified event form, report to the input core layer, and input the core layer.
  • the device registration and operation interface input for the hardware driver layer is notified, and the event processing layer is notified to process the event.
  • the processing system 100 can be applied to an electronic device.
  • the touch device 120 can also include a touch screen.
  • the touch sensor 121 can be mounted on the touch screen or can be independent of the touch screen.
  • the processing system 100 can also include an interface (the predetermined interface described above) disposed between the touch device 120 and the operating system. When the user touches the touch screen through a finger or a stylus, the touch sensor 121 may generate a haptic signal, and the touch device 120 transmits the haptic signal to the operating system, and the signal processing code 141 in the operating system may convert the received haptic signal into a touch signal.
  • the virtual touch device 142 encodes the touch signal according to the data encoding specification supported by the input subsystem 143, and sends the encoded touch signal to the input subsystem 143.
  • a corresponding touch event is generated by the input subsystem 143 in response to the encoded touch signal.
  • the touch signal may be transmitted through the predetermined interface according to different requirements. For example, when the communication speed is high, the touch signal may be transmitted through the USB-bulk interface. If the communication speed is required and the stability of communication is required, the tactile signal can be transmitted through the USB-hid interface; if the communication process is required to be streamlined, the tactile signal can be transmitted through the RS232 interface, and the tactile signal can be transmitted through the corresponding interface. It is converted to a protocol supported by the corresponding interface and then transmitted through the corresponding interface. In other examples, when there are other requirements, other types of interfaces may be used to transmit the haptic signals, which are not limited in this embodiment of the present specification.
  • the signal processing code 141 converts the haptic signal into a touch signal and transmits it to the virtual touch device 142
  • the data encoding specification employed by the virtual touch device 142 to encode the touch signal may be related to the type of the touch screen of the touch device 120.
  • the data encoding specification may be a USB protocol supporting a single electromagnetic pen input, encoding the touch signal as a touch signal triggered by a single electromagnetic pen, and then mapping the encoded touch signal. Go to the body of the USB protocol.
  • the touch signal can be mapped into the body of the USB protocol in the format in Table 1 below (corresponding to the descriptor of the hid pen):
  • the data encoding specification used may be a multi-touch protocol.
  • the touch signal is encoded into data satisfying the format specified by the multi-touch protocol, and then encoded.
  • the touch signal is packed into the package of the same data packet.
  • the touch signal can be mapped into the body of the multi-touch protocol according to the format in Table 2 below (corresponding to the hid multi-touch descriptor):
  • the data of the first touch point includes status, ID, X, Y, Pressure information, corresponding byte numbers 1 to 8; data of the second point touch point, including status, ID, X, Y, Pressure information, corresponding byte number 9 to 16; byte number 17 indicates that there are several touch points (several pens) in the current data packet.
  • the touch screen corresponding to the touch device 120 has a resolution of 32767*32767, the coordinate origin is the upper left corner of the touch screen, and the touch signal may include data of more touch points, such as position coordinates including more than six pixel points.
  • the virtual touch device 142 can perform block coding on the touch signal according to the data coding specification, and generate one data packet per coded touch signal, and a data packet includes position coordinates of up to six pixel points.
  • the touch signals can be mapped into the body of a data packet according to the format in Table 3 below:
  • Each data packet contains up to 6 touch points of data, and each data packet is sent separately.
  • the first data packet sent may include the number of valid touch points triggered this time, and other data packets are sent 0x00 at the corresponding position, and the input subsystem 143 may Different touch points are distinguished by touching the ID of the point.
  • the touch signal After inputting the encoded touch signal received by the subsystem 143, the touch signal can be parsed by using a corresponding protocol, the touch signal is parsed, and then converted into a corresponding touch event.
  • FIG. 2 is a flowchart of a method for processing a haptic signal according to an exemplary embodiment of the present invention.
  • the embodiment is applied to an operating system, and may include the following steps S201-S203:
  • Step S201 Receive a tactile signal generated by a touch sensor of the touch device.
  • Step S202 Convert the touch signal into a touch signal, wherein the touch signal includes at least a touch position signal.
  • Step S203 Encode the touch signal according to a data encoding specification supported by the input subsystem, and transmit the encoded to the input subsystem.
  • the embodiment of the present invention can be applied to the operating system shown in FIG. 1 , and the operating system can be an operating system of various electronic devices with a touch screen, such as a display, a learning machine, a smart tablet, and the like, and a smart tablet such as an electronic blackboard or an electronic tablet. Whiteboard, etc.
  • a touch screen such as a display, a learning machine, a smart tablet, and the like
  • a smart tablet such as an electronic blackboard or an electronic tablet.
  • Whiteboard etc.
  • These electronic devices are installed with various applications required by users, such as text editing applications, image editing applications, social applications, e-commerce applications, search applications, browser applications, and the like.
  • a text editing application such as an application of a whiteboard application
  • the input subsystem of the operating system generates a corresponding touch event according to the received touch signal, and can upload it to the corresponding application to assist the application in responding to the event.
  • the trigger event corresponding to the touch signal triggered by the electromagnetic pen is an event of adding written content
  • the operating system can assist the application to control the writing content triggered by the electromagnetic pen.
  • FIG. 3 is a block diagram of a processing device for a haptic signal according to an exemplary embodiment of the present invention.
  • the device may be applied to an operating system, including: a signal receiving module 310, a signal converting module 320, a signal encoding module 330, and a signal. Transmission module 340.
  • the signal receiving module 310 is configured to receive a tactile signal generated by a touch sensor of the touch device.
  • the signal conversion module 320 is configured to convert the touch signal into a touch signal, wherein the touch signal includes at least a touch position signal.
  • the signal encoding module 330 is configured to encode the touch signal according to a data encoding specification supported by the input subsystem.
  • the signal transmission module 340 is configured to transmit the encoded to the input subsystem.
  • the data encoding specification is a standard data encoding specification or a predefined data encoding specification.
  • the touch sensor includes one or more of the following:
  • Infrared touch frame electromagnetic board, capacitive touch panel, resistive touch panel, pressure sensor
  • the touch signal when the touch sensor is an electromagnetic plate, the touch signal includes a magnetic flux change amount and a frequency of the received electromagnetic signal, and the touch signal includes a touch position signal corresponding to the magnetic flux change amount, and The pressure sensitive signal corresponding to the frequency.
  • the touch device transmits the tactile signal to the operating system via any of the following interfaces:
  • USB-bulk interface USB-hid interface
  • RS232 interface RS232 interface
  • the signal encoding module 330 is further configured to perform block coding on the touch signal according to the data encoding specification, and generate one data per coded touch signal.
  • a packet which contains a position coordinate of up to six pixels in a packet.
  • the device embodiment since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment.
  • the device embodiments described above are merely illustrative, wherein the units or modules described as separate components may or may not be physically separate, and the components displayed as units or modules may or may not be physical units. Or modules, which can be located in one place, or distributed to multiple network units or modules. Some or all of the modules may be selected according to actual needs to achieve the objectives of the present invention. Those of ordinary skill in the art can understand and implement without any creative effort.
  • Embodiments of the processing device for the tactile signal of the present invention can be applied to an electronic device.
  • This can be implemented by a computer chip or an entity, or by a product having a certain function.
  • the specific form of the electronic device may be a personal computer with a electromagnetic screen, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, a smart writing device, Email transceivers, game consoles, tablets, wearables, Internet TVs, smart locomotives, driverless cars, smart refrigerators, other smart home devices, or a combination of any of these devices.
  • the smart writing device can be an electronic whiteboard, an electronic blackboard, or the like.
  • the device embodiment may be implemented by software, or may be implemented by hardware or a combination of hardware and software.
  • a processor of the electronic device in which it is located reads a corresponding computer program instruction in a readable medium such as a non-volatile memory into a memory.
  • a hardware level as shown in FIG. 4, a hardware structure diagram of an electronic device in which the processing device for the tactile signal of the present invention is located, except for the processor, the memory, the network interface, and the nonvolatile memory shown in FIG.
  • the electronic device in which the device is located in the embodiment may be equipped with a touch device according to the actual function of the electronic device.
  • the touch device may be installed on the electronic device or may be independent of the electronic device.
  • the touch device may include
  • the touch sensor such as an electromagnetic touch screen, the electromagnetic touch screen includes an electromagnetic sensor, and may also include other hardware, which will not be described again.
  • the memory of the electronic device may store program instructions executable by the processor; the processor may couple the memory for reading the program instructions stored by the memory, and in response, perform the operation of: receiving a tactile signal generated by the touch sensor; Converting the haptic signal into a touch signal, wherein the touch signal includes at least a touch position signal; encoding the touch signal according to a data encoding specification supported by the input subsystem, and transmitting the encoded to the input Subsystem.
  • the processor is configured to perform the following operations:
  • the device performs block coding on the touch signal according to the data coding specification, and generates one data packet per coded touch signal, and a data packet contains position coordinates of up to six pixel points.
  • the electronic device includes a smart tablet.
  • the smart tablet includes an electronic whiteboard.
  • the operations performed by the processor may be referred to the related description in the foregoing method embodiments, and details are not described herein.
  • an embodiment of the present invention further provides a machine readable storage medium (memory of an electronic device), wherein the readable storage medium stores program instructions, where the program instructions include steps of a processing method of the touch signal described above. Corresponding instructions. When executed by one or more processors, the terminal device is caused to perform the processing method of the above-described tactile signals.
  • Embodiments of the invention may take the form of a computer program product embodied on one or more readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) in which program code is embodied.
  • Computer-readable readable storage media include both permanent and non-persistent, removable and non-removable media, and information storage can be implemented by any method or technology.
  • the information can be computer readable instructions, data structures, modules of programs, or other data.
  • machine readable 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
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read only Memory
  • EEPROM electrically erasable programmable read only memory
  • flash memory or other memory technology
  • CD-ROM compact disc
  • DVD digital versatile disc

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 touch sensing signal processing method, system and device, and an electronic device. The method is applicable to an operating system and comprises: receiving a touch sensing signal generated by a touch sensor (121) of touch equipment (120) (S201); converting the touch sensing signal into a touch signal, wherein the touch signal at least comprises a touch position signal (S202); and encoding the touch signal according to a data encoding specification supported by an input subsystem (143), and transmitting the encoded touch signal to the input subsystem (S203). According to the described method, the operating system converts the touch sensing signal generated by the touch sensor (121) into the touch signal, encodes the touch signal and transmits the touch signal to the subsystem (143), so that the touch equipment (120) does not need to convert the signal, which may reduce the performance requirements for a control chip of the touch equipment, and thus reduce the cost and size of the touch equipment (120).

Description

触感信号的处理方法、系统、装置及电子设备Method, system, device and electronic device for processing touch signal 技术领域Technical field
本发明涉及触控技术领域,尤其涉及触感信号的处理方法、系统、装置及电子设备。The present invention relates to the field of touch technologies, and in particular, to a method, system, device, and electronic device for processing a tactile signal.
背景技术Background technique
很多电子设备搭载有各种触摸设备,如电容式、电阻式、电磁式或红外式的触摸设备,当用户对触摸设备对应的触摸屏进行触摸操作时,触摸设备的触摸传感器可以采集触感信号,其中,触摸设备的类型不同时,触感信号会有所不同,如:触摸设备为电磁式时,采集的触感信号包括磁通量的变化量和接收的电磁信号的频率,触摸设备为电容式时,采集的触感信号包括电容变化量。Many electronic devices are equipped with various touch devices, such as capacitive, resistive, electromagnetic or infrared touch devices. When the user touches the touch screen corresponding to the touch device, the touch sensor of the touch device can collect the touch signal, wherein When the type of the touch device is different, the touch signal may be different. For example, when the touch device is electromagnetic, the collected touch signal includes the amount of change of the magnetic flux and the frequency of the received electromagnetic signal. When the touch device is capacitive, the collected device is collected. The tactile signal includes a change in capacitance.
对于触摸传感器获得的触感信号,触摸设备的控制芯片可以将触感信号转换为触摸信号,并按照操作系统支持的数据编码规范编码触摸信号后,传送至电子设备的操作系统,由操作系统进行触摸响应。For the touch signal obtained by the touch sensor, the control chip of the touch device can convert the touch signal into a touch signal, and encode the touch signal according to the data encoding specification supported by the operating system, and then transmit to the operating system of the electronic device, and the touch response is performed by the operating system. .
而随着触控精度的提高,控制芯片需要处理的信号量越来越大,对其信号处理能力要求也越来越高,为了提高控制芯片的信号处理能力,触摸设备需要采用高性能的芯片,而高性能的芯片的成本高、体积大,会造成触摸设备的成本提高和体积增大。With the improvement of touch precision, the amount of signals that the control chip needs to process is getting larger and larger, and the requirements for its signal processing capability are getting higher and higher. In order to improve the signal processing capability of the control chip, the touch device needs to adopt a high-performance chip. The high cost and high volume of the high-performance chip will increase the cost and volume of the touch device.
发明内容Summary of the invention
有鉴于此,本发明提供一种触感信号的处理方法、系统、装置及电子设备,以解决高性能的芯片会造成触摸设备的成本提高和体积增大的问题。In view of this, the present invention provides a method, system, device, and electronic device for processing a tactile signal to solve the problem that the high-performance chip causes an increase in cost and an increase in volume of the touch device.
根据本发明的第一方面,提供一种触感信号的处理系统,包括包括触摸设备以及主机设备,所述触摸设备包括触摸传感器,所述主机设备上搭 载有操作系统,所述操作系统包括信号处理代码、虚拟触摸设备和输入子系统;According to a first aspect of the present invention, a processing system for a haptic signal is provided, comprising: a touch device including a touch sensor, the host device having an operating system mounted thereon, and the operating system including signal processing Code, virtual touch device and input subsystem;
所述触摸传感器生成触感信号,所述触摸设备向所述操作系统发送所述触感信号;The touch sensor generates a haptic signal, and the touch device transmits the haptic signal to the operating system;
所述信号处理代码将所述操作系统接收的触感信号转换为触摸信号,并向所述虚拟触摸设备发送所述触摸信号,其中,所述触摸信号至少包括触摸位置信号;The signal processing code converts a touch signal received by the operating system into a touch signal, and transmits the touch signal to the virtual touch device, wherein the touch signal includes at least a touch position signal;
所述虚拟触摸设备按照所述输入子系统支持的数据编码规范,对所述触摸信号编码,并向所述输入子系统发送编码后的触摸信号;The virtual touch device encodes the touch signal according to a data encoding specification supported by the input subsystem, and sends the encoded touch signal to the input subsystem;
所述输入子系统响应编码后的触摸信号生成对应的触摸事件。The input subsystem generates a corresponding touch event in response to the encoded touch signal.
在一个实施例中,所述数据编码规范为标准的数据编码规范或预定义的数据编码规范。In one embodiment, the data encoding specification is a standard data encoding specification or a predefined data encoding specification.
在一个实施例中,所述触摸传感器包括以下一种或多种:In one embodiment, the touch sensor comprises one or more of the following:
红外触摸框,电磁板,电容式触摸板,电阻式触摸板,压力传感器。Infrared touch frame, electromagnetic board, capacitive touch pad, resistive touch pad, pressure sensor.
在一个实施例中,所述触摸传感器为电磁板时,所述触感信号包括磁通变化量和接收到的电磁信号的频率,所述触摸信号包括与所述磁通变化量对应的触摸位置信号、与所述频率对应的压感信号。In one embodiment, when the touch sensor is an electromagnetic plate, the tactile signal includes a magnetic flux change amount and a frequency of the received electromagnetic signal, and the touch signal includes a touch position signal corresponding to the magnetic flux change amount. a pressure sensitive signal corresponding to the frequency.
在一个实施例中,所述触摸设备通过以下任一接口将所述触感信号发送至所述操作系统:In one embodiment, the touch device transmits the tactile signal to the operating system via any of the following interfaces:
USB-bulk接口,USB-hid接口,RS232接口。USB-bulk interface, USB-hid interface, RS232 interface.
在一个实施例中,如果所述触摸信号包括六个以上像素点的位置坐标,所述虚拟触摸设备按照所述数据编码规范对所述触摸信号进行分组编码,每编码一组触摸信号生成一个数据包,一个数据包内最多包含六个像素点的位置坐标。In one embodiment, if the touch signal includes position coordinates of more than six pixel points, the virtual touch device performs block coding on the touch signal according to the data encoding specification, and generates one data per coded group of touch signals. A packet, which contains a position coordinate of up to six pixels in a packet.
根据本发明的第二方面,提供一种触感信号的处理方法,应用于操作系统,包括步骤:According to a second aspect of the present invention, a method for processing a haptic signal is provided for use in an operating system, including the steps of:
接收触摸设备的触摸传感器生成的触感信号;Receiving a tactile signal generated by a touch sensor of the touch device;
将所述触感信号转换为触摸信号,其中,所述触摸信号至少包括触摸位置信号;Converting the haptic signal into a touch signal, wherein the touch signal includes at least a touch position signal;
按照输入子系统支持的数据编码规范,对所述触摸信号进行编码,并将编码后的传输至所述输入子系统。The touch signal is encoded and transmitted to the input subsystem in accordance with a data encoding specification supported by the input subsystem.
在一个实施例中,所述按照输入子系统支持的数据编码规范,对所述触摸信号进行编码,包括:In one embodiment, the encoding of the touch signal according to a data encoding specification supported by the input subsystem includes:
如果所述触摸信号包括六个以上像素点的位置坐标,则按照所述数据编码规范对所述触摸信号进行分组编码,每编码一组触摸信号生成一个数据包,一组触摸信号最多包含六个像素点的位置坐标。If the touch signal includes position coordinates of more than six pixel points, the touch signal is group coded according to the data encoding specification, and one data packet is generated for each group of touch signals, and one set of touch signals includes at most six The position coordinates of the pixel.
根据本发明的第三方面,提供一种触感信号的处理装置,应用于操作系统,包括:According to a third aspect of the present invention, a device for processing a haptic signal, which is applied to an operating system, includes:
信号接收模块,用于接收触摸设备的触摸传感器生成的触感信号;a signal receiving module, configured to receive a tactile signal generated by a touch sensor of the touch device;
信号转换模块,用于将所述触感信号转换为触摸信号,其中,所述触摸信号至少包括触摸位置信号;a signal conversion module, configured to convert the touch signal into a touch signal, wherein the touch signal includes at least a touch position signal;
信号编码模块,用于按照输入子系统支持的数据编码规范,对所述触摸信号进行编码;a signal encoding module, configured to encode the touch signal according to a data encoding specification supported by the input subsystem;
信号传输模块,用于将编码后的传输至所述输入子系统。a signal transmission module for transmitting the encoded to the input subsystem.
根据本发明的第四方面,提供一种电子设备,所述电子设备搭载了触摸设备、处理器以及用于存储所述处理器可执行指令的存储器;所述触摸设备包括触摸传感器;其中,所述处理器耦合于所述存储器,用于读取所述存储器存储的程序指令,并作为响应,执行如上所述方法中的操作。According to a fourth aspect of the present invention, an electronic device is provided, which is equipped with a touch device, a processor, and a memory for storing the processor-executable instructions; the touch device includes a touch sensor; The processor is coupled to the memory for reading program instructions stored by the memory and, in response, performing operations in the method as described above.
在一个实施例中,所述电子设备包括智能手写板。In one embodiment, the electronic device comprises a smart tablet.
在一个实施例中,所述智能手写板包括电子白板。In one embodiment, the smart tablet includes an electronic whiteboard.
根据本发明的第五方面,提供一个或多个机器可读存储介质,其上存储有指令,当由一个或多个处理器执行时,使得终端设备执行如上所述方法中的操作。According to a fifth aspect of the invention, there is provided one or more machine-readable storage medium having stored thereon instructions that, when executed by one or more processors, cause the terminal device to perform operations in the method as described above.
实施本发明提供的实施例,在触摸设备的触摸传感器生成触感信号后, 直接将触感信号传输至操作系统,由操作系统将触感信号转换为触摸信号,并编码传输至输入子系统。因此,无需触摸设备进行触感信号到触摸信号的转换处理,可以降低对其控制芯片的性能要求,进而在触摸设备内采用低性能的芯片作为控制芯片,因此,可以降低触摸设备的成本和体积。After the touch sensor generates a tactile signal, the touch sensor directly transmits the tactile signal to the operating system, and the operating system converts the tactile signal into a touch signal and transmits the code to the input subsystem. Therefore, the touch device does not need to perform the conversion process of the touch signal to the touch signal, the performance requirement of the control chip can be reduced, and the low performance chip is used as the control chip in the touch device, thereby reducing the cost and volume of the touch device.
附图说明DRAWINGS
图1是本发明一示例性实施例示出的触感信号的处理系统的架构图;1 is a block diagram of a processing system for a haptic signal according to an exemplary embodiment of the present invention;
图2是本发明一示例性实施例示出的触感信号的处理方法的流程图;2 is a flow chart showing a method of processing a haptic signal according to an exemplary embodiment of the present invention;
图3是本发明一示例性实施例示出的触感信号的处理装置的框图;3 is a block diagram of a processing device for a haptic signal according to an exemplary embodiment of the present invention;
图4是本发明一示例性实施例示出的电子设备的硬件结构图。FIG. 4 is a hardware structural diagram of an electronic device according to an exemplary embodiment of the present invention.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description refers to the same or similar elements in the different figures unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with aspects of the invention as detailed in the appended claims.
在本发明使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present invention is for the purpose of describing particular embodiments, and is not intended to limit the invention. The singular forms "a", "the" and "the" It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本发明可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本发明范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响 应于确定”。It should be understood that although the terms first, second, third, etc. may be used to describe various information in the present invention, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, the first information may also be referred to as the second information without departing from the scope of the invention. Similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "when" or "responding to certainty."
请参阅图1,图1是本发明一示例性实施例示出的触感信号的处理系统100的架构图,该处理系统100可以包括触摸设备120以及主机设备140,触摸设备120可以包括触摸传感器121,主机设备140上搭载有操作系统(图1中未示出),操作系统可以包括信号处理代码141、虚拟触摸设备142和输入子系统143。Please refer to FIG. 1 . FIG. 1 is a block diagram of a processing system 100 for a haptic signal according to an exemplary embodiment of the present invention. The processing system 100 may include a touch device 120 and a host device 140. The touch device 120 may include a touch sensor 121. An operating system (not shown in FIG. 1) is mounted on the host device 140, and the operating system may include a signal processing code 141, a virtual touch device 142, and an input subsystem 143.
其中,主机设备140可以指电子设备的主机或主机中用于实现触摸响应的部分设备,触摸设备120可以指独立于电子设备之外的触摸输入设备,也可以指装设在各种电子设备上的触摸输入设备,这里的电子设备可以是膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、智能书写设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备、智能机车、无人驾驶汽车、智能冰箱、其他智能家居设备或者这些设备中的任意几种设备的组合。智能书写设备可以是电子白板、电子黑板等等。The host device 140 may be referred to as a part of the device for implementing a touch response in the host or the host of the electronic device. The touch device 120 may be referred to as a touch input device other than the electronic device, or may be installed on various electronic devices. Touch input device, where the electronic device can be a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, a smart writing device, an email device, a game console, a tablet A combination of computers, wearables, smart locomotives, driverless cars, smart refrigerators, other smart home devices, or any of these devices. The smart writing device can be an electronic whiteboard, an electronic blackboard, or the like.
触摸设备120的对应触摸屏类型可以是电磁式、红外式、电容式、电阻式、压感式等各种类型,如:智能手机的触摸屏类型为电容式或电阻式,智能书写板的触摸屏类型为电磁式,红外线显示器的触摸屏类型为红外式。The corresponding touch screen type of the touch device 120 may be electromagnetic, infrared, capacitive, resistive, or pressure sensitive. For example, the touch screen type of the smart phone is capacitive or resistive, and the touch screen type of the smart writing board is The electromagnetic touch type of the infrared display is infrared.
触摸设备120对应的触摸屏类型不同时,触摸传感器121的类型不同,其采集的触感信号不同,转换所得的触摸信号也不完全相同,以下针对不同类型的触摸屏列举几种触摸传感器121:When the touch screens of the touch device 120 are different in type, the types of the touch sensors 121 are different, the touch signals collected by the touch devices are different, and the touch signals obtained by the conversion are not completely the same. Several touch sensors 121 are listed below for different types of touch screens:
类型一:触摸屏为红外式触摸屏,触摸传感器121为红外触摸框,其采集的触感信号可以包括表示红外线受阻的信号,转换所得的触摸信号可以包括位置触摸信号,该位置触摸信号可以包括触摸位置的X坐标和Y坐标。Type 1: The touch screen is an infrared touch screen, and the touch sensor 121 is an infrared touch frame. The touch signal collected may include a signal indicating that the infrared light is blocked, and the converted touch signal may include a position touch signal, and the touch signal may include a touch position. X coordinate and Y coordinate.
类型二:触摸屏为电磁式触摸屏,触摸传感器121为电磁板,其采集的触感信号可以包括磁通量的变化量和接收的电磁信号的频率,转换所得的触摸信号可以包括与所述磁通变化量对应的触摸位置信号、与所述频率 对应的压感信号,触摸位置信号可以包括触摸位置的X坐标和Y坐标。压感信号可以包括压力值。Type 2: The touch screen is an electromagnetic touch screen, and the touch sensor 121 is an electromagnetic board. The touch signal collected by the touch sensor may include a change amount of the magnetic flux and a frequency of the received electromagnetic signal, and the converted touch signal may include corresponding to the flux change amount. The touch position signal, the pressure sensitive signal corresponding to the frequency, the touch position signal may include an X coordinate and a Y coordinate of the touch position. The pressure sensitive signal can include a pressure value.
类型三:触摸屏为电容式触摸屏,触摸传感器121为电容式触摸板,其采集的触感信号可以包括流经触摸屏的各电极的电流,转换所得的触摸信号可以包括位置触摸信号,该位置触摸信号可以包括触摸位置的X坐标和Y坐标。Type 3: The touch screen is a capacitive touch screen, and the touch sensor 121 is a capacitive touch panel. The collected touch signal may include current flowing through each electrode of the touch screen, and the converted touch signal may include a position touch signal, and the touch signal at the position may be Includes the X and Y coordinates of the touch location.
类型四:触摸屏为电阻式触摸屏,触摸传感器121为电阻式触摸板,其采集的触感信号可以包括触摸位置的电压,转换所得的触摸信号可以包括位置触摸信号,该位置触摸信号可以包括触摸位置的X坐标和Y坐标。Type 4: The touch screen is a resistive touch screen, and the touch sensor 121 is a resistive touch panel. The touch signal collected may include a voltage at a touch position, and the converted touch signal may include a position touch signal, where the touch signal may include a touch position. X coordinate and Y coordinate.
类型五:触摸屏为压感式触摸屏,触摸传感器121为压力传感器,其采集的触感信号可以包括压力信号,转换所得的触摸信号可以包括位置触摸信号,该触摸位置信号可以包括触摸位置的X坐标和Y坐标。Type 5: The touch screen is a pressure sensitive touch screen, and the touch sensor 121 is a pressure sensor, and the collected touch signal may include a pressure signal, and the converted touch signal may include a position touch signal, and the touch position signal may include an X coordinate of the touch position and Y coordinate.
在其他例子中,触摸设备120的触摸屏可以包括电磁式触摸屏、红外式触摸屏、电容式触摸屏、电阻式触摸屏、压感式触摸屏中的至少两种触摸屏,相应的,触摸传感器121可以包括红外触摸框、电磁板、电容式触摸板、电阻式触摸板和压力传感器中的至少两种。或者,触摸设备120还可以是其他类型的触摸屏,本说明书实施例对此不做限制。In other examples, the touch screen of the touch device 120 may include at least two types of touch screens: an electromagnetic touch screen, an infrared touch screen, a capacitive touch screen, a resistive touch screen, and a pressure sensitive touch screen. Accordingly, the touch sensor 121 may include an infrared touch frame. At least two of an electromagnetic board, a capacitive touch panel, a resistive touch panel, and a pressure sensor. Alternatively, the touch device 120 may be other types of touch screens, which are not limited in this embodiment of the present specification.
触摸传感器121采集到触感信号后,触摸设备120向操作系统传输触感信号时,如果触摸传感器是121兼具控制功能和采集功能的设备,如触摸传感芯片,可以由触摸传感器121直接通过预定接口向操作系统传输所述触感信号。这里提到的预定接口可以是USB-bulk接口、RS232接口或USB-hid接口(hid是Human Interface Devices的缩写,即人机接口设备)等,该USB-hid接口可以是通用的USB-hid接口,此外,预定接口也可以是本发明方案的设计人员或其他设备生产商自定义的信号传输接口。After the touch sensor 121 collects the tactile signal, when the touch device 120 transmits the tactile signal to the operating system, if the touch sensor is a device that has both the control function and the acquisition function, such as a touch sensor chip, the touch sensor 121 can directly pass through the predetermined interface. The haptic signal is transmitted to an operating system. The predetermined interface mentioned here may be a USB-bulk interface, an RS232 interface or a USB-hid interface (hid is an abbreviation of Human Interface Devices, ie, a human interface device), and the USB-hid interface may be a universal USB-hid interface. In addition, the predetermined interface may also be a signal transmission interface customized by the designer of the solution of the present invention or other equipment manufacturer.
其他例子中,触摸设备120还可以包括触控处理器件(图1中未示出),触摸设备120向操作系统传输触感信号时,如果触摸传感器121不具备控制功能,可以由触控处理器件从触摸传感器121读取所述触感信号,再由 触控处理器件通过上述预定接口向传输操作系统传输所述触感信号。这里提到的触控处理器件可以是触摸设备120的主控制芯片(也可以称为主处理芯片或中央处理器),也可以是其他处理芯片,该处理芯片可以装设于触摸设备120内,也可以设置于触摸设备120外。In other examples, the touch device 120 may further include a touch processing device (not shown in FIG. 1 ). When the touch device 120 transmits a tactile signal to the operating system, if the touch sensor 121 does not have a control function, the touch processing device may be used by the touch processing device. The touch sensor 121 reads the touch signal, and then the touch processing device transmits the touch signal to the transmission operating system through the predetermined interface. The touch processing device mentioned herein may be a main control chip (also referred to as a main processing chip or a central processing unit) of the touch device 120, or may be another processing chip, and the processing chip may be installed in the touch device 120. It can also be disposed outside the touch device 120.
对于信号处理代码141,将触感信号转换为触摸信号时,对应不同类型的触摸屏,可以基于各类型的触摸屏的工作原理,采取相应的转换方式进行转换。例如:触感信号为电容式触摸屏生成的流经触摸屏的各电极的电流,可以根据各级电流的比例,确定出触摸点位置的X坐标和Y坐标。For the signal processing code 141, when the touch signal is converted into a touch signal, corresponding to different types of touch screens, the conversion mode can be adopted according to the working principle of each type of touch screen. For example, the haptic signal is a current generated by the capacitive touch screen flowing through each electrode of the touch screen, and the X coordinate and the Y coordinate of the touch point position can be determined according to the ratio of the currents of the respective levels.
该信号处理代码141作为一个逻辑意义上的模块,可以通过其所在主机设备140的中央处理器(也可以称为主控制芯片或主处理芯片)或中央处理器之外的其他处理芯片,将非易失性存储器等可读介质中对应的计算机程序指令读取到内存中运行形成。主机设备140的中央处理器或中央处理器之外的其他处理芯片可以读取其存储器存储的程序指令,并作为响应,将触感信号转换为触摸信号。The signal processing code 141 is a module in a logical sense, and may be through a central processing unit (also referred to as a main control chip or a main processing chip) of the host device 140 or a processing chip other than the central processing unit. Corresponding computer program instructions in a readable medium such as a volatile memory are read into memory for operation. The central processing unit of the host device 140 or other processing chip other than the central processing unit can read the program instructions stored in its memory and, in response, convert the tactile signals into touch signals.
对于虚拟触摸设备142,是通过软件模拟的具有触摸设备120的功能、运行在操作系统中的虚拟设备,开始运行后,可以向输入子系统143预定其之后向输入子系统143传输的信号的数据编码规范,即输入子系统143支持的数据编码规范。实际应用中,触摸设备120的类型不同时,虚拟触摸设备140也不同,例如:触摸设备120为红外触摸框设备,虚拟触摸设备140为虚拟触摸框设备。For the virtual touch device 142, which is a virtual device that is simulated by software and has a function of the touch device 120 and runs in the operating system, after starting the operation, the data of the signal transmitted to the input subsystem 143 can be reserved to the input subsystem 143. The coding specification, that is, the data coding specification supported by the input subsystem 143. In actual applications, the virtual touch device 140 is different when the types of the touch devices 120 are different. For example, the touch device 120 is an infrared touch frame device, and the virtual touch device 140 is a virtual touch frame device.
某些例子中,输入子系统143支持的数据编码规范可以是从USB-hid接口对应的USB多点触摸hid协议中提取的有效触摸数据协议。这里强调“提取”的意思是,标准的USB多点触摸hid协议会在有效触摸数据协议上外加一些USB传输协议需要的包头、报文等,以供USB协议传输,而外加的这些数据输入子系统中是不需要的。另外,输入子系统143支持的数据编码规范也可以是本方案的设计人员根据触摸设备120的应用需求,预定的数据编码规范,本说明书实施例在此不做限制。In some examples, the data encoding specification supported by the input subsystem 143 may be an effective touch data protocol extracted from the USB multi-touch hid protocol corresponding to the USB-hid interface. The emphasis here on "extraction" means that the standard USB multi-touch hid protocol will add some headers, messages, etc. required by the USB transmission protocol to the effective touch data protocol for transmission by the USB protocol, and these data inputs are added. Not required in the system. In addition, the data encoding specification supported by the input subsystem 143 may also be a predetermined data encoding specification according to the application requirements of the touch device 120 by the designer of the solution, and the embodiment of the present specification is not limited herein.
输入子系统(input_device)143,可以由设备驱动层、输入核心层和事件处理层构成,其中,设备驱动层可以将底层的硬件输入转化为统一事件形式,向输入核心层汇报,输入核心层可以承上启下,为硬件驱动层输入的设备注册与操作接口,通知事件处理层对事件进行处理。The input subsystem (input_device) 143 may be composed of a device driver layer, an input core layer, and an event processing layer. The device driver layer may convert the underlying hardware input into a unified event form, report to the input core layer, and input the core layer. The device registration and operation interface input for the hardware driver layer is notified, and the event processing layer is notified to process the event.
某些场景中,处理系统100可以应用于电子设备,触摸设备120还可以包括触摸屏,触摸传感器121可以装设在触摸屏上,也可以独立于触摸屏之外。处理系统100还可以包括设置在触摸设备120与操作系统之间的接口(上述预定接口)。当用户通过手指或书写笔接触触摸屏时,触摸传感器121可以生成触感信号,触摸设备120向操作系统发送所述触感信号,操作系统中的信号处理代码141可以将接收的触感信号转换为触摸信号,并向虚拟触摸设备142发送所述触摸信号,然后由虚拟触摸设备142按照输入子系统143支持的数据编码规范,对所述触摸信号编码,并向输入子系统143,发送编码后的触摸信号,由输入子系统143响应编码后的触摸信号生成对应的触摸事件。In some scenarios, the processing system 100 can be applied to an electronic device. The touch device 120 can also include a touch screen. The touch sensor 121 can be mounted on the touch screen or can be independent of the touch screen. The processing system 100 can also include an interface (the predetermined interface described above) disposed between the touch device 120 and the operating system. When the user touches the touch screen through a finger or a stylus, the touch sensor 121 may generate a haptic signal, and the touch device 120 transmits the haptic signal to the operating system, and the signal processing code 141 in the operating system may convert the received haptic signal into a touch signal. And transmitting the touch signal to the virtual touch device 142, and then the virtual touch device 142 encodes the touch signal according to the data encoding specification supported by the input subsystem 143, and sends the encoded touch signal to the input subsystem 143. A corresponding touch event is generated by the input subsystem 143 in response to the encoded touch signal.
其中,触摸设备120向操作系统发送所述触感信号时,可以根据不同的需求,通过上述预定接口传输触感信号,例如:对通信速度有较高要求时,可以通过USB-bulk接口传输触感信号;如果对通信速度有要求的同时还要求通信的稳定性高,可以通过USB-hid接口传输触感信号;如果要求精简通信过程,可以通过RS232接口传输触感信号,通过相应接口传输触感信号前,先将其转换为相应接口支持的协议,然后通过相应接口传输。在其他例子中,有其他需求时,还可以采取其他类型的接口传输触感信号,本说明书实施例对此不做限制。When the touch device 120 sends the touch signal to the operating system, the touch signal may be transmitted through the predetermined interface according to different requirements. For example, when the communication speed is high, the touch signal may be transmitted through the USB-bulk interface. If the communication speed is required and the stability of communication is required, the tactile signal can be transmitted through the USB-hid interface; if the communication process is required to be streamlined, the tactile signal can be transmitted through the RS232 interface, and the tactile signal can be transmitted through the corresponding interface. It is converted to a protocol supported by the corresponding interface and then transmitted through the corresponding interface. In other examples, when there are other requirements, other types of interfaces may be used to transmit the haptic signals, which are not limited in this embodiment of the present specification.
在信号处理代码141将触感信号转换为触摸信号,并传输到虚拟触摸设备142后,虚拟触摸设备142编码触摸信号时所采用的数据编码规范,可以与触摸设备120的触摸屏的类型相关。After the signal processing code 141 converts the haptic signal into a touch signal and transmits it to the virtual touch device 142, the data encoding specification employed by the virtual touch device 142 to encode the touch signal may be related to the type of the touch screen of the touch device 120.
比如,触摸设备120为电磁式触摸设备时,采用的数据编码规范可以是支持单电磁笔输入的USB协议,将触摸信号作为单支电磁笔触发的触摸 信号进行编码,然后将编码的触摸信号映射到所述USB协议的包体中。For example, when the touch device 120 is an electromagnetic touch device, the data encoding specification may be a USB protocol supporting a single electromagnetic pen input, encoding the touch signal as a touch signal triggered by a single electromagnetic pen, and then mapping the encoded touch signal. Go to the body of the USB protocol.
实际应用中,可以按以下表1中的格式(对应于hid笔的描述符)将触摸信号映射到所述USB协议的包体中:In practical applications, the touch signal can be mapped into the body of the USB protocol in the format in Table 1 below (corresponding to the descriptor of the hid pen):
表1:Table 1:
Figure PCTCN2018114056-appb-000001
Figure PCTCN2018114056-appb-000001
再比如,触摸设备120为电容式触摸设备时,采用的数据编码规范可以是多点触摸协议,编码时,将触摸信号编码为满足所述多点触摸协议规定的格式的数据,然后将编码后的触摸信号打包到同一个数据包的包体内。For another example, when the touch device 120 is a capacitive touch device, the data encoding specification used may be a multi-touch protocol. When encoding, the touch signal is encoded into data satisfying the format specified by the multi-touch protocol, and then encoded. The touch signal is packed into the package of the same data packet.
实际应用中,可以按以下表2中的格式(对应于hid多点触摸的描述符)将触摸信号映射到多点触摸协议的包体中:In practical applications, the touch signal can be mapped into the body of the multi-touch protocol according to the format in Table 2 below (corresponding to the hid multi-touch descriptor):
表2:Table 2:
Figure PCTCN2018114056-appb-000002
Figure PCTCN2018114056-appb-000002
如表2所示,第1个触摸点的数据,包括状态、ID、X、Y、Pressure信息,对应字节号1至8;第2个点触摸点的数据,包括状态、ID、X、Y、Pressure信息,对应字节号9至16;字节号17表明当前数据包里面有几个触摸点(几支笔)。As shown in Table 2, the data of the first touch point includes status, ID, X, Y, Pressure information, corresponding byte numbers 1 to 8; data of the second point touch point, including status, ID, X, Y, Pressure information, corresponding byte number 9 to 16; byte number 17 indicates that there are several touch points (several pens) in the current data packet.
某些例子中,触摸设备120对应的触摸屏的分辨率为32767*32767,坐标原点为触摸屏的左上角,触摸信号可能包括比较多的触摸点的数据,如包括六个以上像素点的位置坐标,该状况下,虚拟触摸设备142可以按照数据编码规范对触摸信号进行分组编码,每编码一组触摸信号生成一个数据包,一个数据包内最多包含六个像素点的位置坐标。In some examples, the touch screen corresponding to the touch device 120 has a resolution of 32767*32767, the coordinate origin is the upper left corner of the touch screen, and the touch signal may include data of more touch points, such as position coordinates including more than six pixel points. In this case, the virtual touch device 142 can perform block coding on the touch signal according to the data coding specification, and generate one data packet per coded touch signal, and a data packet includes position coordinates of up to six pixel points.
实际应用中,进行分组编码,每组编码时,可以按以下表3中的格式,将触摸信号映射到一个数据包的的包体中:In practical applications, packet coding is performed. For each group of codes, the touch signals can be mapped into the body of a data packet according to the format in Table 3 below:
表3:table 3:
Figure PCTCN2018114056-appb-000003
Figure PCTCN2018114056-appb-000003
每个数据包最多包含6个触摸点的数据,分别发送各数据包,发送的第一个数据包可以包括本次触发的有效触摸点数,其他数据包在对应位置发送0x00,输入子系统143可以通过触摸点的ID来区分不同触摸点。Each data packet contains up to 6 touch points of data, and each data packet is sent separately. The first data packet sent may include the number of valid touch points triggered this time, and other data packets are sent 0x00 at the corresponding position, and the input subsystem 143 may Different touch points are distinguished by touching the ID of the point.
输入子系统143接收的编码后的触摸信号后,可以采用对应的协议对 触摸信号进行解析,解析出触摸信号,然后转换为相应的触摸事件。After inputting the encoded touch signal received by the subsystem 143, the touch signal can be parsed by using a corresponding protocol, the touch signal is parsed, and then converted into a corresponding touch event.
以下结合附图介绍下应用于操作系统的触感信号处理过程:The touch signal processing process applied to the operating system is described below with reference to the accompanying drawings:
请参阅图2,图2是本发明一示例性实施例示出的触感信号的处理方法的流程图,该实施例应用于操作系统,可以包括以下步骤S201-S203:Referring to FIG. 2, FIG. 2 is a flowchart of a method for processing a haptic signal according to an exemplary embodiment of the present invention. The embodiment is applied to an operating system, and may include the following steps S201-S203:
步骤S201、接收触摸设备的触摸传感器生成的触感信号。Step S201: Receive a tactile signal generated by a touch sensor of the touch device.
步骤S202、将所述触感信号转换为触摸信号,其中,所述触摸信号至少包括触摸位置信号。Step S202: Convert the touch signal into a touch signal, wherein the touch signal includes at least a touch position signal.
步骤S203、按照输入子系统支持的数据编码规范,对所述触摸信号进行编码,并将编码后的传输至所述输入子系统。Step S203: Encode the touch signal according to a data encoding specification supported by the input subsystem, and transmit the encoded to the input subsystem.
本实施例涉及的技术特征与图1所对应的实施例涉及的技术特征相应,在此不再赘述。The technical features of the embodiment are corresponding to the technical features of the embodiment corresponding to FIG. 1, and details are not described herein again.
本发明实施例可以应用于图1所示的操作系统,该操作系统可以是各种具有触摸屏的电子设备的操作系统,例如显示器、学习机、智能手写板等,智能手写板如电子黑板、电子白板等。这些电子设备内安装有用户所需的各种应用程序,如文本编辑类应用程序、图像编辑类应用程序、社交类应用程序、电商类应用程序、搜索类应用程序、浏览器类应用程序等等,文本编辑类应用程序如白板应用的应用程序,操作系统的输入子系统根据接收的触摸信号生成对应的触摸事件后,可以上传到相应的应用程序,协助该应用程序进行事件响应。The embodiment of the present invention can be applied to the operating system shown in FIG. 1 , and the operating system can be an operating system of various electronic devices with a touch screen, such as a display, a learning machine, a smart tablet, and the like, and a smart tablet such as an electronic blackboard or an electronic tablet. Whiteboard, etc. These electronic devices are installed with various applications required by users, such as text editing applications, image editing applications, social applications, e-commerce applications, search applications, browser applications, and the like. Etc., a text editing application such as an application of a whiteboard application, the input subsystem of the operating system generates a corresponding touch event according to the received touch signal, and can upload it to the corresponding application to assist the application in responding to the event.
例如:所述应用程序为白板应用的应用程序时,电磁笔触发的触摸信号对应的触发事件为添加书写内容的事件,所述操作系统可以协助该应用程序,控制显示电磁笔触发的书写内容。For example, when the application is an application of the whiteboard application, the trigger event corresponding to the touch signal triggered by the electromagnetic pen is an event of adding written content, and the operating system can assist the application to control the writing content triggered by the electromagnetic pen.
参见图3,图3是本发明一示例性实施例示出的触感信号的处理装置的框图,该装置可以应用于操作系统,包括:信号接收模块310、信号转换模块320、信号编码模块330和信号传输模块340。Referring to FIG. 3, FIG. 3 is a block diagram of a processing device for a haptic signal according to an exemplary embodiment of the present invention. The device may be applied to an operating system, including: a signal receiving module 310, a signal converting module 320, a signal encoding module 330, and a signal. Transmission module 340.
其中,信号接收模块310,用于接收触摸设备的触摸传感器生成的触感信号。The signal receiving module 310 is configured to receive a tactile signal generated by a touch sensor of the touch device.
信号转换模块320,用于将所述触感信号转换为触摸信号,其中,所述触摸信号至少包括触摸位置信号。The signal conversion module 320 is configured to convert the touch signal into a touch signal, wherein the touch signal includes at least a touch position signal.
信号编码模块330,用于按照输入子系统支持的数据编码规范,对所述触摸信号进行编码。The signal encoding module 330 is configured to encode the touch signal according to a data encoding specification supported by the input subsystem.
信号传输模块340,用于将编码后的传输至所述输入子系统。The signal transmission module 340 is configured to transmit the encoded to the input subsystem.
一些例子中,所述数据编码规范为标准的数据编码规范或预定义的数据编码规范。In some examples, the data encoding specification is a standard data encoding specification or a predefined data encoding specification.
一些例子中,所述触摸传感器包括以下一种或多种:In some examples, the touch sensor includes one or more of the following:
红外触摸框,电磁板,电容式触摸板,电阻式触摸板,压力传感器Infrared touch frame, electromagnetic board, capacitive touch panel, resistive touch panel, pressure sensor
一些例子中,所述触摸传感器为电磁板时,所述触感信号包括磁通变化量和接收到的电磁信号的频率,所述触摸信号包括与所述磁通变化量对应的触摸位置信号、与所述频率对应的压感信号。In some examples, when the touch sensor is an electromagnetic plate, the touch signal includes a magnetic flux change amount and a frequency of the received electromagnetic signal, and the touch signal includes a touch position signal corresponding to the magnetic flux change amount, and The pressure sensitive signal corresponding to the frequency.
一些例子中,所述触摸设备通过以下任一接口将所述触感信号发送至所述操作系统:In some examples, the touch device transmits the tactile signal to the operating system via any of the following interfaces:
USB-bulk接口,USB-hid接口,RS232接口。USB-bulk interface, USB-hid interface, RS232 interface.
一些例子中,如果所述触摸信号包括六个以上像素点的位置坐标,信号编码模块330还用于按照所述数据编码规范对所述触摸信号进行分组编码,每编码一组触摸信号生成一个数据包,一个数据包内最多包含六个像素点的位置坐标。In some examples, if the touch signal includes position coordinates of more than six pixel points, the signal encoding module 330 is further configured to perform block coding on the touch signal according to the data encoding specification, and generate one data per coded touch signal. A packet, which contains a position coordinate of up to six pixels in a packet.
上述装置中各个单元(或模块)的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。The implementation process of the functions and functions of each unit (or module) in the above device is specifically described in the implementation process of the corresponding steps in the foregoing method, and details are not described herein again.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元或模块可以是或者也可以不是物理上分开的,作为单元或模块显示的部件可以是或者也可以不是物理单元或模块,即可以位于一个地方,或者也可以分布到多个网络单元或模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本发明方案的目 的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。For the device embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment. The device embodiments described above are merely illustrative, wherein the units or modules described as separate components may or may not be physically separate, and the components displayed as units or modules may or may not be physical units. Or modules, which can be located in one place, or distributed to multiple network units or modules. Some or all of the modules may be selected according to actual needs to achieve the objectives of the present invention. Those of ordinary skill in the art can understand and implement without any creative effort.
本发明触感信号的处理装置的实施例可以应用在电子设备上。具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现中,电子设备的具体形式可以是具有电磁屏的个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、智能书写设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备、互联网电视、智能机车、无人驾驶汽车、智能冰箱、其他智能家居设备或者这些设备中的任意几种设备的组合。智能书写设备可以是电子白板、电子黑板等等。Embodiments of the processing device for the tactile signal of the present invention can be applied to an electronic device. This can be implemented by a computer chip or an entity, or by a product having a certain function. In a typical implementation, the specific form of the electronic device may be a personal computer with a electromagnetic screen, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, a smart writing device, Email transceivers, game consoles, tablets, wearables, Internet TVs, smart locomotives, driverless cars, smart refrigerators, other smart home devices, or a combination of any of these devices. The smart writing device can be an electronic whiteboard, an electronic blackboard, or the like.
装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在电子设备的处理器将非易失性存储器等可读介质中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,如图4所示,为本发明触感信号的处理装置所在电子设备的一种硬件结构图,除了图4所示的处理器、内存、网络接口、以及非易失性存储器之外,实施例中装置所在的电子设备通常根据该电子设备的实际功能,可以搭载有触摸设备,搭载的触摸设备可以装设于电子设备上,也可以独立于电子设备存在,触摸设备可以包括触摸传感器,如搭载有电磁式触摸屏,电磁式触摸屏包括电磁感应器,还可以包括其他硬件,对此不再赘述。电子设备的存储器可以存储处理器可执行的程序指令;处理器可以耦合存储器,用于读取所述存储器存储的程序指令,并作为响应,执行如下操作:接收所述触摸传感器生成的触感信号;将所述触感信号转换为触摸信号,其中,所述触摸信号至少包括触摸位置信号;按照输入子系统支持的数据编码规范,对所述触摸信号进行编码,并将编码后的传输至所述输入子系统。The device embodiment may be implemented by software, or may be implemented by hardware or a combination of hardware and software. Taking the software implementation as an example, as a logical device, a processor of the electronic device in which it is located reads a corresponding computer program instruction in a readable medium such as a non-volatile memory into a memory. From a hardware level, as shown in FIG. 4, a hardware structure diagram of an electronic device in which the processing device for the tactile signal of the present invention is located, except for the processor, the memory, the network interface, and the nonvolatile memory shown in FIG. In addition, the electronic device in which the device is located in the embodiment may be equipped with a touch device according to the actual function of the electronic device. The touch device may be installed on the electronic device or may be independent of the electronic device. The touch device may include The touch sensor, such as an electromagnetic touch screen, the electromagnetic touch screen includes an electromagnetic sensor, and may also include other hardware, which will not be described again. The memory of the electronic device may store program instructions executable by the processor; the processor may couple the memory for reading the program instructions stored by the memory, and in response, perform the operation of: receiving a tactile signal generated by the touch sensor; Converting the haptic signal into a touch signal, wherein the touch signal includes at least a touch position signal; encoding the touch signal according to a data encoding specification supported by the input subsystem, and transmitting the encoded to the input Subsystem.
一些例子中,如果所述触摸信号包括六个以上像素点的位置坐标,所述处理器被配置为执行以下操作:In some examples, if the touch signal includes position coordinates of more than six pixel points, the processor is configured to perform the following operations:
设备按照所述数据编码规范对所述触摸信号进行分组编码,每编码一组触摸信号生成一个数据包,一个数据包内最多包含六个像素点的位置坐标。The device performs block coding on the touch signal according to the data coding specification, and generates one data packet per coded touch signal, and a data packet contains position coordinates of up to six pixel points.
另一些例子中,所述电子设备包括智能手写板。In other examples, the electronic device includes a smart tablet.
另一些例子中,所述智能手写板包括电子白板。In other examples, the smart tablet includes an electronic whiteboard.
在其他实施例中,处理器所执行的操作可以参考上文方法实施例中相关的描述,在此不予赘述。In other embodiments, the operations performed by the processor may be referred to the related description in the foregoing method embodiments, and details are not described herein.
此外,本发明实施例还提供一种机器可读存储介质(电子设备的存储器),所述可读存储介质中存储有程序指令,所述程序指令包括以上所述触感信号的处理方法的各步骤对应的指令。当由一个或多个处理器执行时,使得终端设备执行以上所述触感信号的处理方法。In addition, an embodiment of the present invention further provides a machine readable storage medium (memory of an electronic device), wherein the readable storage medium stores program instructions, where the program instructions include steps of a processing method of the touch signal described above. Corresponding instructions. When executed by one or more processors, the terminal device is caused to perform the processing method of the above-described tactile signals.
本发明实施例可采用在一个或多个其中包含有程序代码的可读存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机可用可读存储介质包括永久性和非永久性、可移动和非可移动媒体,可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。机器可读存储介质的例子包括但不限于:相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。Embodiments of the invention may take the form of a computer program product embodied on one or more readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) in which program code is embodied. Computer-readable readable storage media include both permanent and non-persistent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of machine readable 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 A magnetic tape cartridge, magnetic tape storage or other magnetic storage device or any other non-transporting medium that can be used to store information that can be accessed by a computing device.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are made within the spirit and principles of the present invention, should be included in the present invention. Within the scope of protection.

Claims (13)

  1. 一种触感信号的处理系统,其特征在于,包括触摸设备以及主机设备,所述触摸设备包括触摸传感器,所述主机设备上搭载有操作系统,所述操作系统包括信号处理代码、虚拟触摸设备和输入子系统;A haptic signal processing system, comprising: a touch device and a host device, the touch device includes a touch sensor, the host device is equipped with an operating system, and the operating system includes a signal processing code, a virtual touch device, and Input subsystem
    所述触摸传感器生成触感信号,所述触摸设备向所述操作系统发送所述触感信号;The touch sensor generates a haptic signal, and the touch device transmits the haptic signal to the operating system;
    所述信号处理代码将所述操作系统接收的触感信号转换为触摸信号,并向所述虚拟触摸设备发送所述触摸信号,其中,所述触摸信号至少包括触摸位置信号;The signal processing code converts a touch signal received by the operating system into a touch signal, and transmits the touch signal to the virtual touch device, wherein the touch signal includes at least a touch position signal;
    所述虚拟触摸设备按照所述输入子系统支持的数据编码规范,对所述触摸信号编码,并向所述输入子系统发送编码后的触摸信号;The virtual touch device encodes the touch signal according to a data encoding specification supported by the input subsystem, and sends the encoded touch signal to the input subsystem;
    所述输入子系统响应编码后的触摸信号生成对应的触摸事件。The input subsystem generates a corresponding touch event in response to the encoded touch signal.
  2. 根据权利要求1所述的系统,其特征在于,所述数据编码规范为标准的数据编码规范或预定义的数据编码规范。The system of claim 1 wherein said data encoding specification is a standard data encoding specification or a predefined data encoding specification.
  3. 根据权利要求1所述的系统,其特征在于,所述触摸传感器包括以下一种或多种:The system of claim 1 wherein said touch sensor comprises one or more of the following:
    红外触摸框,电磁板,电容式触摸板,电阻式触摸板,压力传感器。Infrared touch frame, electromagnetic board, capacitive touch pad, resistive touch pad, pressure sensor.
  4. 根据权利要求3所述的系统,其特征在于,所述触摸传感器为电磁板时,所述触感信号包括磁通变化量和接收到的电磁信号的频率,所述触摸信号包括与所述磁通变化量对应的触摸位置信号、与所述频率对应的压感信号。The system according to claim 3, wherein when the touch sensor is an electromagnetic plate, the tactile signal includes a magnetic flux change amount and a frequency of the received electromagnetic signal, and the touch signal includes the magnetic flux A touch position signal corresponding to the amount of change, and a pressure sensitive signal corresponding to the frequency.
  5. 根据权利要求1所述的系统,其特征在于,所述触摸设备通过以下任一接口将所述触感信号发送至所述操作系统:The system of claim 1 wherein said touch device transmits said tactile signal to said operating system via any of the following interfaces:
    USB-bulk接口,USB-hid接口,RS232接口。USB-bulk interface, USB-hid interface, RS232 interface.
  6. 根据权利要求1至5中任一项所述的系统,其特征在于,如果所述触摸信号包括六个以上像素点的位置坐标,所述虚拟触摸设备按照所述数据编码规范对所述触摸信号进行分组编码,每编码一组触摸信号生成一个数 据包,一个数据包内最多包含六个像素点的位置坐标。The system according to any one of claims 1 to 5, wherein if the touch signal includes position coordinates of six or more pixel points, the virtual touch device pairs the touch signal according to the data encoding specification Performing block coding, generating one data packet per coded touch signal, and a data packet containing position coordinates of up to six pixel points.
  7. 一种触感信号的处理方法,其特征在于,应用于操作系统,包括步骤:A method for processing a tactile signal, which is characterized by being applied to an operating system, comprising the steps of:
    接收触摸设备的触摸传感器生成的触感信号;Receiving a tactile signal generated by a touch sensor of the touch device;
    将所述触感信号转换为触摸信号,其中,所述触摸信号至少包括触摸位置信号;Converting the haptic signal into a touch signal, wherein the touch signal includes at least a touch position signal;
    按照输入子系统支持的数据编码规范,对所述触摸信号进行编码,并将编码后的传输至所述输入子系统。The touch signal is encoded and transmitted to the input subsystem in accordance with a data encoding specification supported by the input subsystem.
  8. 根据权利要求7所述的方法,其特征在于,所述按照输入子系统支持的数据编码规范,对所述触摸信号进行编码,包括:The method of claim 7, wherein the encoding the touch signal according to a data encoding specification supported by the input subsystem comprises:
    如果所述触摸信号包括六个以上像素点的位置坐标,则按照所述数据编码规范对所述触摸信号进行分组编码,每编码一组触摸信号生成一个数据包,一组触摸信号最多包含六个像素点的位置坐标。If the touch signal includes position coordinates of more than six pixel points, the touch signal is group coded according to the data encoding specification, and one data packet is generated for each group of touch signals, and one set of touch signals includes at most six The position coordinates of the pixel.
  9. 一种触感信号的处理装置,其特征在于,应用于操作系统,包括:A processing device for a tactile signal, which is characterized by being applied to an operating system, comprising:
    信号接收模块,用于接收触摸设备的触摸传感器生成的触感信号;a signal receiving module, configured to receive a tactile signal generated by a touch sensor of the touch device;
    信号转换模块,用于将所述触感信号转换为触摸信号,其中,所述触摸信号至少包括触摸位置信号;a signal conversion module, configured to convert the touch signal into a touch signal, wherein the touch signal includes at least a touch position signal;
    信号编码模块,用于按照输入子系统支持的数据编码规范,对所述触摸信号进行编码;a signal encoding module, configured to encode the touch signal according to a data encoding specification supported by the input subsystem;
    信号传输模块,用于将编码后的传输至所述输入子系统。a signal transmission module for transmitting the encoded to the input subsystem.
  10. 一种电子设备,其特征在于,所述电子设备搭载了触摸设备、处理器以及用于存储所述处理器可执行指令的存储器;所述触摸设备包括触摸传感器;其中,所述处理器耦合于所述存储器,用于读取所述存储器存储的程序指令,并作为响应,执行如权利要求7或8所述方法中的操作。An electronic device, characterized in that the electronic device is equipped with a touch device, a processor, and a memory for storing the processor-executable instructions; the touch device includes a touch sensor; wherein the processor is coupled to The memory is configured to read program instructions stored by the memory and, in response, perform operations in the method of claim 7 or 8.
  11. 根据权利要求10所述的设备,其特征在于,所述电子设备包括智能手写板。The device of claim 10 wherein said electronic device comprises a smart tablet.
  12. 根据权利要求11所述的设备,其特征在于,所述智能手写板包括电子白板。The device according to claim 11, wherein said smart tablet comprises an electronic whiteboard.
  13. 一个或多个机器可读存储介质,其特征在于,其上存储有指令,当由一个或多个处理器执行时,使得终端设备执行如权利要求7或8所述方法中的操作。One or more machine-readable storage mediums having stored thereon instructions that, when executed by one or more processors, cause the terminal device to perform operations in the method of claim 7 or 8.
PCT/CN2018/114056 2017-11-29 2018-11-06 Touch sensing signal processing method, system and device, and electronic device WO2019105187A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711225561.1A CN107861657B (en) 2017-11-29 2017-11-29 Touch signal processing method, system and device and electronic equipment
CN201711225561.1 2017-11-29

Publications (1)

Publication Number Publication Date
WO2019105187A1 true WO2019105187A1 (en) 2019-06-06

Family

ID=61704422

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/114056 WO2019105187A1 (en) 2017-11-29 2018-11-06 Touch sensing signal processing method, system and device, and electronic device

Country Status (2)

Country Link
CN (1) CN107861657B (en)
WO (1) WO2019105187A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861657B (en) * 2017-11-29 2020-04-14 广州视源电子科技股份有限公司 Touch signal processing method, system and device and electronic equipment
CN107844220B (en) 2017-11-29 2020-02-11 广州视源电子科技股份有限公司 Touch signal processing method, system and device and electronic equipment
CN108595045A (en) * 2018-04-02 2018-09-28 广州视源电子科技股份有限公司 Touch signal processing method and device and electronic equipment
CN109871150B (en) * 2019-03-11 2022-05-06 广州视源电子科技股份有限公司 Touch signal processing method and intelligent interactive panel
CN113720322B (en) * 2021-06-28 2024-04-05 湖南铁山信息科技有限公司 A state detection device and skate for skate
CN115016666B (en) * 2021-11-18 2023-08-25 荣耀终端有限公司 Touch processing method, terminal equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622136A (en) * 2012-02-29 2012-08-01 广东威创视讯科技股份有限公司 Multipoint touch system data processing method and device
CN103488319A (en) * 2012-06-13 2014-01-01 腾讯科技(深圳)有限公司 Method and system for realizing virtual touch
US20140062889A1 (en) * 2012-09-06 2014-03-06 Samsung Electronics Co., Ltd. Method of processing touch input for mobile device
CN104238778A (en) * 2013-06-18 2014-12-24 太瀚科技股份有限公司 Touch input method
CN107861657A (en) * 2017-11-29 2018-03-30 广州视源电子科技股份有限公司 Touch signal processing method, system and device and electronic equipment
CN207473575U (en) * 2017-11-29 2018-06-08 广州视源电子科技股份有限公司 Tactile signal processing system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045414B (en) * 2015-08-04 2018-11-27 青岛歌尔声学科技有限公司 A kind of stylus, implementation method and a kind of touch-control system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622136A (en) * 2012-02-29 2012-08-01 广东威创视讯科技股份有限公司 Multipoint touch system data processing method and device
CN103488319A (en) * 2012-06-13 2014-01-01 腾讯科技(深圳)有限公司 Method and system for realizing virtual touch
US20140062889A1 (en) * 2012-09-06 2014-03-06 Samsung Electronics Co., Ltd. Method of processing touch input for mobile device
CN104238778A (en) * 2013-06-18 2014-12-24 太瀚科技股份有限公司 Touch input method
CN107861657A (en) * 2017-11-29 2018-03-30 广州视源电子科技股份有限公司 Touch signal processing method, system and device and electronic equipment
CN207473575U (en) * 2017-11-29 2018-06-08 广州视源电子科技股份有限公司 Tactile signal processing system

Also Published As

Publication number Publication date
CN107861657A (en) 2018-03-30
CN107861657B (en) 2020-04-14

Similar Documents

Publication Publication Date Title
WO2019105187A1 (en) Touch sensing signal processing method, system and device, and electronic device
CN111090628B (en) Data processing method and device, storage medium and electronic equipment
WO2019105188A1 (en) Touch sensing signal processing method, system and device, and electronic device
WO2020019616A1 (en) Touch control data processing method and device, intelligent device and storage medium
TWI601038B (en) Low-latency touch-input device
US20210256077A1 (en) Methods, devices and computer-readable storage media for processing a hosted application
US20210326151A1 (en) Methods, devices and computer-readable storage media for processing a hosted application
WO2021036370A1 (en) Method and device for pre-reading file page, and terminal device
CN109857573B (en) Data sharing method, device, equipment and system
CN111183411B (en) Dynamic address translation for virtual machines
CN110807161A (en) Page framework rendering method, device, equipment and medium
WO2019119995A1 (en) Touch signal processing method and apparatus, and electronic device and storage medium
WO2019033655A1 (en) Method and apparatus for mistouch prevention, device, and storage medium
KR20160007874A (en) Electronic device having cache memory and method for operating thereof
CN110275757A (en) Leveraging the system abstraction layer to provide multi-protocol storage devices
CN105335309A (en) Data transmission method and computer
KR20160083759A (en) Method for providing an annotation and apparatus thereof
TW202230140A (en) Method to manage memory and non-transitory computer-readable medium
CN111897485A (en) A data storage method, device, electronic device and storage medium
US20150138077A1 (en) Display system and display controll device
CN207473575U (en) Tactile signal processing system
CN107678632A (en) A kind of resource transfers method, terminal and computer-readable recording medium
CN111897484B (en) A data storage method, device, electronic equipment and storage medium
CN109710409B (en) Memory management method, system, device and readable storage medium
CN101739212A (en) Handwriting input device suitable for Linux operating system

Legal Events

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

Ref document number: 18884300

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 14.10.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18884300

Country of ref document: EP

Kind code of ref document: A1