A wireless remote controller key testing method, device, equipment and medium
By acquiring the remote control identifier and key code table, and combining decoding rules and timing instructions, a visualized and automated test of the wireless remote control buttons is achieved, solving the problems of cumbersome and inefficient testing in existing tests, and improving the accuracy and efficiency of testing.
Patent Information
- Application Number
- CN202311470232.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-07
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2043-11-07
AI Technical Summary
Existing wireless remote control testing processes are cumbersome and inefficient, especially since they require a lot of manual operation for different types of remote controls.
By obtaining the remote control's identification number, the key code table is retrieved from a preset database, triggering the remote control buttons and displaying the button name and code value on the test device interface, thus achieving visual testing. Different remote controls are distinguished by decoding rules and identification codes, and the button status is automatically detected by combining timing instructions and key path planning.
It simplifies the testing process, improves testing efficiency, reduces manual operation, can adapt to remote controls with different encoding and decoding rules, reduces fault detection time, and improves detection accuracy and efficiency.
Smart Images

Figure CN117456711B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of remote control testing, and in particular to a method, apparatus, device, and medium for testing buttons on a wireless remote control. Background Technology
[0002] The number of wireless remote controls (mainly Bluetooth / 2.4G remote controls) on the market is increasing, and the corresponding demand for wireless remote control testing is also growing. While the wide variety of wireless remote controls offers convenience to end users, manufacturers often need to dedicate significant manpower to testing the usability of buttons on different types of remote controls during the production and testing process. Conventional testing methods require manual operation of the remote control to verify button usability, which is cumbersome and inefficient, and this situation needs further improvement. Summary of the Invention
[0003] To address the problems of cumbersome testing processes and low efficiency in existing wireless remote control testing, this application provides a method, apparatus, device, and medium for testing wireless remote control buttons, employing the following technical solution:
[0004] In a first aspect, this application provides a method for testing buttons on a wireless remote control, comprising the following steps:
[0005] In response to a test request from the remote control under test, the identification number of the remote control under test is obtained, and a key code table matching the identification number is retrieved from a preset remote control database. The key code table contains the key names and corresponding key code values of all keys on the remote control under test.
[0006] Trigger the test key of the remote control under test to send the target key signal triggered by the test key to the associated test device;
[0007] When the test device receives the target key signal, it extracts the target key code value from the target key signal and displays the test record of the target key name corresponding to the target key code value on the test interface of the test device associated with the remote control under test; the target key code value is the key code value corresponding to the key under test in the key code table, and the target key name is the key name corresponding to the target key code value.
[0008] By adopting the above technical solution, this application obtains the identification number of the remote control under test in response to the test request of the remote control under test, then retrieves the key code table matching the identification number from the preset remote control database, and then extracts the corresponding target key code value according to the test signal sent when the key under test is triggered. The test record of the target key name corresponding to the target key code value is displayed on the test interface of the test device associated with the remote control under test. This allows various types of remote controls to be uniformly tested on the test interface, which simplifies the testing process and improves testing efficiency compared to the existing verification of specific control products.
[0009] Optionally, after triggering the test button on the remote control under test, the method further includes:
[0010] If the target key signal is not received within the preset trigger time, the key detection is determined to be in the first abnormal state, and a preset first fault signal is output.
[0011] By adopting the above technical solution, if no target key signal is received within the preset trigger time, the key detection is determined to be abnormal, and a corresponding fault signal is output.
[0012] Optionally, after obtaining the identifier of the remote control under test, the following steps are also included.
[0013] Retrieve the decoding rule corresponding to the identifier from the preset remote control database;
[0014] When the test device receives the target key signal, it decodes the target key signal according to the decoding rules.
[0015] By adopting the above technical solution, since there are many types of remote controllers under test, and different remote controllers may use different encoding and decoding rules, this application retrieves the decoding rule corresponding to the identifier from the preset remote controller database, so that when the target button signal is received, it decodes according to the decoding rule, thereby realizing the automatic adoption of the corresponding decoding rule for remote controllers with different encoding rules.
[0016] Optionally, the target key signal includes an identification code, and the method further includes:
[0017] Obtain the corresponding identification code based on the target key signal;
[0018] Based on a preset remote control identification code table, determine the type of remote control corresponding to the identification code;
[0019] If the determined remote control type matches the remote control type corresponding to the identifier, then the identification code corresponding to the test record is displayed;
[0020] If the determined remote control type is inconsistent with the remote control type corresponding to the identification number, it is judged as a code error, and the test record is not updated.
[0021] By adopting the above technical solution, the target button signal of this application includes the target button code value and the identification code. After decoding the target button signal, this application determines the remote control type corresponding to the identification code according to the preset remote control identification code table, and then compares the remote control type corresponding to the identification code with the remote control type corresponding to the identification number. When they match, the identification code corresponding to the test record is displayed. When they do not match, it is judged as an error code and the test record is not updated, thus playing a verification role. At the same time, it can distinguish and identify different remote control devices. In the case of testing multiple remote control devices, the source of the signal can be determined according to the identification code to prevent signal interference between different devices.
[0022] Optionally, the method further includes:
[0023] Obtain a timing command, which is used to periodically trigger the testing of all buttons on the remote control under test;
[0024] The timing instruction is used to obtain the trigger time sequence of the key under test, so that the remote control can trigger the key under test according to the trigger time sequence.
[0025] Obtain the test record time sequence when the test device receives the target key signal, and determine the test success rate and average response time based on the trigger time sequence and the test record time sequence;
[0026] The test result of the key under test is determined based on the test success rate and the average response time.
[0027] By adopting the above technical solution, this application obtains a timing instruction, which is used to trigger the testing of all buttons on the remote control under test at regular intervals. Then, it obtains the trigger time sequence of the button under test and the test time sequence of the target button signal received by the test device, determines the test success rate and average response time, and finally determines the test result of the button under test. For example, when the test success rate reaches a preset value and the average response time is less than a preset time, the button under test is determined to be qualified.
[0028] Optionally, before obtaining the trigger time sequence of the key under test in the timing instruction, the method further includes:
[0029] Retrieve the product image corresponding to the identification number from the preset remote control database;
[0030] Based on the product image, plan the trigger path that will trigger all buttons the fastest;
[0031] All buttons are triggered sequentially according to the trigger path;
[0032] Obtain the first time point when the key under test is triggered and the duration of one loop of the trigger path;
[0033] The trigger time sequence is established based on the initial time point and the duration of one cycle.
[0034] By adopting the above technical solution, this application retrieves the product image corresponding to the identification number from a preset remote control database, then plans the trigger path to trigger all buttons the fastest, and then triggers all buttons sequentially according to the trigger path, thereby efficiently detecting the availability of all buttons. Then, by obtaining the first time point of triggering the button under test and the first cycle duration of the trigger path, the trigger time point sequence corresponding to the button under test is determined, and the button under test is tested according to the trigger time point sequence.
[0035] Optionally, after displaying the test record of the target key name corresponding to the target key code value, the following steps are also included:
[0036] Identify the key name of the button to be tested on the remote control based on the product image;
[0037] Determine whether the target button name and the identifier button name are consistent;
[0038] If the target button name is inconsistent with the identifier button name, the button detection is determined to be in a second abnormal state, and a preset second fault signal is output.
[0039] By adopting the above technical solution, this application determines whether the target button name is consistent with the identified button name based on the product image recognition of the button name on the remote control. If they are inconsistent, the button detection is determined to be abnormal and a corresponding fault signal is output.
[0040] Secondly, this application provides a testing device for wireless remote control buttons, comprising:
[0041] The key code table retrieval module is used to respond to the test request of the remote control under test, obtain the identification number of the remote control under test, and retrieve the key code table that matches the identification number from the preset remote control database. The key code table contains the key name and corresponding key code value of all the keys on the remote control under test.
[0042] The target button signal sending module is used to trigger the button under test of the remote control under test in order to send the target button signal triggered by the button under test to the associated test device;
[0043] The test record display module is used to extract the target key code value from the target key signal when the test device receives the target key signal, and display the test record of the target key name corresponding to the target key code value on the test interface of the test device associated with the remote control under test; the target key code value is the key code value corresponding to the key under test in the key code table, and the target key name is the key name corresponding to the target key code value.
[0044] Thirdly, this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described wireless remote control button testing method.
[0045] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the above-described wireless remote control button testing method.
[0046] In summary, this application includes at least one of the following beneficial technical effects:
[0047] 1. This application obtains the identification number of the remote control under test by responding to the test request of the remote control under test, then retrieves the key code table matching the identification number from the preset remote control database, and then extracts the corresponding target key code value according to the test signal sent when the key under test is triggered. The test record of the target key name corresponding to the target key code value is displayed on the test interface of the test device associated with the remote control under test, thereby performing visual testing on the test interface. Compared with the existing verification by controlling specific devices, this simplifies the testing process and improves testing efficiency.
[0048] 2. Since there are many types of remote controllers under test, and different remote controllers may use different encoding and decoding rules, this application retrieves the decoding rule corresponding to the identifier from the preset remote controller database, so that when the target button signal is received, it decodes according to the decoding rule, thereby realizing the automatic adoption of the corresponding decoding rule for remote controllers with different encoding rules;
[0049] 3. This application obtains a timing command, which is used to trigger the testing of all buttons on the remote control under test at regular intervals. Then, it obtains the trigger time sequence of the button under test and the test time sequence of the target button signal received by the test device, determines the test success rate and average response time, and finally determines the test result of the button under test. Attached Figure Description
[0050] Figure 1 This is an exemplary flowchart of a method for testing buttons on a wireless remote control according to an embodiment of this application;
[0051] Figure 2 This is an exemplary flowchart of an embodiment of the present application for determining the identification code;
[0052] Figure 3 This is an exemplary flowchart illustrating the determination of test results in an embodiment of this application;
[0053] Figure 4 This is an example flowchart for establishing a sequence of triggering time points;
[0054] Figure 5 This is a schematic diagram of the module of the testing device for the wireless remote control button in an embodiment of this application;
[0055] Figure 6 This is an internal structural diagram of the electronic device according to an embodiment of this application. Detailed Implementation
[0056] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to any or all possible combinations including one or more of the listed items.
[0057] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0058] Existing remote control testing methods often involve manually controlling the corresponding product with the remote control to verify the usability of the remote control buttons. This testing process is cumbersome and inefficient.
[0059] This application provides a method, apparatus, device, and medium for testing wireless remote control buttons. By responding to a test request from the remote control under test, the method obtains the identification number of the remote control under test, then retrieves a button code table matching the identification number from a preset remote control database, and extracts the corresponding target button code value based on the test signal sent when the button under test is triggered. The test record corresponding to the target button name is displayed on the test interface of the test device associated with the remote control under test, thus enabling visual testing on the test interface. Compared to existing methods that require verification using specific control devices, this method simplifies the testing process and improves testing efficiency.
[0060] The embodiments of this application will now be described in further detail with reference to the accompanying drawings.
[0061] Firstly, this application provides a method executed by an electronic device, which can be a server or a terminal device. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. In this embodiment, the terminal device is an electronic device, but is not limited to this; it can also be a smart tablet, computer, etc. The terminal device and the server can be directly or indirectly connected via wired or wireless communication. This application does not impose any limitations on this.
[0062] Reference Figure 1 , Figure 1 This is an exemplary flowchart of a method for testing buttons on a wireless remote control according to an embodiment of this application.
[0063] A method for testing buttons on a wireless remote control includes the following steps:
[0064] S110. In response to the test request from the remote control under test, obtain the identification number of the remote control under test, and retrieve the key code table that matches the identification number from the preset remote control database.
[0065] The key code table contains the key names and corresponding key code values of all the keys on the remote control under test.
[0066] Specifically, in the operation of a remote control, each button corresponds to a specific code. This code is sent out and recognized by the receiving device. The button code table identifies each button name and its code value, thus enabling the identification of these codes. For example, a remote control may have four buttons: "On / Off", "Volume +", "Volume -", and "Mute". We can assign a code to each button, such as "On / Off" being "0001", "Volume +" being "0010", "Volume -" being "0011", and "Mute" being "0100".
[0067] It is understandable that each remote control has a different number of buttons and a different button code table encoding method, so different remote controls correspond to different button code tables.
[0068] When the remote control sends a signal, it carries the code value of the key. When the remote control under test is detected to be placed in the preset detection position and the code of the remote control under test is scanned and identified, a test request for the remote control under test is generated and responded to. The scanned identification code can be the product serial number, identification number, etc. of the remote control. Then, the key code table matching the identification number is retrieved from the preset remote control database.
[0069] S120: Trigger the test key of the remote control under test to send the target key signal triggered by the test key to the associated test device.
[0070] The testing equipment is connected to the remote control under test and is used to receive signals transmitted by the remote control under test. The target button signal refers to the signal sent when the button under test is triggered.
[0071] S130. When the test device receives the target key signal, extract the target key code value from the target key signal and display the test record of the target key name corresponding to the target key code value on the test interface of the test device associated with the remote control under test.
[0072] The target key code value is the key code value corresponding to the key to be tested in the key code table, and the target key name is the key name corresponding to the target key code value.
[0073] Specifically, when the testing equipment receives the target button signal, it displays all the button names of the remote control under test and the test record of the target button name corresponding to the target button code value. This allows the staff to observe the test status of all remote control buttons, as well as which buttons have been tested, which buttons have not been tested, and the test results, thus preventing missed detections.
[0074] Optionally, after all buttons have been tested, the test interface of the test device will display the corresponding button test pass result.
[0075] This allows all types of remote controls to be tested visually on a unified testing interface, simplifying the testing process and improving testing efficiency compared to the existing method of verifying specific products.
[0076] Optionally, after triggering the test button on the remote control under test, the following steps are also included:
[0077] S140. If no target key signal is received within the preset trigger time, the key detection is determined to be in the first abnormal state, and a preset first fault signal is output.
[0078] If the test device does not receive a signal within the preset trigger time, it indicates that the key under test on the remote control is faulty, or that the triggering device or triggering program is faulty. In this case, the key detection is determined to be in the first abnormal state, and the first fault signal is output to facilitate manual troubleshooting, thereby further improving the detection accuracy and testing efficiency.
[0079] Different types of remote controls use different encoding and decoding rules, including NEC encoding, RC5 encoding, RC6 encoding, etc.
[0080] Therefore, the preset remote control database of this application includes decoding rules corresponding to the identifier. In one embodiment, after triggering the test button of the remote control under test, the database further includes:
[0081] S121. Retrieve the decoding rule corresponding to the identifier from the preset remote control database.
[0082] S122. When the target key signal is received from the test equipment, the target key signal is decoded according to the decoding rules.
[0083] This enables the automatic adoption of corresponding decoding rules for remote controls with different encoding rules, thereby accurately decoding the signals of different remote controls.
[0084] Reference Figure 2 In one embodiment, the target key signal further includes an identification code, and the method further includes:
[0085] S210. Obtain the identification code based on the target key signal.
[0086] The identification code is set to correspond to different remote control types, which is used to distinguish different remote control types.
[0087] S220. Determine the type of remote control corresponding to the identification code based on the preset remote control identification code table.
[0088] By searching the preset remote control identification code table using the identification code, you can determine the type of remote control corresponding to the identification code.
[0089] S230. If the determined remote control type matches the remote control type corresponding to the identifier, then display the identification code corresponding to the test record.
[0090] If the detected remote control type matches the remote control type corresponding to the identification number, it proves that both the identification number and the identification number are correct, the test is valid, and the test record and the corresponding identification code are displayed.
[0091] S240. If the remote control type determined is inconsistent with the remote control type corresponding to the identification number, it is determined to be a code error and the test record is not updated.
[0092] If the detected remote control type matches the remote control type corresponding to the identification number, it is considered an error, and the test record will not be updated. This serves as a verification function. At the same time, it can distinguish and identify different remote control devices. In the case of testing multiple remote control devices, the source of the signal can be determined based on the identification code, preventing signal interference between different devices.
[0093] Optional, refer to Figure 3 In one embodiment, the method further includes:
[0094] S310. Obtain the timing command. The timing command is used to trigger the testing of all buttons on the remote control under test at regular intervals.
[0095] Specifically, the testing equipment includes a pressing device. When testing the remote control, the associated pressing device simulates manual button pressing on the button under test. This simulates manual button pressing on the remote control, reducing missed or false detections of remote control buttons. The pressing device can be a robotic arm, which moves to the corresponding pressing position according to a pre-programmed sequence to press the button, thus automating the pressing process.
[0096] Understandably, timing commands are used to control the pressing action of the robotic arm at specific times, thereby enabling automated testing.
[0097] S320: Obtain the trigger time sequence of the key to be tested triggered in the timing command, so as to enable the remote control to trigger the key to be tested according to the trigger time sequence.
[0098] This involves obtaining the trigger time sequence of the key to be tested, triggering the key to be tested according to the trigger time, and then evaluating the test results of the key to be tested.
[0099] S330. Obtain the test record time sequence when the test device receives the target key signal, and determine the test success rate and average response time based on the trigger time sequence and the test record time sequence.
[0100] S340. Determine the test results of the key under test based on the test success rate and average response time.
[0101] Among them, success rate and response time thresholds are preset, and the test success rate and average response time are compared with the preset thresholds to determine whether the test result is qualified or unqualified.
[0102] Optionally, this application automatically creates a sequence of trigger time points before obtaining the trigger time point sequence, thereby enabling efficient detection.
[0103] Specifically, refer to Figure 4 Before obtaining the trigger time sequence, the following steps are included:
[0104] S410. Retrieve the product image corresponding to the identification number from the preset remote control database.
[0105] The product image can reflect the distribution of the product's buttons.
[0106] S420: Based on the product image, plan the trigger path to trigger all buttons in the fastest way.
[0107] Among them, based on the shortest path planning, the trigger path that triggers all buttons the fastest is planned, so as to test the availability of all buttons more efficiently.
[0108] S430: Trigger all buttons sequentially according to the trigger path.
[0109] S440, Obtain the first time point when the key under test is triggered and the duration of one loop of the trigger path.
[0110] After the shortest trigger path is planned, the pressing device triggers all buttons sequentially according to the shortest trigger path, thereby detecting all buttons. The duration of one cycle of the trigger path is the duration of detecting all buttons once in each cycle. It can be understood that the duration of one cycle is a fixed value.
[0111] S450. Establish a trigger time sequence based on the initial time point and the duration of one cycle.
[0112] By using the initial time point and the duration of one cycle, a sequence of trigger time points can be established, eliminating the need to statistically analyze the time point of each trigger.
[0113] Optionally, after displaying the test record of the target key name corresponding to the target key code value, the method further includes:
[0114] S510. Identify the button name of the key to be tested on the remote control based on the product image.
[0115] Each button under test has a corresponding labeled button name, such as "On / Off", "Volume +", "Volume -", and "Mute", allowing users to control the button according to its labeled name. Typically, these labels are marked on or below the product buttons. By performing image recognition on the product image, the labeled button name can be identified.
[0116] S520. Determine whether the target button name and the identifier button name are consistent.
[0117] S530. If the target button name is inconsistent with the identifier button name, the button detection is determined to be in the second abnormal state, and a preset second fault signal is output.
[0118] In some cases, there may be incorrect button wiring in the product, such that pressing the "volume +" button triggers the "volume -" control effect. This application identifies the button name of the button under test on the remote control based on the product image, and then determines whether the target button name matches the identified button name. If they do not match, it determines that the button detection is abnormal and outputs the corresponding fault signal, thereby further improving the detection accuracy and testing efficiency.
[0119] The implementation principle of the wireless remote control button testing method in this application embodiment is as follows: This application obtains the identification number of the remote control under test by responding to the test request of the remote control under test, then retrieves the button code table matching the identification number from the preset remote control database, and then extracts the corresponding target button code value according to the test signal sent when the button under test is triggered. The test record of the target button name corresponding to the target button code value is displayed on the test interface of the test device associated with the remote control under test, thereby performing visual testing on the test interface. Compared with the existing method of verifying with specific control devices, this simplifies the testing process and improves testing efficiency.
[0120] Secondly, this application provides a testing device for wireless remote control buttons. The testing device for wireless remote control buttons of this application will be described below in conjunction with the aforementioned testing method for wireless remote control buttons. Please refer to... Figure 5 , Figure 5 This is a schematic diagram of the module of the test device for the wireless remote control button in an embodiment of this application.
[0121] A testing device for wireless remote control buttons, comprising:
[0122] The key code table retrieval module 510 is used to respond to the test request of the remote control under test, obtain the identification number of the remote control under test, and retrieve the key code table that matches the identification number from the preset remote control database. The key code table contains the key name and corresponding key code value of all the keys on the remote control under test.
[0123] The target button signal sending module 520 is used to trigger the button under test of the remote control under test in order to send the target button signal triggered by the button under test to the associated test device.
[0124] The test record display module 530 is used to extract the target key code value from the target key signal when the test device receives the target key signal, and display the test record of the target key name corresponding to the target key code value on the test interface of the test device associated with the remote control under test; the target key code value is the key code value corresponding to the key under test in the key code table, and the target key name is the key name corresponding to the target key code value.
[0125] Optionally, the device also includes a first abnormal state determination module 540, which determines that the key detection is in a first abnormal state and outputs a preset first fault signal if no target key signal is received within a preset trigger time.
[0126] Optionally, the device also includes a decoding rule retrieval module 550, used to retrieve the decoding rule corresponding to the identifier from a preset remote control database;
[0127] The decoding module 560 is used to decode the target key signal according to the decoding rules when the test device receives the target key signal.
[0128] Optionally, the target key signal includes an identification code, and the device further includes an identification code acquisition module 610 for acquiring the corresponding identification code based on the target key signal;
[0129] The remote control type determination module 620 is used to determine the type of remote control corresponding to the identification code based on a preset remote control identification code table;
[0130] The comparison module 630 is used to display the identification code corresponding to the test record if the determined remote control type matches the remote control type corresponding to the identification number.
[0131] The error detection module 640 is used to determine an error and not update the test record if the remote control type being detected does not match the remote control type corresponding to the identification number.
[0132] Optionally, the device also includes a timing instruction acquisition module 710, used to acquire timing instructions, which are used to periodically trigger the testing of all buttons on the remote control under test;
[0133] Trigger time point sequence acquisition module 720 is used to acquire the trigger time point sequence of the key to be tested in the timing instruction, so that the remote control can trigger the key to be tested according to the trigger time point sequence;
[0134] The test record time point sequence acquisition module 730 is used to acquire the test record time point sequence when the test device receives the target key signal, and to determine the test success rate and average response time based on the trigger time point sequence and the test record time point sequence.
[0135] The test result determination module 740 is used to determine the test result of the key under test based on the test success rate and average response time.
[0136] Optionally, the device also includes a product image retrieval module 810, used to retrieve the product image corresponding to the identification number from a preset remote control database;
[0137] The trigger path planning module 820 is used to plan the trigger path that will trigger all buttons the fastest, based on the product image.
[0138] The button triggering module 830 is used to trigger all buttons sequentially according to the triggering path;
[0139] The loop duration acquisition module 840 is used to acquire the first time point of triggering the key under test and the loop duration of the trigger path;
[0140] The trigger time point sequence establishment module 850 is used to establish a trigger time point sequence based on the first time point and the duration of one cycle.
[0141] Optionally, the device also includes a key name identification module 910 for identifying the key name of the key to be tested on the remote control based on the product image;
[0142] The name determination module 920 is used to determine whether the target button name and the identifier button name are consistent.
[0143] The second abnormal state determination module 930 is used to determine that the key detection is in a second abnormal state if the target key name is inconsistent with the identifier key name, and output a preset second fault signal.
[0144] In one embodiment, this application provides an electronic device, which may be a server, and its internal structure diagram may be as follows: Figure 6 As shown, the electronic device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database stores data. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for testing the buttons on a wireless remote control.
[0145] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0146] In one embodiment, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0147] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0148] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure, shape and principle of this application should be covered within the scope of protection of this application.
Claims
1. A method for testing buttons on a wireless remote control, characterized in that, Includes the following steps: In response to a test request from the remote control under test, the identification number of the remote control under test is obtained, and a key code table matching the identification number is retrieved from a preset remote control database. The key code table contains the key names and corresponding key code values of all keys on the remote control under test. Trigger the test key of the remote control under test to send the target key signal triggered by the test key to the associated test device; If the target key signal is not received within the preset trigger time, the key detection is determined to be in the first abnormal state, and a preset first fault signal is output. When the test device receives the target button signal, it extracts the target button code value from the target button signal and displays the test record of the target button name corresponding to the target button code value on the test interface of the test device associated with the remote control under test; the target button code value is the button code value corresponding to the key under test in the button code table, and the target button name is the button name corresponding to the target button code value; Retrieve the product image corresponding to the identification number from the preset remote control database; Based on the product image, plan the trigger path that will trigger all buttons the fastest; All buttons are triggered sequentially according to the trigger path; Obtain the first time point when the key under test is triggered and the duration of one loop of the trigger path; Establish a trigger time point sequence based on the initial time point and the duration of one cycle; Identify the key name of the button to be tested on the remote control based on the product image; Determine whether the target button name and the identifier button name are consistent; If the target button name is inconsistent with the identifier button name, the button detection is determined to be in a second abnormal state, and a preset second fault signal is output.
2. The testing method for wireless remote control buttons according to claim 1, characterized in that, After obtaining the identifier of the remote control under test, the process further includes: Retrieve the decoding rule corresponding to the identifier from the preset remote control database; When the test device receives the target key signal, it decodes the target key signal according to the decoding rules.
3. The testing method for wireless remote control buttons according to claim 1, characterized in that, The target key signal includes an identification code, and the method further includes: Obtain the corresponding identification code based on the target key signal; Based on a preset remote control identification code table, determine the type of remote control corresponding to the identification code; If the determined remote control type matches the remote control type corresponding to the identifier, then the identification code corresponding to the test record is displayed; If the determined remote control type is inconsistent with the remote control type corresponding to the identification number, it is judged as a code error, and the test record is not updated.
4. The testing method for wireless remote control buttons according to claim 1, characterized in that, The method further includes: Obtain a timing command, which is used to periodically trigger the testing of all buttons on the remote control under test; The timing instruction is used to obtain the trigger time sequence of the key under test, so that the remote control triggers the key under test according to the trigger time sequence. Obtain the test record time sequence when the test device receives the target key signal, and determine the test success rate and average response time based on the trigger time sequence and the test record time sequence; The test result of the key under test is determined based on the test success rate and the average response time.
5. A testing device for wireless remote control buttons, characterized in that, The method for testing the buttons of a wireless remote control according to any one of claims 1-4 includes: The key code table retrieval module is used to respond to the test request of the remote control under test, obtain the identification number of the remote control under test, and retrieve the key code table that matches the identification number from the preset remote control database. The key code table contains the key name and corresponding key code value of all the keys on the remote control under test. The target button signal sending module is used to trigger the button under test of the remote control under test in order to send the target button signal triggered by the button under test to the associated test device; The test record display module is used to extract the target key code value from the target key signal when the test device receives the target key signal, and display the test record of the target key name corresponding to the target key code value on the test interface of the test device associated with the remote control under test; the target key code value is the key code value corresponding to the key under test in the key code table, and the target key name is the key name corresponding to the target key code value.
6. An electronic device, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the test method for the wireless remote control buttons according to any one of claims 1-4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the test method for the wireless remote control buttons as described in any one of claims 1-4.
Citation Information
Patent Citations
Method and system for detecting remote controllers
CN102645433A
Automatic testing method and master control device
CN104216823A
Remote controller key detection method, device and equipment and storage medium thereof
CN116612628A