CN115086726A - Method, system and storage medium for deploying application by set top box - Google Patents
Method, system and storage medium for deploying application by set top box Download PDFInfo
- Publication number
- CN115086726A CN115086726A CN202210598291.3A CN202210598291A CN115086726A CN 115086726 A CN115086726 A CN 115086726A CN 202210598291 A CN202210598291 A CN 202210598291A CN 115086726 A CN115086726 A CN 115086726A
- Authority
- CN
- China
- Prior art keywords
- application
- top box
- set top
- version information
- deploying
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 230000015654 memory Effects 0.000 claims description 23
- 230000006870 function Effects 0.000 claims description 8
- 238000004891 communication Methods 0.000 claims description 7
- 238000009434 installation Methods 0.000 abstract description 7
- 238000005516 engineering process Methods 0.000 description 6
- 238000011161 development Methods 0.000 description 5
- 239000000284 extract Substances 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/411—Peripherals receiving signals from specially adapted client devices having similar hardware or software capabilities as the client device itself, e.g. a first STB connected to a second STB
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/435—Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本申请涉及机顶盒技术领域,尤其涉及一种机顶盒部署应用的方法、系统及存储介质。The present application relates to the technical field of set-top boxes, and in particular, to a method, system, and storage medium for deploying applications in a set-top box.
背景技术Background technique
相关技术中,机顶盒,是一种与电视机连接的终端设备,广泛应用于家庭生活中。近年来,随着电子技术的发展,产生了以IPTV(交互式网络电视)技术,IPTV是一种利用宽带有线电视网,集互联网、多媒体、通讯等多种技术于一体,向家庭用户提供包括数字电视在内的多种交互式服务的崭新技术,目前,传统的机顶盒通常加载的系统为ECOS(嵌入式可配置操作系统),若想实现IPTV第三方应用的快速部署,目前的部署方式,是在每个机型上手动添加代码、删除部分代码以及进行固件升级,操作繁琐,一方面,费时费力,影响用户体验,另一方面,增加了技术维护人员的负担。In the related art, a set-top box is a terminal device connected to a TV, and is widely used in family life. In recent years, with the development of electronic technology, IPTV (interactive network television) technology has emerged. IPTV is a broadband cable television network that integrates various technologies such as the Internet, multimedia, and communication. A new technology for a variety of interactive services including digital TV. At present, the traditional set-top box is usually loaded with ECOS (Embedded Configurable Operating System). If you want to achieve rapid deployment of IPTV third-party applications, the current deployment method, It is to manually add codes, delete some codes and perform firmware upgrades on each model, which is cumbersome.
发明内容SUMMARY OF THE INVENTION
本申请旨在至少解决现有技术中存在的技术问题之一。为此,本申请提出一种机顶盒部署应用的方法、系统及存储介质,能够自动实现对机顶盒中应用的部署,无需手动进行复杂操作,减轻了人员操作负担,并且提高了安装效率。The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application provides a method, system and storage medium for deploying applications in a set-top box, which can automatically deploy applications in a set-top box, without requiring manual complex operations, reducing the operating burden of personnel, and improving installation efficiency.
根据本申请的第一方面实施例的机顶盒部署应用的方法,应用于服务器,包括:The method for deploying an application on a set-top box according to an embodiment of the first aspect of the present application, applied to a server, includes:
获取第一应用的第一应用参数;obtaining the first application parameter of the first application;
将所述第一应用参数作为第一配置信息;using the first application parameter as the first configuration information;
根据所述第一配置信息生成第一数据文件以及所述第一数据文件对应的第一版本信息;generating a first data file and first version information corresponding to the first data file according to the first configuration information;
接收机顶盒发送的第一请求;其中,所述第一请求包括第二版本信息;The first request sent by the receiver top box; wherein, the first request includes second version information;
根据所述第一版本信息和所述第二版本信息,判断是否将所述第一数据文件、所述第一版本信息发送至所述机顶盒。According to the first version information and the second version information, it is determined whether to send the first data file and the first version information to the set-top box.
根据本申请的一些实施例,所述获取第一应用的第一应用参数,包括:According to some embodiments of the present application, the acquiring the first application parameter of the first application includes:
获取所述机顶盒支持的第一应用的应用信息;obtaining application information of the first application supported by the set-top box;
根据预设的配置项,从所述应用信息对应的技术文档中提取所述第一应用参数。According to a preset configuration item, the first application parameter is extracted from the technical document corresponding to the application information.
根据本申请的一些实施例,所述根据预设的配置项,从所述应用信息对应的技术文档中提取所述第一应用参数,包括:According to some embodiments of the present application, the extracting the first application parameter from the technical document corresponding to the application information according to the preset configuration item includes:
提取所述技术文档中所述第一应用的服务器地址、通讯加密方式调用的系统函数编号、下载和解析数据需要使用的系统程序接口编号、数据存取内存块编号、用户需要初始化的账号参数、是否允许用户编辑解析的所述第一应用的节目数据、所述第一应用的节目数据解析后用于显示的UI界面编号、UI颜色、控件大小。Extract the server address of the first application described in the technical document, the system function number called by the communication encryption method, the system program interface number that needs to be used for downloading and parsing data, the data access memory block number, the account parameter that the user needs to initialize, Whether to allow the user to edit the parsed program data of the first application, and the UI interface number, UI color, and control size used for display after the parsed program data of the first application.
根据本申请的一些实施例,所述第一版本信息包括第一版本号,所述机顶盒部署应用的方法还包括:According to some embodiments of the present application, the first version information includes a first version number, and the method for deploying an application on the set-top box further includes:
当所述第一应用每次修改预设的系统数据库并保存时,对所述第一版本号加一;其中所述第一版本号用于表示当前所述第一应用数据修改的次数。Each time the first application modifies the preset system database and saves it, the first version number is incremented by one; wherein the first version number is used to represent the current number of times the first application data is modified.
根据本申请的一些实施例,所述根据所述第一版本信息和所述第二版本信息,判断是否将所述第一数据文件、所述第一版本信息发送至所述机顶盒,包括:According to some embodiments of the present application, determining whether to send the first data file and the first version information to the set-top box according to the first version information and the second version information includes:
验证所述第一版本信息和所述第二版本信息中的媒体存取控制位址、序列号、客户类型信息是否对应;Verifying whether the media access control address, serial number, and client type information in the first version information and the second version information correspond to each other;
当所述媒体存取控制位址、所述序列号、所述客户类型信息对应时,确定所述机顶盒类型正确;When the media access control address, the serial number, and the client type information are corresponding, it is determined that the type of the set-top box is correct;
判断所述第一版本信息中的第一版本号和所述第二版本信息中的第二版本号是否相同;Determine whether the first version number in the first version information and the second version number in the second version information are the same;
当所述第一版本号和所述第二版本号相同时,将所述第一数据文件、所述第一版本信息发送至所述机顶盒。When the first version number and the second version number are the same, the first data file and the first version information are sent to the set-top box.
根据本申请的一些实施例,所述第一应用设置有多个;所述第一数据文件与所述第一应用一一对应。According to some embodiments of the present application, there are multiple first applications; the first data files are in one-to-one correspondence with the first applications.
根据本申请的第二方面实施例的机顶盒部署应用的方法,应用于机顶盒,包括:The method for deploying an application on a set-top box according to the embodiment of the second aspect of the present application, applied to the set-top box, includes:
发送第一请求至服务器;其中,所述第一请求包括第二版本信息;sending a first request to the server; wherein the first request includes second version information;
接收第一数据文件、第一版本信息;其中,所述第一数据文件包括接口编号;receiving a first data file and first version information; wherein the first data file includes an interface number;
解析所述第一数据文件得到所述接口编号;Parsing the first data file to obtain the interface number;
根据所述接口编号下载第一应用的内容数据并缓存。The content data of the first application is downloaded and cached according to the interface number.
根据本申请的一些实施例,在所述发送第一请求至服务器之前,包括:According to some embodiments of the present application, before the sending the first request to the server, the method includes:
发送第二请求至服务器;send a second request to the server;
接收第二版本信息、第二数据文件。The second version information and the second data file are received.
根据本申请的第三方面实施例的机顶盒部署应用的系统,包括:A system for deploying an application on a set-top box according to an embodiment of the third aspect of the present application includes:
至少一个存储器;at least one memory;
至少一个处理器;at least one processor;
至少一个程序;at least one program;
所述程序被存储在所述存储器中,所述处理器执行至少一个所述程序以实现如下之一:The programs are stored in the memory, and the processor executes at least one of the programs to implement one of the following:
第一方面实施例所述的方法;The method described in the embodiment of the first aspect;
第二方面实施例所述的方法。The method described in the embodiment of the second aspect.
根据本申请的第四方面实施例的计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行如下之一:According to a computer-readable storage medium of an embodiment of the fourth aspect of the present application, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to cause a computer to execute one of the following:
第一方面实施例所述的方法;The method described in the embodiment of the first aspect;
第二方面实施例所述的方法。The method described in the embodiment of the second aspect.
根据本申请实施例的机顶盒部署应用的方法,具有如下有益效果:首先,获取第一应用的第一应用参数,并且将第一应用参数作为第一配置信息;其次,根据第一配置信息生成第一数据文件以及第一数据文件对应的第一版本信息;之后,接收机顶盒发送的第一请求,其中,第一请求包括第二版本信息;最后,根据第一版本信息和第二版本信息,判断是否将第一数据文件发送至机顶盒。本申请的机顶盒部署应用的方法,通过获取机顶盒的第二版本信息,就可以验证机顶盒是否需要部署新的应用,当机顶盒需要部署新的应用时,只需判断是否第一数据文件进行下发,进而在后续的步骤中,机顶盒就可以根据下发的第一数据文件进行应用快速安装,无需技术人员手动频繁操作,安装速度快。因此,本申请的机顶盒部署应用的方法,能够自动实现对机顶盒中应用的部署,无需手动进行复杂操作,减轻了人员操作负担,并且提高了安装效率。The method for deploying an application on a set-top box according to an embodiment of the present application has the following beneficial effects: first, the first application parameter of the first application is acquired, and the first application parameter is used as the first configuration information; secondly, the first application parameter is generated according to the first configuration information A data file and the first version information corresponding to the first data file; then, the first request sent by the receiver top box, wherein the first request includes the second version information; finally, according to the first version information and the second version information, determine Whether to send the first data file to the set-top box. In the method for deploying an application on a set-top box of the present application, by obtaining the second version information of the set-top box, it can be verified whether the set-top box needs to deploy a new application. Furthermore, in the subsequent steps, the set-top box can quickly install the application according to the issued first data file, without requiring frequent manual operations by technicians, and the installation speed is fast. Therefore, the method for deploying an application in a set-top box of the present application can automatically realize the deployment of an application in a set-top box, without requiring manual complicated operations, reducing the operating burden of personnel, and improving the installation efficiency.
本申请的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the present application will be set forth, in part, from the following description, and in part will become apparent from the following description, or may be learned by practice of the present application.
附图说明Description of drawings
下面结合附图和实施例对本申请做进一步的说明,其中:The application will be further described below in conjunction with the accompanying drawings and embodiments, wherein:
图1为本申请一个实施例所提供的机顶盒部署应用的方法的服务器的操作流程示意图;1 is a schematic diagram of an operation flow of a server of a method for deploying an application on a set-top box provided by an embodiment of the present application;
图2为本申请另一实施例所提供的机顶盒部署应用的方法的服务器的操作流程示意图;2 is a schematic diagram of an operation flow of a server of a method for deploying an application on a set-top box provided by another embodiment of the present application;
图3为为本申请一个实施例所提供的机顶盒部署应用的系统的结构示意图。FIG. 3 is a schematic structural diagram of a system for deploying an application on a set-top box according to an embodiment of the present application.
附图标记:Reference number:
存储器200、处理器300。
具体实施方式Detailed ways
下面详细描述本申请的实施例,实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能理解为对本申请的限制。Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, but should not be construed as a limitation on the present application.
需要说明的是,虽然在系统示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于系统中的模块划分,或流程图中的顺序执行所示出或描述的步骤。说明书和权利要求书及上述附图中的术语等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that although the functional modules are divided in the schematic diagram of the system and the logical sequence is shown in the flowchart, in some cases, the modules can be divided differently from the system, or executed in the order in the flowchart. steps shown or described. Terms and the like in the specification and claims and the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
在本申请的描述中,若干的含义是一个以上,多个的含义是两个以上,大于、小于、超过等理解为不包括本数,以上、以下、以内等理解为包括本数。如果有描述到第一、第二只是用于区分技术特征为目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量或者隐含指明所指示的技术特征的先后关系。In the description of this application, the meaning of several is more than one, the meaning of multiple is two or more, greater than, less than, exceeding, etc. are understood as not including this number, above, below, within, etc. are understood as including this number. If it is described that the first and the second are only for the purpose of distinguishing technical features, it cannot be understood as indicating or implying relative importance, or indicating the number of the indicated technical features or the order of the indicated technical features. relation.
本申请的描述中,除非另有明确的限定,设置、安装、连接等词语应做广义理解,所属技术领域技术人员可以结合技术方案的具体内容合理确定上述词语在本申请中的具体含义。In the description of this application, unless otherwise clearly defined, terms such as setting, installation, and connection should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in this application in combination with the specific content of the technical solution.
本申请的描述中,参考术语“一个实施例”、“一些实施例”、“示意性实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this application, references to the terms "one embodiment," "some embodiments," "exemplary embodiment," "example," "specific example," or "some examples", etc., are meant to incorporate the embodiments A particular feature, structure, material, or characteristic described or exemplified is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
下面参照图1描述根据本申请实施例的机顶盒部署应用的方法。The following describes a method for deploying an application on a set-top box according to an embodiment of the present application with reference to FIG. 1 .
可以理解的是,如图1所示,机顶盒部署应用的方法,应用于服务器,包括:It can be understood that, as shown in FIG. 1 , the method for deploying an application on a set-top box, applied to a server, includes:
步骤S100,获取第一应用的第一应用参数;Step S100, acquiring first application parameters of the first application;
步骤S110,将第一应用参数作为第一配置信息;Step S110, using the first application parameter as the first configuration information;
步骤S120,根据第一配置信息生成第一数据文件以及第一数据文件对应的第一版本信息;Step S120, generating a first data file and first version information corresponding to the first data file according to the first configuration information;
步骤S130,接收机顶盒发送的第一请求;其中,第一请求包括第二版本信息;Step S130, receiving the first request sent by the top box; wherein, the first request includes the second version information;
步骤S140,根据第一版本信息和第二版本信息,判断是否将第一数据文件、第一版本信息发送至机顶盒。Step S140, according to the first version information and the second version information, determine whether to send the first data file and the first version information to the set-top box.
目前,已有的非智能系统机顶盒,通常加载的系统为ECOS(嵌入式可配置操作系统),当需要在该类机顶盒部署和卸载第三方应用,需要添加或者删除代码,并且对更新后的代码进行编译,编译后得到升级固件,进而实现第三方应用,尤其是基于IPTV应用的更新,如果用户有多个机顶盒,则每个机顶盒都要做一次这样的操作,操作繁琐,耗时费力,一方面,客户需要耐心等待,另一方面,增加了技术人员的技术负担,假如修改频繁,还需要经常去用户方进行维护,维护成本高。At present, the existing non-intelligent system set-top boxes usually load the system ECOS (Embedded Configurable Operating System). Compile, get upgraded firmware after compiling, and then realize the update of third-party applications, especially based on IPTV applications. If the user has multiple set-top boxes, each set-top box must do such an operation once, which is cumbersome, time-consuming and laborious. On the one hand, customers need to wait patiently. On the other hand, it increases the technical burden of technicians. If the modification is frequent, it is necessary to go to the user side for maintenance frequently, and the maintenance cost is high.
采用本申请实施例的机顶盒部署应用的方法,首先,获取第一应用的第一应用参数,并且将第一应用参数作为第一配置信息;其次,根据第一配置信息生成第一数据文件以及第一数据文件对应的第一版本信息;之后,接收机顶盒发送的第一请求,其中,第一请求包括第二版本信息;最后,根据第一版本信息和第二版本信息,判断是否将第一数据文件发送至机顶盒。本申请的机顶盒部署应用的方法,通过获取机顶盒的第二版本信息,就可以验证机顶盒是否需要部署新的应用,当机顶盒需要部署新的应用时,只需判断是否第一数据文件进行下发,进而在后续的步骤中,机顶盒就可以根据下发的第一数据文件进行应用快速安装,无需技术人员手动频繁操作,安装速度快。因此,本申请的机顶盒部署应用的方法,能够自动实现对机顶盒中应用的部署,无需手动进行复杂操作,减轻了人员操作负担,并且提高了安装效率。Using the method for deploying an application on a set-top box according to an embodiment of the present application, first, first application parameters of the first application are acquired, and the first application parameters are used as the first configuration information; secondly, a first data file and a first data file are generated according to the first configuration information. The first version information corresponding to a data file; after that, the receiver receives the first request sent by the top box, wherein the first request includes the second version information; finally, according to the first version information and the second version information, it is judged whether to convert the first data The file is sent to the set-top box. In the method for deploying an application on a set-top box of the present application, by obtaining the second version information of the set-top box, it can be verified whether the set-top box needs to deploy a new application. Furthermore, in the subsequent steps, the set-top box can quickly install the application according to the issued first data file, without requiring frequent manual operations by technicians, and the installation speed is fast. Therefore, the method for deploying an application in a set-top box of the present application can automatically realize the deployment of an application in a set-top box, without requiring manual complicated operations, reducing the operating burden of personnel, and improving the installation efficiency.
可以理解的是,获取第一应用的第一应用参数,包括:It can be understood that obtaining the first application parameters of the first application includes:
获取机顶盒支持的第一应用的应用信息;Obtain application information of the first application supported by the set-top box;
根据预设的配置项,从应用信息对应的技术文档中提取第一应用参数。According to the preset configuration item, the first application parameter is extracted from the technical document corresponding to the application information.
可以理解的是,根据预设的配置项,从应用信息对应的技术文档中提取第一应用参数,包括:It can be understood that, according to the preset configuration items, the first application parameters are extracted from the technical document corresponding to the application information, including:
提取技术文档中第一应用的服务器地址、通讯加密方式调用的系统函数编号、下载和解析数据需要使用的系统程序接口编号、数据存取内存块编号、用户需要初始化的账号参数、是否允许用户编辑解析的第一应用的节目数据、第一应用的节目数据解析后用于显示的UI界面编号、UI颜色、控件大小。Extract the server address of the first application in the technical document, the system function number called by the communication encryption method, the system program interface number to be used for downloading and parsing data, the data access memory block number, the account parameters that the user needs to initialize, and whether to allow the user to edit The parsed program data of the first application, and the UI interface number, UI color, and control size used for display after the parsed program data of the first application.
需要说明的是,需技术文档应理解为第一应用的技术开发文档。It should be noted that the required technical document should be understood as the technical development document of the first application.
需要说明的是,根据第一应用的技术开发文档,技术人员根据技术开发文档的描述提取应用内容的应用信息,应用信息包括该APP的服务器地址URL、通讯加密方式调用的系统函数编号、下载和解析数据需要使用的系统程序接口编号、数据存取内存块编号、客户需要初始化的账号参数、是否允许用户编辑解析出来的APP节目数据、APP节目数据解析后用于显示的UI界面编号、UI颜色、控件大小,以作为配置项;其中,第一应用为第三方IPTV应用。It should be noted that, according to the technical development document of the first application, the technician extracts the application information of the application content according to the description of the technical development document, and the application information includes the server address URL of the APP, the system function number called by the communication encryption method, download and System program interface number to be used for parsing data, data access memory block number, account parameters to be initialized by customers, whether users are allowed to edit the parsed APP program data, the UI interface number and UI color used for display after the APP program data is parsed , and the size of the control as a configuration item; wherein, the first application is a third-party IPTV application.
可以理解的是,第一版本信息包括第一版本号,机顶盒部署应用的方法还包括:It can be understood that the first version information includes the first version number, and the method for deploying the application on the set-top box further includes:
当第一应用每次修改预设的系统数据库并保存时,对第一版本号加一;其中第一版本号用于表示当前第一应用数据修改的次数。Each time the first application modifies the preset system database and saves it, the first version number is incremented by one; wherein the first version number is used to indicate the number of times the current first application data is modified.
需要说明的是,提取出来的配置项,按服务器的配置页面逐一填入对应的栏目中,例如将服务器地址填入配置页面的新APP地址(URL)栏,加密方式编号和秘钥分别填入加密栏和秘钥栏,能解析下载到的APP数据的函数编号填入调用函数栏。之后,服务器根据填入的第一配置信息生成一张列表形式的JSON数据文件,列表形式的JSON数据文件方便机顶盒收到后快速准确根据固定的JSON文件格式解析出相关信息,并生成一个新的第一版本号,第一版本号在这个新APP每次修改系统数据库保存时自动加1,APP刚生成时为0,该第一版本号代表目前该APP数据修改的次数。It should be noted that the extracted configuration items are filled in the corresponding columns one by one according to the configuration page of the server. For example, the server address is filled in the new APP address (URL) column of the configuration page, and the encryption method number and secret key are filled in respectively. In the encryption column and the secret key column, the function number that can parse the downloaded APP data is filled in the calling function column. After that, the server generates a JSON data file in the form of a list according to the filled first configuration information. The JSON data file in the form of a list is convenient for the set-top box to quickly and accurately parse the relevant information according to the fixed JSON file format after receiving it, and generate a new JSON data file. The first version number. The first version number is automatically incremented by 1 each time the new APP modifies the system database and is saved, and is 0 when the APP is just generated. The first version number represents the current number of times the APP data has been modified.
可以理解的是,根据第一版本信息和第二版本信息,判断是否将第一数据文件、第一版本信息发送至机顶盒,包括:It can be understood that, according to the first version information and the second version information, judging whether to send the first data file and the first version information to the set-top box includes:
验证第一版本信息和第二版本信息中的媒体存取控制位址、序列号、客户类型信息是否对应;Verify whether the media access control address, serial number, and client type information in the first version information and the second version information correspond;
当媒体存取控制位址、序列号、客户类型信息对应时,确定机顶盒类型正确;When the media access control address, serial number, and client type information correspond, it is determined that the type of the set-top box is correct;
判断第一版本信息中的第一版本号和第二版本信息中的第二版本号是否相同;Determine whether the first version number in the first version information and the second version number in the second version information are the same;
当第一版本号和第二版本号相同时,将第一数据文件、第一版本信息发送至机顶盒。When the first version number and the second version number are the same, the first data file and the first version information are sent to the set-top box.
需要说明的是,机顶盒在开机或者用户手动操作时都会向服务器发送上一次请求到的第一应用生成的APP版本信息,也就是上一次安装第一应用时得到的第二版本信息,并且服务器根据第二版本信息里机顶盒的MAC(媒体存取控制位址),SN(序列号),客户类型信息等与该机器出厂时记录在生成数据库上的第一版本信息匹对,验证是否属于正确的类型的机顶盒,机顶盒类型正确并且机顶盒请求发送的版本和服务器上的版本不一致时,会将本次生成的第一数据文件,也就是json数据文件,下发给请求的机顶盒。若不属于正确的类型的机顶盒,则下发提示信息,提示机顶盒其请求身份是否合法。若机顶盒类型正确并且机顶盒请求发送的版本和服务器上的版本一致,则下发提示机顶盒目前所有软件是json数据文件最新版本,无须再下载json数据文件对应的软件数据。It should be noted that, when the set-top box is turned on or manually operated by the user, it will send the APP version information generated by the first application that was requested last time to the server, that is, the second version information obtained when the first application was installed last time, and the server will be based on The MAC (media access control address), SN (serial number), customer type information, etc. of the set-top box in the second version information match the first version information recorded in the generation database when the machine leaves the factory, and verify whether it is correct If the type of set-top box is correct and the version requested by the set-top box is inconsistent with the version on the server, the first data file generated this time, that is, the json data file, will be delivered to the requesting set-top box. If it does not belong to the correct type of set-top box, a prompt message is issued to prompt the set-top box whether its request identity is legal. If the type of the set-top box is correct and the version requested by the set-top box is the same as the version on the server, a prompt is sent to the set-top box that all the current software of the set-top box is the latest version of the json data file, and there is no need to download the software data corresponding to the json data file.
可以理解的是,第一应用设置有多个;第一数据文件与第一应用一一对应。It can be understood that there are multiple first applications; the first data files are in one-to-one correspondence with the first applications.
需要说明的是,为每一个第一应用的第一数据文件增加ID标识,就可以保证第一数据文件具有唯一性,以方便机顶盒查找改该ID对应的json数据文件,进而可以在一次请求中下发多个APP数据。It should be noted that adding an ID identifier to the first data file of each first application can ensure the uniqueness of the first data file, so as to facilitate the set-top box to find and change the json data file corresponding to the ID, and then in one request. Send multiple APP data.
下面参照图2描述根据本申请实施例的机顶盒部署应用的方法。The following describes a method for deploying an application on a set-top box according to an embodiment of the present application with reference to FIG. 2 .
可以理解的是,如图2所示,机顶盒部署应用的方法,应用于机顶盒,包括:It can be understood that, as shown in FIG. 2 , the method for deploying an application on a set-top box, applied to a set-top box, includes:
步骤S200,发送第一请求至服务器;其中,第一请求包括第二版本信息;Step S200, sending a first request to the server; wherein, the first request includes the second version information;
步骤S210,接收第一数据文件、第一版本信息;其中,第一数据文件包括接口编号;Step S210, receiving the first data file and the first version information; wherein, the first data file includes the interface number;
步骤S220,解析第一数据文件得到接口编号;Step S220, parsing the first data file to obtain the interface number;
步骤S230,根据接口编号下载第一应用的内容数据并缓存。Step S230, download and cache the content data of the first application according to the interface number.
需要说明的是,如果有json数据文件下发,或者没有json数据文件下发,但是机顶盒上一次已经请求得到json数据文件并下载,则调用解析接口解析出json数据文件中的应用信息,并且根据其指示的接口编号,调用对应接口完成对应的第一应用内容数据的下载和缓存。如果上一次也没有获取到json数据文件,也就是机顶盒无存储里任何软件的相关json数据文件,则再一次请求服务器更新json数据文件,如果更新成功,显示APP内容,否则无APP内容信息展示。It should be noted that if there is a json data file to be issued, or if there is no json data file to be issued, but the set-top box has requested and downloaded the json data file last time, the parsing interface is called to parse the application information in the json data file, and according to the The interface number indicated by the interface number, and the corresponding interface is called to complete the downloading and caching of the corresponding first application content data. If the json data file was not obtained last time, that is, the set-top box does not have any software related json data file in the storage, then request the server to update the json data file again. If the update is successful, the APP content will be displayed, otherwise, no APP content information will be displayed.
可以理解的是,在发送第一请求至服务器之前,包括:It can be understood that, before sending the first request to the server, it includes:
发送第二请求至服务器;send a second request to the server;
接收第二版本信息、第二数据文件。The second version information and the second data file are received.
需要说明的是,第二版本信息、第二数据文件皆为上一次第一应用安装时与之相互匹配的对应信息。It should be noted that both the second version information and the second data file are the corresponding information that matched with each other when the first application was installed last time.
需要说明的是,若第一应用从未安装,则第二版本信息中的第二版本号为空号。It should be noted that, if the first application has never been installed, the second version number in the second version information is an empty number.
下面,对本申请的机顶盒部署应用的方法进行整体性描述。Hereinafter, the method for deploying an application in a set-top box of the present application will be described as a whole.
1、根据第三方APP开发文档,提取APP内容的关键信息,并抽象成单个节点信息;1. According to the third-party APP development documents, extract the key information of the APP content and abstract it into a single node information;
2、将步骤1提取出来的信息,按服务器配置页面逐一完成配置,之后服务器根据填入的配置信息生成一张json数据文件,并生成一个新版本号;2. The information extracted in step 1 is configured one by one according to the server configuration page, and then the server generates a json data file according to the filled configuration information, and generates a new version number;
3、STB(机顶盒)在开机或者用户手动操作时都会向服务器发送版本核对信息,并且验证是否属于正确的类型的STB,STB类型正确和版本不一致时会将步骤2生成的json数据文件下发给请求的STB,否则下发提示信息;3. When the STB (set-top box) is turned on or manually operated by the user, it will send the version check information to the server, and verify whether it belongs to the correct type of STB. If the STB type is correct and the version is inconsistent, the json data file generated in step 2 will be sent to the server. The requested STB, otherwise a prompt message will be issued;
4、如果有json数据文件下发,或者没有json数据文件下发,但是上一次请求已经获得JSON数据,STB首先ID项名标识(“ID”:“****”)从json数据文件里提取ID,统计全部APP数量,然后通过ID匹配找到具体的APP json数据文件给步骤5使用,否则无APP内容信息展示。4. If there is a json data file issued, or there is no json data file issued, but the JSON data has been obtained in the last request, the STB first ID item name identification ("ID": "****") from the json data file Extract the ID, count the number of all APPs, and then find the specific APP json data file for use in step 5 through ID matching, otherwise no APP content information will be displayed.
5、调用解析接口解析出步骤1提取的关键信息,并且根据其指示的接口编号调用对应接口完成APP内容数据的下载和缓存。5. Call the parsing interface to parse out the key information extracted in step 1, and call the corresponding interface according to the interface number indicated by the interface to complete the downloading and caching of the APP content data.
6、平台使用步骤5获取到的缓存数据向用户展示APP媒体内容。6. The platform uses the cached data obtained in step 5 to display the APP media content to the user.
下面参照图3描述根据本申请实施例的机顶盒部署应用的系统。The following describes a system for deploying an application on a set-top box according to an embodiment of the present application with reference to FIG. 3 .
可以理解的是如图3所示,机顶盒部署应用的系统,包括:It can be understood that as shown in Figure 3, the system for deploying the application on the set-top box includes:
至少一个存储器200;at least one
至少一个处理器300;at least one
至少一个程序;at least one program;
程序被存储在存储器200中,处理器300执行至少一个程序以实现上述的机顶盒部署应用的方法。图3以一个处理器300为例。The program is stored in the
处理器300和存储器200可以通过总线或其他方式连接,图3以通过总线连接为例。The
存储器200作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态性计算机可执行程序以及信号,如本申请实施例中的机顶盒部署应用的系统对应的程序指令/信号。处理器300通过运行存储在存储器200中的非暂态软件程序、指令以及信号,从而执行各种功能应用以及数据处理,即实现上述方法实施例的机顶盒部署应用的方法。As a non-transitory computer-readable storage medium, the
存储器200可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储上述无线充电线圈仿真方法的相关数据等。此外,存储器200可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器200可选包括相对于处理器300远程设置的存储器,这些远程存储器可以通过网络连接至该无线充电线圈仿真系统。上述网络的实例包括但不限于物联网、软件定义网络、传感器网络、互联网、企业内部网、局域网、移动通信网及其组合。The
一个或者多个信号存储在存储器200中,当被一个或者多个处理器300执行时,执行上述任意方法实施例中的机顶盒部署应用的方法。例如,执行以上描述的图1中的方法步骤S100至S140、图2中的方法步骤S200至S230。The one or more signals are stored in the
下面参照图3描述根据本申请实施例的计算机可读存储介质。A computer-readable storage medium according to an embodiment of the present application is described below with reference to FIG. 3 .
如图3所示,计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个处理器300执行,例如,被图3中的一个处理器300执行,可使得上述一个或多个处理器300执行上述方法实施例中的机顶盒部署应用的方法。例如,执行以上描述的图1中的方法步骤S100至S140、图2中的方法步骤S200至S230。As shown in FIG. 3 , the computer-readable storage medium stores computer-executable instructions that are executed by one or
以上所描述的系统实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The system embodiments described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place , or distributed to multiple network elements. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
通过以上的实施方式的描述,本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质和通信介质。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读信号、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。From the description of the above embodiments, those of ordinary skill in the art can understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware and appropriate combinations thereof. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on computer-readable media, which may include computer storage media and communication media. As is known to those of ordinary skill in the art, the term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk or other optical disk storage, magnetic cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices, or may be used to store desired information and any other medium that can be accessed by the computer. In addition, communication media typically embodies computer readable signals, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and can include any information delivery media, as is well known to those of ordinary skill in the art .
上面结合附图对本申请实施例作了详细说明,但是本申请不限于上述实施例,在所属技术领域普通技术人员所具备的知识范围内,还可以在不脱离本申请宗旨的前提下作出各种变化。此外,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。The embodiments of the present application have been described in detail above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned embodiments, and within the scope of knowledge possessed by those of ordinary skill in the art, various Variety. Furthermore, the embodiments of the present application and features in the embodiments may be combined with each other without conflict.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210598291.3A CN115086726A (en) | 2022-05-30 | 2022-05-30 | Method, system and storage medium for deploying application by set top box |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210598291.3A CN115086726A (en) | 2022-05-30 | 2022-05-30 | Method, system and storage medium for deploying application by set top box |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115086726A true CN115086726A (en) | 2022-09-20 |
Family
ID=83248216
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210598291.3A Pending CN115086726A (en) | 2022-05-30 | 2022-05-30 | Method, system and storage medium for deploying application by set top box |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115086726A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101026850A (en) * | 2007-03-09 | 2007-08-29 | 华为技术有限公司 | Mobileterminal software autmatic upgrading method and system, mobile terminal and software management server |
CN101426077A (en) * | 2008-12-05 | 2009-05-06 | 深圳创维-Rgb电子有限公司 | Method for on-line updating television set software through Internet |
CN105611340A (en) * | 2016-02-18 | 2016-05-25 | 四川长虹电器股份有限公司 | Security upgrading management method for two-way STB |
CN107301051A (en) * | 2017-06-27 | 2017-10-27 | 深圳市金立通信设备有限公司 | The caching of terminal dynamic data and exchange method, terminal, system and computer-readable recording medium |
CN109495532A (en) * | 2017-09-13 | 2019-03-19 | 北京京东尚科信息技术有限公司 | Client update method and device |
-
2022
- 2022-05-30 CN CN202210598291.3A patent/CN115086726A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101026850A (en) * | 2007-03-09 | 2007-08-29 | 华为技术有限公司 | Mobileterminal software autmatic upgrading method and system, mobile terminal and software management server |
CN101426077A (en) * | 2008-12-05 | 2009-05-06 | 深圳创维-Rgb电子有限公司 | Method for on-line updating television set software through Internet |
CN105611340A (en) * | 2016-02-18 | 2016-05-25 | 四川长虹电器股份有限公司 | Security upgrading management method for two-way STB |
CN107301051A (en) * | 2017-06-27 | 2017-10-27 | 深圳市金立通信设备有限公司 | The caching of terminal dynamic data and exchange method, terminal, system and computer-readable recording medium |
CN109495532A (en) * | 2017-09-13 | 2019-03-19 | 北京京东尚科信息技术有限公司 | Client update method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8775620B2 (en) | Multimedia middleware apparatus using metadata, method for controlling multimedia middleware, and storage medium thereof | |
CN101170675B (en) | Method and system for managing J2ME application in network TV system | |
CN107015870B (en) | Method and device for realizing communication between web page and local application and electronic equipment | |
CN106911502B (en) | A kind of upgrade method and system of intelligent home gateway equipment | |
CN109391673B (en) | Method, system and terminal equipment for managing update file | |
US10121263B2 (en) | Methods and devices for image loading and methods and devices for video playback | |
US8195824B2 (en) | User service profile-based plug-in update method and apparatus for internet protocol television service | |
CN101695157A (en) | Self-adapting method of display of mobile terminal screen in network application and system thereof | |
CN101795392A (en) | Application data-downloading method, digital television receiving terminal and system | |
CN110213113B (en) | WEB configuration management method of base station and base station | |
KR20180107777A (en) | Resource acquisition method and associated device | |
CN103476020B (en) | The switching method of over-the-air download service registration mode and OTA smart card | |
CN104754062A (en) | Internet based information popularization method, server and user terminal | |
CN104469474A (en) | Channel list updating method and device, and terminal device | |
CN104809011B (en) | A kind of management method of application program | |
CN105357572A (en) | Set top box built-in wifi automatic upgrade system and method based on integration of three networks | |
CN111176706A (en) | Terminal upgrading method and device, electronic equipment and storage medium | |
CN108134811B (en) | Method, device and system for distributing or downloading target file | |
CN115086726A (en) | Method, system and storage medium for deploying application by set top box | |
CN102957958B (en) | Set-top box upgrading method and set-top box terminal | |
CN117032750A (en) | Energy storage charging pile remote upgrading method based on FOTA and related equipment | |
CN113467776B (en) | Device access method, device, storage medium and electronic device | |
CN115955586B (en) | Plug-in method, device and related equipment | |
CN112988170B (en) | Application display method and device | |
CN113721968B (en) | Firmware upgrading method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220920 |
|
RJ01 | Rejection of invention patent application after publication |