WO2019010836A1 - 触摸响应方法、芯片及智能设备 - Google Patents

触摸响应方法、芯片及智能设备 Download PDF

Info

Publication number
WO2019010836A1
WO2019010836A1 PCT/CN2017/104827 CN2017104827W WO2019010836A1 WO 2019010836 A1 WO2019010836 A1 WO 2019010836A1 CN 2017104827 W CN2017104827 W CN 2017104827W WO 2019010836 A1 WO2019010836 A1 WO 2019010836A1
Authority
WO
WIPO (PCT)
Prior art keywords
usb
touch
usb port
port
chip
Prior art date
Application number
PCT/CN2017/104827
Other languages
English (en)
French (fr)
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 WO2019010836A1 publication Critical patent/WO2019010836A1/zh

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/0416Control or interface arrangements specially adapted for digitisers

Definitions

  • the present application relates to the field of electronic device technologies, and in particular, to a touch response method, a chip, and a smart device.
  • a smart tablet can usually simulate a plurality of different external channels based on a plurality of modular interfaces of different specifications, and interconnect with different types of external devices.
  • a smart tablet with a modular design an external channel that is simulated based on a modular interface
  • the smart tablet usually uses the Android system as the main system, and in practical applications, the operating system supported by the external device that is connected to the smart tablet through the modular interface may be different from the main system; for example, The external device interconnected with the smart device may be a PC device supporting the Windows system. Therefore, for the external channel of the smart tablet, it can usually be divided into an external channel of the main system and an external channel of the non-main system.
  • the so-called external channel of the main system means that the operating system supported by the external device that is connected to the external channel is the same as the main system; the so-called non-main system external channel refers to the operating system supported by the external device that is connected to the external channel.
  • the main system is different.
  • the main Android system when the smart tablet needs to display the display content received through the non-main system external channel, the main Android system usually starts a window (such as tvsetting window), and then displays the content to be displayed in this window, thereby
  • the smart tablet can be used as a unified platform to integrate the functions of different types of external devices that are docked, and to centrally manage various types of external devices; for example, integrated television technology, computer technology, and the like.
  • the smart tablet can support multiple systems running at the same time, for example, the windows system of the main system Android and the PC module are running at the same time.
  • the main system since a plurality of systems running at the same time generally need to use touch data, in the related art, the main system is required to multiplex the touch data transmitted by the touch screen and submit them to different operating systems for touch response.
  • the touch screen 10 generally transmits touch data through a USB port and a UART port at the same time.
  • the touch data outputted by the USB port is transmitted to the corresponding external device 15 via the USB selection switch 13 via the simulated N channels 14 (N is a natural number) for response.
  • the touch data output through the UART port is passed through an MCU11.
  • the bridge simulates a USB device and transmits it to the operating system carried by the chip 12 via USB communication for response. Because the data reliability of the UART port is poor, and the transmission bandwidth of the serial port is limited, when using the UART port to transmit touch data, it is necessary to develop a serial port transmission protocol. Therefore, when the touch data transmitted by using the UART port is large, it is easy to cause touch data. Transmission errors also affect the transmission speed.
  • the application provides a touch response method, a chip and a smart device.
  • a first aspect of the present application provides a touch response method, which is applied to a smart device, where the smart device is equipped with a touch screen, a main chip, a USB switch, and a plurality of external devices connected to the USB switch;
  • the main chip includes a first USB port and a second USB port; the first USB port is connected to the touch screen; and the touch response method includes:
  • the first USB port is configured as a USB host port
  • the second USB port is configured as a USB Device port.
  • the descriptor of the second USB port is configured as a standard touch protocol descriptor.
  • first USB port and the second USB port are both configured as a USB host port
  • the smart device is further equipped with an MCU
  • the MCU includes a third USB port; wherein the third USB port Is configured as a USB Device port;
  • the touch data is submitted to the corresponding external device by the third USB port through the USB switch to perform a touch response.
  • the descriptor of the third USB port is configured as a standard touch protocol descriptor.
  • the operating system mounted on the external device is different from the operating system on which the smart device is mounted.
  • a second aspect of the present application provides a chip, where the chip includes a first USB port, a second USB port, and a processor; wherein the chip is equipped with an operating system;
  • the processor is configured to: receive touch data returned by the touch screen through the first USB port; submit the touch data to an operating system carried by the chip to perform a touch response; and send the touch data to the
  • the second USB port is configured to submit the touch data to the corresponding external device through the USB switch by the second USB port to perform a touch response.
  • a third aspect of the present application provides a smart device, including a touch screen, a main chip, and a USB switch; the USB switch is connected to a plurality of external devices; the main chip includes a first USB port and a second USB port. The first USB port is connected to the touch screen;
  • the main chip is configured to: receive, by the first USB port, touch data returned by the touch screen; submit the touch data to an operating system carried by the main chip to perform a touch response; and, the touch data Sending to the second USB port, the touch data is submitted by the second USB port to the corresponding external device through the USB switch to perform a touch response.
  • the touch data received by the first USB port is submitted to the operating system of the main chip for touch response, and the other channel is sent to the second device.
  • the USB port is sent to the external device through the second USB port for response.
  • the USB port can be significantly utilized for high transmission speed and good compatibility, that is, the intelligence can be improved.
  • the responsiveness and reliability of the device in response to touch data can increase the compatibility of the smart device.
  • FIG. 1 is a structural block diagram of a touch data response apparatus shown in the prior art of the present application.
  • FIG. 2 is a hardware architecture diagram of a smart device according to an exemplary embodiment of the present application.
  • FIG. 3 is a hardware architecture diagram of another smart device according to an exemplary embodiment of the present application.
  • FIG. 4 is a flowchart of a touch response method according to an exemplary embodiment of the present application.
  • FIG. 5 is a structural block diagram of a chip according to an exemplary embodiment of the present application.
  • the touch screen 10 in the process of using the smart device, in order to realize multiplex transmission of touch data, the touch screen 10 is usually equipped with a USB port and a UART port, and the touch screen 10 can simultaneously distribute touch data to the USB. Port and UART port, through the USB port and UART port to simultaneously transmit touch data. As shown in FIG. 1 , the MCU 11 is also equipped with a USB port and a UART port. The USB port of the touch screen 10 is connected to the USB switch 13 through USB communication.
  • the UART port of the touch screen 10 is connected to the UART port of the MCU 11 through the serial port communication, and the USB port of the MCU 11
  • the USB port mounted in the chip 12 is connected by USB communication, and the USB switch 13 is also connected to the MCU 11 via the GPIO.
  • the USB switch 13 connects N (N is a natural number) external devices 15 through the simulated N (N is a natural number) channels 14, wherein each channel 14 is connected to an external device 15.
  • related touch data such as touch position data such as touch coordinates
  • touch position data such as touch coordinates
  • the touch screen 10 can transmit touch data to the MCU 11 through the USB port, and the MCU 11 controls the channel 14 through which the USB switch 13 is turned on through the GPIO, and further outputs to the external device 15 corresponding to the turned-on channel 14.
  • the corresponding serial communication protocol can be developed in advance for the UART port of the touch screen 10; the touch screen 10 can package the touch data into serial port data and transmit it to the MCU 11 based on the developed serial communication protocol, and then analyze the serial port data by the MCU 11 and then convert it into The standard touch format is transmitted to the operating system mounted on the chip 12 by USB communication.
  • the touch data output by the UART port needs to simulate a USB device through a MCU for the bridge. Implement multi-way concurrency of touch data.
  • the transmission bandwidth of the serial port is limited.
  • the serial port transmission protocol needs to be separately developed, so when the touch data transmitted by using the UART port is large, It is easy to cause touch data transmission errors and affect the transmission speed.
  • FIG. 2 is a hardware architecture diagram of an improved smart device 40 according to an exemplary embodiment of the present application.
  • the smart device 40 includes a touch screen 41, a USB switch 42 and a chip 30, and the USB switch 42 is connected to a plurality of external devices 43.
  • the chip 30 includes a first USB port 301 and a second USB port 302.
  • a fourth USB port 411 is mounted on the touch screen 41, and the first USB port 301 is connected to the fourth USB port 411 by USB communication.
  • the second USB port 302 is connected to the USB switch 42 by USB communication, and the chip 30 is also connected to the USB switch 42 through the GPIO.
  • the smart device 40 can simulate N (N is a natural number) connection channels 43 according to the connection ports of the N (N is a natural number) external devices 43.
  • N is a natural number
  • the first channel 43 and the Nth channel 43 in FIG. 2 can be understood as one of the above connection channels.
  • the chip 30 controls the channel 43 through which the USB switch 42 is turned on via the GPIO.
  • touch screen 41 monitors the user's touch event for the touch screen 41
  • related touch data such as touch position data such as touch coordinates
  • the touch data is submitted to the operating system carried by the chip 30 for touch response; on the other hand, the touch data is sent to the second USB port 302, and the channel 43 that is turned on by the second USB port 302 through the USB switch 42 will The touch data is submitted to the external device 44 corresponding to the turned-on channel 43 for a touch response.
  • the embodiment of the present application can be applied to the chip 30 supporting the USB device, and the second USB port 302 in the chip 30 can be configured as a USB Device port, and the second USB port 302 is connected through the simulated N channels 43 through the USB switch 42.
  • the corresponding external device 44, the chip 30 controls the channel 43 that the USB switch 42 is turned on by the GPIO, and submits the touch data from the second USB port 302 to the corresponding external device 44 through the channel 43 that the USB switch 42 turns on. response.
  • the chip 30 is configured to:
  • the operating system mounted on the external device 44 may be different from the operating system mounted on the smart device 40. In other embodiments, the operating system mounted on the external device 44 may be the same as the operating system mounted on the smart device 40.
  • the chip 30 including the first USB port 301 and the second USB port 302 is mounted on the smart device 40.
  • the chip 30 receives the touch data returned by the touch screen 41 through the first USB port 301, on the one hand, the touch is touched.
  • the data is submitted to the operating system carried by the chip 30 for touch response; on the other hand, the touch data can be sent to the second USB port 302, and the touch data is submitted to the corresponding external device through the USB switch through the second USB port for touch response.
  • the USB port can be significantly utilized for high transmission speed and good compatibility, that is, the intelligence can be improved.
  • the responsiveness and reliability of the device in response to touch data can increase the compatibility of the smart device.
  • the second USB port 302 in the chip 30 is configured as a USB Device port, and the second USB port 302 is connected to the plurality of external devices through the USB switch 42. And the touch data is passed from the second USB port 302 to the corresponding external device 44 through the channel 43 of the USB switch 42 to perform a touch response.
  • the touch data needs to be transferred to other ports supporting the USB device for transmission. Based on this, another smart device is provided, as shown in FIG.
  • FIG. 3 is a hardware architecture diagram of another smart device 50 according to an exemplary embodiment of the present application.
  • the smart device 50 further includes an MCU 45.
  • the MCU 45 includes a third USB port 451 and a fifth USB port 452.
  • the second USB port 302 is connected to the fifth USB port 452 by USB communication.
  • the third USB port 451 is connected to the USB switch 42 by USB communication, and the MCU 45 is also connected to the USB switch 42 through the GPIO.
  • the first USB port 301 and the second USB port 302 are both configured as a USB host port
  • the third USB port 451 is configured as a USB Device port
  • the descriptor of the third USB port 451 is configured as a standard touch. Protocol descriptor.
  • the touch data is submitted to the operating system carried by the chip 30 for touch response; on the other hand, the touch data can be sent to the second USB port. 302, then the touch data is transferred to the third USB port 451 configured as a USB Device port by the MCU 45.
  • the third USB port 451 can be connected to the external device 44 through the USB switch 42.
  • the MCU 45 controls the USB switch 42 to be turned on by the GPIO.
  • the channel 43 and the channel 43 that is turned on by the USB switch 42 submit touch data from the third USB port 451 to the corresponding external device 44 for touch response.
  • the chip 30 is configured to: receive the touch data returned by the touch screen 41 through the first USB port 301; submit the touch data to the operating system carried by the chip 30 to perform a touch response; and send the touch data to the second USB port 302,
  • the touch data is transmitted from the second USB port 302 to the third USB port 451 via the MCU 45; the touch data is submitted to the corresponding external device 44 via the USB switch 42 for touch response.
  • the touch data is transferred to the third USB port 451 configured as a USB Device port through the MCU 45, and the third USB port 451 can be connected to the external device through the USB switch 42.
  • the MCU 45 controls the channel 43 through which the USB switch 42 is turned on, and submits the touch data from the third USB port 451 to the corresponding external device 44 through the channel 43 that the USB switch 42 is turned on to perform a touch response.
  • FIG. 4 is a touch response method according to an exemplary embodiment of the present application.
  • the touch response method is applied to a smart device, where the smart device is equipped with a touch screen, a main chip, a USB switch, and a USB switch.
  • the plurality of external devices wherein the main chip comprises a first USB port and a second USB port; the first USB port is connected to the touch screen.
  • step 41 the touch data returned by the touch screen is received through the first USB port.
  • the first USB port can be mounted on the touch screen.
  • the first USB port can be configured as a USB host port by default and is connected to the touch screen mounted on the smart device.
  • the main chip is used to monitor the user's touch operation, and when the user's touch operation is monitored, the data is transmitted to the first USB port.
  • step 42 the touch data is submitted to the operating system mounted on the main chip for touch response.
  • the operating system of the main chip may be an Android system.
  • the operating system of the main chip may be other systems, such as a Linux system, a Windows system, or the like.
  • a computer program that manages and controls the hardware and software resources of the smart device is configured in the operating system to respond to the touch data by driving the corresponding program.
  • step 43 the touch data is sent to the second USB port, and the touch data is submitted to the corresponding external device by the second USB port through the USB switch to perform a touch response.
  • the second USB port can be configured as a USB host port or as a USB Device port.
  • the second USB port in the main chip can be configured as a USB Device port, and the descriptor of the second USB port is configured as a standard touch protocol descriptor.
  • the second USB port can be connected to the external device through the USB switch, the main chip controls the channel in which the USB switch is turned on, and the touch data is sent from the second USB port to the corresponding external device through the channel of the USB switch to conduct touch response. .
  • the second USB port can be configured as a USB host. mouth.
  • the MCU needs to be mounted on the smart device.
  • the MCU includes a third USB port, wherein the third USB port is configured as a USB Device port, and the descriptor of the third USB port is configured as a standard touch protocol descriptor.
  • the touch data is sent from the second USB port to the third USB port through the MCU; the touch data is submitted to the corresponding external device through the USB switch through the third USB port for touch response. That is to say, when the main chip does not support USB Device, the touch data is transferred to the third USB port configured as a USB Device port through the MCU, and the third USB port can be connected to the external device through the USB switch, and the MCU controls the USB switch switch. Passing the channel and submitting the touch data from the third USB port to the corresponding external device through the channel through which the USB switch is turned on for touch response.
  • FIG. 5 is a structural block diagram of a chip 30 according to an exemplary embodiment of the present application.
  • the chip 30 is applicable to a smart device, including a first USB port 31, a second USB port 302, and a processor 33.
  • the chip 30 further includes a memory 34, a nonvolatile memory 35, an internal bus 36, and the like.
  • the first USB port 301, the second USB port 32, the processor 33, the memory 34, and the non-volatile memory 35 are all communicated through the internal bus 36, wherein the memory 34 is loaded with processing instructions of touch data, and the processing command can be It is executed by the processor 33.
  • the chip 30 is equipped with an operating system.
  • the operating system carried by the chip 30 may be an Android system.
  • the operating system carried by the chip 30 may also be used.
  • Other systems such as Linux systems, Windows systems, etc.
  • a computer program that manages and controls the hardware and software resources of the smart device is configured in the operating system to respond to the touch data by driving the corresponding program.
  • the processor 33 is configured to:

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)
  • Information Transfer Systems (AREA)

Abstract

提供一种触摸响应方法、芯片(30)及智能设备(40)。其中,触摸响应方法应用于智能设备(40),智能设备(40)搭载了触摸屏(41)、主芯片、USB切换开关(42)以及与USB切换开关(42)相连的若干外接设备(44);主芯片包括第一USB口(301)和第二USB口(302);第一USB口(301)与触摸屏(41)连接;该触摸响应方法包括:通过第一USB口(301)接收触摸屏(41)返回的触摸数据;将触摸数据提交至主芯片搭载的操作***进行触摸响应;以及,将触摸数据发送至第二USB口(302),由第二USB口(302)通过USB切换开关(42)将触摸数据提交至对应的外接设备(44)进行触摸响应。该触摸响应方法、芯片(30)及智能设备(40)不仅可以提升智能设备(40)在响应触摸数据时的响应速度以及可靠性,又可以提升智能设备(40)的兼容性。

Description

触摸响应方法、芯片及智能设备 技术领域
本申请涉及电子设备技术领域,尤其涉及触摸响应方法、芯片及智能设备。
背景技术
随着智能设备的不断发展,越来越多的智能设备开始采用模块化设计。以智能平板为例,智能平板通常可以基于多种不同规格的模块化接口,模拟出多个不同的外接通道,与不同类型的外部设备进行互联。
例如,采用模块化设计的智能平板,基于模块化接口模拟出的外部通道,通常可以包括PC通道、HDMI外置通道、VGA外置通道等等。其中,在智能平板领域,智能平板通常使用Android***作为主***,而在实际应用中,通过模块化接口与智能平板保持互联的外接设备所支持的操作***,可能会与主***不同;比如,与智能设备互联的外界设备可能是支持Windows***的PC设备。因此,对于智能平板的外接通道而言,通常可以被划分为主***外接通道和非主***外接通道。所谓主***外接通道,是指与该外接通道对接的外接设备所支持的操作***与主***相同;而所谓非主***外接通道,是指与该外接通道对接的外接设备所支持的操作***与主***不同。
在实际应用中,当智能平板需要显示通过非主***外接通道接收到的显示内容,主Android***通常会启动一个窗口(例如tvsetting窗口),然后将需要显示的内容在此窗口内进行显示,从而使得智能平板可以作为一个统一的平台,融合对接的不同类型的外接设备的功能,对各种类型的外接设备进行集中管理;例如,融合电视技术、电脑技术等等。在这种情况下,势必要求智能平板能够支持多***同时运行,例如主***Android和PC模块的windows***同时运行。然而,由于多个同时运行的***,通常都需要用到触摸数据,因此在相关技术中,则要求主***对触摸屏传输的触摸数据进行多路传输,分别提交给不同的操作***进行触摸响应。
相关技术中,如图1中所示,触摸屏10一般是通过USB口和UART口同时传输触摸数据。USB口输出的触摸数据,通过USB选择开关13经模拟出的N个通道14(N为自然数)传输到对应的外接设备15进行响应。而通过UART口输出的触摸数据,通过一块MCU11为 桥梁模拟出USB设备,并通过USB通信传输到芯片12搭载的操作***进行响应。由于UART口的数据可靠性较差,而且串口的传输带宽受限,在使用UART口传输触摸数据时,需要开发串口传输协议,因此当使用UART口传输的触摸数据较大时,容易导致触摸数据传输错误,还会影响传输速度。
发明内容
本申请提供一种触摸响应方法、芯片及智能设备。
根据本申请实施例的第一方面提供一种触摸响应方法,应用于智能设备,所述智能设备搭载了触摸屏、主芯片、USB切换开关以及与所述USB切换开关相连的若干外接设备;其中,所述主芯片包括第一USB口和第二USB口;所述第一USB口与所述触摸屏连接;所述触摸响应方法包括:
通过所述第一USB口接收所述触摸屏返回的触摸数据;将所述触摸数据提交至所述主芯片搭载的操作***进行触摸响应;以及,将所述触摸数据发送至所述第二USB口,由所述第二USB口通过所述USB切换开关将所述触摸数据提交至对应的外接设备进行触摸响应。
进一步地,所述第一USB口被配置为USB host口,所述第二USB口被配置为USB Device口。
进一步地,所述第二USB口的描述符被配置为标准触摸协议描述符。
进一步地,所述第一USB口和所述第二USB口均被配置为USB host口,所述智能设备还搭载有MCU,所述MCU包括第三USB口;其中,所述第三USB口被配置为USB Device口;
所述由所述第二USB口通过所述USB切换开关将所述触摸数据提交至对应的外接设备进行触摸响应,包括:
通过所述MCU将所述触摸数据由所述第二USB口发送至所述第三USB口;
由所述第三USB口通过所述USB切换开关将所述触摸数据提交至对应的外接设备进行触摸响应。
进一步地,所述第三USB口的描述符被配置为标准触摸协议描述符。
进一步地,所述外接设备搭载的操作***与所述智能设备搭载的操作***不同。
根据本申请实施例的第二方面提供一种芯片,所述芯片包括第一USB口、第二USB口以及处理器;其中,所述芯片搭载有操作***;
所述处理器被配置为:通过所述第一USB口接收触摸屏返回的触摸数据;将所述触摸数据提交至所述芯片搭载的操作***进行触摸响应;以及,将所述触摸数据发送至所述第二USB口,由所述第二USB口通过所述USB切换开关将所述触摸数据提交至对应的外接设备进行触摸响应。
根据本申请实施例的第三方面提供一种智能设备,包括触摸屏、主芯片以及USB切换开关;所述USB切换开关连接至若干外接设备;所述主芯片包括第一USB口和第二USB口,所述第一USB口与所述触摸屏连接;
所述主芯片被配置为:通过所述第一USB口接收所述触摸屏返回的触摸数据;将所述触摸数据提交至所述主芯片搭载的操作***进行触摸响应;以及,将所述触摸数据发送至所述第二USB口,由所述第二USB口通过所述USB切换开关将所述触摸数据提交至对应的外接设备进行触摸响应。
本申请实施例的触摸响应方法、芯片及智能设备,在多***运行的智能设备中,第一USB口接收的触摸数据一路提交至主芯片搭载的操作***进行触摸响应,另一路发送至第二USB口,并通过第二USB口发送至外接设备进行响应。
由于在触摸数据被响应的过程中,只需要使用USB口进行通信,不再需要使用UART口进行通信;因此,可以显著的利用USB口的传输速度快且兼容性好的特点,即可以提升智能设备在响应触摸数据时的响应速度以及可靠性,又可以提升智能设备的兼容性。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请实施例,并与说明书一起用于解释本发明的原理。
图1是本申请现有技术中示出的一种触摸数据响应装置的结构框图;
图2是本申请一示例性实施例示出的一种智能设备的硬件架构图;
图3是本申请一示例性实施例示出的另一种智能设备的硬件架构图;
图4是本申请一示例性实施例示出的一种触摸响应方法的流程图;
图5是本申请一示例性实施例示出的一种芯片的结构框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。
在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。
在现有技术中,参考图1,在使用智能设备的过程中,为了实现触摸数据的多路传输,通常会为触摸屏10搭载USB口和UART口,而触摸屏10可以将触摸数据同时分发到USB口和UART口,通过USB口和UART口来同时多路的传输触摸数据。如图1中所示,MCU11中也搭载了USB口和UART口,触摸屏10的USB口通过USB通信连接USB切换开关13,触摸屏10的UART口通过串口通信连接MCU11的UART口,MCU11的USB口通过USB通信连接芯片12中搭载的USB口,同时,USB切换开关13还通过GPIO连接MCU11。USB切换开关13通过模拟出的N(N为自然数)个通道14连接N(N为自然数)个外接设备15,其中,每个通道14连接一个外接设备15。
当触摸屏10监听到用户针对触摸屏10的触摸事件时,可以将相关的触摸数据(比如触摸坐标等触摸位置数据),同时分发至USB口和UART口进行触摸响应。
一方面,触摸屏10可以通过USB口将触摸数据传输给MCU11,由MCU11通过GPIO控制USB切换开关13导通的通道14,进一步输出到与导通的通道14对应的外接设备15。
另一方面,可以为触摸屏10的UART口预先开发对应的串口通信协议;触摸屏10可以基于开发的串口通信协议,将触摸数据封装成串口数据传输到MCU11,经MCU11解析串口数据后,再转化为标准触摸格式,通过USB通信传输到芯片12搭载的操作***。即在这种情况下,UART口输出的触摸数据需要通过一块MCU为桥梁模拟出一台USB设备,才能 实现触摸数据的多路并发。
然而,由于UART口的数据可靠性较差,串口的传输带宽受限;而且,在使用UART口传输触摸数据时,需要单独开发串口传输协议,因此当使用UART口传输的触摸数据较大时,容易导致触摸数据传输错误,还会影响传输速度。
基于此,本申请实施例提出了一种智能设备40,请参见图2,图2为本申请一示例性实施例示出的一种改进后的智能设备40的硬件架构图。智能设备40包括触摸屏41、USB切换开关42以及芯片30,USB切换开关42连接至若干外接设备43。
芯片30包括第一USB口301和第二USB口302。触摸屏41上搭载有第四USB口411,第一USB口301通过USB通信与第四USB口411连接。第二USB口302通过USB通信与USB切换开关42连接,芯片30还通过GPIO与USB切换开关42连接。
本申请实施例中,智能设备40可以根据N(N为自然数)个外接设备43的连接端口模拟出N(N为自然数)个连接通道43。比如:PC通道、HDMI外置通道、VGA外置通道等等。图2中的第一通道43以及第N通道43即可以理解为上述连接通道的其中之一。芯片30通过GPIO控制USB切换开关42导通的通道43。
当触摸屏41监听到用户针对触摸屏41的触摸事件时,可以将相关的触摸数据(比如触摸坐标等触摸位置数据)发送至第一USB口301。一方面,将触摸数据提交至芯片30搭载的操作***进行触摸响应;另一方面,将触摸数据发送至第二USB口302,由第二USB口302通过USB切换开关42导通的通道43将触摸数据提交至与该导通的通道43对应的外接设备44进行触摸响应。
本申请实施例可应用于芯片30支持USB Device时,可以将芯片30中的第二USB口302配置为USB Device口,第二USB口302通过USB切换开关42经过模拟出的N个通道43连接对应的外接设备44,芯片30通过GPIO控制USB切换开关42导通的通道43,并通过USB切换开关42导通的通道43将触摸数据从第二USB口302提交至对应的外接设备44进行触摸响应。
其中,芯片30被配置为:
通过第一USB口301接收触摸屏41返回的触摸数据;将触摸数据提交至芯片30搭载的操作***进行触摸响应;以及,将触摸数据发送至第二USB口302,由第二USB口302通过USB切换开关42将触摸数据提交至对应的外接设备44进行触摸响应。
本申请实施例中,外接设备44搭载的操作***可以与智能设备40搭载的操作***不同。 而在其他实施例中,外接设备44搭载的操作***也可以与智能设备40搭载的操作***相同。
本申请实施例通过在智能设备40上搭载包含第一USB口301和第二USB口302的芯片30,当芯片30通过第一USB口301接收触摸屏41返回的触摸数据时,一方面,将触摸数据提交至芯片30搭载的操作***进行触摸响应;另一方面,可以将触摸数据发送至第二USB口302,由第二USB口通过USB切换开关将触摸数据提交至对应的外接设备进行触摸响应,从而实现触摸数据的多路传输。由于在触摸数据被响应的过程中,只需要使用USB口进行通信,不再需要使用UART口进行通信;因此,可以显著的利用USB口的传输速度快且兼容性好的特点,即可以提升智能设备在响应触摸数据时的响应速度以及可靠性,又可以提升智能设备的兼容性。
在图2所示实施例中,可应用于芯片30支持USB Device时,将芯片30中的第二USB口302配置为USB Device口,第二USB口302通过USB切换开关42连接若干外接设备44,并通过USB切换开关42的导通的通道43将触摸数据从第二USB口302提交至对应的外接设备44进行触摸响应。然而在其他实施例中,当芯片30不支持USB Device时,需要将触摸数据中转到其他支持USB Device的端口进行传输,基于此,提供了另外一种智能设备,如图3所示。
图3是本申请实施例根据一示例性实施例示出的另一种智能设备50的硬件架构图。本实施例中,智能设备50还包括MCU45,MCU45包括第三USB口451和第五USB口452。其中,第二USB口302通过USB通信与第五USB口452连接。第三USB口451通过USB通信与USB切换开关42连接,MCU45还通过GPIO与USB切换开关42连接。
本实施例中,第一USB口301和第二USB口302均被配置为USB host口,第三USB口451被配置为USB Device口,且第三USB口451的描述符被配置为标准触摸协议描述符。
当芯片30通过第一USB口301接收触摸屏41返回的触摸数据时,一方面,将触摸数据提交至芯片30搭载的操作***进行触摸响应;另一方面,可以将触摸数据发送至第二USB口302,然后通过MCU45将触摸数据中转到被配置为USB Device口的第三USB口451,第三USB口451可以通过USB切换开关42连接外接设备44,MCU45通过GPIO控制USB切换开关42导通的通道43,并通过USB切换开关42导通的通道43将触摸数据从第三USB口451提交至对应的外接设备44进行触摸响应。
其中,芯片30被配置为:通过第一USB口301接收触摸屏41返回的触摸数据;将触摸数据提交至芯片30搭载的操作***进行触摸响应;以及,将触摸数据发送至第二USB口302, 经MCU45将触摸数据由第二USB口302发送至第三USB口451;通过USB切换开关42将触摸数据提交至对应的外接设备44进行触摸响应。
本实施例中,应用于芯片30不支持USB Device时,通过MCU45将触摸数据中转到被配置为USB Device口的第三USB口451,第三USB口451可以通过USB切换开关42连接外接设备44,MCU45控制USB切换开关42导通的通道43,并通过USB切换开关42导通的通道43将触摸数据从第三USB口451提交至对应的外接设备44进行触摸响应。
图4为本申请实施例根据一示例性实施例示出的一种触摸响应方法,该触摸响应方法应用于智能设备,所述智能设备搭载了触摸屏、主芯片、USB切换开关以及与USB切换开关相连的若干外接设备;其中,主芯片包括第一USB口和第二USB口;第一USB口与触摸屏连接。
本申请实施例的触摸响应方法包括以下执行步骤:
在步骤41中,通过第一USB口接收触摸屏返回的触摸数据。
本申请实施例中,可以在触摸屏上搭载第一USB口。第一USB口可以默认被配置为USB host口,并与智能设备搭载的触摸屏保持连接。主芯片用于监听用户触摸操作,当监听到了用户的触摸操作,将数据传输给第一USB口。
在步骤42中,将触摸数据提交至主芯片搭载的操作***进行触摸响应。
在一可选的实施例中,主芯片搭载的操作***可以是Android***,在另一可选的实施例中,主芯片搭载的操作***也可以是其他***,如Linux***、Windows***等。操作***中配置有管理和控制智能设备的硬件与软件资源的计算机程序,通过驱动相应的程序对触摸数据进行响应。
在步骤43中,将触摸数据发送至第二USB口,由第二USB口通过USB切换开关将触摸数据提交至对应的外接设备进行触摸响应。
本实施例中,第二USB口可以配置成USB host口,也可以配置成USB Device口。
在一种情况下,当主芯片支持USB Device时,可以将主芯片中的第二USB口配置为USB Device口,且第二USB口的描述符被配置为标准触摸协议描述符。第二USB口可以通过USB切换开关连接外接设备,主芯片控制USB切换开关导通的通道,并通过USB切换开关导通的通道将触摸数据从第二USB口提交至对应的外接设备进行触摸响应。
在另一种情况下,当主芯片不支持USB Device时,可以将第二USB口配置为USB host 口。此时,需要在智能设备中搭载MCU。MCU包括第三USB口,其中,第三USB口被配置为USB Device口,且第三USB口的描述符被配置为标准触摸协议描述符。
通过MCU将触摸数据由第二USB口发送至第三USB口;由第三USB口通过USB切换开关将触摸数据提交至对应的外接设备进行触摸响应。也就是说,当主芯片不支持USB Device时,通过MCU将触摸数据中转到被配置为USB Device口的第三USB口,第三USB口可以通过USB切换开关连接外接设备,MCU控制USB切换开关导通的通道,并通过USB切换开关导通的通道将触摸数据从第三USB口提交至对应的外接设备进行触摸响应。
图5是本申请一示例性实施例的一种芯片30的结构框图。该芯片30可应用于智能设备,包括与第一USB口31、第二USB口302以及处理器33;芯片30还包括内存34、非易失性存储器35和内部总线36等。第一USB口301、第二USB口32、处理器33、内存34以及非易失性存储器35均通过内部总线36进行通信,其中,内存34中加载有触摸数据的处理指令,该处理指令可以被处理器33执行。本实施例中,芯片30搭载有操作***,在一可选的实施例中,芯片30搭载的操作***可以是Android***,在另一可选的实施例中,芯片30搭载的操作***也可以是其他***,如Linux***、Windows***等。操作***中配置有管理和控制智能设备的硬件与软件资源的计算机程序,通过驱动相应的程序对触摸数据进行响应。其中,处理器33被配置为:
通过第一USB口301接收触摸屏返回的触摸数据;将触摸数据提交至芯片30搭载的操作***进行触摸响应;以及,将触摸数据发送至第二USB口302,由第二USB口302通过USB切换开关将触摸数据提交至对应的外接设备进行触摸响应。
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。

Claims (10)

  1. 一种触摸响应方法,应用于智能设备,其特征在于:所述智能设备搭载了触摸屏、主芯片、USB切换开关以及与所述USB切换开关相连的若干外接设备;其中,所述主芯片包括第一USB口和第二USB口;所述第一USB口与所述触摸屏连接;所述触摸响应方法包括:
    通过所述第一USB口接收所述触摸屏返回的触摸数据;
    将所述触摸数据提交至所述主芯片搭载的操作***进行触摸响应;以及,
    将所述触摸数据发送至所述第二USB口,由所述第二USB口通过所述USB切换开关将所述触摸数据提交至对应的外接设备进行触摸响应。
  2. 根据权利要求1所述的触摸响应方法,其特征在于,所述第一USB口被配置为USB host口,所述第二USB口被配置为USB Device口。
  3. 根据权利要求2所述的触摸响应方法,其特征在于,所述第二USB口的描述符被配置为标准触摸协议描述符。
  4. 根据权利要求1所述的触摸响应方法,其特征在于,所述第一USB口和所述第二USB口均被配置为USB host口,所述智能设备还搭载有MCU,所述MCU包括第三USB口;其中,所述第三USB口被配置为USB Device口;
    所述由所述第二USB口通过所述USB切换开关将所述触摸数据提交至对应的外接设备进行触摸响应,包括:
    通过所述MCU将所述触摸数据由所述第二USB口发送至所述第三USB口;
    由所述第三USB口通过所述USB切换开关将所述触摸数据提交至对应的外接设备进行触摸响应。
  5. 根据权利要求4所述的触摸响应方法,其特征在于,所述第三USB口的描述符被配置为标准触摸协议描述符。
  6. 一种芯片,其特征在于,所述芯片包括第一USB口、第二USB口以及处理器;其中,所述芯片搭载有操作***;
    所述处理器被配置为:
    通过所述第一USB口接收触摸屏返回的触摸数据;
    将所述触摸数据提交至所述芯片搭载的操作***进行触摸响应;以及,
    将所述触摸数据发送至所述第二USB口,由所述第二USB口通过所述USB切换开关将所述触摸数据提交至对应的外接设备进行触摸响应。
  7. 一种智能设备,其特征在于,包括触摸屏、USB切换开关以及如权利要求6中所述的芯片;所述USB切换开关连接至若干外接设备;所述芯片包括第一USB口和第二USB口, 所述第一USB口与所述触摸屏连接;
    所述芯片被配置为:
    通过所述第一USB口接收所述触摸屏返回的触摸数据;
    将所述触摸数据提交至所述芯片搭载的操作***进行触摸响应;以及,
    将所述触摸数据发送至所述第二USB口,由所述第二USB口通过所述USB切换开关将所述触摸数据提交至对应的外接设备进行触摸响应。
  8. 根据权利要求7所述的智能设备,其特征在于,所述第一USB口被配置为USB host口,所述第二USB口被配置为USB Device口。
  9. 根据权利要求7所述的智能设备,其特征在于,所述第一USB口和所述第二USB口均被配置为USB host口,所述智能设备还包括MCU,所述MCU包括第三USB口;其中,所述第三USB口被配置为USB Device口;
    所述MCU将所述触摸数据由所述第二USB口发送至所述第三USB口;
    所述第三USB口通过所述USB切换开关将所述触摸数据提交至对应的外接设备进行触摸响应。
  10. 根据权利要求7所述的智能设备,其特征在于,所述智能设备搭载的操作***与所述外接设备搭载的操作***不同。
PCT/CN2017/104827 2017-07-12 2017-09-30 触摸响应方法、芯片及智能设备 WO2019010836A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710564991.X 2017-07-12
CN201710564991.XA CN107368219B (zh) 2017-07-12 2017-07-12 触摸响应方法、芯片及智能设备

Publications (1)

Publication Number Publication Date
WO2019010836A1 true WO2019010836A1 (zh) 2019-01-17

Family

ID=60306767

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/104827 WO2019010836A1 (zh) 2017-07-12 2017-09-30 触摸响应方法、芯片及智能设备

Country Status (2)

Country Link
CN (1) CN107368219B (zh)
WO (1) WO2019010836A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918016A (zh) * 2019-04-01 2019-06-21 广州朗国电子科技有限公司 多***触摸显示设备的触控方法及触控装置

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108614647B (zh) * 2018-03-12 2020-12-15 嘉兴钛众电子科技有限公司 一种用模拟信号切换触摸功能的方法
CN108366131B (zh) * 2018-03-13 2020-10-02 广州视源电子科技股份有限公司 数据传输方法、装置、终端以及存储介质
CN108549500B (zh) * 2018-04-16 2021-01-19 广州视源电子科技股份有限公司 一种触控平板控制电路和触控平板
CN111294624B (zh) * 2019-05-15 2022-03-29 深圳市鸿合创新信息技术有限责任公司 电子设备和电子设备的控制方法

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043567A (zh) * 2009-10-10 2011-05-04 上海祥网瑞电子科技有限公司 数字签字采集与显示设备
US20120036294A1 (en) * 2010-08-09 2012-02-09 Samsung Electronics Co., Ltd Computer integrated display integrated display and control method of the same
CN202736459U (zh) * 2012-08-17 2013-02-13 上海菱博电子技术有限公司 液晶一体机
CN103235658A (zh) * 2013-04-07 2013-08-07 广州视睿电子科技有限公司 一体机及其实现全通道快速触摸的方法
CN203204588U (zh) * 2013-04-23 2013-09-18 康佳集团股份有限公司 一种可在电视与电脑之间切换的触摸装置
CN204990234U (zh) * 2015-08-19 2016-01-20 深圳市芯智科技有限公司 一种基于触摸屏的多***控制装置
CN106293262A (zh) * 2015-06-05 2017-01-04 深圳市鸿合创新信息技术有限责任公司 一种交互教学大屏触控转发***和方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204926041U (zh) * 2015-09-06 2015-12-30 德浩荣基电子科技吉林有限公司 基于双***的显示屏驱动装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043567A (zh) * 2009-10-10 2011-05-04 上海祥网瑞电子科技有限公司 数字签字采集与显示设备
US20120036294A1 (en) * 2010-08-09 2012-02-09 Samsung Electronics Co., Ltd Computer integrated display integrated display and control method of the same
CN202736459U (zh) * 2012-08-17 2013-02-13 上海菱博电子技术有限公司 液晶一体机
CN103235658A (zh) * 2013-04-07 2013-08-07 广州视睿电子科技有限公司 一体机及其实现全通道快速触摸的方法
CN203204588U (zh) * 2013-04-23 2013-09-18 康佳集团股份有限公司 一种可在电视与电脑之间切换的触摸装置
CN106293262A (zh) * 2015-06-05 2017-01-04 深圳市鸿合创新信息技术有限责任公司 一种交互教学大屏触控转发***和方法
CN204990234U (zh) * 2015-08-19 2016-01-20 深圳市芯智科技有限公司 一种基于触摸屏的多***控制装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918016A (zh) * 2019-04-01 2019-06-21 广州朗国电子科技有限公司 多***触摸显示设备的触控方法及触控装置

Also Published As

Publication number Publication date
CN107368219B (zh) 2020-01-14
CN107368219A (zh) 2017-11-21

Similar Documents

Publication Publication Date Title
WO2019010836A1 (zh) 触摸响应方法、芯片及智能设备
US10002105B2 (en) Display device
US8893013B1 (en) Method and apparatus for providing a hybrid computing environment
KR101179912B1 (ko) 복수의 휴대 단말을 연동시키는 더미 터치 스크린 시스템
US20060253639A1 (en) Control system for controlling a plurality of target computers through portable computer
US20090234998A1 (en) Connection system
US20170116147A1 (en) System, device and method for transmitting signals between different communication interfaces
US10031710B2 (en) Display device constituting multi-display system and control method thereof
JP2016505915A (ja) 表示インターフェースを介するシリアルバスサポートの柔軟な実装
WO2019127476A1 (zh) 虚拟***蓝牙通信方法及装置、虚拟***、存储介质及电子设备
US20160224493A1 (en) Universal serial bus (usb) kvm switch using virtual usb for switching among multiple hosts
US20090289946A1 (en) Video matrix display interface
EP2499575A2 (en) System and apparatus for sharing a host computer
US8868811B2 (en) Systems and methods for hot-plug detection recovery
US20100030853A1 (en) Remote desktop control system using usb interface and method thereof
TW201310247A (zh) 媒體分享裝置
WO2012140673A2 (en) Audio controller
TWI501145B (zh) 電子裝置與多面板介面顯示方法
US9009371B1 (en) Full-duplex communications device
US20170091134A1 (en) Computer and method of controlling i/o switch of computer
TWM504272U (zh) 通用串列匯流排(usb)電腦切換器(kvm)訊號延長器
CN210274290U (zh) 一种多显示器显示装置
WO2023143031A1 (zh) 一种显示***、电子设备和通信控制方法
US11809365B2 (en) Data transmission method
CN207612373U (zh) 电子设备调试用信号中转装置和电子设备调试***

Legal Events

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

Ref document number: 17917592

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

122 Ep: pct application non-entry in european phase

Ref document number: 17917592

Country of ref document: EP

Kind code of ref document: A1