CN106815105B - Complete machine touch screen detection method, device and system - Google Patents
Complete machine touch screen detection method, device and system Download PDFInfo
- Publication number
- CN106815105B CN106815105B CN201611241688.8A CN201611241688A CN106815105B CN 106815105 B CN106815105 B CN 106815105B CN 201611241688 A CN201611241688 A CN 201611241688A CN 106815105 B CN106815105 B CN 106815105B
- Authority
- CN
- China
- Prior art keywords
- touch screen
- machine
- tested
- detection device
- failure
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本发明涉及终端设备技术领域,具体涉及一种整机触摸屏检测方法及装置、系统。The invention relates to the technical field of terminal equipment, in particular to a method, device and system for detecting a touch screen of a whole machine.
背景技术Background technique
目前,大多数消费类电子产品(如智能手机、平板电脑)的屏幕都是触摸屏。触摸屏按照工作原理和传输信息的介质划分可以包括:电阻式触摸屏、电容感应式触摸屏、红外线式触摸屏和表面声波式触摸屏,例如,电容感应式触摸屏是利用人体的电流感应进行工作的。工厂在生产安卓整机如智能手机时,需要进行整机批量发布测试,在测试时可能会遇到卡屏或者触摸屏无效(如黑屏)等问题,但是智能手机使用的安卓发布版本系统是没有开放安卓调试桥接器(Android Debug Bridge,简称adb)功能的,工厂无法现场抓取LOG信息去分析卡屏或者触摸屏无效是触摸屏硬件还是应用程序。Currently, the screens of most consumer electronics products (such as smartphones, tablets) are touch screens. According to the working principle and the medium of information transmission, the touch screen can include: resistive touch screen, capacitive touch screen, infrared touch screen and surface acoustic wave touch screen. For example, the capacitive touch screen uses the current induction of the human body to work. When the factory produces Android complete machines such as smartphones, it needs to conduct a batch release test of the whole machine. During the test, problems such as stuck screens or invalid touch screens (such as black screens) may be encountered, but the Android release version system used by smartphones is not open. With the Android Debug Bridge (adb for short) function, the factory cannot grab the LOG information on site to analyze whether the screen is stuck or the touch screen is invalid, whether it is the touch screen hardware or the application program.
发明内容Contents of the invention
本发明实施例公开了一种整机触摸屏检测方法及装置、系统,用于在故障机触摸屏无效或者卡屏时,能够快速地识别出是因为触摸屏硬件问题导致的无效或者卡屏,还是因为应用程序导致的无效或者卡屏,以对故障问题进行快速归类,提高测试和生产效率。The embodiment of the present invention discloses a whole machine touch screen detection method, device, and system, which are used to quickly identify whether the touch screen is invalid or stuck due to hardware problems of the touch screen when the touch screen of a faulty machine is invalid or stuck, or whether it is due to an application The invalid or stuck screen caused by the program can quickly classify the fault problem and improve the test and production efficiency.
本发明第一方面公开了一种整机触摸屏检测方法,所述方法包括:The first aspect of the present invention discloses a whole machine touch screen detection method, the method comprising:
在所述整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,以及所述待测试故障机的触摸屏被触控过程中,所述整机触摸屏检测装置读取所述待测试故障机中用于记录所述触摸屏对应事件信息的触摸屏设备文件;After the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and a stuck screen or an invalid fault machine to be tested occurs, and the touch screen of the fault machine to be tested is touched, the touch screen detection device of the whole machine reads Get the touch screen device file used to record the corresponding event information of the touch screen in the faulty machine to be tested;
所述整机触摸屏检测装置识别所述触摸屏设备文件中的字节数;The whole machine touch screen detection device identifies the number of bytes in the touch screen device file;
如果所述触摸屏设备文件中的字节数不为零,所述整机触摸屏检测装置控制第一指示灯发出第一指示,所述第一指示用于表明所述待测试故障机的触摸屏不存在硬件故障问题;如果所述触摸屏设备文件中的字节数为零,所述整机触摸屏检测装置控制第二指示灯发出第二指示,所述第二指示用于表明所述待测试故障机的触摸屏存在硬件故障问题。If the number of bytes in the touch screen device file is not zero, the touch screen detection device of the whole machine controls the first indicator light to send a first indication, and the first indication is used to indicate that the touch screen of the faulty machine to be tested does not exist Hardware failure problem; if the number of bytes in the touch screen device file is zero, the touch screen detection device of the whole machine controls the second indicator light to send a second indication, and the second indication is used to indicate the failure of the machine to be tested There is a hardware failure problem with the touch screen.
作为一种可选的实施方式,在本发明第一方面中,所述在所述整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,以及所述待测试故障机的触摸屏被触控过程中,所述整机触摸屏检测装置读取所述待测试故障机中用于记录所述触摸屏对应事件信息的触摸屏设备文件具体包括:As an optional implementation mode, in the first aspect of the present invention, after the whole machine touch screen detection device is connected to the touch screen through an OTG connection line and a screen is stuck or an invalid fault machine to be tested occurs, and the standby During the touch screen of the test failure machine being touched, the touch screen device file for recording the corresponding event information of the touch screen in the failure machine to be tested by the whole machine touch screen detection device specifically includes:
在所述整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,以及所述待测试故障机的触摸屏被触控过程中,所述整机触摸屏检测装置读取所述待测试故障机中用于记录所述触摸屏对应事件信息的触摸屏设备文件,所述触摸屏被触控是指所述触摸屏被滑动和/或所述触摸屏上的虚拟按键被按压,所述触摸屏设备文件包括dev文件、input文件和eventX文件。After the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and a stuck screen or an invalid fault machine to be tested occurs, and the touch screen of the fault machine to be tested is touched, the touch screen detection device of the whole machine reads Get the touch screen device file used to record the corresponding event information of the touch screen in the faulty machine to be tested, the touch screen is touched means that the touch screen is slid and/or the virtual key on the touch screen is pressed, the Touch screen device files include dev files, input files and eventX files.
作为一种可选的实施方式,在本发明第一方面中,在所述整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,以及所述整机触摸屏检测装置读取所述待测试故障机中用于记录所述触摸屏对应事件信息的触摸屏设备文件之前,所述方法还包括:As an optional implementation, in the first aspect of the present invention, after the touch screen detection device of the whole machine is connected to the touch screen through an OTG connection line and a screen is stuck or an invalid fault machine to be tested occurs, and the touch screen of the whole machine Before the detection device reads the touch screen device file for recording the corresponding event information of the touch screen in the faulty machine to be tested, the method further includes:
在所述整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,所述整机触摸屏检测装置检测是否接收到所述待测试故障机发送的成功连接指示;After the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and there is a stuck screen or an invalid fault machine to be tested, the touch screen detection device of the whole machine detects whether the successful connection indication sent by the fault machine to be tested is received;
如果接收到所述待测试故障机发送的成功连接指示,以及所述待测试故障机的触摸屏被触控过程中,所述整机触摸屏检测装置执行读取所述待测试故障机中用于记录所述触摸屏对应事件信息的触摸屏设备文件的步骤。If the successful connection instruction sent by the faulty machine to be tested is received, and the touch screen of the faulty machine to be tested is touched, the touch screen detection device of the whole machine executes to read the faulty machine to be tested for recording The step of the touch screen device file corresponding to the event information of the touch screen.
作为一种可选的实施方式,在本发明第一方面中,在所述整机触摸屏检测装置接收到所述待测试故障机发送的成功连接指示之后,以及所述待测试故障机的触摸屏被触控过程中,以及所述整机触摸屏检测装置读取所述待测试故障机中用于记录所述触摸屏对应事件信息的触摸屏设备文件之前,所述方法还包括:As an optional implementation manner, in the first aspect of the present invention, after the whole machine touch screen detection device receives the successful connection indication sent by the faulty machine to be tested, and the touch screen of the faulty machine to be tested is During the touch process, and before the whole machine touch screen detection device reads the touch screen device file for recording the corresponding event information of the touch screen in the faulty machine to be tested, the method further includes:
在所述整机触摸屏检测装置接收到所述待测试故障机发送的成功连接指示之后,以及所述待测试故障机的触摸屏被触控过程中,所述整机触摸屏检测装置检测是否接收到外部输入的读取指令;After the touch screen detection device of the whole machine receives the successful connection indication sent by the faulty machine to be tested, and during the touch screen of the faulty machine to be tested is touched, the touch screen detection device of the whole machine detects whether an external The input read command;
如果检测到外部输入的读取指令,所述整机触摸屏检测装置执行读取所述待测试故障机中用于记录所述触摸屏对应事件信息的触摸屏设备文件的步骤。If an externally input read instruction is detected, the whole machine touch screen detection device executes the step of reading the touch screen device file used for recording the corresponding event information of the touch screen in the faulty machine to be tested.
作为一种可选的实施方式,在本发明第一方面中,所述方法还包括:As an optional implementation manner, in the first aspect of the present invention, the method further includes:
在所述整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,所述整机触摸屏检测装置获取所述待测试故障机中电池的工作温度;After the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and there is a stuck screen or an invalid fault machine to be tested, the touch screen detection device of the whole machine obtains the operating temperature of the battery in the fault machine to be tested;
所述整机触摸屏检测装置判断所述工作温度是否超过所述待测试故障机电池的预设温度阀值;The touch screen detection device of the whole machine judges whether the working temperature exceeds the preset temperature threshold of the battery of the faulty machine to be tested;
如果所述工作温度超过所述待测试故障机电池的预设温度阀值,所述整机触摸屏检测装置控制第三指示灯发出第三指示,所述第三指示用于表明所述待测试故障机电池的工作温度超过预设温度阀值。If the working temperature exceeds the preset temperature threshold of the battery of the fault machine to be tested, the touch screen detection device of the whole machine controls the third indicator light to issue a third indication, and the third indication is used to indicate the fault to be tested The operating temperature of the battery exceeds the preset temperature threshold.
本发明第二方面公开了一种整机触摸屏检测装置,可包括:The second aspect of the present invention discloses a whole machine touch screen detection device, which may include:
文件读取单元,用于在所述整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,以及所述待测试故障机的触摸屏被触控过程中,读取所述待测试故障机中用于记录所述触摸屏对应事件信息的触摸屏设备文件;The file reading unit is used to read after the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and the screen is stuck or the invalid machine to be tested is invalid, and the touch screen of the machine to be tested is touched. Get the touch screen device file used to record the corresponding event information of the touch screen in the faulty machine to be tested;
字节识别单元,用于识别所述触摸屏设备文件中的字节数;A byte identification unit, used to identify the number of bytes in the touch screen device file;
控制单元,用于当所述字节识别单元识别出所述触摸屏设备文件中的字节数不为零时,控制第一指示灯发出第一指示,所述第一指示用于表明所述待测试故障机的触摸屏不存在故障问题;当所述字节识别单元识别出所述触摸屏设备文件中的字节数为零时,控制第二指示灯发出第二指示,所述第二指示用于表明所述待测试故障机的触摸屏存在故障问题。A control unit, configured to control the first indicator light to issue a first indication when the byte recognition unit recognizes that the number of bytes in the touch screen device file is not zero, and the first indication is used to indicate that the pending There is no fault problem in the touch screen of the test failure machine; when the byte number in the device file of the touch screen is recognized as zero by the byte recognition unit, the second indicator light is controlled to send a second indication, and the second indication is used for It indicates that there is a fault problem on the touch screen of the faulty machine to be tested.
作为一种可选的实施方式,在本发明第二方面中,所述文件读取单元具体用于,在所述整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,以及所述待测试故障机的触摸屏被触控过程中,读取所述待测试故障机中用于记录所述触摸屏对应事件信息的触摸屏设备文件,所述触摸屏被触控是指所述触摸屏被滑动和/或所述触摸屏上的虚拟按键被按压,所述触摸屏设备文件包括dev文件、input文件和eventX文件。As an optional implementation manner, in the second aspect of the present invention, the file reading unit is specifically used to, when the touch screen detection device of the whole machine is connected to the touch screen through an OTG connection line, the screen is stuck or invalid to be tested After the faulty machine, and during the touch screen of the faulty machine to be tested, read the touch screen device file for recording the corresponding event information of the touch screen in the faulty machine to be tested. The touch screen is slid and/or a virtual key on the touch screen is pressed, and the touch screen device files include dev files, input files and eventX files.
作为一种可选的实施方式,在本发明第二方面中,所述整机触摸屏检测装置还包括:As an optional implementation manner, in the second aspect of the present invention, the whole machine touch screen detection device further includes:
连接处理单元,用于在所述整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,检测是否接收到所述待测试故障机发送的成功连接指示;The connection processing unit is used to detect whether the successful connection instruction sent by the faulty machine to be tested is received after the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and the screen is stuck or the invalid faulty machine to be tested is invalid;
所述文件读取单元具体用于,如果所述连接处理单元接收到所述待测试故障机发送的成功连接指示,以及所述待测试故障机的触摸屏被触控过程中,读取所述待测试故障机中用于记录所述触摸屏对应事件信息的触摸屏设备文件。The file reading unit is specifically configured to, if the connection processing unit receives the successful connection indication sent by the faulty machine to be tested, and the touch screen of the faulty machine to be tested is being touched, read the Test the touch screen device file used to record the corresponding event information of the touch screen in the faulty machine.
作为一种可选的实施方式,在本发明第二方面中,指令检测单元,用于在所述连接处理单元接收到所述待测试故障机发送的成功连接指示之后,以及所述待测试故障机的触摸屏被触控过程中,检测是否接收到外部输入的读取指令;As an optional implementation manner, in the second aspect of the present invention, the instruction detection unit is configured to, after the connection processing unit receives the successful connection indication sent by the fault machine to be tested, and the fault machine to be tested When the touch screen of the machine is touched, it detects whether it receives an external input read instruction;
所述文件读取单元具体用于,如果所述指令检测单元检测到外部输入的读取指令,读取所述待测试故障机中用于记录所述触摸屏对应事件信息的触摸屏设备文件。The file reading unit is specifically configured to, if the instruction detecting unit detects an externally input reading instruction, read the touch screen device file used for recording the corresponding event information of the touch screen in the faulty machine to be tested.
作为一种可选的实施方式,在本发明第二方面中,所述整机触摸屏检测装置还包括:As an optional implementation manner, in the second aspect of the present invention, the whole machine touch screen detection device further includes:
温度获取单元,用于在所述整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,获取装置检测所述待测试故障机中电池的工作温度;The temperature acquisition unit is used to obtain the operating temperature of the battery in the faulty machine to be tested after the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and the screen is stuck or the invalid faulty machine to be tested is invalid;
温度判断单元,用于判断所述工作温度是否超过所述待测试故障机电池的预设温度阀值;A temperature judging unit, used to judge whether the working temperature exceeds the preset temperature threshold of the battery of the faulty machine to be tested;
所述控制单元还用于,如果所述温度判断单元判定所述工作温度超过所述待测试故障机电池的预设温度阀值,控制第三指示灯发出第三指示,所述第三指示用于表明所述待测试故障机电池的工作温度超过预设温度阀值。The control unit is also used to control the third indicator light to issue a third indication if the temperature judgment unit determines that the operating temperature exceeds the preset temperature threshold of the battery of the faulty machine to be tested, and the third indication is used It indicates that the operating temperature of the battery of the faulty machine to be tested exceeds a preset temperature threshold.
本发明第三方面公开了一种整机触摸屏检测系统,可包括:整机触摸屏检测装置和待测试故障机,所述整机触摸屏检测装置通过OTG连接线接入所述待测试故障机;The third aspect of the present invention discloses a whole machine touch screen detection system, which may include: a whole machine touch screen detection device and a faulty machine to be tested, and the whole machine touch screen detection device is connected to the faulty machine to be tested through an OTG connection line;
所述整机触摸屏检测装置,用于在所述整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,以及所述待测试故障机的触摸屏被触控过程中,读取所述待测试故障机中用于记录所述触摸屏对应事件信息的触摸屏设备文件,并识别所述触摸屏设备文件中的字节数,如果所述触摸屏设备文件中的字节数不为零,控制第一指示灯发出第一指示,所述第一指示用于表明所述待测试故障机的触摸屏不存在硬件故障问题;如果所述触摸屏设备文件中的字节数为零,控制第二指示灯发出第二指示,所述第二指示用于表明所述待测试故障机的触摸屏存在硬件故障问题。The touch screen detection device of the whole machine is used for after the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and a stuck screen or an invalid fault machine to be tested occurs, and the touch screen of the fault machine to be tested is touched , read the touch screen device file used to record the corresponding event information of the touch screen in the faulty machine to be tested, and identify the number of bytes in the touch screen device file, if the number of bytes in the touch screen device file is not be zero, control the first indicator light to send the first indication, and the first indication is used to indicate that the touch screen of the faulty machine to be tested does not have a hardware failure problem; if the number of bytes in the touch screen device file is zero, the control The second indicator light sends out a second indication, and the second indication is used to indicate that there is a hardware failure problem on the touch screen of the faulty machine to be tested.
与现有技术相比,本发明实施例具有以下有益效果:Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
在本发明实施例中,整机触摸屏检测装置通过OTG连接线接入待测试故障机后,并在待测试故障机的触摸屏被触控过程中,整机触摸屏检测装置读取待测试故障机中用于记录触摸屏对应事件信息的触摸屏设备文件,然后通过识别触摸屏设备文件中的字节数,当触摸屏设备文件中的字节数不为零时,控制第一指示灯发出第一指示,该第一指示用于表明待测试故障机的触摸屏不存在硬件故障问题;如果触摸屏设备文件中的字节数为零,控制第二指示灯发出第二指示,该第二指示用于表明待测试故障机的触摸屏存在硬件故障问题。可以看出,实施本发明实施例,由于待测试故障机的触摸屏已出现卡屏或者处于无效状态,通过对待测试故障机的触摸屏进行触控,如果是触摸屏本身硬件问题,触摸屏将无法感应出触控,从而记录触摸屏事件信息的触摸屏设备文件中的字节数为零;如果不是触摸屏本身硬件问题,而是应用程序问题或者系统性故障问题而导致触摸屏无效或者失灵卡屏,触摸屏能够感应到触控,从而记录触摸屏事件信息的触摸屏设备文件中的字节数不为零,因此,能够在待测试故障机触摸屏无效或者卡屏时,快速地识别出是因为触摸屏硬件问题导致的无效或者卡屏,还是因为应用程序导致的无效或者卡屏,以对故障问题进行快速归类,提高测试和生产效率。In the embodiment of the present invention, after the touch screen detection device of the whole machine is connected to the faulty machine to be tested through the OTG connection line, and when the touch screen of the faulty machine to be tested is touched, the touch screen detection device of the whole machine reads the information in the faulty machine to be tested. The touch screen device file used to record the corresponding event information of the touch screen, and then by identifying the number of bytes in the touch screen device file, when the number of bytes in the touch screen device file is not zero, control the first indicator light to send a first indication, the first indicator light An indication is used to indicate that the touch screen of the faulty machine to be tested does not have a hardware failure problem; if the number of bytes in the touch screen device file is zero, the second indicator light is controlled to send a second indication, and the second indication is used to indicate that the faulty machine to be tested Your touchscreen has a hardware failure issue. It can be seen that, implementing the embodiment of the present invention, since the touch screen of the machine to be tested has been stuck or is in an invalid state, by touching the touch screen of the machine to be tested, if it is a hardware problem of the touch screen itself, the touch screen will not be able to sense the touch screen. control, so that the number of bytes in the touch screen device file that records the touch screen event information is zero; if it is not a hardware problem of the touch screen itself, but an application problem or a system failure that causes the touch screen to be invalid or malfunction, the touch screen can sense the touch screen. Control, so that the number of bytes in the touch screen device file that records the touch screen event information is not zero. Therefore, when the touch screen of the faulty machine to be tested is invalid or stuck, it can be quickly identified that the invalid or stuck screen is caused by a hardware problem of the touch screen , or due to invalid or stuck screens caused by applications, to quickly classify faults and improve testing and production efficiency.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.
图1为本发明实施例公开的整机触摸屏检测方法的流程示意图;1 is a schematic flow diagram of a method for detecting a touch screen of a complete machine disclosed in an embodiment of the present invention;
图2为本发明实施例公开的整机触摸屏检测方法的另一流程示意图;Fig. 2 is another schematic flowchart of the whole machine touch screen detection method disclosed in the embodiment of the present invention;
图3为本发明实施例公开的整机触摸屏检测装置的结构示意图;Fig. 3 is a schematic structural diagram of a whole machine touch screen detection device disclosed in an embodiment of the present invention;
图4为本发明实施例公开的整机触摸屏检测装置的另一结构示意图;Fig. 4 is another structural schematic diagram of the whole machine touch screen detection device disclosed in the embodiment of the present invention;
图5为本发明实施例公开的整机触摸屏检测装置的另一结构示意图;Fig. 5 is another structural schematic diagram of the whole machine touch screen detection device disclosed in the embodiment of the present invention;
图6为本发明实施例公开的整机触摸屏检测系统的结构示意图。FIG. 6 is a schematic structural diagram of a whole machine touch screen detection system disclosed in an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
需要说明的是,本发明实施例的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "comprising" and "having" and any variations thereof in the embodiments of the present invention are intended to cover non-exclusive inclusion, for example, a process, method, system, product, or process that includes a series of steps or units. The apparatus is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to the process, method, product or apparatus.
本发明实施例公开了一种整机触摸屏检测方法,用于在故障机触摸屏无效或者卡屏时,能够快速地识别出是因为触摸屏硬件问题导致的无效或者卡屏,还是因为应用程序导致的无效或者卡屏,以对故障问题进行快速归类,提高测试和生产效率。本发明实施例还相应地公开了一种整机触摸屏检测装置及一种整机触摸屏检测系统。The embodiment of the present invention discloses a touch screen detection method of the whole machine, which is used to quickly identify whether the touch screen is invalid or stuck due to a hardware problem of the touch screen or caused by an application program when the touch screen of a faulty machine is invalid or stuck Or the screen is stuck, so as to quickly classify fault problems and improve testing and production efficiency. The embodiment of the invention also correspondingly discloses a whole machine touch screen detection device and a whole machine touch screen detection system.
本发明实施例提供的待测试故障机可以是智能手机、平板电脑等具有触摸屏的终端设备,进一步地,该待测试故障机使用安卓(Android)系统。下面将结合具体实施例,对本发明技术方案进行详细的介绍。The faulty machine to be tested provided in the embodiment of the present invention may be a terminal device with a touch screen such as a smart phone, a tablet computer, and further, the faulty machine to be tested uses an Android system. The technical solutions of the present invention will be described in detail below in conjunction with specific embodiments.
实施例一Embodiment one
请参阅图1,图1为本发明实施例公开的整机触摸屏检测方法的流程示意图;如图1所示,一种整机触摸屏检测方法可包括:Please refer to FIG. 1. FIG. 1 is a schematic flow diagram of a method for detecting a touch screen of a complete machine disclosed in an embodiment of the present invention; as shown in FIG. 1, a method for detecting a touch screen of a complete machine may include:
101、在整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,以及待测试故障机的触摸屏被触控过程中,整机触摸屏检测装置读取待测试故障机中用于记录触摸屏对应事件信息的触摸屏设备文件;101. After the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line, the screen is stuck or the faulty machine to be tested is invalid, and the touch screen of the faulty machine to be tested is touched, the touch screen detection device of the whole machine reads the fault to be tested The touch screen device file used to record the corresponding event information of the touch screen in the machine;
在整机触摸屏检测装置设置有USB接口,待测试故障机中也设置有USB接口,基于USB接口,整机触摸屏检测装置通过OTG连接线接入到待测试故障机上,从而在整机触摸屏检测装置与待测试故障机之间实现USB-OTG模式,以便整机触摸屏检测装置能够基于OTG功能从待测试故障机中读取数据。其中,该待测试故障机是出现触摸屏卡屏或者无效等问题,通过本发明实施例能够快速地识别出是因为硬件还是软件导致的卡屏或者无效。The touch screen detection device of the whole machine is provided with a USB interface, and the faulty machine to be tested is also provided with a USB interface. Implement the USB-OTG mode with the faulty machine to be tested, so that the touch screen detection device of the whole machine can read data from the faulty machine to be tested based on the OTG function. Wherein, the faulty machine to be tested has problems such as a stuck or invalid touch screen, and the embodiments of the present invention can quickly identify whether the stuck or disabled screen is caused by hardware or software.
作为一种可选的实施方式,在整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,以及待测试故障机的触摸屏被触控过程中,整机触摸屏检测装置读取待测试故障机中用于记录触摸屏对应事件信息的触摸屏设备文件,触摸屏被触控包括触摸屏被滑动和/或触摸屏上的虚拟按键被按压(单击或者双击等),该触摸屏设备文件包括dev文件、input文件和eventX文件。As an optional implementation, after the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and the screen is stuck or the faulty machine to be tested is invalid, and the touch screen of the faulty machine to be tested is touched, the touch screen of the whole machine The detection device reads the touch screen device file used to record the corresponding event information of the touch screen in the faulty machine to be tested. The touch screen includes the touch screen being slid and/or the virtual key on the touch screen being pressed (click or double click, etc.), the touch screen device Files include dev files, input files and eventX files.
其中,在整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,待测试故障机的触摸屏被触控过程中(在触摸屏上滑动以得到移动轨迹或者点击虚拟按键),由于触摸屏出现卡屏或者无效,如果待测试故障机不是触摸屏硬件本身出现故障,则会检测到被触控,将在dev文件、input文件和eventX文件中记录该事件信息,从而更新dev文件、input文件和eventX文件,dev文件、input文件和eventX文件中的字节数不为零;如果触摸屏硬件本身出现故障,待测试故障机检测不到触摸屏被触控,不会更新dev文件、input文件和eventX文件,那么dev文件、input文件和eventX文件中的字节数为零。Among them, after the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and the screen is stuck or the faulty machine to be tested is invalid, the touch screen of the faulty machine to be tested is touched (slide on the touch screen to get the movement track or click on the virtual button), because the touch screen is stuck or invalid, if the faulty machine to be tested is not a failure of the touch screen hardware itself, it will detect that it is touched, and will record the event information in the dev file, input file and eventX file to update the dev file, input file, and eventX file, the number of bytes in the dev file, input file, and eventX file is not zero; if the touch screen hardware itself fails, the faulty machine under test cannot detect that the touch screen is touched, and will not update the dev file, input file and eventX file, then the number of bytes in the dev file, input file, and eventX file is zero.
待测试故障机的触摸屏处于无效状态或者卡屏时,如果待测试故障机的触摸屏在被触控过程中,如果不是触摸屏硬件本身出现故障,将能够检测到被触控时触摸屏的受力区域位置、受力时长和受力大小等。而待测试故障机的触摸屏支持多点触控技术,在整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,在测试人员触控触摸屏时,待测试故障机对触摸屏执行互容式触控检测以及自容式触控检测,分别获得互容式触控检测结果和自容式触控检测结果,对互容式触控检测结果和自容式触控检测结果进行算术运算得到被触控的受力区域位置。通过时间检测装置在检测到触控时开始计时、在触控消失时结束计时从而得到受力时长。待测试故障机可以通过传感器检测到触控时触摸屏受到的受力大小。When the touch screen of the faulty machine to be tested is in an invalid state or the screen is stuck, if the touch screen of the faulty machine to be tested is in the process of being touched, if the touch screen hardware itself is not faulty, it will be able to detect the position of the force-bearing area of the touch screen when being touched , force duration and force magnitude, etc. The touch screen of the faulty machine to be tested supports multi-touch technology. After the touch screen detection device of the whole machine is connected to the touch screen through the OTG cable and the screen is stuck or the faulty machine to be tested is invalid, when the tester touches the touch screen, the fault to be tested The machine performs mutual-capacitive touch detection and self-capacitive touch detection on the touch screen, and obtains the mutual-capacitive touch detection results and self-capacitive touch detection results respectively. Arithmetic operations are performed on the detection results to obtain the position of the touched force-bearing area. The time detection device starts timing when the touch is detected, and ends the timing when the touch disappears, so as to obtain the force duration. The faulty machine to be tested can detect the force on the touch screen through the sensor.
作为一种可选的实施方式,在整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,整机触摸屏检测装置检测是否接收到待测试故障机发送的成功连接指示;如果接收到待测试故障机发送的成功连接指示,以及待测试故障机的触摸屏被触控过程中,整机触摸屏检测装置执行读取待测试故障机中用于记录触摸屏对应事件信息的触摸屏设备文件的步骤。通过该实施方式,确保整机触摸屏检测装置与待测试故障机连接成功,以确保整机触摸屏检测装置能够成功从待测试故障机中读取触摸屏设备文件,从而确保测试结果。As an optional implementation, after the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and the screen is stuck or the faulty machine to be tested is invalid, the touch screen detection device of the whole machine detects whether it has received the successful message sent by the faulty machine to be tested. Connection indication; if the successful connection indication sent by the faulty machine to be tested is received, and the touch screen of the faulty machine to be tested is touched, the touch screen detection device of the whole machine executes and reads the event information used to record the corresponding event information of the touch screen in the faulty machine to be tested. Steps for touchscreen device files. Through this embodiment, it is ensured that the touch screen detection device of the whole machine is successfully connected with the faulty machine to be tested, so as to ensure that the touch screen detection device of the whole machine can successfully read the touch screen device file from the faulty machine to be tested, thereby ensuring the test result.
可选地,整机触摸屏检测装置上还设置有工作指示灯,在接收待测试故障机发送的成功连接指示之后,控制工作指示灯处于打开状态(发出灯光),用以表明整机触摸屏检测装置与待测试故障机已完成连接,并可以正常通信,让测试人员能够获知整机触摸屏检测装置与待测试故障机的连接情况。Optionally, the whole machine touch screen detection device is also provided with a work indicator light, after receiving the successful connection indication sent by the faulty machine to be tested, the control work light is in the open state (lighting), in order to indicate that the whole machine touch screen detection device The connection with the faulty machine to be tested has been completed and can communicate normally, so that the tester can know the connection between the touch screen detection device of the whole machine and the faulty machine to be tested.
作为一种可选的实施方式,在整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,以及待测试故障机的触摸屏被触控过程中,整机触摸屏检测装置检测是否接收到外部输入的读取指令;如果检测到外部输入的读取指令,整机触摸屏检测装置执行读取待测试故障机中用于记录触摸屏对应事件信息的触摸屏设备文件的步骤。在该实施方式中,可以在整机触摸屏检测装置增设检测按钮,在整机触摸屏检测装置与待测试故障机连接后,测试人员在待测试故障机的触摸屏上滑动触摸屏或者点击虚拟按键过程中,通过整机触摸屏检测装置上的检测按钮触发整机触摸屏检测装置读取触摸屏设备文件,实现对整机触摸屏检测装置的控制。As an optional implementation, after the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and the screen is stuck or the faulty machine to be tested is invalid, and the touch screen of the faulty machine to be tested is touched, the touch screen of the whole machine The detection device detects whether an externally input read command is received; if an externally input read command is detected, the whole machine touch screen detection device executes the step of reading the touch screen device file used to record the corresponding event information of the touch screen in the faulty machine to be tested. In this embodiment, a detection button can be added to the touch screen detection device of the whole machine. After the touch screen detection device of the whole machine is connected with the faulty machine to be tested, the tester slides the touch screen on the touch screen of the faulty machine to be tested or clicks on the virtual button. The detection button on the whole machine touch screen detection device triggers the whole machine touch screen detection device to read the touch screen device file, so as to realize the control of the whole machine touch screen detection device.
作为另一种可选的实施方式,在整机触摸屏检测装置接收到待测试故障机发送的成功连接指示之后,以及待测试故障机的触摸屏被触控过程中,整机触摸屏检测装置检测是否接收到外部输入的读取指令;如果检测到外部输入的读取指令,整机触摸屏检测装置执行读取待测试故障机中用于记录触摸屏对应事件信息的触摸屏设备文件的步骤。通过该实施方式,在整机触摸屏检测装置与待测试故障机连接成功后,通过外部输入读取指令,触发整机触摸屏检测装置读取触摸屏设备文件。As another optional implementation manner, after the touch screen detection device of the whole machine receives the successful connection indication sent by the faulty machine to be tested, and during the touch screen of the faulty machine to be tested is touched, the touch screen detection device of the whole machine detects whether the connection is received. A read command to an external input; if the read command from an external input is detected, the whole machine touch screen detection device executes the step of reading the touch screen device file used to record the corresponding event information of the touch screen in the faulty machine to be tested. Through this embodiment, after the whole machine touch screen detection device is successfully connected with the faulty machine to be tested, the whole machine touch screen detection device is triggered to read the touch screen device file through an external input read command.
102、整机触摸屏检测装置识别该触摸屏设备文件中的字节数;102. The whole machine touch screen detection device identifies the number of bytes in the touch screen device file;
103、如果触摸屏设备文件中的字节数不为零,整机触摸屏检测装置控制第一指示灯发出第一指示,该第一指示用于表明待测试故障机的触摸屏不存在硬件故障问题;103. If the number of bytes in the touch screen device file is not zero, the touch screen detection device of the whole machine controls the first indicator light to issue a first indication, and the first indication is used to indicate that there is no hardware failure problem in the touch screen of the faulty machine to be tested;
整机触摸屏检测装置控制第一指示灯处于打开状态,以发亮从而获得第一指示;或者整机触摸屏检测装置控制第一指示灯闪烁,从而获得第一指示。The device for detecting the touch screen of the whole machine controls the first indicator light to be in an on state to light up to obtain the first indication; or the device for detecting the touch screen of the whole machine controls the first indicator light to blink so as to obtain the first indication.
当然,在一些实施例中,还可以在整机触摸屏检测装置设置显示屏,在触摸屏设备文件中的字节数不为零时,在显示屏上显示第一指示信息,该第一指示信息用于表面触摸屏硬件没有故障,而是因为应用软件或者系统性故障导致触摸屏卡屏或者无效。Of course, in some embodiments, a display screen can also be set on the touch screen detection device of the whole machine, and when the number of bytes in the touch screen device file is not zero, the first indication information is displayed on the display screen, and the first indication information uses On the surface, the touch screen hardware is not faulty, but the touch screen is stuck or invalid due to application software or system failure.
104、如果触摸屏设备文件中的字节数为零,整机触摸屏检测装置控制第二指示灯发出第二指示,该第二指示用于表明待测试故障机的触摸屏存在硬件故障问题。104. If the number of bytes in the touch screen device file is zero, the whole machine touch screen detection device controls the second indicator light to issue a second indication, and the second indication is used to indicate that there is a hardware failure in the touch screen of the faulty machine to be tested.
整机触摸屏检测装置控制第二指示灯处于打开状态,以发亮从而获得第二指示;或者整机触摸屏检测装置控制第二指示灯闪烁,从而获得第二指示。当然,如果是控制第一指示灯或者第二指示灯发亮,那么可以通过不同的灯光颜色来进行区分,比如说在触摸屏设备文件中的字节数不为零时,控制第一指示灯发出绿色灯光,在触摸屏设备文件中的字节数为零时,控制第二指示灯发出红色灯光。The device for detecting the touch screen of the whole machine controls the second indicator light to be in an on state to light up to obtain the second indication; or the device for detecting the touch screen of the whole machine controls the second indicator light to blink so as to obtain the second indication. Of course, if the first indicator light or the second indicator light is controlled to be on, it can be distinguished by different light colors. For example, when the number of bytes in the touch screen device file is not zero, the first indicator light is controlled to emit Green light, when the number of bytes in the touch screen device file is zero, control the second indicator light to emit red light.
当然,在一些实施例中,还可以在整机触摸屏检测装置设置显示屏,在触摸屏设备文件中的字节数为零时,在显示屏上显示第二指示信息,如触摸屏存在硬件故障问题。Certainly, in some embodiments, a display screen may also be provided in the touch screen detection device of the whole machine, and when the number of bytes in the touch screen device file is zero, the second indication information is displayed on the display screen, such as a hardware failure problem of the touch screen.
在本发明实施例中,整机触摸屏检测装置通过OTG连接线接入待测试故障机后,并在待测试故障机的触摸屏被触控过程中,整机触摸屏检测装置读取待测试故障机中用于记录触摸屏对应事件信息的触摸屏设备文件,然后通过识别触摸屏设备文件中的字节数,当触摸屏设备文件中的字节数不为零时,控制第一指示灯发出第一指示,该第一指示用于表明待测试故障机的触摸屏不存在硬件故障问题;如果触摸屏设备文件中的字节数为零,控制第二指示灯发出第二指示,该第二指示用于表明待测试故障机的触摸屏存在硬件故障问题。可以看出,实施本发明实施例,由于待测试故障机的触摸屏已出现卡屏或者处于无效状态,通过对待测试故障机的触摸屏进行触控,如果是触摸屏本身硬件问题,触摸屏将无法感应出触控,从而记录触摸屏事件信息的触摸屏设备文件中的字节数为零;如果不是触摸屏本身硬件问题,而是应用程序问题或者系统性故障问题而导致触摸屏无效或者失灵卡屏时,触摸屏能够感应到触控,从而记录触摸屏事件信息的触摸屏设备文件中的字节数不为零,因此,能够在待测试故障机触摸屏无效或者卡屏时,快速地识别出是因为触摸屏硬件问题导致的无效或者卡屏,还是因为应用程序导致的无效或者卡屏,以对故障问题进行快速归类,提高测试和生产效率。In the embodiment of the present invention, after the touch screen detection device of the whole machine is connected to the faulty machine to be tested through the OTG connection line, and when the touch screen of the faulty machine to be tested is touched, the touch screen detection device of the whole machine reads the information in the faulty machine to be tested. The touch screen device file used to record the corresponding event information of the touch screen, and then by identifying the number of bytes in the touch screen device file, when the number of bytes in the touch screen device file is not zero, control the first indicator light to send a first indication, the first indicator light An indication is used to indicate that the touch screen of the faulty machine to be tested does not have a hardware failure problem; if the number of bytes in the touch screen device file is zero, the second indicator light is controlled to send a second indication, and the second indication is used to indicate that the faulty machine to be tested Your touchscreen has a hardware failure issue. It can be seen that, implementing the embodiment of the present invention, since the touch screen of the machine to be tested has been stuck or is in an invalid state, by touching the touch screen of the machine to be tested, if it is a hardware problem of the touch screen itself, the touch screen will not be able to sense the touch screen. control, so that the number of bytes in the touch screen device file that records the touch screen event information is zero; if it is not a hardware problem of the touch screen itself, but an application problem or a system failure that causes the touch screen to be invalid or malfunctions, the touch screen can sense Touch, so that the number of bytes in the touch screen device file that records the touch screen event information is not zero. Therefore, when the touch screen of the faulty machine to be tested is invalid or stuck, it can be quickly identified because the touch screen hardware is invalid or stuck. screen, or the invalid or stuck screen caused by the application, so as to quickly classify the fault problem and improve the test and production efficiency.
实施例二Embodiment two
请参阅图2,图2为本发明实施例公开的整机触摸屏检测方法的另一流程示意图;如图2所示,一种整机触摸屏检测方法可包括:Please refer to FIG. 2. FIG. 2 is another schematic flow diagram of the whole machine touch screen detection method disclosed in the embodiment of the present invention; as shown in FIG. 2, a whole machine touch screen detection method may include:
201、在整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,整机触摸屏检测装置获取待测试故障机中电池的工作温度;201. After the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and the screen is stuck or the faulty machine to be tested is invalid, the touch screen detection device of the whole machine obtains the working temperature of the battery in the faulty machine to be tested;
待测试故障机可以实时检测电池的工作温度,然后更新并保存到相应的文件中,整机触摸屏检测装置可以通过读取文件获得电池的工作温度。The faulty machine to be tested can detect the working temperature of the battery in real time, and then update and save it in the corresponding file. The touch screen detection device of the whole machine can obtain the working temperature of the battery by reading the file.
作为一种可选的实施方式,在整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,整机触摸屏检测装置检测是否接收到待测试故障机发送的成功连接指示;如果接收到待测试故障机发送的成功连接指示,整机触摸屏检测装置执行获取待测试故障机中电池的工作温度的步骤。通过该实施方式,确保整机触摸屏检测装置与待测试故障机连接成功,以确保整机触摸屏检测装置能够成功从待测试故障机中获取到工作温度。As an optional implementation, after the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and the screen is stuck or the faulty machine to be tested is invalid, the touch screen detection device of the whole machine detects whether it has received the successful message sent by the faulty machine to be tested. Connection instruction; if receiving the successful connection instruction sent by the faulty machine to be tested, the touch screen detection device of the whole machine executes the step of obtaining the working temperature of the battery in the faulty machine to be tested. Through this embodiment, it is ensured that the touch screen detection device of the whole machine is successfully connected with the faulty machine to be tested, so as to ensure that the touch screen detection device of the whole machine can successfully obtain the working temperature from the faulty machine to be tested.
可选地,整机触摸屏检测装置上还设置有工作指示灯,在接收待测试故障机发送的成功连接指示之后,控制工作指示灯处于打开状态(发出灯光),用以表明整机触摸屏检测装置与待测试故障机已完成连接,并可以正常通信,让测试人员能够获知整机触摸屏检测装置与待测试故障机的连接情况。Optionally, the whole machine touch screen detection device is also provided with a work indicator light, after receiving the successful connection indication sent by the faulty machine to be tested, the control work light is in the open state (lighting), in order to indicate that the whole machine touch screen detection device The connection with the faulty machine to be tested has been completed and can communicate normally, so that the tester can know the connection between the touch screen detection device of the whole machine and the faulty machine to be tested.
作为一种可选的实施方式,在整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,整机触摸屏检测装置检测是否接收到外部输入的获取指令;如果检测到外部输入的获取指令,整机触摸屏检测装置执行获取待测试故障机中电池的工作温度的步骤。在该实施方式中,可以在整机触摸屏检测装置增设检测按钮,在整机触摸屏检测装置与待测试故障机连接后,通过整机触摸屏检测装置上的检测按钮触发整机触摸屏检测装置获取电池的工作温度,实现对整机触摸屏检测装置的控制。As an optional embodiment, after the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and there is a stuck screen or an invalid failure machine to be tested, the touch screen detection device of the whole machine detects whether an acquisition instruction of external input is received; if Detecting an acquisition command input from the outside, the whole machine touch screen detection device executes the step of acquiring the working temperature of the battery in the faulty machine to be tested. In this embodiment, a detection button can be added to the touch screen detection device of the whole machine. After the touch screen detection device of the whole machine is connected with the faulty machine to be tested, the detection button on the touch screen detection device of the whole machine can be used to trigger the touch screen detection device of the whole machine to obtain the power of the battery. Working temperature, to realize the control of the touch screen detection device of the whole machine.
作为另一种可选的实施方式,在整机触摸屏检测装置接收到待测试故障机发送的成功连接指示之后,整机触摸屏检测装置检测是否接收到外部输入的获取指令;如果检测到外部输入的获取指令,整机触摸屏检测装置执行获取待测试故障机中电池的工作温度的步骤。As another optional implementation manner, after the touch screen detection device of the whole machine receives the successful connection indication sent by the faulty machine to be tested, the touch screen detection device of the whole machine detects whether an acquisition instruction of external input is received; After obtaining the instruction, the whole machine touch screen detection device executes the step of obtaining the working temperature of the battery in the faulty machine to be tested.
202、整机触摸屏检测装置判断工作温度是否超过待测试故障机电池的预设温度阀值;202. The touch screen detection device of the whole machine judges whether the working temperature exceeds the preset temperature threshold of the battery of the faulty machine to be tested;
待测试故障机中的电池温度有一定阈值,可以在整机触摸屏检测装置预先存储该电池的预设温度阈值。The temperature of the battery in the faulty machine to be tested has a certain threshold value, and the preset temperature threshold value of the battery can be stored in advance in the touch screen detection device of the whole machine.
203、如果工作温度超过待测试故障机电池的预设温度阀值,整机触摸屏检测装置控制第三指示灯发出第三指示,该第三指示用于表明待测试故障机电池的工作温度超过预设温度阀值。203. If the operating temperature exceeds the preset temperature threshold of the battery of the faulty machine to be tested, the touch screen detection device of the whole machine controls the third indicator light to issue a third indication. The third indication is used to indicate that the operating temperature of the battery of the faulty machine to be tested exceeds the preset temperature. Set temperature threshold.
在整机触摸屏检测装置上还设置有第三指示灯,用于指示待测试故障机的电池工作温度的实际情况。整机触摸屏检测装置控制第三指示灯处于打开状态,以发亮从而获得第三指示;或者整机触摸屏检测装置控制第三指示灯闪烁,从而获得第三指示。当然,如果是控制第一指示灯或者第二指示灯或者第三指示灯发亮,那么可以通过不同的灯光颜色来进行区分,比如说在触摸屏设备文件中的字节数不为零时,控制第一指示灯发出绿色灯光(触摸屏硬件本身没有故障问题),在触摸屏设备文件中的字节数为零时,控制第二指示灯发出红色灯光(触摸屏硬件本身存在故障问题),在待测试故障机的电池的工作温度超过预设温度阀值时,控制第三指示灯发出黄色灯光(电池温度过高)。A third indicator light is also arranged on the whole machine touch screen detection device, which is used to indicate the actual condition of the battery operating temperature of the faulty machine to be tested. The device for detecting the touch screen of the whole machine controls the third indicator light to be in an on state to light up to obtain the third indication; or the device for detecting the touch screen of the whole machine controls the third indicator light to blink so as to obtain the third indication. Of course, if the first indicator light or the second indicator light or the third indicator light is controlled to be on, it can be distinguished by different light colors. For example, when the number of bytes in the touch screen device file is not zero, the control The first indicator light emits green light (the touch screen hardware itself has no fault problem). When the number of bytes in the touch screen device file is zero, control the second indicator light to emit red light (the touch screen hardware itself has a fault problem). When the operating temperature of the battery of the machine exceeds the preset temperature threshold, the third indicator light is controlled to emit a yellow light (battery temperature is too high).
实施例三Embodiment Three
请参阅图3,图3为本发明实施例公开的整机触摸屏检测装置的结构示意图;如图3所示,一种整机触摸屏检测装置可包括:Please refer to Fig. 3, Fig. 3 is a schematic structural diagram of a whole machine touch screen detection device disclosed in an embodiment of the present invention; as shown in Fig. 3, a whole machine touch screen detection device may include:
文件读取单元310,用于在整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,以及待测试故障机的触摸屏被触控过程中,读取待测试故障机中用于记录触摸屏对应事件信息的触摸屏设备文件;The file reading unit 310 is used to read the file to be tested after the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and the screen is stuck or the invalid machine to be tested is invalid, and the touch screen of the machine to be tested is touched. The touch screen device file used to record the corresponding event information of the touch screen in the faulty machine;
字节识别单元320,用于识别触摸屏设备文件中的字节数;Byte identifying unit 320, used to identify the number of bytes in the touch screen device file;
控制单元330,用于当字节识别单元320识别出触摸屏设备文件中的字节数不为零时,控制第一指示灯发出第一指示,第一指示用于表明待测试故障机的触摸屏不存在硬件故障问题;当字节识别单元320识别出触摸屏设备文件中的字节数为零时,控制第二指示灯发出第二指示,第二指示用于表明待测试故障机的触摸屏存在硬件故障问题。The control unit 330 is used to control the first indicator light to send a first indication when the byte identification unit 320 recognizes that the number of bytes in the touch screen device file is not zero, and the first indication is used to indicate that the touch screen of the faulty machine to be tested is not There is a hardware failure problem; when the byte identification unit 320 recognizes that the number of bytes in the touch screen device file is zero, the second indicator light is controlled to send a second indication, and the second indication is used to indicate that there is a hardware failure in the touch screen of the faulty machine to be tested question.
在本发明实施例中,整机触摸屏检测装置通过OTG连接线接入待测试故障机后,并在待测试故障机的触摸屏被触控过程中,文件读取单元310读取待测试故障机中用于记录触摸屏对应事件信息的触摸屏设备文件,然后字节识别单元320通过识别触摸屏设备文件中的字节数,当触摸屏设备文件中的字节数不为零时,控制单元330控制第一指示灯发出第一指示,该第一指示用于表明待测试故障机的触摸屏不存在硬件故障问题(应用程序导致的触摸屏卡屏或者无效);如果触摸屏设备文件中的字节数为零,控制单元330控制第二指示灯发出第二指示,该第二指示用于表明待测试故障机的触摸屏存在硬件故障问题。可以看出,实施本发明实施例,由于待测试故障机的触摸屏已出现卡屏或者处于无效状态,通过对待测试故障机的触摸屏进行触控,如果是触摸屏本身硬件问题,触摸屏将无法感应出触控,从而记录触摸屏事件信息的触摸屏设备文件中的字节数为零;如果不是触摸屏本身硬件问题,而是应用程序问题或者系统性故障问题而导致触摸屏无效或者失灵卡屏时,触摸屏能够感应到触控,从而记录触摸屏事件信息的触摸屏设备文件中的字节数不为零,因此,能够在待测试故障机触摸屏无效或者卡屏时,快速地识别出是因为触摸屏硬件问题导致的无效或者卡屏,还是因为应用程序导致的无效或者卡屏,以对故障问题进行快速归类,提高测试和生产效率。In the embodiment of the present invention, after the touch screen detection device of the whole machine is connected to the faulty machine to be tested through the OTG connection line, and when the touch screen of the faulty machine to be tested is touched, the file reading unit 310 reads the information in the faulty machine to be tested. The touch screen device file used to record the corresponding event information of the touch screen, and then the byte recognition unit 320 recognizes the number of bytes in the touch screen device file, and when the number of bytes in the touch screen device file is not zero, the control unit 330 controls the first indication The light sends out a first indication, which is used to indicate that the touch screen of the faulty machine to be tested does not have a hardware failure problem (the touch screen freezes or is invalid due to the application); if the number of bytes in the touch screen device file is zero, the control unit 330 controlling the second indicator light to issue a second indication, where the second indication is used to indicate that there is a hardware failure on the touch screen of the faulty machine to be tested. It can be seen that, implementing the embodiment of the present invention, since the touch screen of the machine to be tested has been stuck or is in an invalid state, by touching the touch screen of the machine to be tested, if it is a hardware problem of the touch screen itself, the touch screen will not be able to sense the touch screen. control, so that the number of bytes in the touch screen device file that records the touch screen event information is zero; if it is not a hardware problem of the touch screen itself, but an application problem or a system failure that causes the touch screen to be invalid or malfunctions, the touch screen can sense Touch, so that the number of bytes in the touch screen device file that records the touch screen event information is not zero. Therefore, when the touch screen of the faulty machine to be tested is invalid or stuck, it can be quickly identified because the touch screen hardware is invalid or stuck. screen, or the invalid or stuck screen caused by the application, so as to quickly classify the fault problem and improve the test and production efficiency.
作为一种可选的实施方式,上述文件读取单元310具体用于,在整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,以及待测试故障机的触摸屏被触控过程中,读取待测试故障机中用于记录触摸屏对应事件信息的触摸屏设备文件,触摸屏被触控是指触摸屏被滑动和/或触摸屏上的虚拟按键被按压,触摸屏设备文件包括dev文件、input文件和eventX文件。As an optional implementation, the above-mentioned file reading unit 310 is specifically used for, after the touch screen detection device of the whole machine is connected to the touch screen through an OTG connection line and the screen is stuck or the faulty machine to be tested is invalid, and the faulty machine to be tested When the touch screen is touched, read the touch screen device file used to record the corresponding event information of the touch screen in the faulty machine to be tested. The touch screen means that the touch screen is slid and/or the virtual key on the touch screen is pressed. The touch screen device file includes dev file, input file and eventX file.
其中,在整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,待测试故障机的触摸屏被触控(在触摸屏上滑动以得到移动轨迹或者点击虚拟按键),由于触摸屏出现卡屏或者无效,如果待测试故障机不是触摸屏硬件本身出现故障,则会检测到被触控,将在dev文件、input文件和eventX文件中记录该事件信息,从而更新dev文件、input文件和eventX文件,dev文件、input文件和eventX文件中的字节数不为零;如果触摸屏硬件本身出现故障,待测试故障机检测不到触摸屏被触控,不会更新dev文件、input文件和eventX文件,那么dev文件、input文件和eventX文件中的字节数为零。Among them, after the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and the screen is stuck or the faulty machine to be tested is invalid, the touch screen of the faulty machine to be tested is touched (slide on the touch screen to get the moving track or click on the virtual button) , because the touch screen is stuck or invalid, if the faulty machine to be tested is not a failure of the touch screen hardware itself, it will detect being touched, and will record the event information in the dev file, input file and eventX file, thereby updating the dev file, The number of bytes in the input file and eventX file, dev file, input file, and eventX file is not zero; if the touch screen hardware itself fails, the faulty machine to be tested cannot detect that the touch screen is touched, and will not update the dev file and input file and eventX files, then the number of bytes in dev files, input files, and eventX files is zero.
待测试故障机的触摸屏处于无效状态或者卡屏时,如果待测试故障机的触摸屏在被触控过程中,如果不是触摸屏硬件本身出现故障,将能够检测到被触控时触摸屏的受力区域位置、受力时长和受力大小等。而待测试故障机的触摸屏支持多点触控技术,在整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,在测试人员触控触摸屏时,待测试故障机对触摸屏执行互容式触控检测以及自容式触控检测,分别获得互容式触控检测结果和自容式触控检测结果,对互容式触控检测结果和自容式触控检测结果进行算术运算得到被触控的受力区域位置。通过时间检测装置在检测到触控时开始计时、在触控消失时结束计时从而得到受力时长。待测试故障机可以通过传感器检测到触控时触摸屏受到的受力大小。When the touch screen of the faulty machine to be tested is in an invalid state or the screen is stuck, if the touch screen of the faulty machine to be tested is in the process of being touched, if the touch screen hardware itself is not faulty, it will be able to detect the position of the force-bearing area of the touch screen when being touched , force duration and force magnitude, etc. The touch screen of the faulty machine to be tested supports multi-touch technology. After the touch screen detection device of the whole machine is connected to the touch screen through the OTG cable and the screen is stuck or the faulty machine to be tested is invalid, when the tester touches the touch screen, the fault to be tested The machine performs mutual-capacitive touch detection and self-capacitive touch detection on the touch screen, and obtains the mutual-capacitive touch detection results and self-capacitive touch detection results respectively. Arithmetic operations are performed on the detection results to obtain the position of the touched force-bearing area. The time detection device starts timing when the touch is detected, and ends the timing when the touch disappears, so as to obtain the force duration. The faulty machine to be tested can detect the force on the touch screen through the sensor.
实施例四Embodiment Four
请参阅图4,图4为本发明实施例公开的整机触摸屏检测装置的另一结构示意图;图4所示的整机触摸屏检测装置是在图3所示的整机触摸屏检测装置的基础上进行优化得到的,如图4所示,该整机触摸屏检测装置还包括:Please refer to Fig. 4, Fig. 4 is another structural schematic diagram of the whole machine touch screen detection device disclosed in the embodiment of the present invention; the whole machine touch screen detection device shown in Fig. 4 is based on the whole machine touch screen detection device shown in Fig. 3 Optimized to obtain, as shown in Figure 4, the whole machine touch screen detection device also includes:
连接处理单元410,用于在整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,检测是否接收到待测试故障机发送的成功连接指示;The connection processing unit 410 is used to detect whether the successful connection instruction sent by the faulty machine to be tested is received after the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and the screen is stuck or the faulty machine to be tested is invalid;
文件读取单元310具体用于,如果连接处理单元410接收到待测试故障机发送的成功连接指示,以及待测试故障机的触摸屏被触控过程中,读取待测试故障机中用于记录触摸屏对应事件信息的触摸屏设备文件。The file reading unit 310 is specifically used to, if the connection processing unit 410 receives the successful connection indication sent by the faulty machine to be tested, and the touch screen of the faulty machine to be tested is touched, read the information used to record the touch screen of the faulty machine to be tested. The touch screen device file corresponding to the event information.
通过该实施方式,确保整机触摸屏检测装置与待测试故障机连接成功,以确保整机触摸屏检测装置能够成功从待测试故障机中读取触摸屏设备文件,从而确保测试结果。Through this embodiment, it is ensured that the touch screen detection device of the whole machine is successfully connected with the faulty machine to be tested, so as to ensure that the touch screen detection device of the whole machine can successfully read the touch screen device file from the faulty machine to be tested, thereby ensuring the test result.
可选地,整机触摸屏检测装置上还设置有工作指示灯,在连接处理单元410接收待测试故障机发送的成功连接指示之后,控制单元330控制工作指示灯处于打开状态(发出灯光),用以表明整机触摸屏检测装置与待测试故障机已完成连接,并可以正常通信,让测试人员能够获知整机触摸屏检测装置与待测试故障机的连接情况。Optionally, the whole machine touch screen detection device is also provided with a working indicator light. After the connection processing unit 410 receives the successful connection indication sent by the faulty machine to be tested, the control unit 330 controls the working indicator light to be in the on state (lighting), and In order to indicate that the touch screen detection device of the whole machine has been connected with the faulty machine to be tested and can communicate normally, so that the tester can know the connection between the touch screen detection device of the whole machine and the faulty machine to be tested.
作为一种可选的实施方式,在图4中,该整机触摸屏检测装置还包括:As an optional implementation manner, in FIG. 4 , the whole machine touch screen detection device also includes:
指令检测单元420,用于在连接处理单元410接收到待测试故障机发送的成功连接指示之后,以及待测试故障机的触摸屏被触控过程中,检测是否接收到外部输入的读取指令;The instruction detection unit 420 is used to detect whether an external input read instruction is received after the connection processing unit 410 receives the successful connection instruction sent by the faulty machine to be tested, and when the touch screen of the faulty machine to be tested is touched;
文件读取单元310具体用于,如果指令检测单元420检测到外部输入的读取指令,读取待测试故障机中用于记录触摸屏对应事件信息的触摸屏设备文件。The file reading unit 310 is specifically configured to, if the instruction detecting unit 420 detects an externally input reading instruction, read the touch screen device file used to record the corresponding event information of the touch screen in the faulty machine to be tested.
作为一种可选的实施方式,在整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,以及待测试故障机的触摸屏被触控过程中,指令检测单元420检测是否接收到外部输入的读取指令;如果检测到外部输入的读取指令,文件读取单元310读取待测试故障机中用于记录触摸屏对应事件信息的触摸屏设备文件的。在该实施方式中,可以在整机触摸屏检测装置增设检测按钮,在整机触摸屏检测装置与待测试故障机连接后,测试人员先在待测试故障机的触摸屏上滑动触摸屏或者点击虚拟按键,然后通过整机触摸屏检测装置上的检测按钮触发文件读取单元310读取触摸屏设备文件,实现对整机触摸屏检测装置的控制。As an optional implementation, after the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line, the screen is stuck or the faulty machine to be tested is invalid, and the touch screen of the faulty machine to be tested is touched, the instruction detection unit 420 Detect whether an externally input read command is received; if an externally input read command is detected, the file reading unit 310 reads the touch screen device file used to record the corresponding event information of the touch screen in the faulty machine to be tested. In this embodiment, a detection button can be added to the touch screen detection device of the whole machine. After the touch screen detection device of the whole machine is connected with the faulty machine to be tested, the tester first slides the touch screen on the touch screen of the faulty machine to be tested or clicks a virtual button, and then The file reading unit 310 is triggered to read the touch screen device file through the detection button on the touch screen detection device of the whole machine, so as to realize the control of the touch screen detection device of the whole machine.
实施例五Embodiment five
请参阅图5,图5为本发明实施例公开的整机触摸屏检测装置的另一结构示意图;图5所示的整机触摸屏检测装置是在图4所示的整机触摸屏检测装置的基础上进行优化得到的,如图5所示,该整机触摸屏检测装置还包括:Please refer to Fig. 5, Fig. 5 is another structural schematic diagram of the whole machine touch screen detection device disclosed in the embodiment of the present invention; the whole machine touch screen detection device shown in Fig. 5 is based on the whole machine touch screen detection device shown in Fig. 4 Optimized to obtain, as shown in Figure 5, the whole machine touch screen detection device also includes:
温度获取单元510,用于在整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,获取装置检测待测试故障机中电池的工作温度;The temperature acquisition unit 510 is used to obtain the operating temperature of the battery in the device to detect the faulty machine to be tested after the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and the screen is stuck or the faulty machine to be tested is invalid;
温度判断单元520,用于判断工作温度是否超过待测试故障机电池的预设温度阀值;A temperature judging unit 520, used to judge whether the operating temperature exceeds the preset temperature threshold of the battery of the faulty machine to be tested;
控制单元330还用于,如果温度判断单元520判定工作温度超过待测试故障机电池的预设温度阀值,控制第三指示灯发出第三指示,第三指示用于表明待测试故障机电池的工作温度超过预设温度阀值。The control unit 330 is also used for, if the temperature judging unit 520 judges that the operating temperature exceeds the preset temperature threshold of the battery of the faulty machine to be tested, control the third indicator light to send a third indication, and the third indication is used to indicate the temperature of the battery of the faulty machine to be tested. The working temperature exceeds the preset temperature threshold.
作为一种可选的实施方式,在整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,连接处理单元410检测是否接收到待测试故障机发送的成功连接指示;如果连接处理单元410接收到待测试故障机发送的成功连接指示,温度获取单元510执行获取待测试故障机中电池的工作温度的步骤。通过该实施方式,确保整机触摸屏检测装置与待测试故障机连接成功,以确保整机触摸屏检测装置能够成功从待测试故障机中获取到工作温度。As an optional implementation, after the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and the screen is stuck or the faulty machine to be tested is invalid, the connection processing unit 410 detects whether a successful connection sent by the faulty machine to be tested is received. Instruction: If the connection processing unit 410 receives the successful connection instruction sent by the faulty machine to be tested, the temperature acquisition unit 510 executes the step of acquiring the working temperature of the battery in the faulty machine to be tested. Through this embodiment, it is ensured that the touch screen detection device of the whole machine is successfully connected with the faulty machine to be tested, so as to ensure that the touch screen detection device of the whole machine can successfully obtain the working temperature from the faulty machine to be tested.
作为一种可选的实施方式,在整机触摸屏检测装置通过OTG连接线接入触摸屏出现卡屏或者无效的待测试故障机后,指令检测单元420检测是否接收到外部输入的获取指令;如果检测到外部输入的获取指令,温度获取单元510获取待测试故障机中电池的工作温度。在该实施方式中,可以在整机触摸屏检测装置增设检测按钮,在整机触摸屏检测装置与待测试故障机连接后,通过整机触摸屏检测装置上的检测按钮触发温度获取单元510获取电池的工作温度,实现对整机触摸屏检测装置的控制。As an optional implementation manner, after the touch screen detection device of the whole machine is connected to the touch screen through the OTG connection line and the screen is stuck or an invalid fault machine to be tested occurs, the command detection unit 420 detects whether an acquisition command from an external input is received; According to an acquisition command input from the outside, the temperature acquisition unit 510 acquires the operating temperature of the battery in the faulty machine to be tested. In this embodiment, a detection button can be added to the touch screen detection device of the whole machine. After the touch screen detection device of the whole machine is connected with the faulty machine to be tested, the temperature acquisition unit 510 can be triggered by the detection button on the touch screen detection device of the whole machine to obtain the working condition of the battery. Temperature, to realize the control of the touch screen detection device of the whole machine.
作为另一种可选的实施方式,在连接处理单元410接收到待测试故障机发送的成功连接指示之后,指令检测单元420检测是否接收到外部输入的获取指令;如果指令检测单元420检测到外部输入的获取指令,温度获取单元510获取待测试故障机中电池的工作温度。As another optional implementation manner, after the connection processing unit 410 receives the successful connection indication sent by the faulty machine to be tested, the instruction detection unit 420 detects whether an acquisition instruction from an external input is received; if the instruction detection unit 420 detects an external The input acquisition instruction, the temperature acquisition unit 510 acquires the operating temperature of the battery in the faulty machine to be tested.
实施本发明实施例,能够简单地检测出待测试故障机中的电池的工作温度,以识别该工作温度是否超过预设温度阈值,如果超过预设温度阈值时,通过相应的第三指示灯指示,实现整机批量发布时尽快地测试出相应的故障问题,以进行故障问题归类,提高测试效率和生产效率。Implementing the embodiment of the present invention can simply detect the working temperature of the battery in the faulty machine to be tested to identify whether the working temperature exceeds the preset temperature threshold, and if it exceeds the preset temperature threshold, it will be indicated by the corresponding third indicator light , to test the corresponding faults as soon as possible when the whole machine is released in batches, so as to classify the faults and improve the testing efficiency and production efficiency.
实施例六Embodiment six
请参阅图6,图6为本发明实施例公开的整机触摸屏检测系统的结构示意图;如图6所示,该整机触摸屏检测系统包括:Please refer to FIG. 6. FIG. 6 is a schematic structural diagram of a whole machine touch screen detection system disclosed in an embodiment of the present invention; as shown in FIG. 6, the whole machine touch screen detection system includes:
整机触摸屏检测装置610和待测试故障机620,整机触摸屏检测装置610通过OTG连接线接入待测试故障机620;The touch screen detection device 610 of the whole machine and the faulty machine 620 to be tested, the touch screen detection device 610 of the whole machine is connected to the faulty machine 620 to be tested through the OTG connection line;
整机触摸屏检测装置610,用于在整机触摸屏检测装置610通过OTG连接线接入待测试故障机620后,以及待测试故障机620的触摸屏被触控后,读取待测试故障机中用于记录触摸屏对应事件信息的触摸屏设备文件,并识别触摸屏设备文件中的字节数,如果触摸屏设备文件中的字节数不为零,控制第一指示灯发出第一指示,第一指示用于表明待测试故障机的触摸屏不存在硬件故障问题;如果触摸屏设备文件中的字节数为零,控制第二指示灯发出第二指示,第二指示用于表明待测试故障机620的触摸屏存在硬件故障问题。The whole machine touch screen detection device 610 is used to read the information used in the fault machine to be tested after the touch screen detection device 610 of the whole machine is connected to the fault machine 620 to be tested through the OTG connection line, and after the touch screen of the fault machine 620 to be tested is touched. It is used to record the touch screen device file corresponding to the touch screen event information, and identify the number of bytes in the touch screen device file. If the number of bytes in the touch screen device file is not zero, control the first indicator light to send the first indication. The first indication is used for Show that the touch screen of the faulty machine to be tested does not have a hardware failure problem; if the number of bytes in the touch screen device file is zero, the second indicator light is controlled to send a second indication, and the second indication is used to indicate that there is hardware in the touch screen of the faulty machine to be tested 620 glitch problem.
其中,整机触摸屏检测装置610设置有USB接口,待测试故障机620设置有USB接口,整机触摸屏检测装置610与待测试故障机620之间基于USB接口,通过OTG连接线连接。Wherein, the touch screen detection device 610 of the whole machine is provided with a USB interface, and the failure machine 620 to be tested is provided with a USB interface.
作为一种可选的实施方式,整机触摸屏检测装置610具体用于在其通过OTG连接线接入待测试故障机620后,以及待测试故障机620的触摸屏被触控后,读取待测试故障机620中用于记录触摸屏对应事件信息的触摸屏设备文件,触摸屏被触控是指触摸屏被滑动和/或触摸屏上的虚拟按键被按压,触摸屏设备文件包括dev文件、input文件和eventX文件。As an optional implementation, the touch screen detection device 610 of the whole machine is specifically used to read the faulty machine 620 to be tested after it is connected to the faulty machine 620 to be tested through the OTG cable, and after the touch screen of the faulty machine 620 to be tested is touched, read the The touch screen device file used to record the corresponding event information of the touch screen in the faulty machine 620, the touch screen is touched means that the touch screen is slid and/or the virtual key on the touch screen is pressed, and the touch screen device file includes dev file, input file and eventX file.
作为一种可选的实施方式,在整机触摸屏检测装置610通过OTG连接线接入待测试故障机后,待测试故障机620检测到连接成功,向整机触摸屏检测装置610发送成功连接指示。整机触摸屏检测装置610还用于检测是否接收到待测试故障机620发送的成功连接指示;如果接收到待测试故障机620发送的成功连接指示,以及待测试故障机620的触摸屏被触控后,读取待测试故障机620中用于记录触摸屏对应事件信息的触摸屏设备文件。As an optional implementation, after the touch screen detection device 610 of the whole machine is connected to the faulty machine to be tested through the OTG cable, the faulty machine 620 to be tested detects that the connection is successful, and sends a successful connection indication to the touch screen detection device 610 of the whole machine. The touch screen detection device 610 of the whole machine is also used to detect whether the successful connection instruction sent by the faulty machine 620 to be tested is received; , read the touch screen device file used to record the corresponding event information of the touch screen in the faulty machine 620 to be tested.
作为一种可选的实施方式,整机触摸屏检测装置610还用于,在其接收到待测试故障机620发送的成功连接指示之后,以及待测试故障机620检测到触摸屏被触控之后,检测是否接收到外部输入的读取指令;如果检测到外部输入的读取指令,读取待测试故障机620中用于记录触摸屏对应事件信息的触摸屏设备文件。As an optional implementation, the device 610 for detecting the touch screen of the whole machine is also used to detect the Whether an externally input read command is received; if an externally input read command is detected, the touch screen device file used for recording the corresponding event information of the touch screen in the faulty machine 620 to be tested is read.
作为一种可选的实施方式,整机触摸屏检测装置610还用于,在其通过OTG连接线接入待测试故障机620后,获取待测试故障机620中电池的工作温度;判断工作温度是否超过待测试故障机620电池的预设温度阀值;如果工作温度超过待测试故障机620电池的预设温度阀值,控制第三指示灯发出第三指示,第三指示用于表明待测试故障机620电池的工作温度超过预设温度阀值。As an optional embodiment, the whole machine touch screen detection device 610 is also used to obtain the operating temperature of the battery in the faulty machine 620 to be tested after it is connected to the faulty machine 620 to be tested through an OTG connection line; Exceed the preset temperature threshold of the battery of the fault machine 620 to be tested; if the operating temperature exceeds the preset temperature threshold of the battery of the fault machine 620 to be tested, control the third indicator light to send a third indication, and the third indication is used to indicate the fault to be tested The working temperature of the machine 620 battery exceeds the preset temperature threshold.
另外,整机触摸屏检测装置610和待测试故障机620还可以参阅上述方法实施例和装置实施例中的详细介绍,在此不再赘述。In addition, for the touch screen detection device 610 of the whole machine and the faulty machine 620 to be tested, reference may also be made to the detailed introductions in the above-mentioned method embodiments and device embodiments, and details are not repeated here.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(CompactDisc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes read-only Memory (Read-Only Memory, ROM), Random Access Memory (Random Access Memory, RAM), Programmable Read-Only Memory (Programmable Read-only Memory, PROM), Erasable Programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CompactDisc Read -Only Memory, CD-ROM) or other optical disk storage, magnetic disk storage, tape storage, or any other computer-readable medium that can be used to carry or store data.
以上对本发明实施例公开的一种整机触摸屏检测方法及装置、系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The above is a detailed introduction to the whole machine touch screen detection method, device and system disclosed in the embodiment of the present invention. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiment is only for helping Understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification is not It should be understood as a limitation of the present invention.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611241688.8A CN106815105B (en) | 2016-12-29 | 2016-12-29 | Complete machine touch screen detection method, device and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611241688.8A CN106815105B (en) | 2016-12-29 | 2016-12-29 | Complete machine touch screen detection method, device and system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106815105A CN106815105A (en) | 2017-06-09 |
| CN106815105B true CN106815105B (en) | 2019-11-05 |
Family
ID=59110500
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611241688.8A Expired - Fee Related CN106815105B (en) | 2016-12-29 | 2016-12-29 | Complete machine touch screen detection method, device and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106815105B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107748633B (en) * | 2017-09-28 | 2022-04-22 | 努比亚技术有限公司 | Solution for terminal screen freezing, terminal and computer readable storage medium |
| CN108132074B (en) * | 2017-11-10 | 2024-08-09 | 长沙格力暖通制冷设备有限公司 | Entropy detection test timing device, method, storage medium and entropy detection test station |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104008031A (en) * | 2014-05-23 | 2014-08-27 | 张滨 | Method and device for testing response time of capacitive touch screen |
| CN105807966A (en) * | 2014-12-30 | 2016-07-27 | 鸿合科技有限公司 | Touch screen event acquisition method and apparatus |
| CN105812421A (en) * | 2014-12-30 | 2016-07-27 | Tcl集团股份有限公司 | Remote control method based on Android platform and device thereof |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9165531B2 (en) * | 2013-05-27 | 2015-10-20 | Google Technology Holdings LLC | System for detecting display driver error when failing to receive a synchronization signal and method thereof |
| CN103294321A (en) * | 2013-06-06 | 2013-09-11 | 敦泰科技有限公司 | Touch control display device |
-
2016
- 2016-12-29 CN CN201611241688.8A patent/CN106815105B/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104008031A (en) * | 2014-05-23 | 2014-08-27 | 张滨 | Method and device for testing response time of capacitive touch screen |
| CN105807966A (en) * | 2014-12-30 | 2016-07-27 | 鸿合科技有限公司 | Touch screen event acquisition method and apparatus |
| CN105812421A (en) * | 2014-12-30 | 2016-07-27 | Tcl集团股份有限公司 | Remote control method based on Android platform and device thereof |
Non-Patent Citations (2)
| Title |
|---|
| Android多点触摸屏输入系统的设计与实现;石坚等;《计算机工程与应用》;20121231;第1-5页 * |
| 触摸屏常见故障诊断与维修实例;阎巍山等;《黑龙江冶金》;20111231;第1-3页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106815105A (en) | 2017-06-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI510913B (en) | Test device and test method thereof | |
| CN104571670B (en) | Detection method and system of touch device | |
| CN103197888B (en) | The display control method and device of a kind of parameter interface | |
| US20160085699A1 (en) | Enabling method and enabling device for debugging port of terminal, and terminal | |
| CN107450773B (en) | A kind of anti-mistouch method, terminal and computer-readable storage medium | |
| CN104777987A (en) | Method and device for controlling intelligent watch | |
| US20130113751A1 (en) | Acoustic Touch Sensitive Testing | |
| CN107145782A (en) | A kind of recognition methods, mobile terminal and the server of abnormal application program | |
| WO2018233136A1 (en) | Touch response method, human-computer interaction device, chip and smart device | |
| US9405393B2 (en) | Information processing device, information processing method and computer program | |
| CN105334966A (en) | Method, device and terminal equipment for preventing misoperation | |
| CN106815105B (en) | Complete machine touch screen detection method, device and system | |
| CN104199608B (en) | The method of quick open record and touch terminal on touching terminal | |
| CN108780709B (en) | System and method for providing functional safety monitoring of relay contacts | |
| CN104462942B (en) | The detection method and system of mobile terminal trusted users input/output interface | |
| CN102722430B (en) | Method and device for detecting hot plug of secure digital card | |
| WO2021036718A1 (en) | Touch point determining method and device | |
| CN203838674U (en) | Touch device hardware of notebook computer | |
| TWI694358B (en) | Touch sensitive processing apparatus, electronic system and method thereof for configuring interconnection parameters with touch panel | |
| CN105511786B (en) | The removing method and system of touch-screen button failure | |
| WO2018227475A1 (en) | Fingerprint chip detection method, device and system | |
| CN111625174A (en) | Touch screen control method and device, electronic equipment and storage medium | |
| CN110825572A (en) | Method, device and system for detecting I2C equipment address and electronic equipment | |
| WO2016070465A1 (en) | Method and terminal for multi-event input | |
| US20170220179A1 (en) | Cross device gesture detection |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191105 |