CN105933766B - WebOS system and set-top box based on set-top box - Google Patents

WebOS system and set-top box based on set-top box Download PDF

Info

Publication number
CN105933766B
CN105933766B CN201610039993.2A CN201610039993A CN105933766B CN 105933766 B CN105933766 B CN 105933766B CN 201610039993 A CN201610039993 A CN 201610039993A CN 105933766 B CN105933766 B CN 105933766B
Authority
CN
China
Prior art keywords
webos
top box
web
server
management
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
Application number
CN201610039993.2A
Other languages
Chinese (zh)
Other versions
CN105933766A (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.)
Oriental Pearl Omniad Media Inc
Original Assignee
Oriental Pearl Omniad Media Inc
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 Oriental Pearl Omniad Media Inc filed Critical Oriental Pearl Omniad Media Inc
Priority to CN201610039993.2A priority Critical patent/CN105933766B/en
Publication of CN105933766A publication Critical patent/CN105933766A/en
Application granted granted Critical
Publication of CN105933766B publication Critical patent/CN105933766B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software

Abstract

The present invention is suitable for field of communication technology, provide a kind of WebOS system based on set-top box, the WebOS system based on set-top box includes: hardware platform, linux system kernel and system kernel application interface from bottom to top, the system kernel application interface supports the calling of linux and the second operating system, and the function of the local underlying resource management by the local module completion operating system on the system kernel application interface;Hardware abstraction layer, for being compatible with Android device and supporting the installation of WebOS and Android dual system;When Web is run, for passing through Webkit kernel and parsing of the v8 engine implementation to HTML, CSS, JS, and the correlation function of the hardware platform and the local module is called;Web frame based on the WebOS system function described in Web standard implementation based on set-top box and provides applied business;And there are also the set-top boxes for including the above-mentioned WebOS system based on set-top box.Whereby, the professional platform independence energy of WebOS system can be improved in the present invention, and simplified system improves user experience.

Description

WebOS system and set-top box based on set-top box
Technical field
The present invention relates to field of communication technology more particularly to a kind of WebOS systems and set-top box based on set-top box.
Background technique
Mainstream set-top box currently on the market mainly uses android system to realize.Why so popular Android is, Mainly due to the open source of Android itself, it is free, efficiently, APP (Application, using) enriches, facilitates the spies such as transplanting Sign.But these features are also due to, lead to the shortcomings that Android is on the set-top box, there is itself: (1) fragmentation: any Set-top box producer take primary Android source code and can all change code, although resulting in all as Android code, exist Very big difference, SDK (Software Development Kit, i.e. Software Development Kit) cannot unify well;(2) potential Charge may: be not excluded for Google in future charge a possibility that;(3) too fat to move: Android primarily directed to cell phone apparatus, With the hardware requirement that can be improved on the set-top box to set-top box;(4) safety is low: such as brush machine, APP installs difficult to govern control, can not control Ordinary user processed obtains root (power user) permission etc.;(5) APP professional platform independence is low: being not used in other operating systems, such as Windows, iOS, MAC, in the systems such as class Linux.Set-top box is related to a kind of based on ARM (Acorn RISC MAChine, insertion A kind of architectural framework of formula chip) framework embedded system, it is used for television services, including but not limited to OTT (Over The Top, internet television business), IPTV (Interactive Personality TV, Interactive Internet TV), DVB (Digital Video Broadcasting, DTV) etc..
In summary, the prior art there will naturally be inconvenient and defect, so it is necessary to be improved in actual use.
Summary of the invention
For above-mentioned defect, the purpose of the present invention is to provide a kind of WebOS system and set-top box based on set-top box, Consider for television services and mainly to refer to set-top box, the professional platform independence energy of WebOS system can be improved, and simplified system improves User experience, the underlying mechanisms of more effective safety promote WebOS ecology quickly perfect.
To achieve the goals above, the present invention provides a kind of WebOS system based on set-top box, described based on set-top box WebOS system includes: from bottom to top
Hardware platform, linux system kernel and system kernel application interface, the system kernel application interface are supported The calling of linux and the second operating system, and operation system is completed by the local module on the system kernel application interface The function of the local underlying resource management of system;
Hardware abstraction layer, for being compatible with Android device and supporting the installation of WebOS and Android dual system;
When Web is run, for passing through Webkit kernel and parsing of the v8 engine implementation to HTML, CSS, JS, and institute is called State the correlation function of hardware platform and the local module;
Web frame based on the WebOS system function described in Web standard implementation based on set-top box and provides applied business;
The security mechanism of the WebOS system based on set-top box includes only opening the Web frame module externally to provide Applied business interface and open bottom hardware adaptable interface, the WebOS system based on set-top box by installation APP and Webapp realizes service, the APP and the Webapp by form web page realization, including local page or Webpage with Reach cross-platform purpose.
WebOS system according to the present invention based on set-top box, when the Web is run further include:
Manager when operation, internal resource, module and the management of service for the WebOS system based on set-top box And control;
WebBOM submodule interacts function with browser window for realizing independently of content;The WebBOM Submodule realizes browser model and manager use when being packaged into interface for the operation, including window, position, screen, History, document and navigation;
Webkit transplant submodule, for encapsulating Webcore, web interface is used for the WebBOM submodule and The platform feature of WebOS is adapted to;
The Webcore, for being built in the Webkit transplanting submodule, and using the v8 engine as Web wash with watercolours Engine is contaminated, the Webcore and the v8 engine include the blink kernel and blink/v8 engine of Google's specification.
WebOS system according to the present invention based on set-top box provides when the Web is run to the Web frame The service of support further include:
Function initialization when the Web starts when running;
Webpage load parsing management, executes load webpage by the WebBOM submodule;
Service starting executes the Web frame by Webkit kernel parsing for specifically starting a thread HTML/JS code completes the starting and management of the service to the Web frame by systemserver.js;
Management of process and process communication, the process for managing web-based Webapp belong to the communication between webpage;
It is communicated between multiple task management and multitask, starts different processes when passing through browser execution and handle each and answer With, construct new WebBOM Shipping Options Page load webpage and manage multiple tasks between communication;
Security control realizes that the code of the Web frame will be encrypted all using encryption mechanism by HTML/JS/CSS, The decryption of the code is realized with NPAPI mechanism simultaneously;
The installation of plug-in unit installation and access control, plug-in unit and extension realizes that the plug-in unit installation is logical also by encryption mechanism The NPAPI mechanism is crossed to realize;
Resources accessing control accesses control to system resource by the mechanism of Manifestval.XML;
Using installation and access management, is realized by white and black list mechanism to network address access control, realized to institute State the installation control of Webapp;
Cache management, the caching include page cache, memory cache and disk buffering;
Storage management, the storage management include supporting being locally stored for HTML5.
WebOS system according to the present invention based on set-top box, the Web frame include:
Server service manager realizes when based on browser execution, when for starting Web operation and management system Module and related service;The Webkit is called to transplant submodule by the WebBOM submodule when Web is run Block resolution system server initiation instructs to start the system server and related service, the server service manager The business of compatible Android system is used and is realized to Android system shared resource;
TV frame, for realizing television services encryption and decryption and realize value-added service;
System framework, for realizing interactive interface, system function and installation plug-in unit;Measured w3c standard interface, it is complete At system function, the code of the system framework needs to encrypt, and realizes secret by NPAPI mechanism;
The Web frame is to realize television services decryption and interaction by the plug-in unit based on the construction of HTML5 and JS standard Input;The measured w3c standard interface of system framework is constructed and is encrypted, and decryption is realized by NPAPI mechanism;
WebOS SDK interface, for providing the Software Development Kit interface of specification;
Card i/f, for running and installing standard plug-in unit application;
HTML/CSS/JS standard interface, the portion JS ext for supporting for cross-platform and being realized by JS binding Point;
The applied business interface includes the card i/f and the Web standard plug-in unit interface.
WebOS system according to the present invention based on set-top box, the server service manager further include:
Webzygote server is parsed by Webkit kernel for starting a thread and executes control command and complete At the starting and management of service;The mode of the Webzygote server precompile or jit execute systemserver.js File start service;When starting browser execution by the Webzygote server, webview porting is called, finally The systemserver.js file, starting service are executed by the v8 engine;
Process communication server, for the process ownership management and communication of WebOS, the different web pages including same process, Communication between the webpage of even different processes, application process support foreground and running background;
The module information interaction of the server service manager by Android binder, Linux shared drive, The interprocess communication mode of socket carries out;
Window manager completes load webpage for distributing different tasks in different processes respectively;Multitask pipe Reason submodule starts different processes when passing through browser execution, constructs new WebBOM to load webpage;
Package Manager for starting by initialization, and receives Package Manager by JS binding mode Order and by Web installation server parsing execute installation;
In the WebOS system based on set-top box, described program package manager will install server interaction with Web, Complete corresponding program bag management;Described program package manager calls the Web to install server by JS interface;
DRM server, the content of copyright encryption handling for resource file;
Carrier server is communicated for local client and carrier network;
Resource access function is completed in resource manager, starting resource manager service.
WebOS system according to the present invention based on set-top box, the DRM server further include:
Parsing executes Webapp when the Web is run, and calls the DrmManagerClient module of the local module And it is communicated using Android binder module and the DrmManagerService in the DRM server process.
WebOS system according to the present invention based on set-top box, the WebOS system based on set-top box are also wrapped Include a security module based on Linux system, the security module further include:
Security module engine, for preventing user from going beyond one's commission and obtaining root authority;
It is booted up module, boot-loader operating system when for equipment starting;
Trust region, for storing private key.
WebOS system according to the present invention based on set-top box, the server service manager further include:
Media server, surfaceflinger server, network server, starting animation server, debugging server, Wall manager.
WebOS system according to the present invention based on set-top box, the local module further include:
Library is decoded, for supporting the media file of image, audio to decode and system file decoding;
Network library network protocol stack, for supporting international media playing standard and international communication standards agreement;
Java Virtual Machine is supported to be embedded in JAVA by APPlet in browser for the embedded type virtual machine by increasing income Program;The Java Virtual Machine is also used to compatible Android system application.
The present invention also provides a kind of set-top boxes, including a kind of according to the WebOS described in any of the above embodiments based on set-top box System and set-top box ontology are provided with TV signal interface and network signal interface on the set-top box ontology.
The present invention enables webOS to obtain hardware capabilities and bottom clothes well by that will construct webOS based on machine top Business is existed by the Web API (Application Programming Interface, application programming interface) for constructing new Webpage roofing control hardware, realizes various applications, if player related hardware is directly exposed to Web application, passes through associated encryption Technology and black and white lists strobe utility realize installation and access control to ebapp, plug-in unit, embedded system basic-level support WebOS and Android system and shared the corresponding function module improve cross-platform based on Web standard, strengthen underlying mechanisms and Security mechanism improves user experience.
Detailed description of the invention
Fig. 1 is the WebOS system structure diagram based on set-top box of one embodiment of the invention;
Structural schematic diagram when Fig. 2 is the Web operation of the WebOS system based on set-top box of one embodiment of the invention;
Fig. 3 is the Web circuit theory schematic diagram of the WebOS system based on set-top box of one embodiment of the invention;
Fig. 4 is the server service manager structural representation of the WebOS system based on set-top box of one embodiment of the invention Figure;
Fig. 5 is the WebOS system structure diagram based on set-top box of the preferred embodiment of the present invention;
Fig. 6 is the dual system configuration diagram of another embodiment of WebOS system the present invention is based on set-top box;
Fig. 7 be one embodiment of the invention the WebOS system module based on set-top box between interaction schematic diagram;
Fig. 8 is that prior art DRMframework realizes schematic diagram;
Fig. 9 is that the DRMframework of the WebOS system based on set-top box realizes schematic diagram.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 is 100 structural schematic diagram of WebOS system based on set-top box of one embodiment of the invention.For ease of description, should Only the parts related to the present invention are shown for figure.The WebOS system 100 based on set-top box can be mobile phone, PDA (Personal Digital Assistant, personal digital assistant), palm PC etc., and the WebOS system based on set-top box System 100.Wherein, it realizes and constructs WebOS (Web 0peration System, network operating system) framework, including ARM framework is embedding The dominant frequency of embedded system, memory, flash memory various performance parameters using mainstream embedded product on the market as reference, such as plate electricity Brain, set-top box, mobile phone etc., however it is not limited to set-top box.
WebOS is the operating system realized based on webpage, and all applications are realized by webpage.Similar The function of browser application on Windows is integrated into inside operating system.Operating system itself does not realize window system, but It is realized by web control.Browser function in WebOS system 100 based on set-top box occurs no longer in the form of application, and It is to occur with system function.All applications all follow 5 standard of HTML, can reach cross-platform purpose, can have at other HTML 5, which is parsed, runs web APP in the system of function.
To achieve the goals above, the present invention provides a kind of WebOS system 100 based on set-top box, described to be based on machine top The WebOS system 100 of box includes: from bottom to top
Hardware platform 1, linux system kernel 2 and system kernel application interface 3, the system kernel application interface 3 The calling of linux and the second operating system are held, and behaviour is completed by the local module 20 on the system kernel application interface 3 Make the function of the local underlying resource management of system;
Hardware abstraction layer 30, for being compatible with Android device and supporting the installation of WebOS and Android dual system;
10 when Web is run, for passing through Webkit kernel and parsing of the v8 engine implementation to HTML, CSS, JS, and call The correlation function of the hardware platform and the local module;
Web frame 60 based on 100 function of WebOS system described in Web standard implementation based on set-top box and is provided using industry Business;
The security mechanism of the WebOS system based on set-top box includes only opening the Web frame module externally to provide Applied business interface and open bottom hardware adaptable interface, the WebOS system based on set-top box by installation APP and Webapp realizes service, the APP and the Webapp by form web page realization, including local page or Webpage with Reach cross-platform purpose.
The part Webapp mainly includes Desktop (desktop)/launcher UI (User Interface, Yong Hujie Face), system APP, TV APP etc. will be realized by form web page, local page or Webpage, to reach cross-platform Purpose specifically includes:
1) entire desktop environment, i.e. Desktop (desktop)/launcher UI (are realized with local page, but are had update Function);2) system APP, local offline APP, system music APP, fault cues, user's operation prompt, user setting, system are set Set, local file system management, it is local play, local picture browsing, file system management etc. are realized with local page, but had More new function;3) various television services APP, such as program request, be broadcast live, review, time shift pass through remote pages realize;4) increment industry Be engaged in APP, such as game, portal, video, news, map by remote pages realization;5) APP store frame passes through native page Face realizes that APP list is realized by XML (eXtensible Markup Language, extensible markup language), can at any time more Newly.6) authenticate, authenticate, charging plug-in unit, this part cannot achieve it is cross-platform, however, the support standard of mainstream operation system The plug-in unit of plug-in unit API is realized, using meeting automatic recognition system and suitable plug-in unit is selected to install automatically, similar Internetbank plug-in unit. Websocket is supported in the Webkit transplanting submodule 13 of WebOS, allows WebApp that can call directly websocket with this API。
The webkit (such as Android) of certain platforms does not support that websocket is not that webkit does not manage this block, but This characteristic needs are porting in the distinctive network layer of each platform.So preliminary judgement only needs completion network layer Read-write
On the basis of the above, this part directly uses Android (based on BSD) and Linux (based on GPL or LGPL) Partial function, including but not limited to: 1) compiling system.Code generation based on mk, using mk file, Shell script and Python script composition and NDK (Native Development Kit, local developing instrument collection) compilation tool etc., still The particular content of script need to be made an amendment.2) BSP (Board Support Package, board suppot package), including HAL (Hardware Abstraction Layer, hardware abstraction layer 30), MTD (Memory Technology Device, memory skill Art equipment), flash subarea carry, bootloader (is booted up) related mechanism, MMU (Memory Management Unit, memory management unit), SD (Secure Digital Memory Card, safe digital card) management etc..3) upgrade machine System, fastboot (line brush) collapse recovery (Android backup functionality), encrypted authentication, USB (Universal Serial Bus, universal serial bus)/SD upgrade mechanism etc..4) Partial security mechanism, Gao An, anti-root (super keepe account Family), anti-brush machine, access limit control, update is tested close etc., and detailed content is described in security module) 5) version management mechanism, Mkbootimg, cpio etc., binary functions mechanism, such as data.img, system.img, boot.img, recovery.img Deng.6) developing instrument, debugging technique, such as eclipse, adb (Android Debug Bridge, Android debug bridge), ddms (Dalvik Debug Monitor Service, Dalvik virtual machine debug monitoring service), logcat etc..7) process communication machine System, such as binder, shared drive, socket (socket) etc..8) boot animation mechanism such as uses Android boot animation Mechanism.9) various design patterns, template etc., such as bp/bn agency mechanism, sp/wp memory management, memheap shared drive, line Thread management, looper/handle mechanism, stl etc..10) the various mechanism of other Linux class systems, such as init mechanism, file system System, memory management, process and communication, user management etc..11) kernel and its API, such as respectively using Linux kernel and Android bionic is completed.12) various native lib are such as realized using Linux open source third library).
Another embodiment as shown in FIG. 6, the present invention is based on be the double systems of support inside the WebOS system 100 of set-top box The structure of system can be compatible with JAVA and apply using with WebOS, preferably facilitate the application and development of platform and to the prior art It utilizes.
Further, the WebOS system 100 based on set-top box, 10 is real based on open source Google blink/v8 when the Web is run It is existing, it is not the function of a simple webkit/v8,10 when the Web is run further include:
Manager 11 when operation, internal resource, module and the pipe of service for the WebOS system based on set-top box Reason and control;
WebBOM submodule 12 interacts function with browser window for realizing independently of content;It is described Manager 11 uses when WebBOM submodule 12 realizes browser model and is packaged into interface for the operation, including window, Position, screen, history, document and navigation;
Webkit transplant submodule 13, for encapsulating Webcore, web interface is used for the WebBOM submodule and The platform feature of WebOS is adapted to;The function that webkit transplants submodule mainly completes encapsulation webcore/v8 etc., especially The interfaces such as webview/webpage (webpage)/webframe (frame) are used for webBOM;The platform feature of webOS is adapted to, packet Include graphic, network, text, image encoding and decoding, audio etc..
The Webcore, for being built in the Webkit transplanting submodule 13, and using the v8 engine as Web Rendering engine, the Webcore and the v8 engine include the blink kernel and v8 engine of Google's specification;As in Fig. 3 with Webcore/v8 engine 131 indicates its internal structure.
The combination of the Webcore and the v8 engine transplants submodule 13 and the V8 engine by the Webkit Constitute, follow the HTML/ of GPL (abbreviation of General Public License is the general public authorization of a GNU) specification The parsing of CSS/JS, layout, rendering engine.The module Starting mode: being started by Webzygote server 617, similar The function of zygote native application in Android.Webzygote server 617 belongs to framework (frame) The scope of server/service itself operates in a process, by the init.rc file start of Linux, Webzygote server 617 is responsible for completing the starting to web runtime (10 when Web is run).10 instantiation when Web is run Manager 11 when one global operation.Manager 11 starts different WebBOM (BOM, browsing according to certain mechanism when operation Device object model), each WebBOM completes an individual APP task (task), is responsible for by the WebBOM submodule 12.
It is preferred that the WebOS system 100 of the present invention based on set-top box, 10 to described when the Web is run Web frame 60 provides the service supported further include:
Function initialization when the Web is run when 10 starting;
Webpage load parsing management, executes load webpage by the WebBOM submodule 12;
Service starting executes the Web frame by Webkit kernel parsing for specifically starting a thread HTML/JS code, the starting and management to the service of the Web frame 60 are completed by systemserver.js;
Management of process and process communication, the process for managing web-based Webapp belong to the communication between webpage;
It is communicated between multiple task management and multitask, starts different processes when passing through browser execution and handle each and answer With, construct new WebBOM Shipping Options Page load webpage and manage multiple tasks between communication;
Security control realizes that the code of the Web frame 60 will all be added using encryption mechanism by HTML/JS/CSS It is close, while realizing with NPAPI mechanism the decryption of the code;
The installation of plug-in unit installation and access control, plug-in unit and extension realizes that the plug-in unit installation is logical also by encryption mechanism The NPAPI mechanism is crossed to realize;
Resources accessing control accesses control to system resource by the mechanism of Manifestval.XML;
Using installation and access management, is realized by white and black list mechanism to network address access control, realized to institute State the installation control of Webapp;
Cache management, the caching include page cache, memory cache and disk buffering;
Storage management, the storage management include supporting being locally stored for HTML5.
It is preferred that the WebOS system based on set-top box, the Web frame 60 include:
Server service manager 61 is realized when based on browser execution, is for starting when the Web is run and managing The module and related service of system;10 call the Webkit to move by the WebBOM submodule 12 when the Web is run The instruction of 13 resolution system server initiation of submodule is planted to start the system server and related service, the server clothes The business of the compatible Android system of business manager 61 is used and is realized to Android system shared resource;Specifically such as pass through Linux After init.rc starts Webzygote server 617, and then start webruntime, webruntime passes through webBOM Call webkit parsing JS file SystermServer.js come start the system server (SystermServer) and its It is responsible for certain Service of starting.
TV frame 63, for realizing television services encryption and decryption and realize value-added service;
System framework 62, for realizing interactive interface, system function and installation plug-in unit;Measured w3c standard connects Mouthful, system function is completed, the code of the system framework 62 needs to encrypt, and realizes secret by NPAPI mechanism;
The Web frame 60 is to be realized television services decryption based on the construction of HTML5 and JS standard by the plug-in unit and handed over Mutually input;The measured w3c standard interface of system framework is constructed and is encrypted, and decryption is realized by NPAPI mechanism;
WebOS SDK interface 66, for providing the Software Development Kit interface of specification;
Card i/f 64, for running and installing standard plug-in unit application;
HTML/CSS/JS standard interface 65, the JS ext for supporting for cross-platform and being realized by JS binding Part;
The applied business interface includes the card i/f 64 and the Web standard plug-in unit interface 65.
The functions such as the necessary basic system functions of set-top box, television services, value-added service, packet are realized based on HTML 5 and JS Include IPTV, the various agreements such as OTT, business function, such as program request, be broadcast live, review, time shift business;Other are related to confidential content It need to be realized with plug-in method, such as the interaction of security mechanism, upgrade mechanism user management, platform, including CDN (Content Delivery Network, content distributing network), VS (needing bowl spares full name in English, videospeedly, video acceleration), EPG (Authentication certification, Authorization are awarded by (Electronic Program Guide, electronic program guides), 3A Power, Accounting charging), BOSS (Business and Operation Support System, Operation Support System), BO (needs the abbreviation of bowl spares full name in English Business Object, Business Object is business object layer, indicates to apply journey All entity class of " things " in sequence field.These entity class are resident on the server, and assist to complete it using service class Responsibility) etc..
Server service manager 61 realizes the various functions of system and its IPC (Inter-Process Communication, interprocess communication) mechanism, including player function, interactive system (display and input) etc. passes through standard C/c++ realize, run on independent process, must localization encryption is not realized with card format.
The lower IPTV of TV frame 63, OTT protocol stack need to be with standard NPAPI (Netscape Plugin Application Programming Interface, Netscape plug-in applications programming interface) card format realization, it cannot be in the form of JS extends It realizes, otherwise APP is unable to reach cross-platform purpose.Its w3c API for being based partially on standard is realized, and need to consider to add safely It is close, such as HTML, CSS, JS;Part is realized using the plug-in unit API of standard, such as decryption plug-in unit, other necessary plug-in units.Follow standard Card i/f, such as NPAPI, BHO (Browser Helper Object, browser auxiliary object) etc..
System framework 62 (System framework) realizes various system management functions, including application management, installing pipe Reason, resource management, window management etc..Its w3c API for being based partially on standard is realized, and need to consider safe encryption, such as HTML, CSS, JS;Part is realized using the plug-in unit API of standard, such as input method plug-in unit, Internetbank plug-in unit, other necessary plug-in units.Follow standard Card i/f, such as NPAPI, BHO etc.;
In view of the plaintext property of preceding end instruction, all to be used by the framework code that HTML/JS/CSS is realized Encryption mechanism encryption, while decrypting function and being realized in the form of NPAPI plug-in unit, the installation of various plug-in units and extension will pass through encryption Mechanism is realized.Furthermore will to cookie, system save various user name passwords, user access trace protect, pop-up It is controlled, to support small size window, supported sandbox technology, avoid destruction of the web to various system resources
It is preferred that the WebOS system 100 based on set-top box, the server service manager 61 also wrap It includes:
Webzygote server 617 is parsed by the Webkit kernel for starting a thread and executes control life Enable and complete the starting and management of service;The mode of 617 precompile of Webzygote server or jit execute Systemserver.js file start service;When starting browser execution by the Webzygote server 617, call Webview porting (webpage view transplanting) executes the systemserver.js file eventually by the v8 engine, Starting service;
Process communication server 612, the process for WebOS belong to management and communication, the different nets including same process Communication between page, or even the webpage of different processes, application process support foreground and running background;;
For the module information interaction of the server service manager 61 by Android binder, Linux is shared interior It deposits, the interprocess communication mode of socket carries out;As shown in Figure 7;
Window manager 611 completes load webpage for distributing different tasks in different processes respectively;It is described more Task management submodule starts different processes when passing through browser execution, construct new WebBOM to load webpage;
Package Manager 614 for starting by initialization, and receives program bag management by JS binding mode The order of device simultaneously executes installation by Web installation server parsing;
In the WebOS system based on set-top box, described program package manager 614 will install server 615 with Web Interaction, completes corresponding program bag management;Described program package manager 614 calls the Web to install server by JS interface 615;
DRM server 619, the content of copyright encryption handling for resource file;
Carrier server 613, is communicated for local client and carrier network;
Resource access function is completed in resource manager 616, starting resource manager service.
More particularly, the WebOS system 100 of the present invention based on set-top box, the DRM server 619 also wrap It includes:
10 parsings execute Webapp when the Web is run, and call the DrmManagerClient of the local module 20 Module is simultaneously communicated using Android binder module and the DrmManagerService in 619 process of DRM server. Android drm framework function such as Fig. 8, left side a part is there is in Android earlier version for OMA The support of DRM 1.0, the right a part are put forward after 4.0 version of Android, i.e. libDrmFramework.It is right While being following trend, so being to realize drm correlation function based on DRM server 619.It is shown with simple figure, basic function Such as Fig. 9.
It is preferred that the WebOS system 100 based on set-top box further includes a security module based on Linux system, The security module 70 further include:
Security module engine 71, for preventing user from going beyond one's commission and obtaining root authority;
It is booted up module 72, boot-loader operating system when for equipment starting;
Trust region 73, for storing private key.
The effect of the security module 70 is to be accomplished that the original security mechanism of Android, and consider cross-platform Principle, the security module 70 includes JS framework deciphering module, and need to be embodied as plug-in unit, and decryption is realized in inside. Real webOS, all framework functions should all realize that framework itself can add on HTML/CSS/JS layers Close hiding service logic is realized by way of special safety insert when decryption.
Further, as shown in figure 4, the WebOS system 100 of the present invention based on set-top box, the server Service managerZ-HU 61 further include:
Media server 618, surfaceflinger server 6110, network server 6112 start animation server 6113, debugging server 6114, Wall manager 6115.Wall manager 6115 is for managing External memory equipment.
It is preferred that the WebOS system 100 of the present invention based on set-top box, the local module 20 further include:
Library is decoded, for supporting the media file of image, audio to decode and system file decoding;
Network library network protocol stack, for supporting international media playing standard and international communication standards agreement;
Java Virtual Machine is supported to be embedded in JAVA by APPlet in browser for the embedded type virtual machine by increasing income Program;The Java Virtual Machine is also used to compatible Android system application.
Specifically, if having of supporting of the decoding library of the WebOS system 100 based on set-top box:
1) audio-video parses encoding and decoding, the Container Format for the audio-video that need to be supported: as (Transport Stream is passed TS Send stream), AVI (Audio Video Interleaved, Audio Video Interleaved format), MP4 (MPEG Layer4), MP3 (MPEG Layer3) etc.;The coded format that need to be supported: H264, MPEG1 (Moving Pictures Experts Group 1, Dynamic Graph As expert group 1), MPEG2, MPEG4, AC3 (Audio Coding3, audio coding 3), AAC (Advanced Audio Coding, Advanced Audio Coding) etc..
2) shape library, the figure rank that need to be supported include: to draw, setting-out, rectangle, polygon, blit, and color space turns It changes, the figures grade processing such as α mixing.
3) picture decodes library, the coded format JPEG that need to be supported (Joint Photographic Experts Group, connection Close imagery specialists group), GIF (Graphics Interchange Format, graphic interchange format), PNG (Portable Network Graphic Format, Portable Network Graphics), BMP (Bitmap, bitmap) etc..
The agreement that the classification and version of the network library network protocol stack need to be supported, such as RTSP (Real Time Streaming Protocol, real time streaming transport protocol), HLS (HTTP Live Streaming, hypertext live stream), IGMP (Internet Group Management Protocol, Internet Group Management Protocol), SIP (Session Initiation Protocol, Session initiation Protocol), TCP (Transmission Control Protocol, transmission control protocol), UDP (User Datagram Protocol, User Datagram Protocol), and RTP (Realtime Transport Protocol, in real time Transport protocol), RTCP (Realtime Transport Control Protocol, RTCP Real-time Transport Control Protocol), SSL (Secure Sockets Layer, Secure Socket Layer) etc..
Other commonly use necessary function library, such as zlib function library, freetype font engine, character library, encryption library etc..
In addition, it can be common that JVM (Java Virtual Machine, Java Virtual Machine) passes through the embedded of open source JVM supports to be embedded in JAVA program by APPlet in browser (browser).
The present invention also provides a kind of set-top boxes, including a kind of according to the WebOS described in any of the above embodiments based on set-top box System 100 and set-top box ontology are provided with TV signal interface and network signal interface on the set-top box ontology.
Preferably, in addition, WebOS system 100 based on set-top box supports sandbox (sandbox) technology, to cookie, The various username and passwords that system saves, the access trace of user are protected, are controlled pop-up, support small size window Mouthful.Television services are medium to be related to the functions to be encrypted such as certification, authentication, charging, is realized in a manner of plug-in unit, and similar Internetbank is inserted Part.Whereby present invention seek to address that Android there are the problem of: 1) about fragmentation, improve uniformity problem: the present invention is used BSD open source standard, externally only provides APP business API and bottom hardware is adapted to API.Only open source has used GPL (GNU General Public License, general public licence) specification correlation module code.2) about charging problem, the present invention allows Independent development is independently used for provider customer.3) about too fat to move problem, the call without similar Android, Camera, GPS, MIC, the mobile phones necessary functions such as power management only provide television business function.4) about the low problem of safety: core generation itself Code is not increased income, and using the high peace mechanism of hardware, the mechanism such as sandbox technology of browser, in addition, being related to certification, authentication, meter The decryption modules such as take to complete using plug-in unit, similar Internetbank plug-in unit.5) about the low problem of APP professional platform independence: using and follow HTML 5 The languages such as HTML, CSS (Cascading Style Sheet, Cascading Style Sheet) of specification, JS (JavaScript, scripting language) Speech realizes APP.Since the browser of the mainstream of present mainstream operation system all supports HTML 5, so convenient in other operation fortune Row HTML 5APP.
In conclusion the present invention enables webOS to obtain hardware capabilities well by constructing webOS based on set-top box And underlying services, by constructing new Web API (Application Programming Interface, application programming Interface) in webpage roofing control hardware, it realizes various applications, if player related hardware is directly exposed to Web application, passes through phase Close the installation and access control of encryption technology and the realization of black and white lists strobe utility to web APP, plug-in unit, embedded system bottom Layer supports WebOS and Android system and shared the corresponding function module, improves cross-platform based on Web standard, strengthens bottom Mechanism and security mechanism improve user experience.
Certainly, the present invention can also have other various embodiments, without deviating from the spirit and substance of the present invention, ripe It knows those skilled in the art and makes various corresponding changes and modifications, but these corresponding changes and change in accordance with the present invention Shape all should fall within the scope of protection of the appended claims of the present invention.

Claims (9)

1. a kind of WebOS system based on set-top box, which is characterized in that the WebOS system based on set-top box is from bottom to top Include:
Hardware platform, linux system kernel and system kernel application interface, the system kernel application interface support linux With the calling of the second operating system, and the sheet of operating system is completed by local module on the system kernel application interface The function of ground bottom resource management;
Hardware abstraction layer, for being compatible with Android device and supporting the installation of WebOS and Android dual system;
When Web is run, for passing through Webkit kernel and parsing of the v8 engine implementation to HTML, CSS, JS, and call described hard The correlation function of part platform and the local module;
Web frame based on the WebOS system function described in Web standard implementation based on set-top box and provides applied business;
The security mechanism of the WebOS system based on set-top box includes only opening the Web frame module externally to provide application Business interface and open bottom hardware adaptable interface, the WebOS system based on set-top box pass through installation APP and Webapp Realize service, the APP and the Webapp by form web page realization, including local page or Webpage with reach across Platform purpose;
Wherein, when the Web is run further include:
Manager when operation, internal resource, module and the management of service and control for the WebOS system based on set-top box System;
WebBOM submodule interacts function with browser window for realizing independently of content;The WebBOM submodule Block realizes browser model and manager use when being packaged into interface for the operation, including window, position, screen, history, Document and navigation;
Webkit transplants submodule, and for encapsulating Webcore, web interface is used for the WebBOM submodule and WebOS Platform feature adaptation;
The Webcore for being built in the Webkit transplanting submodule, and is rendered using the v8 engine as Web and is drawn It holds up, the Webcore and the v8 engine include the blink kernel and blink/v8 engine of Google's specification.
2. the WebOS system according to claim 1 based on set-top box, which is characterized in that described when the Web is run Web frame provides the service supported further include:
Function initialization when the Web starts when running;
Webpage load parsing management, executes load webpage by the WebBOM submodule;
Service starting executes the Web frame by Webkit kernel parsing for specifically starting a thread HTML/JS code completes the starting and management of the service to the Web frame by systemserver.js;
Management of process and process communication, the process for managing web-based Webapp belong to the communication between webpage;
It is communicated between multiple task management and multitask, starts different processes when passing through browser execution and handle each application, structure New WebBOM Shipping Options Page is made to load webpage and manage the communication between multiple tasks;
Security control realizes that the code of the Web frame will be encrypted all using encryption mechanism by HTML/JS/CSS, simultaneously The decryption of the code is realized with NPAPI mechanism;
The installation of plug-in unit installation and access control, plug-in unit and extension realizes that the plug-in unit installation passes through institute also by encryption mechanism State the realization of NPAPI mechanism;
Resources accessing control accesses control to system resource by the mechanism of Manifestval.XML;
Using installation and access management, is realized by white and black list mechanism to network address access control, realized to described The installation of Webapp controls;
Cache management, the caching include page cache, memory cache and disk buffering;
Storage management, the storage management include supporting being locally stored for HTML5.
3. the WebOS system according to claim 1 based on set-top box, which is characterized in that the Web frame includes:
Server service manager realizes when based on browser execution, when for starting Web operation and the mould of management system Block and related service;The Webkit is called to transplant submodule solution by the WebBOM submodule when Web is run Analysis system server initiation instructs to start the system server and related service, and the server service manager is compatible The business of Android system is used and is realized to Android system shared resource;
TV frame, for realizing television services encryption and decryption and realize value-added service;
System framework, for realizing interactive interface, system function and installation plug-in unit;Measured w3c standard interface completes system System function, the code of the system framework need to encrypt, and pass through NPAPI mechanism and realize secret;
The Web frame is to realize that television services decryption and interaction are defeated by the plug-in unit based on the construction of HTML5 and JS standard Enter;The measured w3c standard interface of system framework is constructed and is encrypted, and decryption is realized by NPAPI mechanism;
WebOS SDK interface, for providing the Software Development Kit interface of specification;
Card i/f, for running and installing standard plug-in unit application;
HTML/CSS/JS standard interface, the part JS ext supported for cross-platform and realized by JS binding;
The applied business interface includes the card i/f and the Web standard plug-in unit interface.
4. the WebOS system according to claim 3 based on set-top box, which is characterized in that the server service management Device further include:
Webzygote server is parsed by the Webkit kernel for starting a thread and executes control command and complete At the starting and management of service;The mode of the Webzygote server precompile or jit execute systemserver.js File start service;When starting browser execution by the Webzygote server, webview porting is called, finally The systemserver.js file, starting service are executed by the v8 engine;
Process communication server, for the process ownership management and communication of WebOS, the different web pages including same process, even Communication between the webpage of different processes, application process support foreground and running background;
The module information interaction of the server service manager by Android binder, Linux shared drive, The interprocess communication mode of socket carries out;
Window manager completes load webpage for distributing different tasks in different processes respectively;Multiple task management Module starts different processes when passing through browser execution, construct new WebBOM to load webpage;
Package Manager for starting by initialization, and receives the life of Package Manager by JS binding mode It enables and installation is executed by Web installation server parsing;
In the WebOS system based on set-top box, described program package manager will install server interaction with Web, complete Corresponding program bag management;Described program package manager calls the Web to install server by JS interface;
DRM server, the content of copyright encryption handling for resource file;
Carrier server is communicated for local client and carrier network;
Resource access function is completed in resource manager, starting resource manager service.
5. the WebOS system according to claim 4 based on set-top box, which is characterized in that the DRM server also wraps It includes:
Parsing executes Webapp when the Web is run, and calls the DrmManagerClient module of the local module and make DrmManagerService communication with Android binder module and in the DRM server process.
6. the WebOS system according to claim 3 based on set-top box, which is characterized in that described based on set-top box WebOS system further includes a security module based on Linux system, the security module further include:
Security module engine, for preventing user from going beyond one's commission and obtaining root authority;
It is booted up module, boot-loader operating system when for equipment starting;
Trust region, for storing private key.
7. the WebOS system according to claim 6 based on set-top box, which is characterized in that the server service management Device further include:
Media server, surfaceflinger server, network server start animation server, debugging server, Wall Manager.
8. the WebOS system according to claim 1 based on set-top box, which is characterized in that the local module further include:
Library is decoded, for supporting the media file of image, audio to decode and system file decoding;
Network library network protocol stack supports international media playing standard and international communication standards agreement;
Java Virtual Machine is supported to be embedded in JAVA program by APPlet in browser for the embedded type virtual machine by open source; The Java Virtual Machine is also used to compatible Android system application.
9. a kind of set-top box, which is characterized in that including a kind of WebOS system according to claims 1 to 8 based on set-top box System and set-top box ontology are provided with TV signal interface and network signal interface on the set-top box ontology.
CN201610039993.2A 2016-01-21 2016-01-21 WebOS system and set-top box based on set-top box Active CN105933766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610039993.2A CN105933766B (en) 2016-01-21 2016-01-21 WebOS system and set-top box based on set-top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610039993.2A CN105933766B (en) 2016-01-21 2016-01-21 WebOS system and set-top box based on set-top box

Publications (2)

Publication Number Publication Date
CN105933766A CN105933766A (en) 2016-09-07
CN105933766B true CN105933766B (en) 2019-01-15

Family

ID=56840309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610039993.2A Active CN105933766B (en) 2016-01-21 2016-01-21 WebOS system and set-top box based on set-top box

Country Status (1)

Country Link
CN (1) CN105933766B (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534130A (en) * 2016-11-21 2017-03-22 深圳创维数字技术有限公司 Method and system for debugging set-top box based on embedded web
CN106775668A (en) * 2016-11-30 2017-05-31 广东亿迅科技有限公司 The mobile applications Development Framework and implementation method of cross operating system
CN108170536B (en) * 2016-12-07 2023-07-04 北大医疗信息技术有限公司 Expanding method and device of WEB program
CN107102853B (en) * 2017-03-26 2021-02-26 安徽继远软件有限公司 Method for customizing mobile operating system to be compatible with Android application
CN107396186B (en) * 2017-08-11 2019-11-08 四川长虹电器股份有限公司 Linux equipment WebOS system application management method
CN107484024B (en) * 2017-08-17 2019-12-24 四川长虹电器股份有限公司 Method for realizing global floating menu by using hot key based on WEBOS intelligent television system
CN107396168B (en) * 2017-08-24 2021-01-26 四川长虹电器股份有限公司 Television live broadcasting system capable of configuring launchers
CN109725958A (en) * 2017-10-30 2019-05-07 腾讯科技(深圳)有限公司 The method and device that the file of resource manager management is handled
CN108055356B (en) * 2018-01-08 2021-03-16 武汉斗鱼网络科技有限公司 Information processing method, server, client and readable storage medium
CN108804939A (en) * 2018-05-04 2018-11-13 广州四九游网络科技有限公司 A kind of data processing method of WEBVIEW engines
CN109714642B (en) * 2018-12-29 2022-03-08 深圳Tcl数字技术有限公司 Method for reusing Linux application in intelligent system, intelligent television and storage medium
CN111414156B (en) * 2019-01-08 2023-09-22 杭州海康威视数字技术股份有限公司 Embedded equipment and service system based on open platform and service development method
CN109948092A (en) * 2019-03-20 2019-06-28 四川长虹电器股份有限公司 A kind of method of Android TV platform lightweight browsers engine pages button control
CN110515667B (en) * 2019-08-26 2023-04-11 武汉蓝星科技股份有限公司 Terminal dual-system display switching method based on linux kernel and terminal dual-system
CN111818375A (en) * 2020-06-09 2020-10-23 深圳市天威视讯股份有限公司 Popup window detection method and device for intelligent set top box and intelligent set top box
CN112799665B (en) * 2021-01-27 2022-12-13 视若飞信息科技(上海)有限公司 Method for constructing App functional interface in WebUI mode
CN113709541A (en) * 2021-08-27 2021-11-26 重庆京东方智慧科技有限公司 WEB-based multi-terminal equipment interaction method, system and terminal equipment
CN117056173B (en) * 2023-10-12 2024-01-30 麒麟软件有限公司 Method for monitoring android application life cycle on Web operating system
CN117271270B (en) * 2023-11-21 2024-04-05 麒麟软件有限公司 Method for monitoring Android music playing on Web operating system
CN117348876B (en) * 2023-12-04 2024-02-06 深圳市云希谷科技有限公司 Application development method, system and medium based on freeRTOS embedded system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4355639B2 (en) * 2004-09-15 2009-11-04 キヤノン株式会社 Image processing apparatus and control method thereof
US8700802B2 (en) * 2010-07-08 2014-04-15 InMobi Pte Ltd. Method and system for providing advertising content suitable for multiple platforms
CN104079707A (en) * 2013-03-28 2014-10-01 联想(北京)有限公司 Communication method and electronic equipment
CN104683297A (en) * 2013-11-26 2015-06-03 中兴通讯股份有限公司 Resource access method and device, server and terminal
CN103902293B (en) * 2014-03-28 2017-02-01 上海下一代广播电视网应用实验室有限公司 Android based radio and television network browser middleware system constructing method
CN104267972B (en) * 2014-10-20 2018-02-13 中国科学院声学研究所 Browser local interface extended method and device

Also Published As

Publication number Publication date
CN105933766A (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN105933766B (en) WebOS system and set-top box based on set-top box
BRPI1012352B1 (en) computer-implemented method to handle extensible media formats on a hosted application platform and computer system for communication between an application and a hosting platform
US8631407B2 (en) Real time flash based user interface for media playback device
TWI515583B (en) Methods and systems for dynamic runtime generation of customized applications
WO2015035908A1 (en) Smart television operation system
US8161275B1 (en) Configuring media player
MX2012003106A (en) Smart set-top box and operating method for smart service and digital television service using single operating system.
US20150317172A1 (en) Generating a replacement binary for emulation of an application
Gok et al. Building Hybrid Android Apps with Java and JavaScript: Applying Native Device APIs
US20180011991A1 (en) Secure connected digital media platform
CN101978674A (en) Method for displaying information generated by a client
CN115278304A (en) Cloud audio and video processing method and system, electronic equipment and storage medium
CN116305011A (en) Application program protection method and installation method
CN116301807A (en) Electron-based application program implementation method and device
Pravin et al. Set top box system with android support using Embedded Linux operating systempaper
Yang et al. Downloadable trusted applications on Tizen™ TV: TrustWare™ Extension: As a downloadable application framework
Kovačev et al. An Effective Approach to TV Applications Development–Application Framework
Michéle et al. Digital Television and Smart TVs
Alamari Web Browser as a Computation Container
Olsson et al. Cross-Platform Video Management Solutions
Mattsson et al. Cross-Platform Video Management Solutions
Schultz Extending browser platforms with native capabilities, enabling additional features in a media streaming context
CN116261003A (en) Display equipment and streaming media playing control method based on browser
da Gama An osgi middleware for mobile digital tv applications
Pandita et al. GLOBAL JOURNAL OF ENGINEERING SCIENCE AND RESEARCHES

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 200235 No. 757, Xuhui District, Shanghai, Yishan Road

Applicant after: Oriental Pearl OmniAd Media Incorporation

Address before: 200235 No. 757, Xuhui District, Shanghai, Yishan Road

Applicant before: SHANGHAI ORIENTAL PEARL NEW MEDIA CO., LTD.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant