CN106060617B - Key function configuration method and system - Google Patents

Key function configuration method and system Download PDF

Info

Publication number
CN106060617B
CN106060617B CN201610445483.5A CN201610445483A CN106060617B CN 106060617 B CN106060617 B CN 106060617B CN 201610445483 A CN201610445483 A CN 201610445483A CN 106060617 B CN106060617 B CN 106060617B
Authority
CN
China
Prior art keywords
key
platform
configuration
identifier
current
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
CN201610445483.5A
Other languages
Chinese (zh)
Other versions
CN106060617A (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.)
TCL Technology Group Co Ltd
Original Assignee
TCL Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Technology Group Co Ltd filed Critical TCL Technology Group Co Ltd
Priority to CN201610445483.5A priority Critical patent/CN106060617B/en
Publication of CN106060617A publication Critical patent/CN106060617A/en
Application granted granted Critical
Publication of CN106060617B publication Critical patent/CN106060617B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/4221Dedicated function buttons, e.g. for the control of an EPG, subtitles, aspect ratio, picture-in-picture or teletext
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor

Abstract

The embodiment of the invention provides a key function configuration method and system, and relates to the technical field of electronics. The method comprises the following steps: when the machine core platform detects key operation, acquiring a corresponding key identifier according to a voltage value generated by the current key operation; identifying the type of the machine core platform, and searching a key value corresponding to the key identifier from a preset configuration file according to the type of the machine core platform; and writing the key value of the key into the corresponding key virtual node to complete the function configuration of the current operation key. The embodiment of the invention can randomly configure the key value corresponding to the key in the panel key, realizes the purpose that one set of software is adaptive to all types of machine core platforms, does not need to adapt to different machine core platforms by modifying hardware or software, greatly reduces the workload of integration and development engineers, and reduces the cost of products.

Description

Key function configuration method and system
Technical Field
The invention belongs to the technical field of electronics, and particularly relates to a key function configuration method and system.
Background
At present, the television in the market is generally provided with panel keys so as to prevent a user from losing control of the television under the condition of no remote controller. However, since the hardware voltage values corresponding to the panel keys in different core platforms are not consistent, and the key code conversion working mode in the panel keys is completed based on the static table statically arranged in the software package at present, the software package can only be issued for one type of core platform at one time, and the application range of the software package is limited. In order to adapt to different types of movement platforms, a plurality of software package versions need to be released and maintained or hardware voltage values corresponding to panel keys in the different types of movement platforms need to be modified aiming at the different types of movement platforms, so that the adaptation difficulty of software and hardware is increased, the workload of integration and development engineers is increased, and the product cost is increased.
Disclosure of Invention
The embodiment of the invention aims to provide a key function configuration method and a key function configuration system, and aims to solve the problems that in order to adapt to different types of core platforms, a plurality of software package versions need to be issued and maintained or hardware voltage values corresponding to panel keys in different types of core platforms need to be modified aiming at the different types of core platforms, so that the difficulty in adapting software and hardware is increased, the workload of integration and development engineers is increased, and the product cost is increased.
The embodiment of the invention is realized in such a way that a key function configuration method comprises the following steps:
when the machine core platform detects key operation, acquiring a corresponding key identifier according to a voltage value generated by the current key operation;
identifying the type of the movement platform, and searching a key value corresponding to the key identifier from a preset configuration file according to the type of the movement platform;
and writing the key value of the key into the corresponding key virtual node to complete the function configuration of the current operation key.
On the basis of the above technical solution, when the core platform detects a key operation, before acquiring a corresponding key identifier according to a voltage value of the current key operation, the method further includes:
different platform models are set aiming at different movement platforms in advance, transcoding configuration tables corresponding to the platform models are respectively created to generate preset configuration files, wherein the transcoding configuration tables comprise corresponding relations between key identifiers and key values of keys.
On the basis of the technical scheme, each transcoding configuration table in the preset configuration file is named according to the corresponding platform model.
On the basis of the above technical solution, before identifying the type of the movement platform and searching for the key value corresponding to the key identifier from a preset configuration file according to the type of the movement platform, the method further includes:
and displaying a key function page corresponding to the key identifier.
On the basis of the above technical solution, writing the key value into the corresponding key virtual node, and completing the function configuration of the current operation key specifically includes:
and calling a system layer in a jni mode to write the key value into the corresponding key virtual node to complete the function configuration of the current operation key.
Another objective of an embodiment of the present invention is to provide a key function configuration system, including:
the key identifier acquisition module is used for acquiring a corresponding key identifier according to a voltage value generated by the current key operation when the core platform detects the key operation;
the key value acquisition module is used for identifying the type of the core platform and searching a key value corresponding to the key identifier from a preset configuration file according to the type of the core platform;
and the key value writing module is used for writing the key value into the corresponding key virtual node to complete the function configuration of the current operation key.
On the basis of the technical scheme, the method further comprises the following steps:
the transcoding configuration module is used for setting different platform models aiming at different movement platforms in advance and respectively creating transcoding configuration tables corresponding to the platform models so as to generate a preset configuration file, wherein the transcoding configuration tables comprise corresponding relations between key identifiers and key values of keys.
On the basis of the technical scheme, each transcoding configuration table in the preset configuration file is named according to the corresponding platform model.
On the basis of the technical scheme, the method further comprises the following steps:
and the key function display module is used for displaying the key function page corresponding to the key identifier.
On the basis of the technical scheme, the key value writing module is specifically configured to:
and calling a system layer in a jni mode to write the key value into the corresponding key virtual node to complete the function configuration of the current operation key.
The implementation of the key function configuration method and the key function configuration system provided by the embodiment of the invention has the following beneficial effects:
according to the embodiment of the invention, when the core platform detects the key operation, the corresponding key identifier is obtained according to the voltage value generated by the current key operation; then identifying the type of the movement platform, and searching a key value corresponding to the key identifier from a preset configuration file according to the type of the movement platform; and finally, the key value is written into the corresponding key virtual node to complete the function configuration of the current operation key, so that the key value corresponding to the key in the panel key can be configured at will, the aim of adapting a set of software to all types of machine core platforms is achieved, hardware or software does not need to be modified to adapt to different machine core platforms, the workload of integration and development engineers is greatly reduced, and the cost of products is reduced.
Drawings
Fig. 1 is a flowchart illustrating a specific implementation of a key function configuration method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a key function configuration method according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a key function configuration system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a key function configuration system according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a flowchart of a specific implementation of a key function configuration method according to an embodiment of the present invention. Referring to fig. 1, a method for configuring a key function provided in this embodiment includes:
in S101, when the core platform detects a key operation, a corresponding key identifier is obtained according to a voltage value generated by the current key operation.
In this embodiment, a correspondence table between a voltage value and a key identifier is pre-stored in the movement platform, and when the movement platform detects a key operation, the correspondence table between the voltage value and the key identifier is queried according to a voltage value generated by a current key operation, so as to obtain a key identifier matching the voltage value generated by the current key operation.
In S102, the type of the movement platform is identified, and a key value corresponding to the key identifier is searched for from a preset configuration file according to the type of the movement platform.
And the preset configuration file comprises transcoding configuration tables corresponding to various types of movement platforms. Further, before S101, the method further includes:
in S100, different platform models are set in advance for different deck platforms, and transcoding configuration tables corresponding to the platform models are created respectively to generate a preset configuration file, where the transcoding configuration tables include correspondence between key identifiers and key values.
In this embodiment, each transcoding configuration table in the configuration file is configured by a user according to different deck platforms, and the user can modify each transcoding configuration table in the configuration file at any time. Further, in this embodiment, each transcoding configuration table in the configuration file is named by the corresponding platform model, so that after the type of the core platform is identified, the transcoding configuration table named by the platform model can be searched in the configuration file according to the platform model of the core platform, and then the key value corresponding to the key identifier is queried in the transcoding configuration table.
In S103, the key value of the key is written into the corresponding virtual node of the key, so as to complete the function configuration of the current operation key.
In this embodiment, step S103 specifically includes: and calling a system layer in a jni mode to write the key value into the corresponding key virtual node to complete the function configuration of the current operation key.
As can be seen from the above, in the key function configuration method provided in this embodiment, when the core platform detects a key operation, a corresponding key identifier is obtained according to a voltage value generated by the current key operation; then identifying the type of the movement platform, and searching a key value corresponding to the key identifier from a preset configuration file according to the type of the movement platform; and finally, the key value is written into the corresponding key virtual node to complete the function configuration of the current operation key, so that the key value corresponding to the key in the panel key can be configured at will, the aim of adapting a set of software to all types of machine core platforms is achieved, hardware or software does not need to be modified to adapt to different machine core platforms, the workload of integration and development engineers is greatly reduced, and the cost of products is reduced.
Fig. 2 is a flowchart illustrating a key function configuration method according to another embodiment of the present invention. Referring to fig. 2, with respect to the previous embodiment, before identifying the type of the movement platform and searching for a key value corresponding to the key identifier from a preset configuration file according to the type of the movement platform, the key function configuration method provided in this embodiment further includes:
in S202, a key function page corresponding to the key identifier is displayed.
In this embodiment, after the core platform obtains the key identifier corresponding to the current key operation, the display screen of the television is controlled to display the key function page corresponding to the key identifier, so that the user knows the key function configured for the current operation key.
It should be noted that steps S200, S201, S203, and S204 in this embodiment are completely the same as steps S100 to S103 in the embodiment shown in fig. 1, and therefore are not described herein again.
As can be seen from the above, compared with the previous embodiment, the key function configuration method provided in this embodiment not only can arbitrarily configure the key values corresponding to the keys in the panel keys, and achieve the purpose that a set of software adapts to all types of movement platforms, but also can display the key functions corresponding to the currently operated keys to the user in real time in the process of configuring the key functions for the currently operated keys, thereby improving user experience.
Fig. 3 is a schematic structural diagram of a key function configuration system according to an embodiment of the present invention, where the system is used to operate the method according to the embodiment shown in fig. 1. Only the portions related to the present embodiment are shown for convenience of explanation.
Referring to fig. 3, the present embodiment provides a key function configuration system, including:
the key identifier acquisition module is used for acquiring a corresponding key identifier according to a voltage value generated by the current key operation when the core platform detects the key operation;
the key value acquisition module is used for identifying the type of the core platform and searching a key value corresponding to the key identifier from a preset configuration file according to the type of the core platform;
and the key value writing module is used for writing the key value into the corresponding key virtual node to complete the function configuration of the current operation key.
Optionally, the key function configuration system further includes:
the transcoding configuration module is used for setting different platform models aiming at different movement platforms in advance and respectively creating transcoding configuration tables corresponding to the platform models so as to generate a preset configuration file, wherein the transcoding configuration tables comprise corresponding relations between key identifiers and key values of keys.
Optionally, each transcoding configuration table in the preset configuration file is named by the corresponding platform model.
Optionally, the key value writing module is specifically configured to:
and calling a system layer in a jni mode to write the key value into the corresponding key virtual node to complete the function configuration of the current operation key.
Optionally, referring to fig. 4, it is a schematic structural diagram of a key function configuration system according to another embodiment of the present invention, where the system is used to operate the method according to the embodiment shown in fig. 2. As shown in fig. 4, compared with the embodiment shown in fig. 3, the key function configuration system provided in this embodiment further includes:
and the key function display module is used for displaying the key function page corresponding to the key identifier.
It should be noted that, since each module in the above-mentioned system provided by the embodiment shown in fig. 3 and fig. 4 of the present invention is based on the same concept as the method embodiment shown in fig. 1 and fig. 2 of the present invention, the technical effect brought by the embodiment is the same as the method embodiment shown in fig. 1 and fig. 2 of the present invention, and specific contents may refer to the description in the method embodiment shown in fig. 1 and fig. 2 of the present invention, and are not repeated here.
Therefore, it can be seen that the key function configuration system provided by this embodiment can also arbitrarily configure the key values corresponding to the keys in the panel keys, so as to achieve the purpose that one set of software adapts to all types of core platforms, and does not need to adapt to different core platforms by modifying hardware or software, thereby greatly reducing the workload of integration and development engineers, and reducing the cost of products.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. A key function configuration method is characterized by comprising the following steps:
when the machine core platform detects key operation, acquiring a corresponding key identifier according to a voltage value generated by the current key operation; when the core platform detects a key operation, the core platform acquires a key identifier which is matched with a voltage value generated by the current key operation according to the corresponding relation between the voltage value generated by the current key operation and the key identifier;
identifying the type of the movement platform, and searching a key value corresponding to the key identifier from a preset configuration file according to the type of the movement platform; the preset configuration file comprises transcoding configuration tables corresponding to various types of movement platforms;
and writing the key value of the key into the corresponding key virtual node to complete the function configuration of the current operation key.
2. The key function configuration method according to claim 1, wherein before acquiring the corresponding key identifier according to the voltage value of the current key operation when the core platform detects the key operation, the method further comprises:
different platform models are set aiming at different movement platforms in advance, transcoding configuration tables corresponding to the platform models are respectively created to generate preset configuration files, wherein the transcoding configuration tables comprise corresponding relations between key identifiers and key values of keys.
3. The method according to claim 2, wherein each transcoding configuration table in the preset configuration file is named by a corresponding platform model.
4. The key function configuration method according to claim 1, wherein before identifying the type of the movement platform and searching for the key value corresponding to the key identifier from a preset configuration file according to the type of the movement platform, the method further comprises:
and displaying a key function page corresponding to the key identifier.
5. The method for configuring a key function according to claim 1, wherein the writing of the key value into the corresponding key virtual node to complete the function configuration of the currently operated key specifically includes:
and calling a system layer in a jni mode to write the key value into the corresponding key virtual node to complete the function configuration of the current operation key.
6. A key function configuration system, comprising:
the key identifier acquisition module is used for acquiring a corresponding key identifier according to a voltage value generated by the current key operation when the core platform detects the key operation; when the core platform detects a key operation, the core platform acquires a key identifier which is matched with a voltage value generated by the current key operation according to the corresponding relation between the voltage value generated by the current key operation and the key identifier;
the key value acquisition module is used for identifying the type of the core platform and searching a key value corresponding to the key identifier from a preset configuration file according to the type of the core platform; the preset configuration file comprises transcoding configuration tables corresponding to various types of movement platforms;
and the key value writing module is used for writing the key value into the corresponding key virtual node to complete the function configuration of the current operation key.
7. The key function configuration system of claim 6, further comprising:
the transcoding configuration module is used for setting different platform models aiming at different movement platforms in advance and respectively creating transcoding configuration tables corresponding to the platform models so as to generate a preset configuration file, wherein the transcoding configuration tables comprise corresponding relations between key identifiers and key values of keys.
8. The system according to claim 7, wherein each transcoding configuration table in the preset configuration file is named by a corresponding platform model.
9. The key function configuration system of claim 6, further comprising:
and the key function display module is used for displaying the key function page corresponding to the key identifier.
10. The key function configuration system of claim 6, wherein the key value writing module is specifically configured to:
and calling a system layer in a jni mode to write the key value into the corresponding key virtual node to complete the function configuration of the current operation key.
CN201610445483.5A 2016-06-17 2016-06-17 Key function configuration method and system Active CN106060617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610445483.5A CN106060617B (en) 2016-06-17 2016-06-17 Key function configuration method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610445483.5A CN106060617B (en) 2016-06-17 2016-06-17 Key function configuration method and system

Publications (2)

Publication Number Publication Date
CN106060617A CN106060617A (en) 2016-10-26
CN106060617B true CN106060617B (en) 2020-06-19

Family

ID=57167840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610445483.5A Active CN106060617B (en) 2016-06-17 2016-06-17 Key function configuration method and system

Country Status (1)

Country Link
CN (1) CN106060617B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107092484B (en) * 2017-03-27 2020-10-16 武汉斗鱼网络科技有限公司 Method and system for reporting function key information of C language layer to Java layer
CN107613354B (en) * 2017-10-31 2021-03-16 四川长虹电器股份有限公司 Android-based method for enabling smart television to be compatible with various key boards
CN108513157A (en) * 2018-03-30 2018-09-07 惠州Tcl家电集团有限公司 The method, apparatus and computer readable storage medium of keystroke handling
CN109656731A (en) * 2018-12-21 2019-04-19 北京捷思锐科技股份有限公司 A kind of method and device of dynamic adaptation terminal push
CN110109698B (en) * 2019-04-16 2023-09-29 晶晨半导体(上海)股份有限公司 Keypad configuration method, device, computer equipment and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938595A (en) * 2010-09-15 2011-01-05 福建新大陆通信科技股份有限公司 Flash storage-based remote control self-learning method
CN102254412A (en) * 2010-05-19 2011-11-23 索尼公司 Information processing apparatus and information processing method
CN102510458A (en) * 2011-12-29 2012-06-20 Tcl集团股份有限公司 Method and system for controlling television
CN202495999U (en) * 2012-02-02 2012-10-17 深圳市同洲电子股份有限公司 Key board and digital television
CN102930712A (en) * 2012-11-14 2013-02-13 Tcl通力电子(惠州)有限公司 Method and system for controlling infrared controlled equipment
CN103729065A (en) * 2013-12-17 2014-04-16 深圳市慧为智能科技有限公司 System and method for mapping touch operations to entity keys
CN103873905A (en) * 2012-12-13 2014-06-18 鸿富锦精密工业(深圳)有限公司 Television control system and television control method
CN105094349A (en) * 2014-05-15 2015-11-25 研祥智能科技股份有限公司 Dynamic keyboard matrix function switching method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102254412A (en) * 2010-05-19 2011-11-23 索尼公司 Information processing apparatus and information processing method
CN101938595A (en) * 2010-09-15 2011-01-05 福建新大陆通信科技股份有限公司 Flash storage-based remote control self-learning method
CN102510458A (en) * 2011-12-29 2012-06-20 Tcl集团股份有限公司 Method and system for controlling television
CN202495999U (en) * 2012-02-02 2012-10-17 深圳市同洲电子股份有限公司 Key board and digital television
CN102930712A (en) * 2012-11-14 2013-02-13 Tcl通力电子(惠州)有限公司 Method and system for controlling infrared controlled equipment
CN103873905A (en) * 2012-12-13 2014-06-18 鸿富锦精密工业(深圳)有限公司 Television control system and television control method
CN103729065A (en) * 2013-12-17 2014-04-16 深圳市慧为智能科技有限公司 System and method for mapping touch operations to entity keys
CN105094349A (en) * 2014-05-15 2015-11-25 研祥智能科技股份有限公司 Dynamic keyboard matrix function switching method and system

Also Published As

Publication number Publication date
CN106060617A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
CN106060617B (en) Key function configuration method and system
CN105487864A (en) Method and device for automatically generating code
CN103020064A (en) Method and configuration for generating query condition in annotation way
CN103995854A (en) Equipment cross-version upgrading method and device
CN106303639B (en) Method and system for realizing full keyboard function keys of smart television
CN104317749A (en) Information writing method and device
CN104850027A (en) CAN data interface modeling automatic generation method and system
GB2559737A8 (en) Environmental control configuration
CN105447105A (en) NoSQL-based single field section index query method for distributed Internet of things data
US8732655B2 (en) Systems and methods for metamodel transformation
CN101699396A (en) Method for generating wireless terminal menu and device thereof
CN105653253B (en) Centralized configuration method and device
CN110795162B (en) Method and device for generating container mirror image file
CN111241071A (en) Data migration method, system, equipment and computer readable storage medium
CN104932904A (en) Configurable database programming mode aiming at intelligent smart home
CN105487868A (en) Method and system for hiding and displaying virtual keys of android device
CN110647564A (en) Hive table establishing method, electronic device and computer readable storage medium
CN105357289A (en) Configuration method of router and generation method and system of software mirror image document
CN111984293A (en) Information processing method, device and storage medium
WO2016201813A1 (en) Dynamic layout method and system based on android
CN107479982B (en) data synchronization method and terminal
EP3503479A1 (en) Flow entry management method and device
CN104615349A (en) Information processing method and electronic device
CN104537018A (en) Data synchronization method, device and system
CN107368321B (en) Software version evolution method and system

Legal Events

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

Address after: 516006 TCL technology building, No.17, Huifeng Third Road, Zhongkai high tech Zone, Huizhou City, Guangdong Province

Applicant after: TCL Technology Group Co., Ltd

Address before: 516006 Guangdong province Huizhou Zhongkai hi tech Development Zone No. nineteen District

Applicant before: TCL RESEARCH AMERICA Inc.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant