CN112118408A - Method for transmitting input event based on HDMI - Google Patents
Method for transmitting input event based on HDMI Download PDFInfo
- Publication number
- CN112118408A CN112118408A CN202010949605.0A CN202010949605A CN112118408A CN 112118408 A CN112118408 A CN 112118408A CN 202010949605 A CN202010949605 A CN 202010949605A CN 112118408 A CN112118408 A CN 112118408A
- Authority
- CN
- China
- Prior art keywords
- event
- data
- control host
- hdmi
- touch
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/765—Interface circuits between an apparatus for recording and another apparatus
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/015—High-definition television systems
Abstract
The invention discloses a method for transmitting an input event based on HDMI, comprising the following steps: step 1: the interactive display equipment and the control host are connected through an HDMI data line; step 2: sending an input event to the control host in a predefined data packet on the interactive display device, and identifying the input event by the control host; and step 3: the control host responds correspondingly according to the input event; the predefined packets, defined as the Vendor Specific Commands type, and the multimedia packets occupy different channels in the HDMI data transmission. The interactive display equipment receives and displays the multimedia data of the control host, and simultaneously sends the interactive data of the interactive display equipment to the control host in a predefined data packet mode, so that the control host performs corresponding operation without additionally increasing a connection interface, the cost and the complexity can be reduced, and the problem of interface occupation can be reduced.
Description
Technical Field
The invention relates to the field of interface communication, in particular to a method for transmitting an input event based on HDMI.
Background
Along with the development of scientific technology, video and voice processing technology has also made great progress, and meanwhile, the HDMI transmission high definition video and voice equipment is widely applied to various fields, and many HDMI equipment on the market at present have functions of a display and a loudspeaker, a touch screen and a key to meet the interaction requirement of a user and a host, and how to transmit the touch and key events of the user to the host in time is one of the problems to be solved in engineering.
The main application of HDMI today is to transmit video, sound to HDMI devices through a host, and the host obtains the properties of the devices from the HDMI devices. For example: HDMI devices integrate touch and key functionality, and most solutions to HDMI devices transmit touch and key functionality to the host by adding additional HID interfaces, such as USB interfaces, through which touch and key events are transmitted. The method has the disadvantages that the host and the HDMI device are required to be added with corresponding interfaces and leads, the cost and the complexity are increased, and in addition, the problems of interface occupation and bottom layer drive matching exist.
Disclosure of Invention
The invention aims to provide a method for transmitting an input event based on an HDMI (high-definition multimedia interface), which is used for solving the technical problems that in the prior art, an HDMI device transmits control signals such as touch and keys to a host, and an additional external interface is needed, so that the cost is increased and the interface is occupied.
The invention discloses a method for transmitting an input event based on HDMI.
The method
The method comprises the following steps:
step 1: the interactive display equipment and the control host are connected through an HDMI data line;
step 2: sending an input event to the control host in a predefined data packet on the interactive display device and being recognized by the control host;
and step 3: the control host responds correspondingly according to the input event;
the predefined packets and multimedia packets occupy different channels in the HDMI data transmission, the predefined packets being defined as the Vendor Specific Commands type.
Further, the interactive display device generates a touch event and/or a key event, sends the touch event and/or the key event to the control host through the predefined data packet, and completes corresponding control on the control host after being analyzed by the control host.
Further, the predefined packet occupies the CEC channel in the HDMI.
Further, the data packet includes:
a data header, wherein the data header is used for indicating the command type of the data packet and occupies one byte;
the length data symbol represents the number of bytes of data transmitted in sequence and occupies one byte;
the event type symbol is used for marking the type of the event transmitted thereafter, is divided into a touch event and a key event, and occupies one byte;
an event field comprising a plurality of bytes, each byte representing one of the data;
and the check data bit is positioned behind the event character segment and is used for checking the data head, the length data symbol, the event type symbol and the event character segment.
Further, in the above-mentioned case,
the data header is 0x1, which indicates that the data packet is an input event;
the event type symbols are 0x1 representing a touch event and 0x2 representing a key event.
Further, when the event type indicator is 0x1 indicating a touch event, the first byte of the event character segment is used to indicate a specific type of the touch event, that is: touch down is 0x1, touch move is 0x2, touch up is 0x 3; the second byte and the third byte of the event character segment respectively represent the horizontal and vertical coordinates of the touch position;
when the event type symbol is 0x2 representing a key event, the first byte of the event character segment is used for representing the specific type of the key event, the key is pressed to be 0x1, and the key is lifted to be 0x 2; the second byte of the event character segment represents the Identification (ID) corresponding to the key.
According to the invention, the interactive display equipment receives and displays the multimedia data of the control host, and simultaneously sends the interactive data of the interactive display equipment to the control host in a predefined data packet mode, so that the control host performs corresponding operation, and the control host and the interactive display equipment still adopt a communication mode based on HDMI, without additionally increasing a connection interface, so that the cost and complexity can be reduced, and the problem of interface occupation can be reduced.
Drawings
FIG. 1 is a schematic flow diagram of the present invention;
fig. 2 is a diagram of a packet structure of the present invention.
Detailed Description
The invention will be further elucidated and described with reference to the embodiments and drawings of the specification:
referring to fig. 1 and 2, a method for transmitting an input event based on HDMI according to the present invention includes the following steps:
step 1: and the interactive display equipment and the control host are connected through the HDMI data line.
Step 2: sending an input event to the control host in a predefined data packet on the interactive display device and recognized by the control host.
The predefined packets and multimedia packets occupy different channels in the HDMI data transmission, the predefined packets being defined as the Vendor Specific Commands type.
And step 3: and the control host responds correspondingly according to the input event.
One exemplary embodiment in the present invention is: and the interactive display equipment generates a touch event and/or a key event, sends the touch event and/or the key event to the control host through the predefined data packet, and completes corresponding control on the control host after the touch event and/or the key event is analyzed by the control host.
At this time, the interactive display device transmits the touch event and/or the key event occupying a CEC channel different from a multimedia channel on an HDMI data line in a predefined data packet format to the control host, and the control host performs a corresponding control action after receiving the touch event and/or the key event, or sends corresponding display data to the interactive display device, thereby realizing data interaction without increasing a data line or occupying an interface.
Referring to fig. 2, the predefined packet includes:
a header (command type) for indicating a command type of the packet, occupying one byte;
a length data symbol (length) which indicates the number of bytes of data transmitted in sequence and occupies one byte;
an event type indicator (input type), wherein the event type indicator is used for marking the type of an event transmitted thereafter, is divided into a touch event and a key event, and occupies one byte;
an event field (data 0-dataN) including a plurality of bytes each representing one data;
and a check data bit (checksum) located after the event character segment and used for checking the data header, the length data symbol, the event type symbol and the event character segment.
The data packet is as follows in table 1:
command type | length | input type | data 0 | data 1 | data 2 | …… | checksum |
TABLE 1
Wherein, the data header is 0x1, which indicates that the data packet is an input event;
the event type symbols are 0x1 representing a touch event and 0x2 representing a key event.
When the event type symbol is 0x1 representing a touch event, the first byte of the event character segment is used to represent a specific type of the touch event, that is: touch down is 0x1, touch move is 0x2, touch up is 0x 3; the second byte and the third byte of the event character segment respectively represent the horizontal and vertical coordinates of the touch position;
when the event type symbol is 0x2 representing a key event, the first byte of the event character segment is used for representing the specific type of the key event, the key is pressed to be 0x1, and the key is lifted to be 0x 2; the second byte of the event character segment represents the Identification (ID) corresponding to the key.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the protection scope of the present invention, although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims (6)
1. A method for transmitting an input event based on HDMI, comprising the steps of:
step 1: the interactive display equipment and the control host are connected through an HDMI data line;
step 2: sending an input event to the control host in a predefined data packet on the interactive display device and being recognized by the control host;
and step 3: the control host responds correspondingly according to the input event;
the predefined packets and multimedia packets occupy different channels in the HDMI data transmission, the predefined packets being defined as the Vendor Specific Commands type.
2. The method for transmitting input events based on HDMI as claimed in claim 1, wherein said interactive display device generates touch events and/or key events, and sends said touch events and/or said key events to said control host via predefined said data packets, and after being parsed by said control host, the corresponding control of said control host is completed.
3. The method of claim 2, wherein the predefined packet occupies a CEC channel in the HDMI.
4. The method of claim 3, wherein the packet comprises:
a data header, wherein the data header is used for indicating the command type of the data packet and occupies one byte;
the length data symbol represents the number of bytes of data transmitted in sequence and occupies one byte;
the event type symbol is used for marking the type of the event transmitted thereafter, is divided into a touch event and a key event, and occupies one byte;
an event field comprising a plurality of bytes, each byte representing one of the data;
and the check data bit is positioned behind the event character segment and is used for checking the data head, the length data symbol, the event type symbol and the event character segment.
5. The method for HDMI transmission of input events according to claim 4,
the data header is 0x1, which indicates that the data packet is an input event;
the event type symbols are 0x1 representing a touch event and 0x2 representing a key event.
6. The method for HDMI-based transmission of input events according to claim 5, wherein when said event type indicator is 0x1 indicating a touch event, said event field first byte is used to indicate a touch event-specific type: touch down is 0x1, touch move is 0x2, touch up is 0x 3; the second byte and the third byte of the event character segment respectively represent the horizontal and vertical coordinates of the touch position;
when the event type symbol is 0x2 representing a key event, the first byte of the event character segment is used for representing the specific type of the key event, the key is pressed to be 0x1, and the key is lifted to be 0x 2; the second byte of the event character segment represents the Identification (ID) corresponding to the key.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010949605.0A CN112118408B (en) | 2020-09-10 | 2020-09-10 | Method for transmitting input event based on HDMI |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010949605.0A CN112118408B (en) | 2020-09-10 | 2020-09-10 | Method for transmitting input event based on HDMI |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112118408A true CN112118408A (en) | 2020-12-22 |
CN112118408B CN112118408B (en) | 2023-03-24 |
Family
ID=73803528
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010949605.0A Active CN112118408B (en) | 2020-09-10 | 2020-09-10 | Method for transmitting input event based on HDMI |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112118408B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008084366A (en) * | 2006-09-26 | 2008-04-10 | Sharp Corp | Information processing device and video recording system |
US20090093164A1 (en) * | 2007-10-03 | 2009-04-09 | Microsoft Corporation | High-definition connector for televisions |
US20110228715A1 (en) * | 2008-12-01 | 2011-09-22 | Keisuke Tsuji | Wireless transmission system |
US20140003794A1 (en) * | 2012-07-02 | 2014-01-02 | Kabushiki Kaisha Toshiba | Image processing apparatus |
US20160366470A1 (en) * | 2015-06-09 | 2016-12-15 | Qualcomm Incorporated | Tunneling hdmi data over wireless connections |
CN107959811A (en) * | 2017-12-20 | 2018-04-24 | 深圳市深智电科技有限公司 | A kind of tangible interactive HDMI IN are shown and processing method |
WO2019192878A1 (en) * | 2018-04-02 | 2019-10-10 | Arcelik Anonim Sirketi | A multiple screen display system with enhanced remote control efficiency |
-
2020
- 2020-09-10 CN CN202010949605.0A patent/CN112118408B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008084366A (en) * | 2006-09-26 | 2008-04-10 | Sharp Corp | Information processing device and video recording system |
US20090093164A1 (en) * | 2007-10-03 | 2009-04-09 | Microsoft Corporation | High-definition connector for televisions |
US20110228715A1 (en) * | 2008-12-01 | 2011-09-22 | Keisuke Tsuji | Wireless transmission system |
US20140003794A1 (en) * | 2012-07-02 | 2014-01-02 | Kabushiki Kaisha Toshiba | Image processing apparatus |
US20160366470A1 (en) * | 2015-06-09 | 2016-12-15 | Qualcomm Incorporated | Tunneling hdmi data over wireless connections |
CN107959811A (en) * | 2017-12-20 | 2018-04-24 | 深圳市深智电科技有限公司 | A kind of tangible interactive HDMI IN are shown and processing method |
WO2019192878A1 (en) * | 2018-04-02 | 2019-10-10 | Arcelik Anonim Sirketi | A multiple screen display system with enhanced remote control efficiency |
Also Published As
Publication number | Publication date |
---|---|
CN112118408B (en) | 2023-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101436871B (en) | Hdmi network control of a media center computing device | |
CN1320440C (en) | Display controller for connecting multiple displays by using single visual cable | |
US9942605B2 (en) | Devices and methods for transmitting and receiving data of a sink device to change video display resolution based on error counter value detected at the sink device using HDMI | |
CN101689099B (en) | System and method for driving and receiving data from multiple touch screen devices | |
KR101335247B1 (en) | Displaying method of remote sink device, source device and system for the same | |
US8380912B2 (en) | Transparent repeater device for handling displayport configuration data (DPCD) | |
US8971809B2 (en) | Dummy touch screen system for connecting a plurality of mobile terminals | |
CN102802068A (en) | Remote control method and system smart television | |
EP4068792A1 (en) | Method and device for transmitting data in intelligent terminal to television terminal | |
US7299303B2 (en) | System and method for pendant bus for serially chaining multiple portable pendant peripherals | |
US10754537B2 (en) | Method and apparatus for processing human interface device (HID)-based data using high-speed interface | |
WO2019196414A1 (en) | Interactive smart tablet and touch data processing method | |
CN112118408B (en) | Method for transmitting input event based on HDMI | |
WO2019196415A1 (en) | Interactive smart tablet | |
US20140098003A1 (en) | Method and apparatus of data transfer dynamic adjustment in response to usage scenarios, and associated computer program product | |
CN105052137A (en) | Auxiliary data encoding in video data | |
CN101361111A (en) | Methods and apparatus for driving a display device | |
TWI736937B (en) | Method for synchronously adjusting screen settings and related devices | |
CN103124338B (en) | Based on audio and video display device and the method for wireless transmission | |
US11263991B2 (en) | Delivery of display symbols to a display source | |
CN110827749A (en) | Data read-back control system of LED display screen | |
CN104217182A (en) | Display device with mobile high-definition link port and signal processing method thereof | |
CN115357535A (en) | Virtual serial port design method and device | |
CN101996611A (en) | Display equipment | |
CA2659480A1 (en) | Method and system for remotely providing video content to an electronic screen |
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 |