CN116684338A - CPE equipment testing method and system based on LAN port - Google Patents

CPE equipment testing method and system based on LAN port Download PDF

Info

Publication number
CN116684338A
CN116684338A CN202310672534.8A CN202310672534A CN116684338A CN 116684338 A CN116684338 A CN 116684338A CN 202310672534 A CN202310672534 A CN 202310672534A CN 116684338 A CN116684338 A CN 116684338A
Authority
CN
China
Prior art keywords
test
cpe
command
module
upper computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310672534.8A
Other languages
Chinese (zh)
Inventor
詹庆表
叶志敏
李浩松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Simware Telecommunication Technology Co ltd
Original Assignee
Guangzhou Simware Telecommunication Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Simware Telecommunication Technology Co ltd filed Critical Guangzhou Simware Telecommunication Technology Co ltd
Priority to CN202310672534.8A priority Critical patent/CN116684338A/en
Publication of CN116684338A publication Critical patent/CN116684338A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention relates to the technical field of equipment production line testing, and particularly discloses a CPE equipment testing method and system based on a LAN (local area network), 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 test system is used for simultaneously sending test scripts and AT test instructions to the CPE devices to be tested; CPE tests the content of a service system, etc. The invention provides a method and a system for testing CPE functions through a LAN port of the CPE, thereby removing USB equipment of the CPE to reduce the product cost. The test system can automatically test a plurality of devices, so that the test efficiency is improved; different test cases can be written by customizing scripts, and the test flow is customized, so that the deployment and the debugging of the test system are facilitated.

Description

CPE equipment testing method and system based on LAN port
Technical Field
The invention relates to the technical field of equipment production line testing, in particular to a CPE equipment testing method and system based on a LAN port.
Background
CPE (Customer Premise Equipment) is a new wireless terminal access device, which can receive wireless signals such as wireless router/wireless AP/wireless base station, and the CPE can obtain a mobile network like a mobile phone through a plug-in card, and directly serve as a wired network interface or convert the wired network interface into Wi-Fi signals, so as to provide device connection in home or office scenes. The 5G industrial CPE provides a wireless long-distance big data transmission function for users by using a public 3G/4G/5G network. The product adopts a high-performance industrial 32-bit communication processor and an industrial wireless module, takes an embedded real-time operating system as a software supporting platform, simultaneously provides 1 RS232 (or RS 485), 1 Ethernet LAN, 1 Ethernet WAN, 1 optical fiber interface and supports WiFi function, and can simultaneously connect serial port equipment, ethernet equipment and WiFi equipment to realize data transparent transmission and routing function.
Currently, CPE is a wireless access device that converts a cellular data network (CAT 4 4G network) into a Wifi hotspot. CPE products need to be tested for all functions before production and shipment. The general CPE equipment is provided with a Wifi interface, a LAN interface and a USB interface, and the USB interface is usually used for downloading and testing. To further reduce the product cost, the USB interface needs to be removed. In order to test CPE devices with USB ports removed, a new test system and test method needs to be developed.
Disclosure of Invention
The invention aims to provide a method and a system for testing CPE equipment based on a LAN port, and provides a method for testing CPE functions through the LAN port of the CPE, so that USB equipment of the CPE is removed, and the product cost is reduced. The test system can automatically test a plurality of devices, so that the test efficiency is improved; different test cases can be written by customizing scripts, and the test flow is customized, so that the deployment and the debugging of the test system are facilitated.
In order to achieve the above purpose, the present invention provides the following technical solutions: the system comprises an upper computer test system, a network cable and a CPE test service system connected with the upper computer test system through the network cable:
the upper computer test system is used for simultaneously sending test scripts and AT test instructions to the CPE devices to be tested;
and the CPE test service system is used for executing the test of the received test script according to the received test AT instruction and returning the test result to the upper computer.
As a preferred embodiment of the present invention, the upper computer test system includes:
the script writing module is used for writing a test script;
the test program module is used for executing the written test script;
the command sending module is used for sending a test AT command according to the test script;
the result judging module is used for receiving the information fed back by the CPE test service system, judging whether the test has an expected value or not, and judging whether the test is successful or not according to the expected value.
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:
the Socket service module is used as an AT command transparent channel, receives the AT command and sends the AT command to the AT command execution module;
the test connection module is used for connecting the upper computer with the Socket service module;
the AT command execution module is used for executing according to the AT command and outputting a result;
and the result return module is used for outputting a result and feeding back the result to the upper computer.
As a preferred embodiment of the present invention, the Socket service module uses a single channel function.
As a preferred embodiment of the present invention, the CPE test service system is installed on the CPE device in the present system.
In a preferred embodiment of the present invention, in the system, the LAN port of the CPE is connected to the network port of the host computer through a network cable.
As a preferred implementation manner of the invention, the upper computer test system further comprises a display module, wherein the display module is used for displaying a test result, the display module displays a green-bottom white word PASS when the test is successful, and displays a red-bottom yellow word FAIL when the test is failed.
As a preferred embodiment of the present invention, the host computer test system further includes an AT instruction expansion module, where the AT instruction expansion module is configured to expand AT instructions that are not supported by the present system.
A method for testing CPE device based on a LAN port, the method comprising:
step S1: before testing, connecting the LAN port of the tested CPE with the network port of the upper computer by using a network cable;
step S2: after the tested equipment is started, socket test service is started, and connection of an upper computer is waited; after the upper computer is connected, waiting for receiving a test AT command, executing the AT command after receiving the AT command, waiting for returning a result, transmitting the result back to the upper computer, and waiting for receiving the next test command in a recycling mode;
step S3: when in test, firstly, an upper computer test system is opened, and a test script is written; after starting the test, the system firstly tries to connect with Socket test service of the test equipment, after connecting, sends a test AT command according to the test script, waits for a test result to be returned, judges whether the test result has an expected value or not, if so, the test is successful, otherwise, the test is failed; and if the test is successful, continuing to execute until all the scripts are tested, and if the test is failed, stopping executing and prompting the failure.
As a preferred embodiment of the present invention, a plurality (e.g., 12) of devices under test may be configured to be tested simultaneously in the present method.
Compared with the prior art, the invention has the beneficial effects that:
the upper computer test system is connected with Socket service of CPE equipment through a LAN port, the Socket service after connection receives an AT command sent by an upper computer, sends the AT command to an AT command function, executes the AT command, returns a returned result to the upper computer after execution, and uses the Socket service as a transparent channel for executing the AT command to test by utilizing the related function of the AT command, thereby reducing development of test codes.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments of the present invention.
FIG. 1 is a schematic diagram of a connection of a test system according to an embodiment of the present invention;
FIG. 2 is a test panel diagram of a test system according to an embodiment of the present invention;
FIG. 3 is a flow chart of the method of the present invention.
Detailed Description
In order to make the technical problems, technical schemes and beneficial effects to be solved more clear, the 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 for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1-3, the technical scheme of the present invention is described in detail for achieving the above purpose.
The invention provides a CPE equipment testing system based on a LAN port, which comprises an upper computer testing system 10, a network cable 30 and a CPE testing service system connected with the upper computer testing system 20 through the network cable 30:
the upper computer testing system 10 is used for simultaneously sending testing scripts and AT testing instructions to a plurality of CPE devices to be tested;
the upper computer test system is connected with Socket service of CPE equipment through a LAN port, after connection, the Socket service receives an AT command sent by the upper computer, sends the AT command to an AT command function, executes the AT command, returns a returned result to the upper computer after execution, and uses the Socket service as a transparent channel for executing the AT command, and tests by utilizing the related functions of the AT command, thereby reducing development of test codes; the Socket service is developed only by a single channel function, and the reliability and stability of the program can be improved;
and the CPE test service system 20 is configured to execute the test of the received test script according to the received test AT instruction, and return a test result to the upper computer.
Further, the upper computer test system includes:
the script writing module is used for writing a test script;
the test program module is used for executing the written test script;
the command sending module is used for sending a test AT command according to the test script;
the result judging module is used for receiving the information fed back by the CPE test service system, judging whether the test has an expected value or not, and judging whether the test is successful or not according to the expected value.
Further, the CPE test service system includes a Socket service module, a test connection module, an AT command execution module, and a result return module:
the Socket service module is used as an AT command transparent channel, receives the AT command and sends the AT command to the AT command execution module;
the test connection module is used for connecting the upper computer with the Socket service module;
the AT command execution module is used for executing according to the AT command and outputting a result;
and the result return module is used for outputting a result and feeding back the result to the upper computer.
Further, the Socket service module adopts a single channel function.
Further, in the system, the CPE test service system is installed on the CPE device.
Further, in the system, the LAN port of the CPE is connected to the network port of the host computer through a network cable.
The upper computer test system is connected with Socket service of the CPE equipment through a LAN port, after connection, the Socket service receives an AT command sent by the upper computer, sends the AT command to an AT command function, executes the AT command, returns a returned result to the upper computer after execution, and uses the Socket service as a transparent channel for executing the AT command to test by utilizing the related function of the AT command, thereby reducing development of test codes; the Socket service is developed only by a single channel function, and the reliability and stability of the program can be improved.
Further, the upper computer test system further comprises a display module, wherein the display module is used for displaying a test result, the display module is used for displaying a green-bottom white word PASS when the test is successful, the display module is used for displaying a red-bottom yellow word FAIL when the test is failed, such as a test panel diagram of the test system of fig. 2, 12 tested devices 2 are identified, and a test result state display area 1, the test is successful in displaying the green-bottom white word PASS, the test is failed in displaying the red-bottom yellow word FAIL, obvious prompt can reduce visual fatigue of line workers, and manual erroneous judgment is reduced.
As a preferred embodiment of the present invention, the host computer test system further includes an AT instruction expansion module, where the AT instruction expansion module is configured to expand AT instructions that are not supported by the present system;
the CPE test service system can expand AT instructions which are not supported by the system to test related functions, such as keys, equipment lamps and the like.
A method for testing CPE device based on a LAN port, the method comprising:
step S1: before testing, connecting the LAN port of the tested CPE with the network port of the upper computer by using a network cable;
step S2: after the tested equipment is started, socket test service is started, and connection of an upper computer is waited; after the upper computer is connected, waiting for receiving a test AT command, executing the AT command after receiving the AT command, waiting for returning a result, transmitting the result back to the upper computer, and waiting for receiving the next test command in a recycling mode;
step S3: when in test, firstly, an upper computer test system is opened, and a test script is written; after starting the test, the system firstly tries to connect with Socket test service of the test equipment, after connecting, sends a test AT command according to the test script, waits for a test result to be returned, judges whether the test result has an expected value or not, if so, the test is successful, otherwise, the test is failed; and if the test is successful, continuing to execute until all the scripts are tested, and if the test is failed, stopping executing and prompting the failure.
As a preferred embodiment of the present invention, a plurality (e.g., 12) of devices under test may be configured to be tested simultaneously in the present method.
In summary, as shown in fig. 1, the CPE device testing system of the present invention includes a host computer testing system and CPE devices to be tested, where multiple devices to be tested (e.g. 12 devices) can be configured to perform testing simultaneously. Before testing, the LAN port of the tested CPE and the network port of the upper computer are connected by network cables respectively.
After the tested equipment is started, socket test service is started, and connection of an upper computer is waited; and after the upper computer is connected, waiting for receiving the test AT command, executing the AT command after receiving the AT command, waiting for returning a result, transmitting the result back to the upper computer, and recycling to wait for receiving the next test command.
When in test, a test program of a test system is firstly opened, and a test script is written; after starting the test, the system firstly tries to connect with Socket test service of the test equipment, after connecting, sends a test AT command according to the test script, waits for a test result to be returned, judges whether the test result has an expected value or not, if so, the test is successful, otherwise, the test is failed; and if the test is successful, continuing to execute until all the scripts are tested, if the test is failed, stopping executing, prompting failure, and the like.
Fig. 2 is a test panel diagram of the test system, which identifies 12 tested devices, and a test result status display area, wherein the test successfully displays green-bottom white characters Pass, the test failure displays red-bottom yellow characters Fail, and obvious prompts can reduce visual fatigue of workers in the production line and reduce manual erroneous judgment.
The processor takes out instructions from the memory one by one, analyzes the instructions, then completes corresponding operation according to the instruction requirement, generates a series of control commands, enables all parts of the computer to automatically, continuously and cooperatively act to form an organic whole, realizes the input of programs, the input of data, the operation and the output of results, and the arithmetic operation or the logic operation generated in the process is completed by the arithmetic unit; the Memory comprises a Read-Only Memory (ROM) for storing a computer program, and a protection device is arranged outside the Memory.
For example, a computer program may be split into one or more modules, one or more modules stored in memory and executed by a processor to perform the present invention. One or more of the modules may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program in the terminal device.
It will be appreciated by those skilled in the art that the foregoing description of the service device is merely an example and is not meant to be limiting, and may include more or fewer components than the foregoing description, or may combine certain components, or different components, such as may include input-output devices, network access devices, buses, etc.
The processor may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is the control center of the terminal device described above, and which connects the various parts of the entire user terminal using various interfaces and lines.
The memory may be used for storing computer programs and/or modules, and the processor may implement various functions of the terminal device by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as an information acquisition template display function, a product information release function, etc.), and the like; the storage data area may store data created according to the use of the berth status display system (e.g., product information acquisition templates corresponding to different product types, product information required to be released by different product providers, etc.), and so on. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as memory, a hard disk, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), at least one disk storage device, a Flash memory device, or other volatile solid-state storage device.
The modules/units integrated in the terminal device may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on this understanding, the present invention may implement all or part of the modules/units in the system of the above-described embodiments, or may be implemented by instructing the relevant hardware by a computer program, which may be stored in a computer-readable storage medium, and which, when executed by a processor, may implement the functions of the respective system embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The CPE equipment testing system based on the LAN port is characterized by comprising 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 test system is used for simultaneously sending test scripts and AT test instructions to the CPE devices to be tested;
and the CPE test service system is used for executing the test of the received test script according to the received test AT instruction and returning the test result to the upper computer.
2. The LAN port-based CPE device test system of claim 1, wherein said host computer test system comprises:
the script writing module is used for writing a test script;
the test program module is used for executing the written test script;
the command sending module is used for sending a test AT command according to the test script;
the result judging module is used for receiving the information fed back by the CPE test service system, judging whether the test has an expected value or not, and judging whether the test is successful or not according to the expected value.
3. The CPE device test system of claim 2, wherein the CPE test service system includes a Socket service module, a test connection module, an AT command execution module, and a result return module:
the Socket service module is used as an AT command transparent channel, receives the AT command and sends the AT command to the AT command execution module;
the test connection module is used for connecting the upper computer with the Socket service module;
the AT command execution module is used for executing according to the AT command and outputting a result;
and the result return module is used for outputting a result and feeding back the result to the upper computer.
4. A CPE device test system based on a LAN interface according to claim 3, wherein the Socket service module uses a single channel function.
5. A LAN port-based CPE device test system of claim 4, wherein the CPE test service system is installed on the CPE device in the system.
6. The system according to claim 5, wherein the LAN port of the CPE is connected to the network port of the host computer through a network cable.
7. The LAN port-based CPE device test system of claim 6, further comprising a display module configured to display a test result, wherein the display module displays a green-to-white word PASS when the test is successful and displays a red-to-yellow word FAIL when the test is unsuccessful.
8. The LAN port-based CPE device test system of claim 7, further comprising an AT instruction extension module configured to extend AT instructions not supported by the system.
9. A method for testing CPE device based on a LAN interface, the method being based on any one of claims 1-7, the method comprising the following:
step S1: before testing, connecting the LAN port of the tested CPE with the network port of the upper computer by using a network cable;
step S2: after the tested equipment is started, socket test service is started, and connection of an upper computer is waited; after the upper computer is connected, waiting for receiving a test AT command, executing the AT command after receiving the AT command, waiting for returning a result, transmitting the result back to the upper computer, and waiting for receiving the next test command in a recycling mode;
step S3: when in test, firstly, an upper computer test system is opened, and a test script is written; after starting the test, the system firstly tries to connect with Socket test service of the test equipment, after connecting, sends a test AT command according to the test script, waits for a test result to be returned, judges whether the test result has an expected value or not, if so, the test is successful, otherwise, the test is failed; and if the test is successful, continuing to execute until all the scripts are tested, and if the test is failed, stopping executing and prompting the failure.
10. A method for testing CPE equipment based on a LAN interface according to claim 9, characterized in that in the method, a plurality of devices under test (e.g. 12) can be configured to test simultaneously.
CN202310672534.8A 2023-06-08 2023-06-08 CPE equipment testing method and system based on LAN port Pending CN116684338A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310672534.8A CN116684338A (en) 2023-06-08 2023-06-08 CPE equipment testing method and system based on LAN port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310672534.8A CN116684338A (en) 2023-06-08 2023-06-08 CPE equipment testing method and system based on LAN port

Publications (1)

Publication Number Publication Date
CN116684338A true CN116684338A (en) 2023-09-01

Family

ID=87783307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310672534.8A Pending CN116684338A (en) 2023-06-08 2023-06-08 CPE equipment testing method and system based on LAN port

Country Status (1)

Country Link
CN (1) CN116684338A (en)

Similar Documents

Publication Publication Date Title
CN106598632B (en) Firmware upgrading method and device for optical module
CN108874677B (en) Android terminal and test method and system thereof
CN103281689B (en) Method for network switching and version upgrading and terminal equipment
US8799546B2 (en) Method and apparatus for monitoring single board running state
CN111475390A (en) Log collection system deployment method, device, equipment and storage medium
CN102393848A (en) Method and system for acquiring identification information of data terminal equipment
CN113076144A (en) Power amplifier adaptation method, terminal device, storage medium and computer program product
US20230061095A1 (en) Wafer repair method, apparatus and device, and storage medium
CN116684338A (en) CPE equipment testing method and system based on LAN port
CN110764746B (en) Script generation method and device and computer readable storage medium
CN115495195A (en) Data processing method and device and related equipment
CN106354966B (en) The method of the conversion of chip id E project file and rapid configuration artificial debugging environment
CN110825795B (en) Method, apparatus, device and computer readable storage medium for accessing database
CN112631678B (en) Dynamic loading method based on zynq
CN101222740A (en) Method, device and system for controlling and configuring equipment with multi-version under testing
CN114745313A (en) Terminal remote testing method and device, electronic equipment and readable medium
CN102033763B (en) Method for realizing network communication by utilizing universal network driver interface (UNDI)
CN103444214A (en) Method, apparatus and computer program product for security configuration coordination during a cell update procedure
CN114372002B (en) Automatic test method, test box and test system
CN115278649B (en) Telephone number acquisition method, equipment, system and medium based on machine learning
CN110795154B (en) Cross-platform device driving method, device and computer readable storage medium
CN111221686B (en) Method for enabling linux equipment to support serial port command line
CN113014686A (en) Method and system for automatically addressing multiple devices and electronic device
CN116896502A (en) Data configuration method, device, terminal equipment and storage medium
CN117376287A (en) Chip burning equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination