CN104796773A - Transmission and processing method for multi-device input events - Google Patents
Transmission and processing method for multi-device input events Download PDFInfo
- Publication number
- CN104796773A CN104796773A CN201510126020.8A CN201510126020A CN104796773A CN 104796773 A CN104796773 A CN 104796773A CN 201510126020 A CN201510126020 A CN 201510126020A CN 104796773 A CN104796773 A CN 104796773A
- Authority
- CN
- China
- Prior art keywords
- data message
- android system
- event
- android
- data
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4438—Window management, e.g. event handling following interaction with the user interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Communication Control (AREA)
Abstract
The invention discloses a transmission and processing method for multi-device input events. The method includes: defining a set of data format firstly, coding the data format into a data message of a byte array, sending the data message by a remote input device to an intelligent set top box terminal through a wireless network, increasing a Remote Control Manager on the framework layer of the Android system before the data message is received, conducting self-starting when the Android is started, setting a UDP Socket monitoring fixed port, judging the length of the data message by the intelligent set top box terminal to determine whether the data message is correct after the monitoring terminal monitors the defined data message, analyzing the data message after the data message is judged to be correct, obtaining the control type of each remote input device and the description information of the sending events, coding a needed event preliminarily, injecting the adaptive event downward gradually to the Input Dispatcher through calling back of the corresponding inject function in the Windows Manager Service, and sending out the events through the Android Input standard subsystem.
Description
Technical field
The present invention relates to TV and field of set-top, be specifically related to a kind of transmission and processing method of many equipment incoming event.
Background technology
Android system has become the Mainstream Platform of intelligent television or Set Top Box at present, various network equipment input client is varied, because different editions appears in System History reason, conventionally each need to introduce all to adapt to their existing data format to the support of redaction client, so just bring the repeatability of work and add the redundancy of system.
Summary of the invention
The support that instant invention overcomes in prior art needs to introduce redaction client at every turn all will adapt to their existing data formats, there is work repeatability and add the redundancy of system, a kind of simple and convenient transmission and processing method being convenient to user and the mutual many equipment incoming event of Android system terminal is provided.
For achieving the above object, the present invention is by the following technical solutions:
The transmission of many equipment incoming event and a processing method, it comprises the following steps:
A, define a set of data format, data format is encoded into the data message of byte arrays, and data message is sent to Android system terminal by local area network (LAN);
B, reception data message before, Android system terminal creates a RemoteControlManager at the framework layer of android system, for realizing the management to remote input equipment incoming event, and when android system starts, start RemoteControl by WindowsManagerSever, and in RemoteControlManager, create UDP Socket monitoring fixed port;
C, Android system terminal are monitored fixed port by UDP Socket and are received data message, and judge data message;
If d Android system terminal judges that data message length is correct, then data message is resolved, obtain the type of remote input equipment by the assigned address of byte arrays and accordingly data distributed to the step-by-step parsing realizing different control data, after being parsed, being carried out the adaptation processing of event by the resolution of current system environment; If Android system terminal judges data message size error, then do not process;
Inject function corresponding in e, readjustment WindowsManagerSever, event after adaptation processing is reached in WindowsManagerSever, carry out improving process to this event in WindowsManagerSever, and the relative time that incoming event distributes is set;
F, in WindowsManagerSever, call function obtains process number and user number, after carrying out injection process number and user number, and is passed to the JNI layer of android system to event;
G, in the JNI layer of android system, event to be injected in InputDispatcher.cpp file, and then by Android Input standard subsystem, case distribution to be gone out, and mutual in Android system terminal display.
Further technical scheme is, described data message comprises Control Type, Length, width, high, Action or touch point ID.
Further technical scheme is, described Android system terminal is Intelligent set top box terminal or intelligent television.
First a set of data format is defined in the technical program, and data format is encoded into the data message of byte arrays, data message comprises Control Type, Length, width, high, Action, touch point ID etc., data message is sent to TV by remote input equipment (such as cell-phone customer terminal), TV end judges whether data message sends, basis for estimation is: current source is in Intelligent set top box terminal and TV does not exist suspension, sends data to Intelligent set top box terminal.Or adopt Remote Control Terminal Server Client directly by wireless network, data message to be sent to Intelligent set top box terminal without TV, before reception data message, a Remote Control Manager is increased at the framework layer of android system, and the self-starting when Android starts, and set a UDP Socket monitoring fixed port, when Intelligent set top box terminal is after monitoring end listens to the data message of definition, namely judge to determine that whether data message is correct to the length of data message, after data message correct judgment, data message is resolved to the descriptor of Control Cooling and the event of transmission obtaining each remote input equipment, and then be tentatively encoded into required event.Finally by the corresponding inject function in readjustment WindowsManager Service, the event after adaptation is progressively injected in InputDispatcher downwards, and then by Android Input standard subsystem, case distribution is gone out.Finally, Intelligent set top box terminal is carried out different responses according to event and is presented to user, just can avoid when various network equipment input client presents variation by the way, need the support of each introducing to redaction input client all will adapt to the deficiencies such as the work repeatability of their existing data formats existence, thus by a set of same data format to realize the support to heterogeneous networks equipment input and different editions, achieve good compatibility.
Compared with prior art, the invention has the beneficial effects as follows:
The present invention to realize the support to heterogeneous networks equipment input and different editions, achieves good compatibility by a set of same data format.
Accompanying drawing explanation
Fig. 1 is the transmission of many equipment incoming event and the flow chart of processing method of an embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the present invention is further elaborated.
The transmission of a kind of many equipment incoming event as shown in Figure 1 and processing method, it comprises the following steps:
A, define a set of data format, data format is encoded into the data message of byte arrays, and data message is sent to Android system terminal by local area network (LAN);
B, reception data message before, Android system terminal creates a RemoteControlManager at the framework layer of android system, for realizing the management to remote input equipment incoming event, and when android system starts, start RemoteControl by WindowsManagerSever, and in RemoteControlManager, create UDP Socket monitoring fixed port;
C, Android system terminal are monitored fixed port by UDP Socket and are received data message, and judge data message;
If d Android system terminal judges that data message length is correct, then data message is resolved, obtain the type of remote input equipment by the assigned address of byte arrays and accordingly data distributed to the step-by-step parsing realizing different control data, after being parsed, being carried out the adaptation processing of event by the resolution of current system environment; If Android system terminal judges data message size error, then do not process;
Inject function corresponding in e, readjustment WindowsManagerSever, event after adaptation processing is reached in WindowsManagerSever, carry out improving process to this event in WindowsManagerSever, and the relative time that incoming event distributes is set;
F, in WindowsManagerSever, call function obtains process number and user number, after carrying out injection process number and user number, and is passed to the JNI layer of android system to event;
G, in the JNI layer of android system, event to be injected in InputDispatcher.cpp file, and then by Android Input standard subsystem, case distribution to be gone out, and mutual in Android system terminal display.
According to one embodiment of present invention, described data message comprises Control Type, Length, width, high, Action or touch point ID, and described Android system terminal is Intelligent set top box terminal or intelligent television.
Above embodiment is described in detail to essence of the present invention; but can not limit protection scope of the present invention; apparently; under enlightenment of the present invention; the art those of ordinary skill can also carry out many improvement and modification; it should be noted that these improve and modify all to drop within claims of the present invention.
Claims (3)
1. the transmission of the incoming event of equipment more than and a processing method, it comprises the following steps:
A, define a set of data format, data format is encoded into the data message of byte arrays, and data message is sent to Android system terminal by local area network (LAN);
B, reception data message before, Android system terminal creates a RemoteControlManager at the framework layer of android system, for realizing the management to remote input equipment incoming event, and when android system starts, start RemoteControl by WindowsManagerSever, and in RemoteControlManager, create UDP Socket monitoring fixed port;
C, Android system terminal are monitored fixed port by UDP Socket and are received data message, and judge data message;
If d Android system terminal judges that data message length is correct, then data message is resolved, obtain the type of remote input equipment by the assigned address of byte arrays and accordingly data distributed to the step-by-step parsing realizing different control data, after being parsed, being carried out the adaptation processing of event by the resolution of current system environment; If Android system terminal judges data message size error, then do not process;
Inject function corresponding in e, readjustment WindowsManagerSever, event after adaptation processing is reached in WindowsManagerSever, carry out improving process to this event in WindowsManagerSever, and the relative time that incoming event distributes is set;
F, in WindowsManagerSever, call function obtains process number and user number, after carrying out injection process number and user number, and is passed to the JNI layer of android system to event;
G, in the JNI layer of android system, event to be injected in InputDispatcher.cpp file, and then by Android Input standard subsystem, case distribution to be gone out, and mutual in Android system terminal display.
2. the transmission of many equipment incoming event according to claim 1 and processing method, is characterized in that described data message comprises Control Type, Length, width, high, Action or touch point ID.
3. according to claim 1, it is characterized in that described Android system terminal is Intelligent set top box terminal or intelligent television.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510126020.8A CN104796773B (en) | 2015-03-20 | 2015-03-20 | The transmission of more equipment incoming events and processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510126020.8A CN104796773B (en) | 2015-03-20 | 2015-03-20 | The transmission of more equipment incoming events and processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104796773A true CN104796773A (en) | 2015-07-22 |
CN104796773B CN104796773B (en) | 2017-11-10 |
Family
ID=53561226
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510126020.8A Active CN104796773B (en) | 2015-03-20 | 2015-03-20 | The transmission of more equipment incoming events and processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104796773B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105607913A (en) * | 2015-12-25 | 2016-05-25 | 百度在线网络技术(北京)有限公司 | Operation processing method and device for interconnecting application |
CN110262459A (en) * | 2019-06-30 | 2019-09-20 | 潍柴动力股份有限公司 | A kind of fault message output control method and system |
CN113867568A (en) * | 2021-09-29 | 2021-12-31 | 四川长虹教育科技有限公司 | Method for dynamically detecting and repairing infrared touch of infrared interactive large screen |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101714930A (en) * | 2009-12-30 | 2010-05-26 | 北京世纪互联宽带数据中心有限公司 | Method and system for realizing network monitoring |
EP2227759A1 (en) * | 2007-11-30 | 2010-09-15 | Nokia Corp. | Ordering of data items |
CN102523508A (en) * | 2011-12-15 | 2012-06-27 | 四川长虹电器股份有限公司 | Intelligent television control method based on local area network |
US20120174026A1 (en) * | 2011-01-04 | 2012-07-05 | Shim Minsik | Mobile terminal and controlling method thereof |
CN103024525A (en) * | 2012-12-27 | 2013-04-03 | 深圳市茁壮网络股份有限公司 | Set-top box and method of controlling the same by mobile terminal |
CN103019746A (en) * | 2013-01-06 | 2013-04-03 | 深圳创维-Rgb电子有限公司 | Software interaction control method and system based on Android platform |
CN104244060A (en) * | 2014-09-30 | 2014-12-24 | 英华达(南京)科技有限公司 | Method and device for watching high-definition cable television programs |
CN104345717A (en) * | 2014-10-17 | 2015-02-11 | 武汉华大优能信息有限公司 | Intelligent remote data acquisition system based on Internet of Things |
-
2015
- 2015-03-20 CN CN201510126020.8A patent/CN104796773B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2227759A1 (en) * | 2007-11-30 | 2010-09-15 | Nokia Corp. | Ordering of data items |
CN101714930A (en) * | 2009-12-30 | 2010-05-26 | 北京世纪互联宽带数据中心有限公司 | Method and system for realizing network monitoring |
US20120174026A1 (en) * | 2011-01-04 | 2012-07-05 | Shim Minsik | Mobile terminal and controlling method thereof |
CN102523508A (en) * | 2011-12-15 | 2012-06-27 | 四川长虹电器股份有限公司 | Intelligent television control method based on local area network |
CN103024525A (en) * | 2012-12-27 | 2013-04-03 | 深圳市茁壮网络股份有限公司 | Set-top box and method of controlling the same by mobile terminal |
CN103019746A (en) * | 2013-01-06 | 2013-04-03 | 深圳创维-Rgb电子有限公司 | Software interaction control method and system based on Android platform |
CN104244060A (en) * | 2014-09-30 | 2014-12-24 | 英华达(南京)科技有限公司 | Method and device for watching high-definition cable television programs |
CN104345717A (en) * | 2014-10-17 | 2015-02-11 | 武汉华大优能信息有限公司 | Intelligent remote data acquisition system based on Internet of Things |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105607913A (en) * | 2015-12-25 | 2016-05-25 | 百度在线网络技术(北京)有限公司 | Operation processing method and device for interconnecting application |
CN110262459A (en) * | 2019-06-30 | 2019-09-20 | 潍柴动力股份有限公司 | A kind of fault message output control method and system |
CN113867568A (en) * | 2021-09-29 | 2021-12-31 | 四川长虹教育科技有限公司 | Method for dynamically detecting and repairing infrared touch of infrared interactive large screen |
CN113867568B (en) * | 2021-09-29 | 2023-10-13 | 四川长虹教育科技有限公司 | Method for dynamically detecting and repairing infrared touch by infrared interaction large screen |
Also Published As
Publication number | Publication date |
---|---|
CN104796773B (en) | 2017-11-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102970362B (en) | The method of a kind of high in the clouds data sharing and device | |
US10419291B2 (en) | Terminal upgrade method and related device with multicast program | |
US20160286380A1 (en) | Management method for embedded universal integrated circuit card, related device, and system | |
KR101273201B1 (en) | The Method and Apparatus of Terminal Software Updating in a Network System | |
US10120673B2 (en) | Method and device for remotely updating application program | |
CN105072190A (en) | Method and system for realizing real-time desktop cloud | |
CN103561479A (en) | Bluetooth device communication method and device | |
CN103117960A (en) | System and method of broadband user speeding up access bandwidth in self-service mode | |
CN103237071B (en) | A kind of method of wireless EoC terminal centralized management | |
CN108574722B (en) | Resource synchronization method, device and system | |
CN103780641B (en) | Access method, home gateway and the system of cloud desktop | |
CN109889454A (en) | A kind of the message driving means and method of micro services framework | |
CN103312593B (en) | A kind of message distributing system and method | |
CN109257335B (en) | Method for maintaining back source link, back source method, related device and storage medium | |
CN108235111B (en) | Information sharing method and intelligent set top box | |
CN104796773A (en) | Transmission and processing method for multi-device input events | |
CN111954100A (en) | Interface upgrading method and device and optical network unit management method and device | |
CN105005500A (en) | Remote procedure calling method, server side and client | |
CN106060042A (en) | Data processing method and device | |
CN104702980A (en) | EPG data processing method, EPG server and EPG data processing system | |
CN105246129B (en) | The network-building method and device of a kind of intelligent terminal | |
CN102857802B (en) | IPTV (Internet protocol television) content synchronization method and system | |
CN113542324B (en) | Message pushing method and device | |
CN104391576A (en) | Remote input method and device based on wireless Ethernet | |
US11025450B2 (en) | Cable media converter management method, apparatus, and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |