Dynamic key value using method and system suitable for set top box

文档序号:73237 发布日期:2021-10-01 浏览:10次 中文

阅读说明:本技术 一种适用于机顶盒的动态键值使用方法及系统 (Dynamic key value using method and system suitable for set top box ) 是由 冯婧 张锐 王琛 林武呈 谭乐 于 2021-07-20 设计创作,主要内容包括:本发明提出了一种适用于机顶盒的动态键值使用方法及系统。所述动态键值使用方法,括以下步骤:步骤S1、设置按键的键值和功能命令的对应关系;步骤S2、获取按键的键值,判断该按键的键值是否具有对应的功能命令;若是,则执行该按键的键值所对应的功能命令。本发明的动态键值使用方法及系统设计新颖,实用性强。(The invention provides a dynamic key value using method and a dynamic key value using system suitable for a set top box. The dynamic key value using method comprises the following steps: step S1, setting the corresponding relation between the key value of the key and the function command; step S2, obtaining a key value of the key, and judging whether the key value of the key has a corresponding function command; if yes, executing the function command corresponding to the key value of the key. The dynamic key value using method and the system have novel design and strong practicability.)

1. A dynamic key value using method suitable for a set top box is characterized by comprising the following steps:

step S1, setting the corresponding relation between the key value of the key and the function command;

step S2, obtaining a key value of the key, and judging whether the key value of the key has a corresponding function command; if yes, executing the function command corresponding to the key value of the key.

2. The method according to claim 1, wherein step S1 includes: and presetting a key value broadcast list, wherein the key value broadcast list comprises a corresponding relation between key values of keys and function commands.

3. The method of claim 2, wherein the function commands include a key sending sub-command, an application or page calling sub-command, an interface calling command, and an execution command.

4. The method for using dynamic key values according to claim 1, wherein in step S1, the key value broadcast list is dynamically updated according to the service requirement.

5. The method according to claim 1, wherein step S2 further comprises:

and when the key value of the key has the corresponding function command, calling and executing the function command corresponding to the key value of the key according to the key value broadcast list.

6. A dynamic key value usage system for a set-top box, comprising:

the setting module (100) is used for setting the corresponding relation between the key values of the keys and the function commands;

the judging module (200) is used for acquiring the key value of the key and judging whether the key value of the key has a corresponding function command or not;

and the execution module (300) is used for executing the function command corresponding to the key value of the key when the key value of the key has the corresponding function command.

7. The dynamic key value using system according to claim 6, wherein the setting module (100) is configured to preset a key value broadcast list, and the key value broadcast list includes a corresponding relationship between key values of the keys and the function commands.

8. The dynamic key value using system of claim 7, wherein the function commands include a key value send sub-command, an application or page call sub-command, an interface call command, and an execute command.

9. The dynamic key-value usage system of claim 6, wherein the key-value broadcast list is dynamically updated as traffic needs change.

10. The dynamic key value using system according to claim 6, wherein the executing module (300) is configured to, when the key value of the key has the corresponding function command, call to execute the function command corresponding to the key value of the key according to the key value broadcasting list.

Technical Field

The invention relates to the technical field of set top boxes, in particular to a dynamic key value using method and a dynamic key value using system suitable for a set top box.

Background

At present, according to the needs of a service scene, a specific key on a remote controller is pressed to realize a specified function, such as opening intelligent search, opening a web-class learning application, opening a specified web page, and the like. In addition, before the new service is on line, an application needs to be developed and debugged on the set-top box, and part of the application also needs to monitor key values during testing to realize application starting or call a specified function. However, in the former mechanism, after the system manufacturer is required to modify the system software, the system manufacturer is required to upgrade the system to implement the related functions. This results in the need to modify the system often when manipulating and testing the set-top box functions, which increases the workload of developers, increases the production time of the product, reduces the production efficiency, and increases the production risk.

Disclosure of Invention

The invention provides a dynamic key value using method and a dynamic key value using system suitable for a set top box aiming at the technical problems.

The invention provides the following technical scheme:

the invention provides a dynamic key value using method suitable for a set top box, which comprises the following steps:

step S1, setting the corresponding relation between the key value of the key and the function command;

step S2, obtaining a key value of the key, and judging whether the key value of the key has a corresponding function command; if yes, executing the function command corresponding to the key value of the key.

In the above method for using dynamic key values, step S1 includes: and presetting a key value broadcast list, wherein the key value broadcast list comprises a corresponding relation between key values of keys and function commands.

In the method for using dynamic key values, the functional commands include key value sending sub-commands, application or page calling sub-commands, interface calling commands and execution commands.

In the above method for using dynamic key values of the present invention, in step S1, the key value broadcast list is dynamically updated according to the service requirement.

In the above method for using dynamic key values, step S2 further includes:

and when the key value of the key has the corresponding function command, calling and executing the function command corresponding to the key value of the key according to the key value broadcast list.

The invention also provides a dynamic key value using system suitable for the set top box, which comprises:

the setting module is used for setting the corresponding relation between the key value of the key and the function command;

the judging module is used for acquiring the key value of the key and judging whether the key value of the key has a corresponding function command or not;

and the execution module is used for executing the function command corresponding to the key value of the key when the key value of the key has the corresponding function command.

In the above dynamic key value using system of the present invention, the setting module is configured to preset a key value broadcast list, where the key value broadcast list includes a correspondence between key values of keys and function commands.

In the above dynamic key value using system of the present invention, the function command includes a key value sending sub-command, an application or page calling sub-command, an interface calling command, and an execution command.

In the above dynamic key value using system of the present invention, the key value broadcast list is dynamically updated according to the service requirement.

In the above dynamic key value using system of the present invention, the executing module is configured to call and execute the function command corresponding to the key value of the key according to the key value broadcast list when the key value of the key has the corresponding function command.

The method and the system for using the dynamic key value send the broadcast or call the corresponding function by setting the dynamic key value, and mainly solve the problem that the special function is required to be realized by frequently pressing the key in the actual service development process. The implementation of the dynamic key value using method and the system can save the trouble of frequently modifying the system and improve the application test and the online efficiency. The dynamic key value using method and the system have novel design and strong practicability.

Drawings

The invention is further described below with reference to the accompanying drawings:

fig. 1 shows a flowchart of a dynamic key value using method suitable for a set-top box according to a preferred embodiment of the present invention;

fig. 2 is a block diagram showing functional modules of a dynamic key value using system suitable for a set-top box according to a preferred embodiment of the present invention.

Detailed Description

In order to make the technical solutions, technical objects, and technical effects of the present invention clearer so as to enable those skilled in the art to understand and implement the present invention, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.

As shown in fig. 1, fig. 1 is a flowchart illustrating a method for using dynamic key values for a set-top box according to a preferred embodiment of the present invention. Specifically, the dynamic key value using method comprises the following steps:

step S1, setting the corresponding relation between the key value of the key and the function command;

specifically, step S1 includes: presetting a key value broadcast list, wherein the key value broadcast list comprises a corresponding relation between key values of keys and function commands;

here, the function command may be one command or a series of commands. For example, the function command may include a key-value sending sub-command, an application or page call sub-command, an interface call command, and an execution command.

Step S2, obtaining a key value of the key, and judging whether the key value of the key has a corresponding function command; if yes, executing the function command corresponding to the key value of the key.

In the technical scheme, a key value broadcast list is defined, and key values to be broadcast after a corresponding key is pressed and function commands to be realized after the key values are broadcast are defined in the list. Functions that may be implemented include sending a particular key, invoking a particular application or page, calling a particular interface, executing a command, etc. When the system is started, the list is automatically loaded, and when the user presses the corresponding key, the system sends broadcast or calls the corresponding function according to the content of the list.

For example, after key value broadcast registration and function call are dynamically implemented, the system may call according to defined content after monitoring that a user presses a specific key, such as sending a key value broadcast. Specifically, we register the F1 key first, defining that the F1 key will be broadcast when the F1 key is pressed. After the registration is finished, when the third-party application needs to monitor the broadcast to start, the application can monitor the broadcast of the registered F1 key and start; or by the system hearing the F1 key and then the system starts the application. The dynamic key value using method mainly solves the problem that special functions are required to be realized through keys frequently in the actual service developing process. The implementation of the dynamic key value using method can save the trouble of frequently modifying the system and improve the application test and the online efficiency.

Further, in step S1, the key value broadcast list, especially the corresponding relationship between the key values of the keys and the function commands, may be dynamically updated according to the service requirement, and the updating process does not need to update the firmware, but only needs to adjust the registered content.

For example, we register a search key and execute a search interface whose content is to call up intelligent recommendations. No matter what interface the user is under, when the user presses a search key, the intelligent recommended search interface is called.

Further, step S2 further includes:

and when the key value of the key has the corresponding function command, calling and executing the function command corresponding to the key value of the key according to the key value broadcast list.

Further, as shown in fig. 2, fig. 2 is a block diagram of functional modules of the dynamic key value using system suitable for the set-top box according to the preferred embodiment of the present invention. Specifically, the dynamic key value using system includes:

a setting module 100, configured to set a correspondence between key values of keys and function commands;

specifically, the setting module 100 is configured to preset a key value broadcast list, where the key value broadcast list includes a correspondence between key values of keys and function commands;

here, the function command may be one command or a series of commands. For example, the function command may include a key-value sending sub-command, an application or page call sub-command, an interface call command, and an execution command.

The judging module 200 is configured to obtain a key value of a key and judge whether the key value of the key has a corresponding function command;

the executing module 300 is configured to, when a key value of a key has a corresponding function command, execute the function command corresponding to the key value of the key.

In the technical scheme, a key value broadcast list is defined, and key values to be broadcast after a corresponding key is pressed and function commands to be realized after the key values are broadcast are defined in the list. Functions that may be implemented include sending a particular key, invoking a particular application or page, calling a particular interface, executing a command, etc. When the system is started, the list is automatically loaded, and when the user presses the corresponding key, the system sends broadcast or calls the corresponding function according to the content of the list.

For example, after key value broadcast registration and function call are dynamically implemented, the system may call according to defined content after monitoring that a user presses a specific key, such as sending a key value broadcast. Specifically, we register the F1 key first, defining that the F1 key will be broadcast when the F1 key is pressed. After the registration is finished, when the third-party application needs to monitor the broadcast to start, the application can monitor the broadcast of the registered F1 key and start; or by the system hearing the F1 key and then the system starts the application. The dynamic key value using system mainly solves the problem that special functions are required to be realized through keys frequently in the actual service developing process. The implementation of the dynamic key value using system can save the trouble of frequently modifying the system and improve the application test and online efficiency.

Furthermore, the key value broadcast list, especially the corresponding relation between the key values of the keys and the function commands, can be dynamically updated according to the business needs, and the updating process does not need to update the firmware and only needs to adjust the registration content.

For example, we register a search key and execute a search interface whose content is to call up intelligent recommendations. No matter what interface the user is under, when the user presses a search key, the intelligent recommended search interface is called.

Further, the executing module 300 is configured to, when a key value of a key has a corresponding function command, call and execute the function command corresponding to the key value of the key according to the key value broadcast list.

While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种日志拼接方法、装置、电子设备、存储介质及产品

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类