CN112950917A - Method and device for setting remote controller keys of android device and electronic device - Google Patents

Method and device for setting remote controller keys of android device and electronic device Download PDF

Info

Publication number
CN112950917A
CN112950917A CN202110178697.1A CN202110178697A CN112950917A CN 112950917 A CN112950917 A CN 112950917A CN 202110178697 A CN202110178697 A CN 202110178697A CN 112950917 A CN112950917 A CN 112950917A
Authority
CN
China
Prior art keywords
mapping file
mapping
remote controller
loading
key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110178697.1A
Other languages
Chinese (zh)
Other versions
CN112950917B (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.)
Guangdong Unionman Technology Co Ltd
Original Assignee
Guangdong Unionman Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Unionman Technology Co Ltd filed Critical Guangdong Unionman Technology Co Ltd
Priority to CN202110178697.1A priority Critical patent/CN112950917B/en
Publication of CN112950917A publication Critical patent/CN112950917A/en
Application granted granted Critical
Publication of CN112950917B publication Critical patent/CN112950917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
    • 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/4104Peripherals receiving signals from specially adapted client devices
    • 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/42212Specific keyboard arrangements
    • 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/42221Transmission circuitry, e.g. infrared [IR] or radio frequency [RF]

Abstract

The embodiment of the invention relates to the technical field of android equipment, in particular to a method and a device for setting keys of a remote controller of the android equipment and electronic equipment. The method for setting keys of the remote controller of the android device comprises the following steps: responding to a loading instruction for loading a first mapping file containing a mapping relation between scanning codes and key value codes; determining that a second mapping file containing a mapping relation between the scanning codes and the key value codes exists and needs to be loaded; modifying a loading position in the loading instruction to be a storage position of the second mapping file; loading the second mapping file; the loaded second mapping file is used for mapping the scanning code generated by pressing the remote controller key to generate a corresponding key value code. Meanwhile, a device for setting the remote controller keys of the android device and the electronic device are correspondingly provided. The implementation mode of the invention can conveniently realize the key self-definition of the remote controller corresponding to the android device.

Description

Method and device for setting remote controller keys of android device and electronic device
Technical Field
The invention relates to the technical field of android devices, in particular to a method for setting keys of a remote controller of an android device, a device for setting the keys of the remote controller of the android device and an electronic device.
Background
At present, android equipment manufacturers adapt remote controllers, and provide physical code values for the remote controller manufacturers, or code values used by more manufacturers in the use industry, or code values used by the manufacturers are used by the manufacturers. Therefore, the newly added remote controller needs the action of equipment re-adaptation, and the remote controller in the current market is updated day by day, does not have official code value standards in the industry, only uses the universal code value, and cannot meet the use of the updated remote controller.
In addition, not all remote controller designs are all keys, if which keys are missing, these keys are key service functions, which will result in that part of the functions cannot be opened by keys, for example, there is a part of applications using "channel +", "channel-" channel switching, and there are no two keys on the remote controller, only up and down keys, but the applications do not respond to the up and down keys to switch the station, which results in that the station cannot be switched. Even though many mobile end devices, such as mobile phones, which are popular at present have an infrared remote control function, the types and integrity of keys cannot basically meet the requirements of most android devices, and many functions cannot be used.
The situations described above are all android devices with remote controllers, and in fact, in an actual user scene, situations that the remote controllers are not visible or damaged also exist, and the dilemma of design in the current background cannot be solved under the situations.
Disclosure of Invention
In view of this, the present invention aims to provide a method for setting keys of a remote controller of an android device, an apparatus for setting keys of a remote controller of an android device, and an electronic device, which can facilitate users to define keys and achieve the purpose of personalized setting.
In order to achieve the above object, a first aspect of the present invention provides a method for setting keys of a remote controller of an android device, where the method includes: responding to a loading instruction for loading a first mapping file containing a mapping relation between scanning codes and key value codes; determining that a second mapping file containing a mapping relation between the scanning codes and the key value codes exists and needs to be loaded; modifying a loading position in the loading instruction to be a storage position of the second mapping file; loading the second mapping file; the loaded second mapping file is used for mapping the scanning code generated by pressing the remote controller key to generate a corresponding key value code.
Preferably, the second mapping file is generated by: reading and displaying the first mapping file; acquiring the modification of the mapping relation in the first mapping file; and storing the modified first mapping file as the second mapping file.
Preferably, reading and presenting the first mapping file includes: reading a fixedly stored mapping file corresponding to the equipment identifier based on the equipment identifier acquired by the input monitoring thread, wherein the read mapping file is the first mapping file; and displaying the mapping relation in the first mapping file.
Preferably, the obtaining of the modification to the mapping entry in the first mapping file includes: acquiring a key value code selected as a to-be-modified key and a scanning code generated by pressing a remote controller key; and updating the key value code to be changed by adopting the generated scanning code based on the key value code obtained by the first mapping file.
Preferably, the method further comprises: loading the first mapping file based on the load instruction if the second mapping file does not exist or does not need to be loaded; the loaded first mapping file is used for generating a scanning code generated by pressing a remote controller key, and generating a corresponding key value code in a mapping mode.
Preferably, the method further comprises: whether the second mapping file needs to be loaded is determined by acquiring the setting of a user or an input instruction of the user.
Preferably, before loading the second mapping file, the method further includes: and displaying the second mapping file.
In a second aspect of the present invention, an apparatus for setting keys of a remote controller of an android device is further provided, where the apparatus includes: the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a loading instruction for loading a first mapping file containing a mapping relation between a scanning code and a key value code; the determining module is used for determining that a second mapping file containing the mapping relation between the scanning codes and the key value codes exists and needs to be loaded; the modification module is used for modifying the loading position in the loading instruction to be the storage position of the second mapping file; the loading module is used for loading the second mapping file; the loaded mapping file is used for generating a scanning code by pressing the remote controller key, and generating a corresponding key value code by mapping.
In a third aspect of the present invention, there is also provided an electronic apparatus, including: at least one processor; a memory coupled to the at least one processor; the memory stores instructions capable of being executed by the at least one processor, and the at least one processor realizes the method for setting the keys of the remote controller of the android device by executing the instructions stored in the memory.
Preferably, the electronic device is a set top box, a display device or a mobile terminal with a display.
A fourth aspect of the invention provides a machine-readable storage medium having stored thereon instructions which, when executed by a processor, cause the processor to be configured to perform the above-described method of setting keys of an android device remote control.
A fifth aspect of the present invention provides a computer program product comprising a computer program which, when executed by a processor, implements the method for setting keys of a remote control of an android device described above.
The technical scheme provided by the embodiment of the invention has the following beneficial effects: according to the embodiment provided by the invention, the kl file is obtained and set, so that flexible adaptation between the android device and the corresponding remote controller can be realized. The user realizes the self-definition and the updating of the original predefined remote controller through the self-defining key mapping relation, and the using satisfaction degree of the user is improved.
Additional features and advantages of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic step diagram of a method for setting keys of a remote controller of an android device according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a procedure for loading an instruction in an android device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of message interaction between an android device and a remote controller according to an embodiment of the present invention;
fig. 4 is a block diagram of an apparatus for setting keys of a remote controller of an android device according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating embodiments of the invention, are given by way of illustration and explanation only, not limitation.
Fig. 1 is a schematic step diagram of a method for setting keys of a remote controller of an android device in an embodiment of the present invention, and as shown in fig. 1, the method for setting keys of a remote controller of an android device includes:
and S01, responding to a loading instruction for loading the first mapping file containing the mapping relation between the scanning codes and the key codes.
Fig. 2 is a schematic diagram of a program for loading instructions in an android device according to an embodiment of the present invention, and as shown in fig. 2, in an android system, an android frame layer creates a thread of an inputtask to continuously read information of a node corresponding to a dev/input/event, reads key information obtained by a kernel from getEvents, and transmits the key information to an upper layer. In the process, different kl files are loaded by reading a supplier identification code (pid) and a product identification code (vid) of the corresponding equipment, and if the pid and the vid are not available, the default kl file is used. The kl file is a file storing a mapping relation between a scanning code and a key value code in the android system, and the suffix of the kl file is kl. In this embodiment, both the first mapping file and the second mapping file are kl files.
S02, determining that a second mapping file containing the mapping relation between the scanning codes and the key value codes exists and needs to be loaded;
in the present embodiment, the android standard API is taken as an example, and the corresponding load instruction is a getinputdeviceconfigurefilepathbyname function. The function name may vary from platform to platform.
S03, modifying the loading position in the loading instruction to be the storage position of the second mapping file;
the modification principle of the embodiment is based on the loading instruction, and the first mapping file (kl format file) which should be loaded originally is replaced by the second mapping file (kl format file) generated by the upper layer in a self-defined mode, so that the purpose of self-defining the key is achieved. When the user confirms the edit, the application will place a second mapping file (which may be named user. kl similar name) into the system directory.
S04, loading the second mapping file; the loaded mapping file is used for generating a scanning code by pressing the remote controller key, and generating a corresponding key value code by mapping.
The second mapping file is validated after loading, which may require the user to restart the system. The kl file adopts a key-map storage mode, one side is a scanning code, and the other side is a corresponding key value code. The scan code is the median value passed down by the driver to the node, and the key value code defines the code value of the code value expressed on the android system for android.
According to the above embodiment, whether the remote control is infrared remote control or Bluetooth remote control, the keys can be customized through the embodiment. The problem that a certain service function cannot be used when the remote controller lacks a certain key is avoided. The remote controller can also update the code value, the drive has a response key value, and the android upper layer can not change the key value code when the corresponding key value pair does not exist (namely, the scan code does not have the needed key value code in kl), so that the newly added key can be really put into use.
Fig. 3 is a schematic diagram of message interaction between an android device and a remote controller according to an embodiment of the present invention, as shown in fig. 3. The infrared protocol NEC and the Bluetooth protocol are responsible for transmitting physical signals to the equipment end, and the equipment end converts the received physical signals into code values which can be identified by software. The identification of the code value in the android frame is a key, and the code value is an information source for the android device to identify the specific value of the remote control key.
In an embodiment of the present invention, the second mapping file is generated by: reading and displaying the first mapping file; acquiring the change of the mapping relation in the first mapping file; and storing the changed first mapping file as the second mapping file. In the system, there is a user operation interface, the information displayed by the user operation interface is the mapping relation of the currently used kl file, and the kl file data structure part is as follows: .
Figure BDA0002940837310000061
As shown in a kl data structure, the kl file adopts a key-map storage mode, and the meanings in the code are as follows: the scan code is on the left and the key value code is on the right. The scan code is the median value passed down by the driver to the node, and the key value code defines, for the android, the code value that the code value represents on the android system. Based on the principle and the data structure, the generated kl mainly replaces the key value code on the right side, and the user-defined key value code is replaced, so that the purpose is achieved.
In an embodiment provided by the present invention, reading and displaying a first mapping file includes: reading a fixedly stored mapping file corresponding to the equipment identifier based on the equipment identifier acquired by the input monitoring thread, wherein the read mapping file is the first mapping file; and displaying the mapping relation in the first mapping file. As mentioned above, the android system loads different kl files by reading a supplier identifier (pid) and a product identifier (vid) of a corresponding device through an InputReader thread. The kl file is a kl file of an original remote controller. The role in showing the mapping relationship in the first mapping file here is to facilitate the modification by the user.
In an embodiment provided by the present invention, the obtaining of the change to the mapping entry in the first mapping file includes: acquiring a key value code selected as a to-be-modified key and a scanning code generated by pressing a remote controller key; and updating the key value code to be changed by adopting the generated scanning code based on the key value code obtained by the first mapping file. As with the kl data structure shown above, the left scan code is not editable and the right key value code is editable. When the user uses the keyboard, the focus can be moved to the corresponding key value code for editing, and the setting needs to be set to which key is pressed, such as:
setting key- > UP (Up key in pressing direction)
Requesting key > DOWN (push DOWN direction key)
Mute key LEFT (push down LEFT key)
As above, the key value code can be edited, and all the other keys can define the key value by user. When the user confirms the editing, the application places the generate user. kl similar file into the system directory. The user editing key is effective after the system is required to be restarted.
In one embodiment provided by the present invention, the method further comprises: loading the first mapping file based on the load instruction if the second mapping file does not exist or does not need to be loaded; and the loaded first mapping file is used for mapping the scanning code generated by pressing the remote controller key to generate a corresponding key value code. After the system is restarted, the application can be set to pop up according to the startup broadcast in the interface display, at this moment, a pop-up box startup prompt is generated, the current custom kl (second mapping file) is displayed in the pop-up box startup prompt, and if the second mapping file does not exist, the pop-up box cannot appear. The pop-up frame is used for avoiding that the user forgets to self-define the key configuration, so that the user cannot control the touch-up frame. Settings can be restored in the interface if no self-defined key is needed, indicating no loading based on user selection, which would use the original remote control kl (first mapping file).
And in some embodiments, the method further comprises: whether the second mapping file needs to be loaded is determined by acquiring the setting of a user or an input instruction of the user. The user can set according to own needs and input when the system waits for an input instruction so as to selectively load the first mapping file and the second mapping file, and the problem that the setting cannot be recovered due to the coverage of the first mapping file is avoided.
In some embodiments, prior to loading the second mapping file, the method further comprises: and displaying the second mapping file. As mentioned above, the second mapping file to be loaded is displayed to the user in a prompt manner such as pop-up window, so as to avoid the problem that the user forgets to configure the user-defined key, which results in the incapability of controlling, and thus the user experience is improved.
Fig. 4 is a block diagram of an apparatus for setting keys of a remote controller of an android device according to an embodiment of the present invention, as shown in fig. 4. In this embodiment, an apparatus for setting keys of a remote controller of an android device, the apparatus includes: the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a loading instruction for loading a first mapping file containing a mapping relation between a scanning code and a key value code; the determining module is used for determining that a second mapping file containing the mapping relation between the scanning codes and the key value codes exists and needs to be loaded; the modification module is used for modifying the loading position in the loading instruction to be the storage position of the second mapping file; the loading module is used for loading the second mapping file; the loaded mapping file is used for generating a scanning code by pressing the remote controller key, and generating a corresponding key value code by mapping.
For specific limitations of each functional module in the apparatus for setting the remote controller keys of the android device, reference may be made to the above limitations on the method for setting the remote controller keys of the android device, and details are not described herein again. The various modules in the above-described apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In an embodiment provided by the present invention, there is also provided an electronic device, including: at least one processor; a memory coupled to the at least one processor; the memory stores instructions capable of being executed by the at least one processor, and the at least one processor realizes the method for setting the keys of the remote controller of the android device by executing the instructions stored in the memory. The control module or processor herein has the functions of numerical calculation and logical operation, and it has at least a central processing unit CPU, a random access memory RAM, a read only memory ROM, various I/O ports and interrupt systems, etc. of data processing capability. The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the method is realized by adjusting the kernel parameters. The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
In an embodiment provided by the present invention, the electronic device is a set top box, a display device, or a mobile terminal with a display. The method for setting the remote controller keys of the android device is used as an application program or a part of a system and operated in a set top box, a display device or a mobile terminal with a display. When the method for setting the remote controller keys of the android device is operated in the set-top box, the user-defined key instruction input by the user can be identified, and the function of user-defined keys is realized. The user adopts the self-defined key setting to realize the remote control of the set-top box. When the method for setting the keys of the android device remote controller is operated in the display device, the display device is preferably an intelligent television of an android system, and can respond to the self-defined keys to achieve the same technical effect as the method. When the method for setting the keys of the android device remote controller is adopted by the mobile terminal with the display, the user-defined mapping of the input key information can be realized, and therefore the effects of enriching the keys and key conversion are realized.
In some embodiments, the invention further discloses a machine-readable storage medium, which stores instructions that, when executed by a processor, cause the processor to be configured to execute the method for setting the keys of the remote controller of the android device.
In some embodiments provided by the present invention, a computer program product is also disclosed, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the method for setting the remote control keys of the android device.
According to the method, the device and the electronic equipment for setting the remote controller keys of the android equipment, which are provided by the embodiment of the invention, flexible adaptation between the android equipment and the corresponding remote controller can be realized by acquiring and setting the kl file. The user realizes the self-definition and the updating of the original predefined remote controller through the self-defining key mapping relation, and the using satisfaction degree of the user is improved.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for setting keys of a remote controller of android equipment is characterized by comprising the following steps:
in response to a load instruction that is to load a first mapping file containing scan codes and key-code mappings,
determining that a second mapping file containing a mapping relation between the scanning codes and the key value codes exists and needs to be loaded;
modifying a loading position in the loading instruction to be a storage position of the second mapping file;
loading the second mapping file; the loaded second mapping file is used for mapping the scanning code generated by pressing the remote controller key to generate a corresponding key value code.
2. The method of claim 1, wherein the second mapping file is generated by:
reading and displaying the first mapping file;
acquiring the modification of the mapping relation in the first mapping file;
and storing the modified first mapping file as the second mapping file.
3. The method of claim 2, wherein reading and exposing the first mapping file comprises:
reading a fixedly stored mapping file corresponding to the equipment identifier based on the equipment identifier acquired by the input monitoring thread, wherein the read mapping file is the first mapping file;
and displaying the mapping relation in the first mapping file.
4. The method of claim 2, wherein obtaining the modification to the mapping entry in the first mapping file comprises:
acquiring a key value code selected as a to-be-modified key and a scanning code generated by pressing a remote controller key;
and updating the key value code to be changed by adopting the generated scanning code based on the key value code obtained by the first mapping file.
5. The method of claim 1, further comprising:
loading the first mapping file based on the load instruction if the second mapping file does not exist or does not need to be loaded; the loaded first mapping file is used for mapping the scanning code generated by pressing the remote controller key to generate a corresponding key value code.
6. The method of claim 5, wherein determining that a second mapping file containing a mapping relationship between scan codes and key-value codes exists and needs to be loaded comprises:
and determining whether the second mapping file needs to be loaded or not by acquiring the setting of a user or an input instruction of the user.
7. The method of claim 6, wherein prior to loading the second mapped file, the method further comprises: and displaying the second mapping file.
8. The utility model provides a set up tall and erect equipment remote controller button's device which characterized in that, the device includes:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a loading instruction for loading a first mapping file containing a mapping relation between a scanning code and a key value code;
the determining module is used for determining that a second mapping file containing the mapping relation between the scanning codes and the key value codes exists and needs to be loaded;
the modification module is used for modifying the loading position in the loading instruction to be the storage position of the second mapping file; and
the loading module is used for loading the second mapping file; the loaded mapping file is used for mapping the scanning code generated by pressing the remote controller key to generate a corresponding key value code.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor;
a memory coupled to the at least one processor;
the memory stores instructions executable by the at least one processor, and the at least one processor implements the method for setting keys of the android device remote controller according to any one of claims 1 to 7 by executing the instructions stored by the memory.
10. The electronic device of claim 9, wherein the electronic device is a set-top box, a display device, or a mobile terminal with a display.
CN202110178697.1A 2021-02-09 2021-02-09 Method and device for setting remote controller keys of android device and electronic device Active CN112950917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110178697.1A CN112950917B (en) 2021-02-09 2021-02-09 Method and device for setting remote controller keys of android device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110178697.1A CN112950917B (en) 2021-02-09 2021-02-09 Method and device for setting remote controller keys of android device and electronic device

