Test method, device and system of remote control equipment, storage medium and electronic equipment

By writing fixed and unique identification information into the test module of the remote control device and allocating the port number based on the identification information, the problem of failed acquisition of test data is solved, and the stability of the port number and reliable acquisition of test data is achieved.

CN119814612APending Publication Date: 2025-04-11JIANGSU HUITONG GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411943202.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

During the testing of remote control equipment, it is easy to fail to obtain test data.

Method used

By writing identification information to each test module's target address after the first power-on, and assigning the port number based on the mapping relationship between the identification information and the port number during subsequent power-on, ensure that the port number of each test module is fixed and unchanged.

Benefits of technology

Avoid the situation where the test data cannot be obtained due to changes in the port number, and ensure the stability and reliability of the test data acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119814612A_ABST
    Figure CN119814612A_ABST
Patent Text Reader

Abstract

The invention discloses a test method, device and system for remote control equipment, a storage medium and electronic equipment, and the test method comprises the steps: writing the identification information of a test module into a target address of the test module after each test module is powered on for the first time; after each test module is powered on for the nth time, the identification information of the test module is read from the target address of the test module, the port number is allocated to the test module based on the mapping relation between the identification information and the port number, in the mapping relation, the port numbers corresponding to different identification information are different, and n is a positive integer larger than 1; and based on the port number of each test module, sending a test command to the plurality of test modules and receiving test data from the plurality of test modules. According to the scheme, the port number of each test module can be fixed, and the situation that the test terminal cannot obtain the test data after the test module is powered down is effectively avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of device testing, and in particular to a testing method, device, system, storage medium, and electronic device for a remote control device. Background Art

[0002] At present, remote control devices are widely used in the field of home appliances, such as TV remote controls, air conditioner remote controls, and sweeping robot remote controls. In recent years, with the emergence of various new smart homes, the demand for remote control devices has also continued to increase. In order to ensure the quality of remote control devices, performance tests need to be performed on remote control devices before they leave the factory. However, in actual tests, test data acquisition failures are likely to occur. Summary of the invention

[0003] The technical problem to be solved by the embodiments of the present application is: how to avoid the failure of test data acquisition during the testing process of the remote control device.

[0004] In view of this, an embodiment of the present application provides a testing method for a remote control device, the method being applied to a test terminal, the test terminal being connected to multiple test modules, wherein different test modules are used to test different functions of the remote control device, the method comprising: after each test module is powered on for the first time, writing identification information of the test module to a target address of the test module; after each test module is powered on for the nth time, reading identification information of the test module from the target address of the test module, and assigning a port number to the test module based on a mapping relationship between identification information and port number, wherein in the mapping relationship, different identification information corresponds to different port numbers, and n is a positive integer greater than 1; based on the port numbers of the respective test modules, sending test commands to the multiple test modules and receiving test data from the multiple test modules.

[0005] Optionally, the test module includes a Bluetooth chip and a serial port chip, the Bluetooth chip is used to communicate with the remote control device, and the Bluetooth chip communicates with the test terminal via the serial port chip.

[0006] Optionally, the test module includes a Bluetooth chip, which is used to communicate with the remote control device. The Bluetooth chip has a CDC class USB interface virtualized as a serial port, and the Bluetooth chip communicates with the test terminal via the CDC class USB interface.

[0007] Optionally, after each test module is powered on for the first time, before writing the identification information of the test module to the target address of the test module, the method further includes: generating a random number for each test module, and using the generated random number as the identification information of the test module.

[0008] Optionally, the random number is a 2N-byte random number, where N is a positive integer, and using the generated random number as identification information of the test module includes: using the high-order N bytes of data in the random number as a process identifier, and using the low-order N bytes of data in the random number as a vendor identifier.

[0009] An embodiment of the present application also provides a testing device for a remote control device, the device being applied to a test terminal, the test terminal being connected to a plurality of test modules, wherein different test modules are used to test different functions of the remote control device, the device comprising: an identification generation module, for writing identification information of the test module to a target address of the test module after each test module is powered on for the first time; a port number allocation module, for reading identification information of the test module from the target address of the test module after each test module is powered on for the nth time, and for allocating a port number to the test module based on a mapping relationship between the identification information and the port number, wherein in the mapping relationship, different identification information corresponds to different port numbers, and n is a positive integer greater than 1; and an execution module, for sending test commands to the plurality of test modules and receiving test data from the plurality of test modules based on the port numbers of the respective test modules.

[0010] The embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned test method of the remote control device is executed.

[0011] An embodiment of the present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned remote control device testing method when executed by a processor.

[0012] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and the processor executes the steps of the above-mentioned remote control device testing method when running the computer program.

[0013] An embodiment of the present application also provides a testing system for a remote control device, comprising: multiple testing modules, wherein different testing modules are used to test different functions of the remote control device; and a testing terminal connected to the multiple testing modules, for executing the above-mentioned testing method for the remote control device.

[0014] Optionally, the test module includes a Bluetooth chip, the Bluetooth chip has a CDC class USB interface virtualized as a serial port, and the Bluetooth chip communicates with the test terminal via the CDC class USB interface.

[0015] Compared with the prior art, the technical solution of the embodiment of the present application has the following beneficial effects:

[0016] In the scheme of the embodiment of the present application, after each test module is powered on for the first time, the identification information of the test module is written to the target address of the test module. After each test module is powered on for the nth time, the identification information of the test module is read from the target address of the test module, and a port number is assigned to the test module based on the mapping relationship between the identification information and the port number, wherein in the mapping relationship, different identification information corresponds to different port numbers, and n is a positive integer greater than 1. Then, based on the port numbers of each test module, a test command is sent to the multiple test modules and test data is received from the multiple test modules. In the above scheme, a fixed and unique identification information is written in the test module, and a port number is assigned based on the identification information of the test module after the subsequent power-on, to ensure that the port number of each test module is fixed and unchanged, thereby avoiding the situation where the test data cannot be obtained due to the change of the port number after power failure.

[0017] Furthermore, in the solution of the embodiment of the present application, the test module includes a Bluetooth chip, the Bluetooth chip is used to communicate with the remote control device, the Bluetooth chip has a CDC class USB interface virtualized as a serial port, and the Bluetooth chip communicates with the test terminal via the CDC class USB interface. That is, the above solution is conducive to reducing the size of the test module and reducing the cost of the test module by using a virtual serial port on the Bluetooth chip to communicate with the test terminal. In addition, by adopting such a solution, from a hardware point of view, the Bluetooth chip directly communicates with the test terminal, and compared with the solution of forwarding via a serial port chip, the above solution is also conducive to improving the test efficiency and the accuracy of the test. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a schematic diagram of the architecture of a test system for a remote control device in an embodiment of the present application;

[0019] Figure 2 It is a flowchart of a testing method of a remote control device in an embodiment of the present application;

[0020] Figure 3 is a flow chart of another method for testing a remote control device in an embodiment of the present application;

[0021] Figure 4 It is a structural schematic diagram of a testing device for a remote control device in an embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to make the above-mentioned purposes, features and beneficial effects of the present application more obvious and easy to understand, the specific embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0023] Reference Figure 1 , Figure 1Schematic diagram of the architecture of a test system for a remote control device in an embodiment of the present application. Figure 1 As shown, the test system 1 may include: a test terminal and multiple test modules. Figure 1 Take K as a test module as an example, where K is a positive integer greater than 1.

[0024] In the solution of the embodiment of the present application, the test terminal can be any electronic device with data transmission and data processing capabilities. For example, the test terminal can be a computer, a tablet computer, etc., but is not limited thereto.

[0025] Furthermore, the test module can be used to test the function of the remote control device. It should be noted that the embodiments of the present application are not limited to the remote control device, and can be various remote control devices. Exemplarily, the remote control device can be a device for remotely controlling home appliances, for example, it can be an air conditioner remote control, a TV remote control, a light remote control, etc. It should be noted that the test method provided in this article is not only applicable to remote control devices in the field of home appliances, but can also be applicable to remote control devices in other fields.

[0026] Furthermore, in the solution of the embodiment of the present application, different test modules are used to test different functions of the remote control device. For example, test module 1 can be used to test the temperature adjustment function of the remote control device, and test module 2 can be used to test the wind direction adjustment function of the remote control device.

[0027] like Figure 1 As shown, during the test process, each test module is connected to the remote control device, and each test module is connected to the test terminal.

[0028] In a possible implementation, each test module may have a Bluetooth communication function. Specifically, each test module may communicate with a remote control device using Bluetooth communication technology.

[0029] Specifically, the test module may include a Bluetooth chip, and the Bluetooth chip is used to communicate with the remote control device.

[0030] In one embodiment of the present application, each test module may further include a serial port chip, and the Bluetooth chip communicates with the test terminal via the serial port chip. Specifically, the test module receives a test command from the test terminal via the serial port chip, and then the test module sends the test command to the remote control device via the Bluetooth chip. Correspondingly, the test module receives test data from the remote control device via the Bluetooth chip, and the test module sends the test data to the test terminal via the serial port chip.

[0031] In another embodiment of the present application, the test module may not include a serial port chip. Specifically, the Bluetooth chip in the test module may have a communication device class (Communication Device Class, CDC) universal serial bus (Universal Serial Bus, USB) interface virtualized as a serial port. In other words, the Bluetooth chip can communicate with the test terminal through the virtual serial port.

[0032] Compared with the above solution, the solution of using a virtual serial port on the Bluetooth chip to communicate with the test terminal is conducive to reducing the size of the test module and reducing the cost of the test module. In addition, from a hardware perspective, the Bluetooth chip directly communicates with the test terminal. Compared with the solution of forwarding via the serial port chip, the above solution is also conducive to improving the test efficiency and accuracy.

[0033] In a specific implementation, after multiple test modules are connected to the test terminal, the test terminal assigns a port number to each test module. Specifically, the test terminal randomly assigns a port number to each test module, and then communicates with the test module based on the port number of each test module. If a test module loses power during the test, the port number will change after the test module is powered on again, and the test terminal cannot obtain the test data corresponding to the test module based on the original port number.

[0034] like Figure 1 As shown, after the K test modules are powered on, the test terminal randomly assigns port numbers to the K test modules. Assume that the test terminal assigns port number 3 to test module 1, port number 5 to test module 2, and port number 8 to test module 3.

[0035] If test module 1 loses power, the test terminal will randomly reassign port number 1 to test module 1. If the test terminal is shut down and then restarted, test modules 2 and 3 may seize the port number of test module 1. For example, the port number of test module 2 changes to 3, and the port number of test module 1 changes to 1.

[0036] Since the port number corresponding to the test module 1 in the test program of the test terminal is fixed, but the actual port number of the test module 1 has changed, the test terminal still obtains test data based on port number 5, and data acquisition failure may occur. In other words, the test module 1 is used to test function 1 of the remote control device, and the data acquisition failure may mean that the terminal device cannot obtain any test data, or that the terminal device cannot obtain test data related to function 1, but obtains test data related to other functions.

[0037] In view of this, an embodiment of the present application provides a test method for a remote control device. In the scheme of the embodiment of the present application, after each test module is powered on for the first time, the identification information of the test module is written to the target address of the test module. After each test module is powered on for the nth time, the identification information of the test module is read from the target address of the test module, and a port number is assigned to the test module based on the mapping relationship between the identification information and the port number, wherein in the mapping relationship, different identification information corresponds to different port numbers, and n is a positive integer greater than 1. Then, based on the port numbers of each test module, a test command is sent to the multiple test modules and test data is received from the multiple test modules. In the above scheme, fixed and unique identification information is written in the test module, and the port number is assigned based on the identification information of the test module after the subsequent power-on, so as to ensure that the port number of each test module is fixed and unchanged, thereby avoiding the situation where the test data cannot be obtained due to the change of the port number after power failure.

[0038] Reference Figure 2 , Figure 2 It is a flowchart of a testing method for a remote control device in an embodiment of the present application. Figure 2 The method shown can be applied to the test terminal described above. Figure 2 As shown, the testing method may include S21 to S23.

[0039] S21, after each test module is powered on for the first time, writing identification information of the test module to the target address of the test module;

[0040] S22, after each test module is powered on for the nth time, read the identification information of the test module from the target address of the test module, and assign a port number to the test module based on a mapping relationship between the identification information and the port number, wherein in the mapping relationship, different identification information corresponds to different port numbers, and n is a positive integer greater than 1;

[0041] S23, sending test commands to the multiple test modules and receiving test data from the multiple test modules based on the port numbers of the respective test modules.

[0042] In S21, for each test module, after the first power-on, the identification information is written into the target address of the test module. The target address may be pre-configured. It should be noted that the target addresses of different test modules may be the same or different, and this embodiment does not limit this.

[0043] In the solution of the embodiment of the present application, the identification information of the test module can uniquely identify the test module.

[0044] In a possible implementation, a random number may be generated for each test module, and then the generated random number is used as identification information of the test module. It should be noted that for each test module, a random number is only generated once, not every time it is powered on. Specifically, after the random number is generated, the random number is written into the test module as identification information, and once written into the test module, the identification information remains unchanged.

[0045] Exemplarily, the generated random number is a 2N-byte random number, where N is a positive integer. In one example, N=2, that is, the random number can be a 4-byte random number.

[0046] Furthermore, the high-order N bytes of data in the random number can be used as a process identifier (Process Identifier, PID), and the low-order N bytes of data in the random number can be used as a vendor identifier (Identifier For Vendor, VID). Alternatively, the high-order N bytes of data in the random number can be used as a VID, and the low-order N bytes of data in the random number can be used as a PID.

[0047] It should be noted that this document does not limit the type of identification information, as long as the identification information can uniquely identify the measurement module.

[0048] It should be noted that after each test module is powered on for the first time and the identification information is written, the test terminal also allocates a port number to the test module according to the mapping information described below.

[0049] In S22, after each test module is powered on for the nth time, the identification information is first read from the target address, and then a port number is allocated to the test module based on the mapping relationship between the identification information and the port number. That is, if a test module is powered on again after power failure, the terminal device allocates a port number to the test module again based on the mapping relationship between the identification information and the port number.

[0050] Specifically, in the scheme of the embodiment of the present application, a mapping relationship between identification information and port number is pre-configured. Among them, different identification information corresponds to different port numbers. In other words, each identification information corresponds to a unique and fixed port number. More specifically, the identification information includes PID and VID, and different identification information can mean: different PIDs and the same VID; or, different VIDs and the same PID; or, different PIDs and different VIDs.

[0051] Therefore, for each test module, each time the power is off and then on again, the test terminal first reads the identification information, and then allocates the port number corresponding to the identification information to the test module according to the mapping relationship. Since the identification information is fixed and the mapping relationship is fixed, the port number allocated by the test terminal to the same test module is always fixed, thereby fixing the port number of each test module.

[0052] In S23, the test terminal communicates with each test module based on the port number of each test module.

[0053] Specifically, the test terminal uses the port number of the test module to send a test command to the test module, and uses the port number of the test module to receive test data returned by the test module.

[0054] As described above, since the port number of each test module remains unchanged, it is avoided that the test data cannot be obtained due to the change of the port number after power failure.

[0055] Reference Figure 3 , Figure 3 It is a flowchart of another method for testing a remote control device in an embodiment of the present application. Figure 3 The following describes the process after the test module is powered on each time.

[0056] S31, the test module is powered on.

[0057] S32, initializing the test module.

[0058] S33, read the data of the target address.

[0059] S34, determining whether 2N bytes of data are read.

[0060] Specifically, if 2N bytes of data are not read, then S35 is continued to be executed; if 2N bytes of data are read, then S36 is continued to be executed.

[0061] S35, write 2N bytes of random numbers into the target address.

[0062] S36, taking the high-order N bytes of data as PID, and taking the low-order N bytes of data in the random number as VID.

[0063] S37, register the test module and assign a port number to the test module.

[0064] about Figure 3 For more information, please refer to the above article about Figure 1 and Figure 2 The relevant description will not be repeated here.

[0065] It can be understood that, in a specific implementation, the above method can be implemented in the form of a software program, which runs in a processor integrated inside a chip or a chip module; or, the method can be implemented in hardware or a combination of hardware and software, such as using a dedicated chip or chip module, or using a dedicated chip or chip module in combination with a software program.

[0066] Reference Figure 4 , Figure 4 1 is a schematic diagram of the structure of a test device for a remote control device in an embodiment of the present application. The test device can be applied to a test terminal, and the test terminal is connected to multiple test modules, wherein different test modules are used to test different functions of the remote control device. Figure 4 As shown, the test device of the remote control device may include:

[0067] The identification generating module 41 is used to write the identification information of each test module to the target address of the test module after each test module is powered on for the first time;

[0068] The port number allocation module 42 is used to read the identification information of the test module from the target address of the test module after each test module is powered on for the nth time, and allocate a port number to the test module based on the mapping relationship between the identification information and the port number, wherein in the mapping relationship, different identification information corresponds to different port numbers, and n is a positive integer greater than 1;

[0069] The execution module 43 is used to send test commands to the multiple test modules and receive test data from the multiple test modules based on the port number of each test module.

[0070] For more information about the working principle, working method, beneficial effects, etc. of the testing device for the remote control device in the embodiment of the present application, please refer to the above description of the testing method for the remote control device, which will not be repeated here.

[0071] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the test method of the remote control device described above are executed. The storage medium may include ROM, RAM, a magnetic disk or an optical disk, etc. The storage medium may also include a non-volatile memory or a non-transitory memory, etc.

[0072] An embodiment of the present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned remote control device testing method when executed by a processor.

[0073] The embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor executes the steps of the above-mentioned remote control device testing method when running the computer program. The electronic device includes but is not limited to a server, a computer, a tablet computer and other devices. Exemplarily, the electronic device can be the test terminal mentioned above.

[0074] The embodiment of the present application also provides a test system for a remote control device, including a test terminal and a plurality of test modules. The specific contents of the test system can be referred to the relevant description above, and will not be repeated here.

[0075] It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0076] It should also be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0077] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented using software, the above embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer program may be stored in a computer-readable storage medium, or may be transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means.

[0078] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and systems can be implemented in other ways. For example, the device embodiments described above are merely schematic; for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0079] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units. For example, for each device or product applied to or integrated in a chip, each module / unit contained therein may be implemented in the form of hardware such as circuits, or at least part of the modules / units may be implemented in the form of software programs, which run on a processor integrated inside the chip, and the remaining (if any) modules / units may be implemented in the form of hardware such as circuits; for each device or product applied to or integrated in a chip module, each module / unit contained therein may be implemented in the form of hardware such as circuits, and different modules / units may be located in the same component (such as a chip, circuit module, etc.) or different components of the chip module, or at least part of the modules / units may be implemented in the form of software programs. The element can be implemented in the form of a software program, which runs on a processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in the terminal, the various modules / units contained therein can be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or in different components in the terminal, or, at least some modules / units can be implemented in the form of a software program, which runs on a processor integrated inside the terminal, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits.

[0080] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article indicates that the associated objects before and after are in an "or" relationship.

[0081] The "multiple" in the embodiments of the present application refers to two or more. The first, second, etc. descriptions in the embodiments of the present application are only used for illustration and distinction of the described objects, and have no order, nor do they represent a special limitation on the number of devices in the embodiments of the present application, and cannot constitute any limitation on the embodiments of the present application.

[0082] Although the present application is disclosed as above, the present application is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application. Therefore, the protection scope of the present application shall be subject to the scope defined by the claims.

Claims

1. A method for testing a remote control device, characterized in that: The method is applied to a test terminal, the test terminal is connected to a plurality of test modules, wherein different test modules are used to test different functions of the remote control device, and the method comprises: After each test module is powered on for the first time, writing the identification information of the test module to the target address of the test module; After each test module is powered on for the nth time, the identification information of the test module is read from the target address of the test module, and a port number is assigned to the test module based on a mapping relationship between the identification information and the port number, wherein in the mapping relationship, different identification information corresponds to different port numbers, and n is a positive integer greater than 1; Based on the port numbers of the respective test modules, test commands are sent to the plurality of test modules and test data are received from the plurality of test modules.

2. The remote control device testing method according to claim 1, characterized in that: The test module includes a Bluetooth chip and a serial port chip. The Bluetooth chip is used to communicate with the remote control device, and the Bluetooth chip communicates with the test terminal via the serial port chip.

3. The remote control device testing method according to claim 1, characterized in that: The test module includes a Bluetooth chip, the Bluetooth chip is used to communicate with the remote control device, the Bluetooth chip has a CDC class USB interface virtualized as a serial port, and the Bluetooth chip communicates with the test terminal via the CDC class USB interface.

4. The remote control device testing method according to claim 1, characterized in that: After each test module is powered on for the first time, before writing the identification information of the test module to the target address of the test module, the method further includes: A random number is generated for each test module, and the generated random number is used as identification information of the test module.

5. The remote control device testing method according to claim 4, characterized in that: The random number is a 2N-byte random number, where N is a positive integer. The generated random number is used as identification information of the test module, including: The high-order N bytes of data in the random number are used as a process identifier, and the low-order N bytes of data in the random number are used as a vendor identifier.

6. A test device for a remote control device, characterized in that: The device is applied to a test terminal, the test terminal is connected to a plurality of test modules, wherein different test modules are used to test different functions of the remote control device, and the device comprises: An identification generation module, used to write identification information of each test module to a target address of the test module after each test module is powered on for the first time; A port number allocation module, used for reading the identification information of the test module from the target address of the test module after each test module is powered on for the nth time, and allocating a port number to the test module based on a mapping relationship between the identification information and the port number, wherein in the mapping relationship, different identification information corresponds to different port numbers, and n is a positive integer greater than 1; The execution module is used to send test commands to the multiple test modules and receive test data from the multiple test modules based on the port numbers of the respective test modules.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the remote control device testing method according to any one of claims 1 to 5 is executed.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the remote control device testing method according to any one of claims 1 to 5 are implemented.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor runs the computer program, the processor executes the steps of the remote control device testing method according to any one of claims 1 to 5.

10. A remote control device testing system, characterized in that: include: A plurality of test modules, wherein different test modules are used to test different functions of the remote control device; A test terminal is connected to the plurality of test modules and is used to execute the test method of the remote control device according to claims 1 to 5.

11. The test system for remote control device according to claim 10, characterized in that: The test module comprises a Bluetooth chip, wherein the Bluetooth chip has a CDC class USB interface virtualized as a serial port, and the Bluetooth chip communicates with the test terminal via the CDC class USB interface.