A LAN port-based CPE device testing method and system

By designing a CPE device test system based on the LAN port and using the Socket service as a transparent channel for AT commands, efficient automated testing of CPE devices is achieved, solving the problem of testing after removing the USB port, improving test efficiency and reducing costs.

CN116684338BActive Publication Date: 2025-10-10GUANGZHOU SIMWARE TELECOM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310672534.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-08
Publication Date
2025-10-10
Estimated Expiration
2043-06-08

AI Technical Summary

Technical Problem

Existing CPE devices need to test multiple functions before production and shipment. However, since the USB port is removed to reduce costs, new testing systems and methods need to be developed, especially for testing through the LAN port.

Method used

A LAN-based CPE device testing system is designed, which includes a host computer test system and a CPE test service system. The system is connected via the LAN port and uses the Socket service as a transparent channel for AT commands to achieve automated testing and result judgment, and supports simultaneous testing of multiple devices.

Benefits of technology

It achieves efficient and automated CPE device testing through the LAN port, reduces the complexity of test code development, improves test efficiency, reduces manual misjudgment, and reduces product costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116684338B_ABST
    Figure CN116684338B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of device production line testing, and particularly discloses a CPE device testing method and system based on a LAN port, wherein the system comprises an upper computer testing system, a network cable and a CPE testing service system connected with the upper computer testing system through the network cable; the upper computer testing system is used for simultaneously sending a test script and an AT test instruction to a plurality of CPE devices to be tested; and the CPE testing service system comprises the following contents. The application provides a method and system for testing CPE functions through the LAN port of the CPE, so that the USB device of the CPE is removed, and the product cost is reduced. The test system can automatically test a plurality of devices, the test efficiency is improved, a script can be customized to write different test cases, a test process can be customized, and the deployment and debugging of the test system are facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of equipment production line testing, and in particular to a LAN port-based CPE equipment testing method and system. Background Art

[0002] CPE (Customer Premise Equipment) is a new type of wireless terminal access device that can receive wireless signals from wireless routers, wireless access points, and wireless base stations. Similar to a mobile phone, CPE can access the mobile network through a card, acting directly as a wired network interface or converting it into a Wi-Fi signal, providing device connectivity within homes and offices. 5G industrial CPE leverages public 3G / 4G / 5G networks to provide users with wireless long-distance, large-scale data transmission. This product utilizes a high-performance industrial-grade 32-bit communications processor and industrial-grade wireless modules, supported by an embedded real-time operating system. It also provides one RS232 (or RS485), one Ethernet LAN, one Ethernet WAN, one fiber optic interface, and supports WiFi. It can simultaneously connect serial, Ethernet, and WiFi devices, enabling transparent data transmission and routing.

[0003] Currently, CPE (Customer Premises Equipment) is a wireless access device that converts cellular data networks (CAT4 4G networks) into Wi-Fi hotspots. Before production and shipment, CPE products must be fully functionally tested. Typically, CPE devices include Wi-Fi, LAN, and USB ports, with the USB port typically used for downloading and testing. To further reduce product costs, the USB port needs to be removed. To test CPE devices without the USB port, a new test system and methodology are needed. Summary of the Invention

[0004] The present invention aims to provide a LAN-based CPE device testing method and system. This method utilizes the CPE's LAN port to test CPE functionality, eliminating the need for USB devices and reducing product costs. Furthermore, this testing system can automate testing of multiple devices, improving testing efficiency. Customizable scripts can be used to create different test cases, allowing for customized test processes and facilitating deployment and debugging of the test system.

[0005] To achieve the above objectives, the present invention provides the following technical solution: a LAN port-based CPE device testing system, the system comprising a host computer testing system, a network cable, and a CPE testing service system connected to the host computer testing system via the network cable:

[0006] A host computer test system, wherein the host computer test system is used to simultaneously send test scripts and AT test commands to multiple CPE devices to be tested;

[0007] The CPE test service system is used to execute the test of the received test script according to the received test AT command and return the test result to the host computer.

[0008] As a preferred embodiment of the present invention, the host computer test system includes:

[0009] A script writing module, wherein the script writing module is used to write test scripts;

[0010] A test program module, which is used to execute a written test script;

[0011] A command sending module, configured to send a test AT command according to a test script;

[0012] The result judgment module is used to receive information fed back by the CPE test service system and judge whether the test has the expected value, and judge whether it is successful based on the expected value.

[0013] As a preferred embodiment of the present invention, the CPE test service system includes a socket service module, a test connection module, an AT command execution module and a result return module:

[0014] Socket service module, which is used to serve as an AT command transparent channel, accept AT commands and send them to the AT command execution module;

[0015] Test connection module, the connection module is used to connect the host computer and the Socket service module;

[0016] AT command execution module, the AT command execution module is used to execute and output results according to AT instructions;

[0017] The result return module is used to output the result and feed the result back to the host computer.

[0018] As a preferred embodiment of the present invention, the Socket service module adopts a single channel function.

[0019] As a preferred embodiment of the present invention, in this system, the CPE test service system is installed on the CPE device.

[0020] As a preferred embodiment of the present invention, in this system, the LAN port of the CPE is connected to the network port of the host computer via a network cable.

[0021] As a preferred embodiment of the present invention, the host computer test system also includes a display module, which is used to display the test results. When the test is successful, the display module displays white words PASS on a green background, and when the test fails, the display module displays yellow words FAIL on a red background.

[0022] As a preferred embodiment of the present invention, the host computer test system further includes an AT command expansion module, and the AT command expansion module is used to expand AT commands not supported by the system.

[0023] A LAN port-based CPE device testing method, the method comprising the following contents:

[0024] Step S1: Before testing, use a network cable to connect the LAN port of the CPE under test and the network port of the host computer respectively;

[0025] Step S2: After the device under test is turned on, the socket test service will be started and wait for the host computer to connect. After the host computer is connected, it will wait to receive the test AT command. After receiving the AT command, it will execute the AT command and wait for the result to be returned. Then it will transmit the result back to the host computer and then wait for the next test command in a loop.

[0026] Step S3: When testing, first open the host computer test system and write the test script; after starting the test, the system will first try to connect to the Socket test service of the test device. After connecting, it will send the test AT command according to the test script, and then wait for the test result to be returned. It will then determine whether the test result has the expected value. If it has, it means the test is successful, otherwise the test fails; if the test is successful, it will continue to execute until all scripts are tested. If the test fails, it will stop executing and prompt failure.

[0027] As a preferred embodiment of the present invention, in this method, multiple (eg, 12) devices under test can be configured to be tested simultaneously.

[0028] Compared with the prior art, the present invention has the following beneficial effects:

[0029] The host computer test system of the present invention is connected to the Socket service of the CPE device through the LAN port. After the connection, the Socket service receives the AT command sent by the host computer, sends it to the AT command function, executes the AT command, and returns the result to the host computer after the execution. The Socket service serves as a transparent channel for executing the AT command and uses the AT command related functions to perform testing, thereby reducing the development of test code. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention.

[0031] Figure 1 A connection diagram of a test system according to an embodiment of the present invention;

[0032] Figure 2 A diagram of a test panel of a test system according to an embodiment of the present invention;

[0033] Figure 3 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0034] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0035] See also Figure 1-3 In order to achieve the above-mentioned purpose, the present invention describes the technical solution of the present invention in detail.

[0036] The present invention proposes a LAN port-based CPE device testing system, which includes a host computer testing system 10, a network cable 30, and a CPE testing service system connected to the host computer testing system 20 via the network cable 30:

[0037] A host computer test system 10, which is used to simultaneously send test scripts and AT test commands to multiple CPE devices to be tested;

[0038] The host computer test system of the present invention is connected to the Socket service of the CPE device through the LAN port. After the connection, the Socket service will receive the AT command sent by the host computer, send it to the AT command function, execute the AT command, and return the result to the host computer after execution. The Socket service serves as a transparent channel for executing AT commands and uses AT command-related functions to perform tests, reducing the development of test code. The developed Socket service is only a single channel function, which can also improve the reliability and stability of the program.

[0039] The CPE test service system 20 is used to execute the test of the received test script according to the received test AT command and return the test result to the host computer.

[0040] Furthermore, the host computer test system includes:

[0041] A script writing module, wherein the script writing module is used to write test scripts;

[0042] A test program module, which is used to execute a written test script;

[0043] A command sending module, configured to send a test AT command according to a test script;

[0044] The result judgment module is used to receive information fed back by the CPE test service system and judge whether the test has the expected value, and judge whether it is successful based on the expected value.

[0045] Furthermore, the CPE test service system includes a socket service module, a test connection module, an AT command execution module and a result return module:

[0046] Socket service module, which is used to serve as an AT command transparent channel, accept AT commands and send them to the AT command execution module;

[0047] Test connection module, the connection module is used to connect the host computer and the Socket service module;

[0048] AT command execution module, the AT command execution module is used to execute and output results according to AT instructions;

[0049] The result return module is used to output the result and feed the result back to the host computer.

[0050] Furthermore, the Socket service module adopts a single channel function.

[0051] Furthermore, in this system, the CPE test service system is installed on the CPE device.

[0052] Furthermore, in this system, the LAN port of the CPE is connected to the network port of the host computer via a network cable.

[0053] Among them, the host computer test system connects to the Socket service of the CPE device through the LAN port. After the connection, the Socket service will receive the AT commands sent by the host computer, send them to the AT command function, execute the AT commands, and return the results to the host computer after execution. The Socket service serves as a transparent channel for executing AT commands and uses AT command-related functions for testing, reducing the development of test code. The developed Socket service is only a single channel function, which can also improve the reliability and stability of the program.

[0054] Further, the host computer test system further comprises a display module, the display module is used for displaying test results, wherein the display module displays green background white characters PASS when the test is successful, and the display module displays red background yellow characters FAIL when the test fails, and obvious prompts can reduce visual fatigue of line workers and reduce manual misjudgment. Figure 2 The test panel diagram of the test system identifies 12 devices 2 to be tested and a test result status display area 1, and green background white characters Pass are displayed when the test is successful, and red background yellow characters Fail are displayed when the test fails, and obvious prompts can reduce visual fatigue of line workers and reduce manual misjudgment.

[0055] As a preferred embodiment of the application, the host computer test system further comprises an AT instruction extension module, and the AT instruction extension module is used for extending AT instructions not supported by the system.

[0056] The CPE test service system of the application can extend AT instructions not supported by the system to test related functions such as buttons and device lights.

[0057] A CPE device test method based on a LAN port, the method comprising the following contents:

[0058] Step S1: Before testing, use a network cable to connect the LAN port of the CPE to be tested and the network port of the host computer respectively.

[0059] Step S2: After the device to be tested is started, the Socket test service is started, and the host computer is connected; after the host computer is connected, the test AT command is received, after the AT command is received, the AT command is executed, and the result is returned, and the result is transmitted back to the host computer, and the next test command is received again.

[0060] Step S3: Before testing, the host computer test system is opened, and the test script is written; after starting testing, the system tries to connect the Socket test service of the test device, after connection, the test AT command is sent according to the test script, then the test result is waited for, and whether the test result has an expected value is judged, if yes, the test is successful, otherwise the test fails; if the test is successful, the execution continues to all script tests, if the test fails, the execution is stopped, and the failure is prompted.

[0061] As a preferred embodiment of the application, in the method, the device to be tested can be configured with multiple (such as 12) devices to be tested simultaneously.

[0062] As shown in the above, the application comprises Figure 1 The CPE device test system comprises a host computer test system and a CPE device to be tested, and the device to be tested can be configured with multiple (such as 12) devices to be tested simultaneously. Before testing, a network cable is used to connect the LAN port of the CPE to be tested to the network port of the host computer.

[0063] After the device under test is powered on, it will start the socket test service and wait for the host computer to connect. After the host computer is connected, it will wait to receive the test AT command. After receiving the AT command, it will execute the AT command and wait for the return result. It will then transmit the result back to the host computer and then wait for the next test command in the cycle.

[0064] When testing, first open the test program of the test system and write a test script; after starting the test, the system will first try to connect to the Socket test service of the test device. After connecting, it will send the test AT command according to the test script, and then wait for the test result to be returned. It will then determine whether the test result has the expected value. If it has, it means the test is successful, otherwise the test fails. If the test is successful, it will continue to execute until all scripts are tested. If the test fails, it will stop execution, prompt failure, and so on.

[0065] Figure 2 This is a test panel diagram of the test system, which identifies 12 devices under test and a test result status display area. A successful test is displayed with white text "Pass" on a green background, and a failed test is displayed with yellow text "Fail" on a red background. The obvious prompts can reduce visual fatigue of production line workers and reduce manual misjudgment.

[0066] The processor retrieves instructions from the memory one by one, analyzes the instructions, and then performs corresponding operations according to the instructions, generating a series of control commands, so that the various parts of the computer can automatically, continuously and coordinately operate as an organic whole, realizing program input, data input, calculation and output of results. The arithmetic operations or logical operations generated in this process are all completed by the operator; the memory includes a read-only memory (ROM), which is used to store computer programs, and a protection device is provided on the outside of the memory.

[0067] For example, a computer program may be divided into one or more modules, one or more of which are stored in a memory and executed by a processor to implement the present invention. One or more modules may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in a terminal device.

[0068] Those skilled in the art will understand that the description of the above-mentioned service device is merely an example and does not constitute a limitation on the terminal device. It may include more or fewer components than described above, or a combination of certain components, or different components, for example, it may include input and output devices, network access devices, buses, etc.

[0069] The processor can be a central processing unit (CPU), and can also be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The processor is the control center of the terminal device, and is connected with various parts of the terminal device through various interfaces and lines.

[0070] The memory can be configured to store computer programs and / or modules. The processor can realize various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory, and calling data stored in the memory. The memory can mainly include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required by a function (such as an information collection template display function, a product information publishing function, etc.), etc. The data storage area can store data created according to the use of the berth state display system (such as product information collection templates corresponding to different product categories, product information to be published by different product providers, etc.). In addition, the memory can include a high-speed random access memory, and can also include a nonvolatile memory, for example, an internal memory, a hard disk, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash memory device, or other volatile solid-state memory device.

[0071] If the modules / units integrated into the terminal device are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present invention can also implement all or part of the modules / units in the above-mentioned system embodiments by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium. When executed by a processor, the computer program can implement the functions of each of the above-mentioned system embodiments. The computer program includes computer program code, which can be in source code form, object code form, executable file, or some intermediate form. Computer-readable media can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, mobile hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media.

[0072] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0073] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A LAN port-based CPE device testing system, characterized in that: The system includes a host computer test system, a network cable, and a CPE test service system connected to the host computer test system via the network cable: A host computer test system, wherein the host computer test system is used to simultaneously send test scripts and AT test commands to multiple CPE devices under test; A CPE test service system, wherein the CPE test service system is used to execute the test of the received test script according to the received test AT command and return the test result to the host computer; The host computer test system includes: A script writing module, wherein the script writing module is used to write test scripts; A test program module, which is used to execute a written test script; A command sending module, configured to send a test AT command according to a test script; A result judgment module, which is used to receive information fed back by the CPE test service system and determine whether the test has the expected value, and determine whether it is successful based on the expected value; The CPE test service system includes a socket service module, a test connection module, an AT command execution module and a result return module: Socket service module, which is used to serve as an AT command transparent channel, accept AT commands and send them to the AT command execution module; Test connection module, the connection module is used to connect the host computer and the Socket service module; AT command execution module, the AT command execution module is used to execute and output results according to AT instructions; The result return module is used to output the result and feed the result back to the host computer.

2. A LAN port-based CPE device testing system according to claim 1, characterized in that: The Socket service module adopts a single channel function.

3. A LAN port-based CPE device testing system according to claim 2, characterized in that: In this system, the CPE test service system is installed on the CPE device being tested.

4. A LAN port-based CPE device testing system according to claim 3, characterized in that: In this system, the LAN port of the CPE is connected to the network port of the host computer through a network cable.

5. A LAN port-based CPE device testing system according to claim 4, characterized in that: The host computer test system further includes a display module, which is used to display the test results. When the test is successful, the display module displays white words "PASS" on a green background, and when the test fails, the display module displays yellow words "FAIL" on a red background.

6. A LAN port-based CPE device testing system according to claim 5, characterized in that: The host computer test system further comprises an AT instruction expansion module, and the AT instruction expansion module is used to expand AT instructions that are not supported by the system.

7. A CPE device testing method based on LAN port, characterized in that: The method is based on a LAN port-based CPE device testing system according to any one of claims 1 to 6, and includes the following contents: Step S1: Before testing, use a network cable to connect the LAN port of the CPE device to be tested and the network port of the host computer respectively; Step S2: After the CPE device under test is powered on, it will start the socket test service and wait for the host computer to connect. After the host computer is connected, it will wait to receive the test AT command. After receiving the AT command, it will execute the AT command and wait for the result to be returned. It will then transmit the result back to the host computer and then wait for the next test command in the cycle. Step S3: When testing, first open the host computer test system and write a test script. After starting the test, the system will first try to connect to the socket test service of the CPE device under test. After connecting, it will send the test AT command according to the test script, and then wait for the test result to be returned. It will then determine whether the test result has the expected value. If it has, it means the test is successful, otherwise the test fails. If the test is successful, it will continue to execute until all scripts are tested. If the test fails, it will stop execution and prompt failure.

8. A LAN port-based CPE device testing method according to claim 7, characterized in that: In this method, multiple CPE devices to be tested are configured to be tested simultaneously.

Citation Information

Patent Citations

  • Multifunctional test method and device for CPE (Customer Premise Equipment), computer equipment and storage medium

    CN113590401A

  • Communication module test method, system and device and storage medium

    CN114124750A