Publications (2)

Publication Number Publication Date
CN112950917A true CN112950917A (en) 2021-06-11
CN112950917B CN112950917B (en) 2023-11-10

Family

ID=76244809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110178697.1A Active CN112950917B (en) 2021-02-09 2021-02-09 Method and device for setting remote controller keys of android device and electronic device

Country Status (1)

Country Link
CN (1) CN112950917B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090138910A1 (en) * 2007-11-27 2009-05-28 Samsung Electronics Co., Ltd. Method and apparatus for setting and enabling shortcut key of remote controller
CN104113774A (en) * 2014-07-25 2014-10-22 海信集团有限公司 Television device control method and system and television device
CN105516765A (en) * 2014-09-25 2016-04-20 阿里巴巴集团控股有限公司 Button matching method and device and signal processing method and device of remote controller
CN106920384A (en) * 2015-12-24 2017-07-04 阿里巴巴集团控股有限公司 The method and apparatus that intelligent electronic device is adapted to remote control
CN107580248A (en) * 2017-08-30 2018-01-12 深圳创维-Rgb电子有限公司 Method to set up, remote control, television system and computer-readable recording medium
CN109445615A (en) * 2018-12-26 2019-03-08 惠州Tcl移动通信有限公司 Mobile terminal keyboard processing method, mobile terminal and storage medium
CN109979180A (en) * 2019-03-25 2019-07-05 深圳创维数字技术有限公司 Remote controller key multiplexing method, device, storage medium and remote controler
CN111833588A (en) * 2020-07-08 2020-10-27 广州大学 Customizable wireless remote control adapter, method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090138910A1 (en) * 2007-11-27 2009-05-28 Samsung Electronics Co., Ltd. Method and apparatus for setting and enabling shortcut key of remote controller
CN104113774A (en) * 2014-07-25 2014-10-22 海信集团有限公司 Television device control method and system and television device
CN105516765A (en) * 2014-09-25 2016-04-20 阿里巴巴集团控股有限公司 Button matching method and device and signal processing method and device of remote controller
CN106920384A (en) * 2015-12-24 2017-07-04 阿里巴巴集团控股有限公司 The method and apparatus that intelligent electronic device is adapted to remote control
CN107580248A (en) * 2017-08-30 2018-01-12 深圳创维-Rgb电子有限公司 Method to set up, remote control, television system and computer-readable recording medium
CN109445615A (en) * 2018-12-26 2019-03-08 惠州Tcl移动通信有限公司 Mobile terminal keyboard processing method, mobile terminal and storage medium
CN109979180A (en) * 2019-03-25 2019-07-05 深圳创维数字技术有限公司 Remote controller key multiplexing method, device, storage medium and remote controler
CN111833588A (en) * 2020-07-08 2020-10-27 广州大学 Customizable wireless remote control adapter, method and device

Also Published As

Publication number Publication date
CN112950917B (en) 2023-11-10

Similar Documents

Publication Publication Date Title
CN110928396B (en) Screen refreshing method and related equipment
US20190130647A1 (en) Display control method and system, and virtual reality device
CN107844821B (en) Smart card, control method thereof, and computer-readable storage medium
CN111324378B (en) Configuration method, device and equipment for video monitoring application software
CN112181554B (en) Interactive interface display method, device, electronic device and storage medium
CN107729897B (en) Text operation method, device and terminal
CN106303639B (en) Method and system for realizing full keyboard function keys of smart television
CN110931005B (en) Voice self-defining method and device for electrical equipment, storage medium and electrical equipment
AU2016269538A1 (en) Multimode startup method for intelligent device and the system thereof
CN111212227B (en) Method, device and equipment for configuring video resolution of camera and storage medium
CN106066794A (en) Switching on and shutting down cartoon making device, mobile terminal and method
CN108874412A (en) For updating the method, apparatus, equipment and system of interface layout
CN116450251A (en) Method for adapting page layout of multiple devices and electronic device
CN113626626B (en) Photo storage method, device and equipment for sharing by multiple persons
CN112950917A (en) Method and device for setting remote controller keys of android device and electronic device
CN113821417A (en) Lamp effect adaptation display processing method, intelligent terminal and storage medium
CN112988246A (en) System switching method and device, electronic equipment and storage medium
CN109151589B (en) Method, device and storage medium for rapidly playing television programs
US20200167173A1 (en) Application launching method and display device
CN112527424A (en) Control method and device for popup window
CN111294655B (en) HDR (high-definition multimedia System) film source playing method and device and storage medium
CN114356324A (en) Interface processing method, device, equipment and storage medium
CN113986175A (en) Color selection method and device, electronic equipment and readable medium
CN112908327A (en) Voice control method, device, equipment and storage medium of application program
CN105791982A (en) Control method and television equipment

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
GR01 Patent grant
GR01 Patent grant