CN109144314A - The control method and device of USB touch screen - Google Patents

The control method and device of USB touch screen Download PDF

Info

Publication number
CN109144314A
CN109144314A CN201810907837.2A CN201810907837A CN109144314A CN 109144314 A CN109144314 A CN 109144314A CN 201810907837 A CN201810907837 A CN 201810907837A CN 109144314 A CN109144314 A CN 109144314A
Authority
CN
China
Prior art keywords
usb
touch screen
current state
usb hub
abnormality
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.)
Pending
Application number
CN201810907837.2A
Other languages
Chinese (zh)
Inventor
卢毅强
傅纬球
伍硕群
梁健聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GUANGDONG TELEPOWER COMMUNICATION CO Ltd
Original Assignee
GUANGDONG TELEPOWER COMMUNICATION CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GUANGDONG TELEPOWER COMMUNICATION CO Ltd filed Critical GUANGDONG TELEPOWER COMMUNICATION CO Ltd
Priority to CN201810907837.2A priority Critical patent/CN109144314A/en
Publication of CN109144314A publication Critical patent/CN109144314A/en
Pending legal-status Critical Current

Links

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

Abstract

The present invention provides the control method of USB touch screen and devices, comprising: the current state of detection general-purpose serial bus USB touch screen;Judge whether current state is in abnormality;If current state is in abnormality, start universal serial bus concentrator USB HUB reset control circuit;The reset that USB HUB reset control circuit control USB HUB carries out lower electricity and powers on, makes USB touch screen be mounted to system again, solves the stability problem of the touch screen being connected with USB interface on intelligent devices, keep touch screen stable, at low cost.

Description

The control method and device of USB touch screen
Technical field
The present invention relates to user terminal control technology fields, more particularly, to the control method and device of USB touch screen.
Background technique
Currently, some smart machines are connected by USB interface with touch screen, the USB interface on some smart machines is hard Part or software design are unstable, occur hanging dead the case where can not even restoring sometimes so as to cause USB touch screen.
Summary of the invention
In view of this, solving and being connect with USB the purpose of the present invention is to provide the control method of USB touch screen and device The stability problem of the connected touch screen of mouth on intelligent devices, keeps touch screen stable, at low cost.
In a first aspect, the embodiment of the invention provides the control methods of USB touch screen, which comprises
Detect the current state of general-purpose serial bus USB touch screen;
Judge whether the current state is in abnormality;
If the current state is in the abnormality, start universal serial bus concentrator USB HUB reset Control circuit;
The reset that the USB HUB reset control circuit control USB HUB carries out lower electricity and powers on, touches the USB Screen is mounted to system again.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein institute It states and judges whether the current state is abnormality, comprising:
If the current state is not at the abnormality, the state of the USB touch screen is continued to test.
With reference to first aspect, the embodiment of the invention provides second of possible embodiments of first aspect, wherein institute Stating abnormality is without return information or to return to status of fail information at least once within a preset time.
With reference to first aspect, the embodiment of the invention provides the third possible embodiments of first aspect, wherein institute The system of stating includes linux operating system, Android Android operation system and real-time multi-task operating system uCos.
With reference to first aspect, the embodiment of the invention provides the 4th kind of possible embodiments of first aspect, wherein institute Stating USB HUB includes multiple USB ports.
Second aspect, the embodiment of the invention provides the control device of USB touch screen, described device includes:
Central processor CPU, USB HUB reset control circuit, USB HUB and USB touch screen, wherein the USB is touched Screen includes single-chip microcontroller;
The CPU is connected with the USB HUB reset control circuit and the USB HUB respectively, and the USB HUB is multiple Position control circuit is connected with the USB HUB, and the USB HUB is connected with the USB touch screen;
The single-chip microcontroller leads to for detecting the current state of general-purpose serial bus USB touch screen, and by the current state It crosses the USB HUB and is sent to the CPU;
The CPU, the current state sent for receiving the single-chip microcontroller, and judge whether the current state is located Start USB HUB reset control circuit if the current state is in the abnormality in abnormality;
The USB HUB reset control circuit, the reset for carrying out lower electricity for controlling the USB HUB and powering on, makes institute It states USB touch screen and is mounted to system again.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein institute Single-chip microcontroller is stated, is also used to continue to test the USB touch screen in the case where the current state is not at the abnormality State.
In conjunction with second aspect, the embodiment of the invention provides second of possible embodiments of second aspect, wherein institute Stating abnormality is without return information or to return to status of fail information at least once within a preset time.
In conjunction with second aspect, the embodiment of the invention provides the third possible embodiments of second aspect, wherein institute The system of stating includes linux operating system, Android Android operation system and real-time multi-task operating system uCos.
In conjunction with second aspect, the embodiment of the invention provides the 4th kind of possible embodiments of second aspect, wherein institute Stating USB HUB includes multiple USB ports.
The embodiment of the invention provides the control method of USB touch screen and devices, comprising: detection general-purpose serial bus USB The current state of touch screen;Judge whether current state is in abnormality;If current state is in abnormality, start Universal serial bus concentrator USB HUB reset control circuit;USB HUB reset control circuit control USB HUB carries out lower electricity With the reset powered on, USB touch screen is made to be mounted to system again, solves the touch screen being connected with USB interface in smart machine On stability problem, keep touch screen stable, it is at low cost.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification, claims And specifically noted structure is achieved and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the control method flow chart for the USB touch screen that the embodiment of the present invention one provides;
Fig. 2 is the control device schematic diagram of USB touch screen provided by Embodiment 2 of the present invention;
Fig. 3 is USB HUB reset control circuit structural schematic diagram provided by Embodiment 2 of the present invention;
Fig. 4 is USB HUB electrical block diagram provided by Embodiment 2 of the present invention.
Icon:
10-CPU;20-USB HUB reset control circuit;30-USB HUB;40-USB touch screen;41- single-chip microcontroller.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than Whole embodiments.
Based on the embodiments of the present invention, those of ordinary skill in the art are obtained without making creative work The every other embodiment obtained, shall fall within the protection scope of the present invention.
For in the prior art, some smart machines are connected by USB interface with touch screen, on some smart machines USB interface hardware or software design are unstable, occur hanging dead the case where can not even restoring sometimes so as to cause USB touch screen.
The embodiment of the invention provides the control method of USB touch screen and devices, comprising: detection general-purpose serial bus USB The current state of touch screen;Judge whether current state is in abnormality;If current state is in abnormality, start Universal serial bus concentrator USB HUB reset control circuit;USB HUB reset control circuit control USB HUB carries out lower electricity With the reset powered on, USB touch screen is made to be mounted to system again, solves the touch screen being connected with USB interface in smart machine On stability problem, keep touch screen stable, it is at low cost.
To be described in detail to the embodiment of the present invention below convenient for understanding the present embodiment.
Embodiment one:
Fig. 1 is the control method flow chart for the USB touch screen that the embodiment of the present invention one provides.
Referring to Fig.1, method includes the following steps:
Step S101 detects the current state of USB (Universal Serial Bus, universal serial bus) touch screen;
Step S102, judges whether current state is in abnormality;If current state is in abnormality, execute Step S103;If current state is not at abnormality, step S101 is continued to execute;
Here, by detecting the current state of USB touch screen, and judge that current state is in abnormality or normal State.
It if it is abnormality, then needs to start USB HUB reset control circuit, passes through USB HUB reset control circuit It controls the lower electricity of USB HUB and powers on;
If being not at abnormality, the state of USB touch screen is detected again.
Step S103 starts Universal USB HUB (Universal Serial Bus HUB, universal serial bus concentrator) Reset control circuit;
The reset that step S104, USB HUB reset control circuit control USB HUB carries out lower electricity and powers on, touches USB Screen is mounted to system again.
Here, lower electricity typically refers to shut down, and powers on and typically refers to be switched on, and USB HUB reset control circuit controls USB HUB The reset shut down and be switched on makes USB touch screen be mounted to system again, to improve the stability of USB touch screen.
Further, abnormality is that without return information or return, status of fail is believed at least once within a preset time Breath.
Further, system includes linux operating system, Android Android operation system and real-time multi-task operation system Unite uCos.
Further, USB HUB includes multiple USB ports.
The embodiment of the invention provides the control method of USB touch screen and devices, comprising: detection general-purpose serial bus USB The current state of touch screen;Judge whether current state is in abnormality;If current state is in abnormality, start Universal serial bus concentrator USB HUB reset control circuit;USB HUB reset control circuit control USB HUB carries out lower electricity With the reset powered on, USB touch screen is made to be mounted to system again, solves the touch screen being connected with USB interface in smart machine On stability problem, keep touch screen stable, it is at low cost.
Embodiment two:
Fig. 2 is the control device schematic diagram of USB touch screen provided by Embodiment 2 of the present invention.
Referring to Fig. 2, which includes: CPU (Central Processing Unit, central processing unit) 10, USB HUB Reset control circuit 20, USB HUB30 and USB touch screen 40, wherein USB touch screen 40 includes single-chip microcontroller 41;
CPU10 is connected with USB HUB reset control circuit 20 and USB HUB30 respectively, USB HUB reset control circuit 20 are connected with USB HUB30, and USB HUB30 is connected with USB touch screen 40;
Single-chip microcontroller 41 is sent for detecting the current state of USB touch screen 40, and by current state by USB HUB30 To CPU10;
CPU10 for receiving the current state of the transmission of single-chip microcontroller 41, and judges whether current state is in abnormality, If current state is in abnormality, start USB HUB reset control circuit 20;
Here, when CPU10 receives the current state of the USB touch screen 40 of the transmission of single-chip microcontroller 41, and determining USB touch When the current state of screen 40 is abnormality, CPU10 starts USB HUB reset control circuit 20.
USB HUB reset control circuit 20, the reset for carrying out lower electricity for controlling USB HUB30 and powering on, touches USB Screen 40 is mounted to system again.
Here, after USB HUB reset control circuit 20 starts, the USB HUB30 of control connection USB touch screen 40 is carried out down Electricity and the reset powered on improve the stability of USB touch screen 40 so that USB touch screen 40 be made to be mounted to system again.
Specifically, referring to Fig. 3, USB HUB reset control circuit 20 controls the lower electricity of USB HUB30 by GPI03_B6_u With the reset powered on.
Further, single-chip microcontroller 41 are also used to continue to test USB in the case where current state is not at abnormality The state of touch screen 40.
Further, abnormality is that without return information or return, status of fail is believed at least once within a preset time Breath.
Further, system includes linux operating system, Android Android operation system and real-time multi-task operation system Unite uCos.
Further, USB HUB30 includes multiple USB ports.
Here, since the USB port of CPU10 offer is limited, USB port is extended by using the mode of USB HUB30.
Specifically, referring to Fig. 4, USB HUB30 includes the port TP1-DM and the port TP1-DP, the port TP1-DM and TP1-DP Port is connected with USB HUB reset control circuit 20.
The embodiment of the invention provides the control devices of USB touch screen, comprising: detection general-purpose serial bus USB touch screen Current state;Judge whether current state is in abnormality;If current state is in abnormality, start general string Row bus hub USB HUB reset control circuit;USB HUB reset control circuit control USB HUB carries out lower electricity and powers on Reset, so that USB touch screen is mounted to system again, solve the touch screen being connected with USB interface on intelligent devices steady Qualitative question keeps touch screen stable, at low cost.
The embodiment of the present invention also provides a kind of electronic equipment, including memory, processor and storage are on a memory and can The computer program run on a processor, processor realize that USB provided by the above embodiment is touched when executing computer program The step of control method of screen.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the step of control method of USB touch screen of above-described embodiment is executed when computer program is run by processor.
Computer program product provided by the embodiment of the present invention, the computer-readable storage including storing program code Medium, the instruction that said program code includes can be used for executing previous methods method as described in the examples, and specific implementation can be joined See embodiment of the method, details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description It with the specific work process of device, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In addition, in the description of the embodiment of the present invention unless specifically defined or limited otherwise, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary Connection inside two elements.
For the ordinary skill in the art, above-mentioned term in the present invention specific can be understood with concrete condition Meaning.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
In the description of the present invention, it should be noted that term " center ", "upper", "lower", "left", "right", "vertical", The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to Convenient for description the present invention and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation, It is constructed and operated in a specific orientation, therefore is not considered as limiting the invention.
In addition, term " first ", " second ", " third " are used for description purposes only, it is not understood to indicate or imply phase To importance.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of control method of USB touch screen, which is characterized in that the described method includes:
Detect the current state of general-purpose serial bus USB touch screen;
Judge whether the current state is in abnormality;
If the current state is in the abnormality, starts universal serial bus concentrator USB HUB and reset control Circuit;
The reset that the USB HUB reset control circuit control USB HUB carries out lower electricity and powers on, makes the USB touch screen weight Newly it is mounted to system.
2. the control method of USB touch screen according to claim 1, which is characterized in that the judgement current state It whether is abnormality, comprising:
If the current state is not at the abnormality, the state of the USB touch screen is continued to test.
3. the control method of USB touch screen according to claim 1, which is characterized in that the abnormality is default Without return information or status of fail information at least once is returned in time.
4. the control method of USB touch screen according to claim 1, which is characterized in that the system comprises linux operations System, Android Android operation system and real-time multi-task operating system uCos.
5. the control method of USB touch screen according to claim 1, which is characterized in that the USB HUB includes multiple USB port.
6. a kind of control device of USB touch screen, which is characterized in that described device includes: central processor CPU, USB HUB multiple Position control circuit, USB HUB and USB touch screen, wherein the USB touch screen includes single-chip microcontroller;
The CPU is connected with the USB HUB reset control circuit and the USB HUB respectively, and the USB HUB resets control Circuit processed is connected with the USB HUB, and the USB HUB is connected with the USB touch screen;
The single-chip microcontroller passes through institute for detecting the current state of general-purpose serial bus USB touch screen, and by the current state It states USB HUB and is sent to the CPU;
The CPU, the current state sent for receiving the single-chip microcontroller, and judge whether the current state is in different Normal state starts USB HUB reset control circuit if the current state is in the abnormality;
The USB HUB reset control circuit, the reset for carrying out lower electricity for controlling the USB HUB and powering on, makes the USB Touch screen is mounted to system again.
7. the control device of USB touch screen according to claim 6, which is characterized in that the single-chip microcontroller is also used in institute It states in the case that current state is not at the abnormality, continues to test the state of the USB touch screen.
8. the control device of USB touch screen according to claim 6, which is characterized in that the abnormality is default Without return information or status of fail information at least once is returned in time.
9. the control device of USB touch screen according to claim 6, which is characterized in that the system comprises linux operations System, Android Android operation system and real-time multi-task operating system uCos.
10. the control device of USB touch screen according to claim 6, which is characterized in that the USB HUB includes multiple USB port.
CN201810907837.2A 2018-08-09 2018-08-09 The control method and device of USB touch screen Pending CN109144314A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810907837.2A CN109144314A (en) 2018-08-09 2018-08-09 The control method and device of USB touch screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810907837.2A CN109144314A (en) 2018-08-09 2018-08-09 The control method and device of USB touch screen

Publications (1)

Publication Number Publication Date
CN109144314A true CN109144314A (en) 2019-01-04

Family

ID=64792633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810907837.2A Pending CN109144314A (en) 2018-08-09 2018-08-09 The control method and device of USB touch screen

Country Status (1)

Country Link
CN (1) CN109144314A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112437335A (en) * 2020-11-11 2021-03-02 海信视像科技股份有限公司 Display equipment and external equipment connection processing method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200993778Y (en) * 2006-12-29 2007-12-19 佛山市顺德区顺达电脑厂有限公司 Fault detecting device
CN102103528A (en) * 2009-12-22 2011-06-22 杭州华三通信技术有限公司 Device and method for carrying out recovery control on exceptions of USB (universal serial bus) device identification and USB host
CN202649997U (en) * 2012-03-01 2013-01-02 深圳市蓝海华腾技术有限公司 Detection and recovery device for USB communication port, and communication equipment
CN203733111U (en) * 2014-03-03 2014-07-23 山西科泰微技术有限公司 USB transmission interrupt automatic recovery device
CN103955414A (en) * 2014-04-24 2014-07-30 深圳市道通科技有限公司 Self-restoration method and device of USB (universal serial bus) Host fault
WO2017138271A1 (en) * 2016-02-12 2017-08-17 株式会社デンソー Abnormality monitoring device and electric power steering device using same

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200993778Y (en) * 2006-12-29 2007-12-19 佛山市顺德区顺达电脑厂有限公司 Fault detecting device
CN102103528A (en) * 2009-12-22 2011-06-22 杭州华三通信技术有限公司 Device and method for carrying out recovery control on exceptions of USB (universal serial bus) device identification and USB host
CN202649997U (en) * 2012-03-01 2013-01-02 深圳市蓝海华腾技术有限公司 Detection and recovery device for USB communication port, and communication equipment
CN203733111U (en) * 2014-03-03 2014-07-23 山西科泰微技术有限公司 USB transmission interrupt automatic recovery device
CN103955414A (en) * 2014-04-24 2014-07-30 深圳市道通科技有限公司 Self-restoration method and device of USB (universal serial bus) Host fault
WO2017138271A1 (en) * 2016-02-12 2017-08-17 株式会社デンソー Abnormality monitoring device and electric power steering device using same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112437335A (en) * 2020-11-11 2021-03-02 海信视像科技股份有限公司 Display equipment and external equipment connection processing method thereof

Similar Documents

Publication Publication Date Title
CN101354677B (en) Method for detecting and restoring application program running state and restoring device thereof
US20120192003A1 (en) Computer status monitoring device, computer monitoring system and computer status monitoring method
CN102662727B (en) The creation method of virtual machine and device
WO2015096033A1 (en) Method for detecting whether hardware of intelligent terminal is running abnormally and intelligent terminal
CN109431252A (en) Water shortage detection method, device and the intelligent appliance of intelligent appliance
CN110068789A (en) The monitoring method and circuit of electric energy calendar life
CN109144314A (en) The control method and device of USB touch screen
CN108363611A (en) Method for managing security, device and the omnidirectional system of virtual machine
CN103440146A (en) BIOS updating method based on cloud storage
CN106557362B (en) Task migration method and system applied to intelligent robot
CN108710304B (en) Client operation management method and client
JP6085969B2 (en) Electronic apparatus and method for determining device connection availability
CN110869778A (en) Phase sequence detection method of three-phase power grid and related device
CN106845553B (en) Load characteristic identification mechanism, method and auto-power-off device
CN106372502B (en) A kind of method, apparatus and terminal limiting closing application program
JP6153326B2 (en) Demand response adapters that connect devices to demand response systems or home automation systems, devices and such demand response adapters, and their use
CN109975608A (en) The power grid type judgement method of three-phase electric energy meter, device and system
CN115421859B (en) Dynamic loading method and device for configuration file, computer equipment and storage medium
CN110702969A (en) Method and device for identifying voltage mode and power supply
CN108920337A (en) A kind of device exception information methods of exhibiting and computer equipment
CN208834156U (en) On-load voltage regulation mechanism controls circuit monitoring system
CN109344107A (en) A kind of method and apparatus of linux system console setting
CN109085414A (en) Voltage detection method and device
CN106210263B (en) Mobile terminal shutdown method and system and mobile terminal
CN108513013B (en) Mode control method, device, user terminal and readable storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190104