CN112203148A - Method for managing Service of Android set top box system built-in system - Google Patents

Method for managing Service of Android set top box system built-in system Download PDF

Info

Publication number
CN112203148A
CN112203148A CN202011023333.8A CN202011023333A CN112203148A CN 112203148 A CN112203148 A CN 112203148A CN 202011023333 A CN202011023333 A CN 202011023333A CN 112203148 A CN112203148 A CN 112203148A
Authority
CN
China
Prior art keywords
service
android
top box
module
managing
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
Application number
CN202011023333.8A
Other languages
Chinese (zh)
Other versions
CN112203148B (en
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.)
Shandong Yunman Intelligent Technology Co ltd
Original Assignee
Shandong Yunman Intelligent 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 Shandong Yunman Intelligent Technology Co ltd filed Critical Shandong Yunman Intelligent Technology Co ltd
Priority to CN202011023333.8A priority Critical patent/CN112203148B/en
Publication of CN112203148A publication Critical patent/CN112203148A/en
Application granted granted Critical
Publication of CN112203148B publication Critical patent/CN112203148B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A method for managing Service of a built-in system of an Android set top box system is characterized in that the scattered requirements are greatly concentrated by establishing Service built in the Android system, external interfaces of secondary developers are unified, the integrity of the system can be greatly improved, and meanwhile, a reliable foundation is provided for long-term development. Meanwhile, the customized set top box needs to be brought into software products of other third-party companies, such as the love art, the Tencent video and the like, a mode of separating a front section and a rear section can be adopted in a set top box system to develop a set top box display interface, the front section is focused on UI interface development, the rear end (a manager system) is responsible for managing the third-party services, and available interfaces are summarized for calling the front section UI, so that the front end and the rear end are developed in parallel, the development speed is improved, and the project period is shortened.

Description

Method for managing Service of Android set top box system built-in system
Technical Field
The invention relates to the technical field of digital set-top boxes, in particular to a method for managing Service of an Android set-top box system built-in system.
Background
Under the condition that the set-top box basically adopts an android system, the set-top box continuously faces some special requirements of customers, scattered system development is carried out, the pure positive of a source code is damaged, meanwhile, great difficulty is increased for version updating, work handover and maintenance work, therefore, a service built in the android system needs to be developed to greatly concentrate the scattered requirements, external interfaces of secondary developers are unified, the integrity of the system can be greatly improved, and meanwhile, a reliable foundation is provided for long-distance development.
Disclosure of Invention
In order to overcome the defects of the technology, the invention provides a method for managing Service of the Android set top box system built-in system, which can improve the expansibility and is universal between each version and each platform.
The technical scheme adopted by the invention for overcoming the technical problems is as follows:
a method for managing Service by an Android set top box system built-in system comprises the following steps:
a) establishing a service as a manager in the Android system of the set top box, and enabling the established service to have the internal authority of the Android system and expose an interface customized for the service;
b) respectively arranging a system control module, a ModuleControl module and an InspurAdapter module in the service;
c) the system control module monitors and reads the resolution of the Android system by using a uevent mechanism and an Android file monitoring mechanism, monitors system attributes in real time by using different paths for different nodes, and provides a system-wide notification by using broadcasting or a system database;
d) the ModuleControll module is provided with a plurality of independent service processes for managing a third-party module, the plurality of independent service processes are started when the Android system is started by utilizing an ActivitManager, and the plurality of independent service processes are called back to the ModuleControll registration state;
e) the InspurAdapter module uses a MulticastSocket to detect equipment in a local area network in an Android system, uses a Bluetooth ToothAdpt to discover and call back a Bluetooth state of the Bluetooth equipment, uses a Nature layer SurfaceFlinger and a MediaCodec of the Android system to record current screen content without permission application, and obtains a virtual DisplaySurface of the SurfaceFlinger as an InputSurface of the MediaCodec.
Further, in the step a), a service inheriting the BindService is established in a frame layer of the Android system, the service is registered into the SystemService, and a service object is obtained from the whole situation.
Preferably, a service allows access to other services, which are also frame layers.
Further, the systemcontrol module in the step c) writes a corresponding value into the hdr _ mode in the Android system to change the sdr image quality mode and the hdr image quality mode.
The invention has the beneficial effects that: the scattered requirements are greatly concentrated by establishing the service built in the Android system, external interfaces for secondary developers are unified, the integrity of the system can be greatly improved, and meanwhile, a reliable foundation is provided for long-term development. Meanwhile, the customized set top box needs to be brought into software products of other third-party companies, such as the love art, the Tencent video and the like, a mode of separating a front section and a rear section can be adopted in a set top box system to develop a set top box display interface, the front section is focused on UI interface development, the rear end (a manager system) is responsible for managing the third-party services, and available interfaces are summarized for calling the front section UI, so that the front end and the rear end are developed in parallel, the development speed is improved, and the project period is shortened.
Detailed Description
The present invention is further explained below.
A method for managing Service by an Android set top box system built-in system comprises the following steps:
a) and establishing a service as a manager in the Android system of the set top box, and enabling the established service to have the internal authority of the Android system and expose an interface customized for the service.
b) A systemcontrol module, a ModuleControl module and an InspurAdapter module are respectively arranged in the service.
c) The system control module monitors and reads the resolution of the Android system by using a uevent mechanism and an Android file monitoring mechanism, monitors system attributes in real time by using different paths for different nodes, and provides system-wide notification by using broadcasting or a system database. The system control is used for managing and relating to the system, and comprises the acquisition of system attributes of the android system, the reading and writing of system nodes, the storage of system logs and other system-related matters. For example, acquiring the constantly changing resolution of the box, creating a FileObserver, and reading the related node information through callback; the current sdr mode is adjusted to change the picture quality. These interfaces, which do not appear in standard systems, can be implemented in a systemcontrol, including the now specially-made bluetooth fallback module, we can concentrate a large number of sporadic modifications to reduce the difficulty of upgrading versions, and the same series of products can continue to reuse this systemcontrol.
d) The ModuleControl module is mainly used for managing a third-party module, managing life processes and integrating functions of the third-party module, the third-party module is basically an independent service process and follows the service specification of an Android system, the ModuleControl module is provided with a plurality of independent service processes for managing the third-party module, the plurality of independent service processes are started when the Android system is started by utilizing an ActivatyManager, the plurality of independent service processes are called back to the ModuleControl registration state, management of the ModuleControl is facilitated, and functions of abnormity monitoring, death restarting and the like are achieved. The ModuleControl module is used for managing some modules which can be modified and customized, such as Emhi skill sdk, home monitoring service and the like, and the modules are packaged in service modes of ModuleControl, such as starting entry, Log collection and Crash monitoring, so that the modules can be thoroughly monitored, the functions of starting up, ensuring survival, reporting exception and the like are realized, and therefore, the realization of a plurality of special functions and effects is not limited by an android mechanism any more, and more modes are provided.
e) The InspurAdapter is mainly used for carrying numerous functional modules to realize flexible and changeable function expansion, and a code structure is designed in a factory mode or a bridge mode to facilitate calling and expanding functions. In order to guide the internet of things and increase the connection capacity with other equipment, an InspurAdapter module uses a MulticastSocket to detect equipment in a local area network in an Android system, a Bluetooth device is discovered by using a Bluetooth ToothAdptator, the Bluetooth state is recalled, the use frequency of Bluetooth is higher and higher, many customized set-top boxes need related functions and are modules which can be frequently reused, recording current screen content without permission application is realized by using a Nature layer Surfaceflunger and a MediaCodec of the Android system, and a VirtualDisplaySurface of Surfaceflunger is obtained as an InputSurface of the MediaCodec. The InspurAdapter module is a functional supplement for the InspurManager, if linkage between products of the Inspur needs to be realized, devicedetector Adapter can be connected to devices connected to the same network through wifi multicast, for example, a device DetecttorAdapter can be added, Bluetooth Adapter can be added by matching Bluetooth remote controllers, the use is convenient, and the Adapter can be accumulated with strong practical technologies by continuously iterating the Adapter.
The scattered requirements are greatly concentrated by establishing the service built in the Android system, external interfaces for secondary developers are unified, the integrity of the system can be greatly improved, and meanwhile, a reliable foundation is provided for long-term development. Meanwhile, the customized set top box needs to be brought into software products of other third-party companies, such as the love art, the Tencent video and the like, a mode of separating a front section and a rear section can be adopted in a set top box system to develop a set top box display interface, the front section is focused on UI interface development, the rear end (a manager system) is responsible for managing the third-party services, and available interfaces are summarized for calling the front section UI, so that the front end and the rear end are developed in parallel, the development speed is improved, and the project period is shortened.
A reliable system is established, functions with high reusability (such as system attribute extraction and node control) are extracted by adopting a modular design mode, functional modules with high technical performance are reserved, and through continuous accumulation and development of generation versions, the difficulty of redevelopment can be greatly reduced, and the time and the technical cost are reduced.
Example 1:
in the step a), a service inheriting the BindService is established in a frame layer of the Android system, the service is registered into the SystemService, and a service object is obtained globally. Providing services for the customized interface.
Example 2:
a service allows access to other services, also known as framework layers, with a higher privilege than apk for some defined operations.
Example 3:
the systemcontrol module in the step c) writes corresponding values into/system/module/am _ vecm/parameters/hdr _ mode in the Android system to change the sdr picture quality mode and the hdr picture quality mode. According to the characteristics of the android system, many similar characteristics can be controlled by writing in nodes, the only thing to be noticed is written values and node paths, and therefore the android system can operate on different platforms with different versions by uniformly adapting the similar modes to parameters of different platforms.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (4)

1. A method for managing Service by an Android set top box system built-in system is characterized by comprising the following steps:
a) establishing a service as a manager in the Android system of the set top box, and enabling the established service to have the internal authority of the Android system and expose an interface customized for the service;
b) respectively arranging a system control module, a ModuleControl module and an InspurAdapter module in the service;
c) the system control module monitors and reads the resolution of the Android system by using a uevent mechanism and an Android file monitoring mechanism, monitors system attributes in real time by using different paths for different nodes, and provides a system-wide notification by using broadcasting or a system database;
d) the ModuleControll module is provided with a plurality of independent service processes for managing a third-party module, the plurality of independent service processes are started when the Android system is started by utilizing an ActivitManager, and the plurality of independent service processes are called back to the ModuleControll registration state;
e) the InspurAdapter module uses a MulticastSocket to detect equipment in a local area network in an Android system, uses a Bluetooth ToothAdpt to discover and call back a Bluetooth state of the Bluetooth equipment, uses a Nature layer SurfaceFlinger and a MediaCodec of the Android system to record current screen content without permission application, and obtains a virtual DisplaySurface of the SurfaceFlinger as an InputSurface of the MediaCodec.
2. The method for managing Service by using the Android set-top box system built-in system according to claim 1, wherein the method comprises the following steps: in the step a), a service inheriting the BindService is established in a frame layer of the Android system, the service is registered into the SystemService, and a service object is obtained globally.
3. The method for managing Service by using the Android set-top box system built-in system according to claim 2, wherein the method comprises the following steps: a service allows access to other services which are also framework layers.
4. The method for managing Service by using the Android set-top box system built-in system according to claim 1, wherein the method comprises the following steps: and c), the systemcontrol module writes a corresponding value into the hdr _ mode in the Android system to change the sdr image quality mode and the hdr image quality mode.
CN202011023333.8A 2020-09-25 2020-09-25 Method for managing Service of Android set top box system built-in system Active CN112203148B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011023333.8A CN112203148B (en) 2020-09-25 2020-09-25 Method for managing Service of Android set top box system built-in system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011023333.8A CN112203148B (en) 2020-09-25 2020-09-25 Method for managing Service of Android set top box system built-in system

Publications (2)

Publication Number Publication Date
CN112203148A true CN112203148A (en) 2021-01-08
CN112203148B CN112203148B (en) 2022-05-27

Family

ID=74006870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011023333.8A Active CN112203148B (en) 2020-09-25 2020-09-25 Method for managing Service of Android set top box system built-in system

Country Status (1)

Country Link
CN (1) CN112203148B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113138790A (en) * 2021-05-14 2021-07-20 广东九联科技股份有限公司 Customized integration method and device for Android set top box and set top box integrated development system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314348A (en) * 2011-09-15 2012-01-11 Tcl集团股份有限公司 Android system development framework and development device
CN103200448A (en) * 2012-12-31 2013-07-10 广东九联科技股份有限公司 Android system of set top box (STB)
CN103686365A (en) * 2013-12-11 2014-03-26 上海巍岭数码科技有限公司 Android set top box system under B/S service model
US20160227276A1 (en) * 2013-09-10 2016-08-04 Academy Of Broadcasting Science, Sarft Intelligent television operation system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314348A (en) * 2011-09-15 2012-01-11 Tcl集团股份有限公司 Android system development framework and development device
CN103200448A (en) * 2012-12-31 2013-07-10 广东九联科技股份有限公司 Android system of set top box (STB)
US20160227276A1 (en) * 2013-09-10 2016-08-04 Academy Of Broadcasting Science, Sarft Intelligent television operation system
CN103686365A (en) * 2013-12-11 2014-03-26 上海巍岭数码科技有限公司 Android set top box system under B/S service model

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113138790A (en) * 2021-05-14 2021-07-20 广东九联科技股份有限公司 Customized integration method and device for Android set top box and set top box integrated development system
CN113138790B (en) * 2021-05-14 2023-11-10 广东九联科技股份有限公司 Customized integration method and device for Android set top box and integrated development system for set top box

Also Published As

Publication number Publication date
CN112203148B (en) 2022-05-27

Similar Documents

Publication Publication Date Title
US7487534B1 (en) Application programming interface (API) for accessing and managing resources in digital television receiver
US8782472B2 (en) Troubleshooting system using device snapshots
CN102868736B (en) A kind of cloud computing Monitoring framework design basis ground motion method and cloud computing treatment facility
CN103079061B (en) A kind of video tracking processes device and video link processes device
CN104021078B (en) Software supervision device and method
CN107343018B (en) Application service arranging method and system of PaaS cloud platform
CN101663653A (en) Network system, network household electrical appliance, synchronization processing method for contents/metadata, and computer program
CN102455936A (en) Trunk quick allocation method
CN112417051A (en) Container arrangement engine resource management method and device, readable medium and electronic equipment
CN103152412A (en) QT-based multimedia networked information publication terminal system
CN111078204A (en) Business middling front-end system based on micro front-end architecture
CN112203148B (en) Method for managing Service of Android set top box system built-in system
CN101840370A (en) Service state online detection method and system based on components
CN108228755A (en) The data of MySQL database based on daily record analytic technique to Hadoop platform synchronize clone method
CN102377853B (en) Management device and method for application, interface window and service of mobile terminal
CN112612545A (en) Configuration hot loading system, method, equipment and medium of server cluster
CN115827008B (en) Cloud primary big data component management system based on cloud primary platform Kubernetes
CN102089749A (en) Method and apparatus for managing binding information about a bundle installed remotely in an osgi service platform
CN113872795A (en) Intelligent monitoring analysis and fault processing system and method for distributed server
CN113612970A (en) Safety event intelligent analysis management and control platform for industrial monitoring video
CN101848109B (en) ATCA warning dynamic filtration method and device
CN115941739A (en) Inspection system and inspection method for Internet of things equipment
CN112882892B (en) Data processing method and device, electronic equipment and storage medium
CN115426370A (en) Heterogeneous container cloud platform and edge manufacturing service subscription implementation method thereof
CN111654671B (en) Video data storage method, device, equipment and 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 250101 west area, North 1st floor, S06 building, 1036 Chaochao Road, high tech Zone, Jinan City, Shandong Province

Applicant after: Shandong Inspur Yunman Intelligent Technology Co.,Ltd.

Address before: 250101 west area, North 1st floor, S06 building, 1036 Chaochao Road, high tech Zone, Jinan City, Shandong Province

Applicant before: SHANDONG YUNMAN INTELLIGENT TECHNOLOGY Co.,Ltd.

Address after: 250101 west area, North 1st floor, S06 building, 1036 Chaochao Road, high tech Zone, Jinan City, Shandong Province

Applicant after: Shandong Inspur Ultra HD Video Industry Co.,Ltd.

Address before: 250101 west area, North 1st floor, S06 building, 1036 Chaochao Road, high tech Zone, Jinan City, Shandong Province

Applicant before: Shandong Inspur Yunman Intelligent Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant