CN107992442A - It is a kind of that prosecutor method is returned based on USB touch - Google Patents

It is a kind of that prosecutor method is returned based on USB touch Download PDF

Info

Publication number
CN107992442A
CN107992442A CN201711403251.4A CN201711403251A CN107992442A CN 107992442 A CN107992442 A CN 107992442A CN 201711403251 A CN201711403251 A CN 201711403251A CN 107992442 A CN107992442 A CN 107992442A
Authority
CN
China
Prior art keywords
usb
touch
return
control
method based
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
CN201711403251.4A
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.)
Shenzhen Zidoo Technology Co Ltd
Original Assignee
Shenzhen Zidoo Technology 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 Shenzhen Zidoo Technology Co Ltd filed Critical Shenzhen Zidoo Technology Co Ltd
Priority to CN201711403251.4A priority Critical patent/CN107992442A/en
Publication of CN107992442A publication Critical patent/CN107992442A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Abstract

Prosecutor method is returned based on USB touch the invention discloses a kind of, this method comprises the following steps:101st, touch is obtained;Using the HID interface protocols of standard, hardware interface uses the standard of USB, it is possible to achieve the access of various Touch equipment.102nd, carry out touch and return control, USB slave devices are controlled by Touch equipment.The method that the present invention is realized, identifiable usb signal is changed into by Touch events, control can be carried out back to slave device using Touch equipment, is met the needs of people and is expanded the application of USB interface.

Description

It is a kind of that prosecutor method is returned based on USB touch
Technical field
The present invention relates to the technical field of communication interface, more particularly to one kind to realize USB device by USB touch events The method of control.
Background technology
Control of returning based on USB touch is that a kind of main equipment analyzes event by reading USB touch events, main equipment Process flow, then another slave device is distributed to, so that two slave devices can be controlled at the same time by reaching a touch equipment, And conveniently handle event.
Typical application is combined together with HDMI IN input sources, one HDMI IN interface of main equipment band and USB Device interfaces, so as to show and control the slave device of access.
USB equipment is to use most wide interface equipment at present, versatile.But there is presently no will by USB interface Touch events change into identifiable usb signal, are controlled the slave device that USB interface is connected.
As patent application 201710247096.5 discloses audio-visual education programme a kind of energy-efficient and with higher using experience degree All-in-one machine, including aluminium alloy frame body and cover-plate glass;The aluminium alloy frame body back side is provided with iron-clad rear cover, and in aluminium alloy frame body Front sets control button and preposition key computer switch button and preposition key TV switch key;Further include and be arranged at framework Positive infrared sensor;Framework two bottom sides offer loudspeaker sound emitting hole respectively, and control button and preposition key computer are opened Close button and preposition key TV switch key are arranged between two loudspeaker sound emitting holes;Framework left side top offers HDMI and connects Mouthful, TOUCH-USB interfaces and network connection interface, framework left side lower part offer PC-USB interfaces, TV-USB interfaces and VGA audio interface;The supporting rack being provided with for connecting external object is covered after the iron-clad of the framework back side, the design can save energy Source, energy conservation and environmental protection, while service life of a machine can also be extended, it is user-friendly, the design is simple in structure, easy to use, Ke Yida To good using effect.
However, patent application TOUCH-USB interfaces are the USB interfaces for iPhone Touch, it is still using USB Interface realizes the triggering and processing of event, Touch events can not be changed into identifiable usb signal, for this reason, there is an urgent need to one Kind solution, to meet the needs of people, and expands the application of USB interface.
The content of the invention
For shortcoming present in above-mentioned technology, the present invention provides a kind of time prosecutor method based on USB touch, should Touch events can be changed into identifiable usb signal by method, met the needs of people and expanded the application of USB interface.
Prosecutor method is returned based on USB touch it is a further object to provide a kind of, this method is using standard HID device realization, energy compatible various device systems, such as ISO, window, linux, android etc. well, and be to exempt from Drive, it is easy to accomplish.
To achieve the above object, the present invention is realized in.
It is a kind of that prosecutor method is returned based on USB touch, it is characterised in that this method comprises the following steps:
101st, touch is obtained;
Using the HID interface protocols of standard, hardware interface uses the standard of USB, it is possible to achieve the access of various Touch equipment.
102nd, carry out touch and return control, USB slave devices are controlled by Touch equipment.
The touch returns control and has specifically included the following steps:
1021st, virtual USB HID device;
Further, the USB port for initializing slave device first is the PID and VIDE of device mouthfuls of USB, then write device, is write The descriptor of equipment, using the HID device descriptor of standard, supports Touch functions.At this time, it is already possible to pass through device node Write control word.
1022nd, virtual USB HID device is controlled.
Specifically, include the following steps:
10221st, the Touch values of Touch equipment USB nodes are read;
10222nd, the coordinate of Touch is got;
10223rd, judge that coordinate points are the display interfaces of USB node devices, or Android primary display interface;
10224th, if the display interface of USB node devices, then control slave device is returned;If Android primary display interface, then Give Android system processing.
Control slave device is decided whether to back again.If returning control slave device, control flow at this time is as follows:
Further, if to carry out back control slave device, control flow at this time is as follows:
201:The device node of open slave devices USB;
202:Write returns control numerical value;
203:Flush returns control numerical value;
204:release;
205:The device node of close slave devices USB.
The method that the present invention is realized, changes into identifiable usb signal by Touch events, can utilize Touch equipment pair Slave device carries out back control, meets the needs of people and expands the application of USB interface.
And this method realizes simplicity, easily operated, cost of implementation is low.
Brief description of the drawings
Fig. 1 is the structure diagram that the present invention is realized.
Fig. 2 is a kind of schematic diagram for concrete application that the present invention connects computer with TV.
Embodiment
In order to more clearly state the present invention, the present invention is further described below in conjunction with the accompanying drawings.
Refering to Figure 1, prosecutor method, shown in figure, main control device are returned based on USB touch to be provided by the invention It is connected with Touch equipment by 1 interfaces of USB, is connected by 2 interfaces of USB with slave device, in the concrete realization, this method bag Include following steps:
101st, touch is obtained;
Using the HID interface protocols of standard, hardware interface uses the standard of USB, it is possible to achieve the access of various Touch equipment.
102nd, carry out touch and return control.
The touch returns control and has specifically included the following steps:
1021st, virtual USB HID device;
The mouth for initializing the USB 2 of slave device first is the PID and VIDE of device mouthfuls of USB, then write device, and write-in is set Standby descriptor, using the HID device descriptor of standard, supports Touch functions.At this time, it is already possible to write by device node Enter control word.
1022nd, virtual USB HID device is controlled.
Specifically, the Touch values of 1 nodes of Touch equipment USB are read, application processing can be given, then decide whether to back Control slave device.
Include the following steps:
10221st, the Touch values of Touch equipment USB nodes are read;
10222nd, the coordinate of Touch is got;
10223rd, judge that coordinate points are the display interfaces of USB node devices, or Android primary display interface;
10224th, if the display interface of USB node devices, then control slave device is returned;If Android primary display interface, then Give Android system processing.
If carrying out back control slave device, control flow at this time is as follows:
201:The device node of open slave devices USB;
202:Write returns control numerical value;
203:Flush returns control numerical value;
204:release;
205:The device node of close slave devices USB.
With reference to shown in Fig. 2, the method realized of the present invention, is mainly used for after display device large-size screen monitors shows, by processing greatly Event can be fed back to display device after screen event, for example computer is connected to main equipment by HDMI wire, then projected tactile Touch TV.TV is touched as Touch equipment, main control device is connected to by USB interface;Computer is connect as slave device by HDMI Mouth is connected to main control device, passes through the computer display picture for handling and touching on TV, it is possible to control computer.Equivalent to by computer Operate after screen magnifying, be of great importance in meeting, education, display field again.
Therefore, the method realized, identifiable usb signal is changed into by Touch events, can utilize Touch equipment pair Slave device carries out back control, meets the needs of people and expands the application of USB interface.
And this method realizes simplicity, easily operated, cost of implementation is low.
Disclosed above is only several specific embodiments of the present invention, but the present invention is not limited to this, any ability What the technical staff in domain can think change should all fall into protection scope of the present invention.

Claims (6)

1. a kind of return prosecutor method based on USB touch, it is characterised in that this method comprises the following steps:
101st, touch is obtained;
Using the HID interface protocols of standard, hardware interface uses the standard of USB, it is possible to achieve the access of various Touch equipment;
102nd, carry out touch and return control, USB slave devices are controlled by Touch equipment.
2. according to claim 1 return prosecutor method based on USB touch, it is characterised in that the touch returns control tool Body includes the following steps:
1021st, virtual USB HID device;
1022nd, virtual USB HID device is controlled.
3. according to claim 2 return prosecutor method based on USB touch, it is characterised in that 1021 steps In, the USB port for initializing slave device first is the PID and VIDE of device mouthfuls of USB, then write device, and write device is retouched Symbol is stated, using the HID device descriptor of standard, supports Touch functions.
4. according to claim 2 return prosecutor method based on USB touch, it is characterised in that in 1022 step, reads The Touch values of Touch equipment USB nodes are taken, are handled to application, then decide whether to back control slave device.
5. according to claim 4 return prosecutor method based on USB touch, it is characterised in that in 1022 step, bag Include following steps:
10221st, the Touch values of Touch equipment USB nodes are read;
10222nd, the coordinate of Touch is got;
10223rd, judge that coordinate points are the display interfaces of USB node devices, or Android primary display interface;
10224th, if the display interface of USB node devices, then control slave device is returned;If Android primary display interface, then Give Android system processing.
6. according to claim 2 return prosecutor method based on USB touch, it is characterised in that if to return control slave device, Control flow at this time is as follows:
201:The device node of open slave devices USB;
202:Write returns control numerical value;
203:Flush returns control numerical value;
204:release;
205:The device node of close slave devices USB.
CN201711403251.4A 2017-12-22 2017-12-22 It is a kind of that prosecutor method is returned based on USB touch Pending CN107992442A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711403251.4A CN107992442A (en) 2017-12-22 2017-12-22 It is a kind of that prosecutor method is returned based on USB touch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711403251.4A CN107992442A (en) 2017-12-22 2017-12-22 It is a kind of that prosecutor method is returned based on USB touch

Publications (1)

Publication Number Publication Date
CN107992442A true CN107992442A (en) 2018-05-04

Family

ID=62039560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711403251.4A Pending CN107992442A (en) 2017-12-22 2017-12-22 It is a kind of that prosecutor method is returned based on USB touch

Country Status (1)

Country Link
CN (1) CN107992442A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110225292A (en) * 2019-06-13 2019-09-10 深圳市闪联信息技术有限公司 A kind of conference control equipment and its exchange method based on two separate display

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382856A (en) * 2008-09-24 2009-03-11 广东威创视讯科技股份有限公司 Apparatus and method for implementing USB HID MOUSE function on touching device
CN102314287A (en) * 2010-07-05 2012-01-11 宏碁股份有限公司 Interactive display system and method
CN102880284A (en) * 2011-04-06 2013-01-16 捷讯研究有限公司 Remote user input
CN104679148A (en) * 2015-03-21 2015-06-03 张本军 Portable display control terminal equipment based on MHL (mobile high-definition link) technology
US20150234575A1 (en) * 2014-02-18 2015-08-20 Hyundai Motor Company System and method for controlling smart device mirroring of head unit for vehicle

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382856A (en) * 2008-09-24 2009-03-11 广东威创视讯科技股份有限公司 Apparatus and method for implementing USB HID MOUSE function on touching device
CN102314287A (en) * 2010-07-05 2012-01-11 宏碁股份有限公司 Interactive display system and method
CN102880284A (en) * 2011-04-06 2013-01-16 捷讯研究有限公司 Remote user input
US20150234575A1 (en) * 2014-02-18 2015-08-20 Hyundai Motor Company System and method for controlling smart device mirroring of head unit for vehicle
CN104679148A (en) * 2015-03-21 2015-06-03 张本军 Portable display control terminal equipment based on MHL (mobile high-definition link) technology

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110225292A (en) * 2019-06-13 2019-09-10 深圳市闪联信息技术有限公司 A kind of conference control equipment and its exchange method based on two separate display

Similar Documents

Publication Publication Date Title
CN108702446A (en) A kind of photographic method and terminal
WO2020151519A1 (en) Information input method, terminal device, and computer-readable storage medium
CN109614061B (en) Display method and terminal
WO2021017763A1 (en) Transaction processing method, terminal device, and computer-readable storage medium
CN103197801B (en) All-in-one and realize the method that external unit and built-in system touch simultaneously
CN109960813A (en) A kind of interpretation method, mobile terminal and computer readable storage medium
WO2019179054A1 (en) Three-dimensional virtual house showing method and apparatus, mobile terminal and storage medium
WO2021129538A1 (en) Control method and electronic device
CN103176744B (en) A kind of display equipment and its information processing method
WO2020156118A1 (en) Management method and terminal apparatus
CN110007835A (en) A kind of method for managing object and mobile terminal
WO2017032078A1 (en) Interface control method and mobile terminal
WO2020192322A1 (en) Display method and terminal device
CN109522278A (en) A kind of file memory method and terminal device
WO2020119517A1 (en) Input method control method and terminal device
CN108062194A (en) A kind of display methods, device and mobile terminal
CN110515521A (en) A kind of screenshot method and mobile terminal
CN109491632A (en) A kind of resource sharing method and terminal
CN109144393A (en) A kind of image display method and mobile terminal
CN109117054A (en) A kind of display control method and terminal
WO2020125405A1 (en) Control method for terminal apparatus, and terminal apparatus
CN108108113A (en) Webpage switching method and device
CN107992442A (en) It is a kind of that prosecutor method is returned based on USB touch
CN109871176A (en) A kind of object displaying method and terminal device
CN109542552A (en) A kind of display control method and terminal device

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