CN102946557B - Implementation method for controlling android system set-top box by using controller - Google Patents
Implementation method for controlling android system set-top box by using controller Download PDFInfo
- Publication number
- CN102946557B CN102946557B CN201210473588.3A CN201210473588A CN102946557B CN 102946557 B CN102946557 B CN 102946557B CN 201210473588 A CN201210473588 A CN 201210473588A CN 102946557 B CN102946557 B CN 102946557B
- Authority
- CN
- China
- Prior art keywords
- input module
- android system
- remote control
- control input
- android
- 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.)
- Active
Links
Abstract
The invention discloses an implementation system for controlling an android system set-top box by using a controller and belongs to the field of Internet Protocol Television (IPTV) systems. The control implementation part of the system comprises an application layer, a system kernel, a middle tier and a hardware layer, wherein the hardware layer comprises a receiving circuit of remote-control signals and other hardware parts, the system kernel comprises a remote-control input module and other input modules, the middle tier comprises a query program and a special mapping relation file, and the application layer comprises an application program. The method comprises steps of loading the remote-control input module in the system kernel, converting remote-control messages sent by the controller to a standard event of an android system input device by using the remote-control input module, continuously inquiring whether the remote-control input module inputs the standard event by using a middle tire program, and mapping the standard event to an android key event received by the application layer of an android system if the remote-control input module inputs the standard event. By the aid of the method and the system, a user can operate the android system set-top box by using the controller.
Description
Technical field
The present invention relates to IPTV (Internet Protocol television IPTV) system regions, is specifically the implementation method that a kind of remote controller controls android system Set Top Box.
Background technology
Along with fast development and the constantly innovation of Android operation system technology, increasing electronic product is using the operating system of this opening.Particularly some network electronic product, such as mobile phone, panel computers etc., these electronic products with android system commercially occupy most of share, also doubly popular with users.The troop of Android program developer is also thereupon increasingly huge, and they use the users of android system to provide colourful application program, and major part is all free.Simultaneously, also rise year by year at the number of users taking IPTV set top box as home entertainment center.In today that Internet resources application and service content is increasingly huge, the service of the required carrying of IPTV set top box is also with rapid changepl. never-ending changes and improvements.As can be seen here, based on the IPTV set top box of android system, will become a and bring the new product enriching application program and service content to users.
Current android system is mainly used on the product such as mobile phone, panel computer, and its control mode mainly uses button in the machine and touch-screen.If based on the IPTV set top box of android system, use the machine button or touch-screen to operate, necessarily bring great inconvenience to user.Traditional IPTV set top box uses a teleswitch to operate, the mode of this use remote control also accept by users.How realizing using a teleswitch to operate the IPTV set top box based on android system, is the problem being badly in need of at present solving.
Summary of the invention
For the defect existed in prior art, a kind of remote controller is the object of the present invention is to provide to control the implementation method of android system Set Top Box, realize user to use a teleswitch to operate android system Set Top Box, the convenient operation to android system Set Top Box.
For reaching above object, what the invention provides a kind of remote controller control android system Set Top Box realizes system, this remote control achievement unit realizing system is divided and is comprised application layer, system kernel, intermediate layer and hardware layer, hardware layer comprises receiving circuit and other hardware components of remote signal, system kernel comprises remote control input module and other input modules, intermediate layer comprises polling routine and proprietary mapping relations file, and application layer comprises application program.
The present invention also provides a kind of remote controller control android system Set Top Box to realize the implementation method of system, comprise the steps: that S1. is in the system kernel of android system Set Top Box, be loaded into remote control input module, described remote control input module is used for the remote control message sent by remote controller, is converted to the standard Event of android system input equipment; The intermediate layer program of S2.Android system is constantly inquired about remote control input module and whether is inputted described standard Event, after receiving standard Event, standard Event is done and once maps, the Android key-press event that application layer standard Event being mapped as android system accepts.
On the basis of technique scheme, described remote signal is received by receiving circuit, and delivers to the Android operation system of android system Set Top Box after hardware layer process.
On the basis of technique scheme, described S2 detailed step is: S21. is a newly-built proprietary mapping relations file in the Android file system of android system Set Top Box, its filename and remote control input module coupling, the mapping relations between the key-press event that mapping relations file description system core standard event and android system application layer accept; S22. in the polling routine in described intermediate layer, separate threads is created; S23. search the input module on all system kernels, after finding remote control input module, open the mapping relations file of its correspondence; S24. judge whether remote control input module has standard Event produce, if so, to enter S25; S25. according to described mapping relations, standard Event is mapped as the key-press event of android system standard, and the key assignments of key-press event is preserved, pass to android system application layer.
On the basis of technique scheme, in described S21, mapping relations comprise: system kernel standard Event KEY_F1 is mapped as the key-press event KEYCODE_0 that android system upper strata accepts.
On the basis of technique scheme, in described S23, whether the input module on polling routine inquiry system kernel has remote control input module, after opening remote control input module, opens the proprietary mapping relations file of remote control according to remote control input module title.
Whether on the basis of technique scheme, in described S24, obtaining remote control input module has standard Event to produce, if nothing, then enters S23 and continues inquiry.
Beneficial effect of the present invention is:
1., using the input equipment of remote controller as android system Set Top Box, realize user and to use a teleswitch manipulator top box, convenient and swift.
2. remote control input module is loaded into android system kernel, improve android system input equipment compatible, plurality of devices (remote controller, mouse, keyboard etc.) all can manipulator top box.
3. use proprietary message event mapping relations, the remote control message that remote controller is sent and android system key-press event are mapped according to ad hoc fashion, facilitate developer to design and change the keypress function of remote controller, remote control applications simultaneously also capable of being compatible with multi-type is in android system Set Top Box.
Accompanying drawing explanation
Fig. 1 is the system architecture diagram that remote controller of the present invention controls remote control realization part in the implementation method of android system Set Top Box;
Fig. 2 is the implementation method flow chart that specific embodiment of the invention remote controller controls android system Set Top Box.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
As shown in Figure 1, what remote controller of the present invention controlled android system Set Top Box realizes system, its remote control achievement unit is divided and is comprised hardware layer, system kernel, intermediate layer and application layer, hardware layer comprises receiving circuit and other hardware components of remote signal, system kernel comprises remote control input module and other standards input module, intermediate layer comprises polling routine and proprietary mapping relations file, and application layer comprises application program; Foregoing all belongs to the operating system of android system Set Top Box.
The major function of remote control input module is the standard Event remote control message that remote control signal receiver circuit receives being converted to system kernel input equipment, an incoming event has been created to android system report, in system starting process, remote control input module and other standards input module are loaded into system kernel jointly.Input module in the polling routine active inquiry system kernel in intermediate layer, after having inquired standard Event, this standard Event is taken out from input module, read proprietary mapping relations file, the standard Event that system kernel is reported is mapped as the key-press event of Android application layer applications standard, and is sent to the application program of application layer.But in the present invention, mainly read mapping relations files according to remote control input module.
As shown in Figure 2, remote controller of the present invention controls the implementation method of android system Set Top Box, comprises the steps:
S1. in the system kernel of android system Set Top Box, be loaded into remote control input module, described remote control input module is used for the remote control message sent by remote controller, is converted to the standard Event of android system input equipment.Described remote signal is received by receiving circuit, and delivers to the Android operation system of android system Set Top Box after hardware layer process.
Whether the intermediate layer program of S2.Android system constantly inquires about remote control input module described standard Event, after receiving standard Event, standard Event is done and once maps, the Android key-press event that application layer standard Event being mapped as android system accepts.
Wherein, described S2 detailed step is:
S21. a newly-built proprietary mapping relations file in the Android file system of android system Set Top Box, its filename and remote control input module coupling, the mapping relations between the key-press event that mapping relations file description system core standard event and android system application layer accept; Proprietary mapping relations file is the relational file that a description standard event and key-press event map.Such as: system kernel standard Event KEY_F1 is mapped as the key-press event KEYCODE_0 that android system upper strata accepts.
S22. in the polling routine in described intermediate layer, separate threads is created;
S23. search the input module on all system kernels, although mapping relations file corresponding to each input module can be opened, in the embodiment of the present invention, after finding remote control input module, open the mapping relations file of its correspondence.Specifically, in the input module on polling routine inquiry system kernel, whether there is remote control input module, after opening remote control input module, open the proprietary mapping relations file of remote control according to remote control input module title.
S24. described polling routine judges whether remote control input module has standard Event produce, if so, to enter S25; If not, then proceed to S23 and continue inquiry.
S25. according to described mapping relations, standard Event is mapped as the key-press event of android system standard, and the key assignments of key-press event is preserved, pass to android system application layer, change mapping relations and will directly change the keypress function of remote controller.
The present invention is not limited to above-mentioned execution mode, and for those skilled in the art, under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications are also considered as within protection scope of the present invention.The content be not described in detail in this specification belongs to the known prior art of professional and technical personnel in the field.
Claims (5)
1. the implementation method of a remote controller control android system Set Top Box, remote control achievement unit is divided and is comprised application layer, system kernel, intermediate layer and hardware layer, hardware layer comprises receiving circuit and other hardware components of remote signal, system kernel comprises remote control input module and other input modules, intermediate layer comprises polling routine and proprietary mapping relations file, application layer comprises application program, it is characterized in that, comprises the steps:
S1. in the system kernel of android system Set Top Box, be loaded into remote control input module, described remote control input module is used for the remote control message sent by remote controller, is converted to the standard Event of android system input equipment;
The intermediate layer program of S2.Android system is constantly inquired about remote control input module and whether is inputted described standard Event, after receiving standard Event, standard Event is done and once maps, the Android key-press event that application layer standard Event being mapped as android system accepts
Described S2 detailed step is:
S21. a newly-built proprietary mapping relations file in the Android file system of android system Set Top Box, its filename and remote control input module coupling, the mapping relations between the key-press event that mapping relations file description system core standard event and android system application layer accept;
S22. in the polling routine in described intermediate layer, separate threads is created;
S23. search the input module on all system kernels, after finding remote control input module, open the mapping relations file of its correspondence;
S24. judge whether remote control input module has standard Event produce, if so, to enter S25;
S25. according to described mapping relations, standard Event is mapped as the key-press event of android system standard, and the key assignments of key-press event is preserved, pass to android system application layer.
2. a kind of remote controller as claimed in claim 1 controls the implementation method of android system Set Top Box, it is characterized in that: described remote signal is received by receiving circuit, and deliver to the Android operation system of android system Set Top Box after hardware layer process.
3. a kind of remote controller as claimed in claim 1 controls the implementation method of android system Set Top Box, it is characterized in that: in described S21, mapping relations comprise: system kernel standard Event KEY_F1 is mapped as the key-press event KEYCODE_0 that android system upper strata accepts.
4. a kind of remote controller as claimed in claim 1 controls the implementation method of android system Set Top Box, it is characterized in that: in described S23, whether the input module on polling routine inquiry system kernel has remote control input module, after opening remote control input module, open the proprietary mapping relations file of remote control according to remote control input module title.
5. a kind of remote controller as claimed in claim 4 controls the implementation method of android system Set Top Box, it is characterized in that: in described S24, and whether obtain remote control input module has standard Event to produce, if nothing, then enters S23 and continues inquiry.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210473588.3A CN102946557B (en) | 2012-11-21 | 2012-11-21 | Implementation method for controlling android system set-top box by using controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210473588.3A CN102946557B (en) | 2012-11-21 | 2012-11-21 | Implementation method for controlling android system set-top box by using controller |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102946557A CN102946557A (en) | 2013-02-27 |
CN102946557B true CN102946557B (en) | 2015-05-27 |
Family
ID=47729457
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210473588.3A Active CN102946557B (en) | 2012-11-21 | 2012-11-21 | Implementation method for controlling android system set-top box by using controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102946557B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103607421A (en) * | 2013-10-10 | 2014-02-26 | 深圳市同洲电子股份有限公司 | Data interaction method and intelligent terminal |
CN103929668B (en) * | 2014-04-28 | 2018-01-16 | Tcl集团股份有限公司 | A kind of control method and device of the television set based on using Android system |
CN105516765A (en) * | 2014-09-25 | 2016-04-20 | 阿里巴巴集团控股有限公司 | Button matching method and device and signal processing method and device of remote controller |
CN106303639B (en) * | 2015-05-14 | 2020-06-23 | Tcl科技集团股份有限公司 | Method and system for realizing full keyboard function keys of smart television |
CN105472462A (en) * | 2015-11-12 | 2016-04-06 | Tcl王牌电器(惠州)有限公司 | Television function processing method and system |
CN105721938A (en) * | 2016-02-01 | 2016-06-29 | 浪潮软件集团有限公司 | Key monitoring method and set top box |
CN106162279B (en) | 2016-07-01 | 2020-11-17 | 海信视像科技股份有限公司 | Television remote control key response method based on android operating system and television |
CN109714618A (en) * | 2017-10-26 | 2019-05-03 | 卓望数码技术(深圳)有限公司 | A kind of remote keying monitor method and device based on android set top box |
CN109979180B (en) * | 2019-03-25 | 2021-12-10 | 深圳创维数字技术有限公司 | Remote controller key multiplexing method and device, storage medium and remote controller |
CN110401863B (en) * | 2019-06-19 | 2021-06-15 | 广州视琨电子科技有限公司 | Method, device, system, storage medium and equipment for starting application program |
CN113961131A (en) * | 2020-07-03 | 2022-01-21 | 瑞昱半导体股份有限公司 | Processing method and processing device for user-defined key based on android platform |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100586150C (en) * | 2007-11-22 | 2010-01-27 | 深圳市茁壮网络股份有限公司 | A mapping device and digital TV terminal device using this mapping device |
KR101295393B1 (en) * | 2011-01-27 | 2013-08-09 | 주식회사 엘지씨엔에스 | Smart settop box and operating method for smart service and digital television service using single operating system |
CN102298833A (en) * | 2011-09-14 | 2011-12-28 | 中兴通讯股份有限公司 | Remote controller |
CN102314348B (en) * | 2011-09-15 | 2015-06-03 | Tcl集团股份有限公司 | Android system development framework and development device |
CN102722369B (en) * | 2012-05-21 | 2016-06-01 | 张伟明 | The information processing terminal and treatment process thereof and the application on intelligent television or smart television set top box thereof |
-
2012
- 2012-11-21 CN CN201210473588.3A patent/CN102946557B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN102946557A (en) | 2013-02-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102946557B (en) | Implementation method for controlling android system set-top box by using controller | |
US10586554B2 (en) | Display apparatus, voice acquiring apparatus and voice recognition method thereof | |
CN102932695B (en) | A kind of remote control thereof, intelligent terminal and intelligent remote control system | |
US20170223301A1 (en) | Image processing apparatus, voice acquiring apparatus, voice recognition method thereof and voice recognition system | |
JP2020504488A (en) | Live room video stream push control method and corresponding server and mobile terminal | |
CN103472990A (en) | Appliance, and method and device for controlling same | |
CN103914971A (en) | Household electrical appliance control system and infrared learning method thereof | |
CN102346594A (en) | Playing control method and system for television equipment | |
WO2016008348A1 (en) | Video control method and device | |
CN103945235B (en) | A kind of digital television control method, set top box and system | |
CN102782641A (en) | Controlling a multimedia device in remote display mode | |
CN103916297A (en) | Internet of things household appliance, system, wireless intelligent terminal and data transmission and configuration method | |
CN102314764A (en) | Remote control terminal, method for realizing remote control and system thereof | |
CN103648005A (en) | Device, remote control method and remote control system for remote control terminal | |
US11516530B2 (en) | Television and system and method for providing a remote control device | |
CN102970611A (en) | Internet protocol television (IPTV) control method, device and system | |
CN103905862A (en) | Multi-screen interaction key control system and multi-screen interaction key control method | |
US10349109B2 (en) | Television and system and method for providing a remote control device | |
CN104918106A (en) | Proximity detection of candidate companion display device in same room as primary display using infrared signaling | |
CN101958931A (en) | Remote control method and network server for turning on/off set-top box | |
CN202889394U (en) | Universal intelligent remote control device | |
CN103327387A (en) | Television remote control method and system | |
CN103377671A (en) | Remote control method and system, and mobile device using remote control method | |
CN106658101A (en) | Method, device and system for controlling program broadcasting | |
CN202711677U (en) | Intelligent song-requiring system used in KTV room |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |