CN110784879B - Network mode switching test method, system, equipment and medium of communication module - Google Patents

Network mode switching test method, system, equipment and medium of communication module Download PDF

Info

Publication number
CN110784879B
CN110784879B CN201911063275.9A CN201911063275A CN110784879B CN 110784879 B CN110784879 B CN 110784879B CN 201911063275 A CN201911063275 A CN 201911063275A CN 110784879 B CN110784879 B CN 110784879B
Authority
CN
China
Prior art keywords
communication module
network mode
network
switching
module
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.)
Active
Application number
CN201911063275.9A
Other languages
Chinese (zh)
Other versions
CN110784879A (en
Inventor
赵伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Quectel Wireless Solutions Co Ltd
Original Assignee
Quectel Wireless Solutions 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 Quectel Wireless Solutions Co Ltd filed Critical Quectel Wireless Solutions Co Ltd
Priority to CN201911063275.9A priority Critical patent/CN110784879B/en
Publication of CN110784879A publication Critical patent/CN110784879A/en
Application granted granted Critical
Publication of CN110784879B publication Critical patent/CN110784879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface

Abstract

The invention discloses a network mode switching test method, a system, equipment and a medium of a communication module, wherein the method comprises the following steps: transmitting a switching instruction for switching from a current network mode to a new network mode to the communication module, and configuring the new network mode in the communication module; judging whether the network attachment of the communication module is successful, if so, acquiring the IP address transmitted by the communication module, detecting whether the IP address is changed, if so, detecting whether the current network mode of the communication module is the new network mode, if so, determining that the network mode is successfully switched, and if not, determining that the network mode is failed to be switched. The invention realizes the automatic test of the communication module in the process of switching the multiple network modes.

Description

Network mode switching test method, system, equipment and medium of communication module
Technical Field
The present invention relates to the field of wireless communication module testing technologies, and in particular, to a method, a system, an apparatus, and a medium for testing network mode switching of a communication module.
Background
A separate hardware circuit board with specific functions and combined with peripheral hardware in a connector or solder manner can perform different functions, called modules. With the development of the wireless communication industry, users develop mobile internet services through mobile terminal devices, so that the mobile terminal devices generally need to be equipped with a communication module to support wireless communication and network data interaction.
With the continuous update of 2G (Second Generation Communications System, second generation mobile communication technology), 3G (Third Generation Communications System, third generation mobile communication technology), 4G (Fourth Generation Communications System, fourth generation mobile communication technology), and 5G (Fifth Generation Communications System, fifth generation mobile communication technology), many enterprises using networks need to change to the latest technology. For example, with the off-line of 2G, many enterprises using 2G networks need to update to trusted technologies, and thus need to face high risk and investment of overall replacement equipment. In this context, wireless communication modules that can support multiple network modes are presented for smooth transitions in technology iterative updates, e.g., communication modules that can support both GSM (Global System for Mobile Communications ) and NB-IoT (Narrow Band Internet of Things, narrowband internet of things) network modes, etc. When enterprises encounter continuous innovation of communication technology, the communication module can be directly utilized to directly switch network modes without replacing communication equipment.
However, in order to ensure the reliability of the switching of the multiple network modes, a long-term repeated pressure test is required to be performed on the communication module, and a scheme for performing an automatic test in the process of performing the switching of the multiple network modes is lacking.
Disclosure of Invention
The invention aims to overcome the defect that the prior art lacks automatic detection of a communication module in the process of performing multi-network mode switching, and provides a network mode switching test method, system, equipment and medium of the communication module.
The invention solves the technical problems by the following technical scheme:
the invention provides a network mode switching test method of a communication module, wherein the communication module supports at least two network modes, and the method comprises the following steps:
transmitting a switching instruction for switching from a current network mode to a new network mode to the communication module, and configuring the new network mode in the communication module;
judging whether the network attachment of the communication module is successful, if so, acquiring the IP address transmitted by the communication module, detecting whether the IP address is changed, if so, detecting whether the current network mode of the communication module is the new network mode, if so, determining that the network mode is successfully switched, and if not, determining that the network mode is failed to be switched.
Preferably, after the step of configuring the new network mode in the communication module, the method further includes:
and verifying whether the network configuration of the communication module is correct, and if so, executing the step of judging whether the network attachment of the communication module is successful.
Preferably, the method further comprises:
after the network mode switching success is determined, selecting a test case to execute data service operation under a specific network protocol on the communication module; wherein the specific network protocol is TCP, UDP, coap, LWM2M, MQTT, oneNET, HTTP or FTP.
Preferably, before the step of verifying whether the network configuration of the communication module is correct, the method further includes:
the communication module is subjected to preset processing; the preset processing comprises at least one of software restarting, hardware restarting, powering on and off and switching radio frequency.
Preferably, the method further comprises:
if the network configuration of the communication module is verified to be incorrect, generating a new switching instruction, and returning to the step of sending the switching instruction to the communication module;
if the network attachment of the communication module is judged to be unsuccessful, generating a new switching instruction, and returning to the step of sending the switching instruction to the communication module;
if the IP address is detected not to change, generating a new switching instruction, and returning to the step of sending the switching instruction to the communication module;
after the success or failure of the network mode switching is determined, a new switching instruction is generated, and the step of sending the switching instruction to the communication module is returned.
Preferably, the method further comprises:
stopping the network mode switching test of the communication module when the preset condition is met, counting test parameters, and calculating a corresponding test result according to the test parameters;
the test parameters comprise total network mode switching times, successful network mode switching times, correct network configuration times and time required by successful network mode switching;
the test result comprises a network switching configuration success rate, a network mode switching success rate and a network mode switching average time;
the preset conditions comprise preset switching times and/or preset switching time.
The invention also provides a network mode switching test system of the communication module, which comprises:
the instruction sending module is used for sending a switching instruction for switching from a current network mode to a new network mode to the communication module and configuring the new network mode in the communication module;
the network attachment judging module is used for judging whether the network attachment of the communication module is successful, and if so, the IP address detecting module is called;
the IP address detection module is used for acquiring the IP address transmitted by the communication module, detecting whether the IP address changes, and calling the network mode detection module if the IP address changes;
the network mode detection module is used for detecting whether the network mode in which the communication module is currently located is the new network mode, if yes, the network mode switching is determined to be successful, and if not, the network mode switching is determined to be failed.
Preferably, the system further comprises:
and the verification module is used for verifying whether the network configuration of the communication module is correct, and if so, the network attachment judgment module is called.
Preferably, the system further comprises:
the test module is used for selecting a test case to execute data service operation under a specific network protocol on the communication module after the network mode switching success is determined; wherein the specific network protocol is TCP, UDP, coap, LWM2M, MQTT, oneNET, HTTP or FTP.
Preferably, the system further comprises:
the preprocessing module is used for carrying out preset processing on the communication module; the preset processing comprises at least one of software restarting, hardware restarting, powering on and off and switching radio frequency.
Preferably, the verification module is further configured to generate a new switching instruction and call the instruction sending module to send the new switching instruction when verifying that the network configuration of the communication module is incorrect;
the network attachment judging module is also used for generating a new switching instruction and calling the instruction sending module to send the new switching instruction when judging that the network attachment of the communication module is unsuccessful;
the IP address detection module is also used for generating a new switching instruction and calling the instruction sending module to send the new switching instruction when detecting that the IP address is unchanged;
the network mode detection module is also used for generating a new switching instruction and calling the instruction sending module to send the new switching instruction after determining that the network mode is successfully switched or failed.
Preferably, the system further comprises:
the statistics module is used for stopping the network mode switching test of the communication module when the preset condition is met, counting the test parameters and calculating the corresponding test result according to the test parameters;
the test parameters comprise total network mode switching times, successful network mode switching times, correct network configuration times and time required by successful network mode switching;
the test result comprises a network switching configuration success rate, a network mode switching success rate and a network mode switching average time;
the preset conditions comprise preset switching times and/or preset switching time.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the network mode switching test method of the communication module when executing the computer program.
The invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the network mode switching test method of the communication module is realized.
The invention has the positive progress effects that: according to the invention, the switching instruction for switching the current network mode to the new network mode is sent to the communication module, the new network mode is configured in the communication module, the network attachment of the communication module is judged, the IP address transmitted by the communication module is acquired, whether the IP address changes is detected, whether the current network mode of the communication module is the new network module is detected, the automatic test of the communication module in the process of switching the multiple network modes is realized, and the problems of manpower, time, resource waste and the like caused by resources such as manpower, time and the like occupied by the traditional test are solved.
Drawings
Fig. 1 is a flowchart of a network mode switching test method of a communication module according to embodiment 1 of the present invention.
Fig. 2 is a flowchart of a network mode switching test method of the communication module according to embodiment 2 of the present invention.
Fig. 3 is a flowchart of a network mode switching test method of the communication module according to embodiment 3 of the present invention.
Fig. 4 is a schematic diagram of a network mode switching test system of a communication module according to embodiment 4 of the present invention.
Fig. 5 is a schematic diagram of a network mode switching test system of a communication module according to embodiment 5 of the present invention.
Fig. 6 is a schematic diagram of a network mode switching test system of a communication module according to embodiment 6 of the present invention.
Fig. 7 is a schematic hardware structure of an electronic device according to embodiment 7 of the present invention.
Detailed Description
The invention is further illustrated by means of the following examples, which are not intended to limit the scope of the invention.
Example 1
The embodiment provides a network mode switching test method of a communication module, as shown in fig. 1, comprising the following steps:
step 101, sending a switching instruction for switching from a current network mode to a new network mode to a communication module, and configuring the new network mode in the communication module;
the network mode switching test method of the communication module in the embodiment of the invention can be realized through electronic equipment, and in particular, the electronic equipment can be a server or a communication controller and the like, and the electronic equipment needs to be provided with an interface for establishing data transmission with the communication module.
With continuous technical iteration of operators in three communication industries of domestic mobile, unicom and telecom, a wireless communication module capable of supporting multiple network modes is provided. The present wireless communication module integrates an application processor and various wireless communication units, and can support various network modes such as 2G (Second Generation Communications System, second generation mobile communication technology), 3G (Third Generation Communications System, third generation mobile communication technology), 4G (Fourth Generation Communications System, fourth generation mobile communication technology), 5G (Fifth Generation Communications System, fifth generation mobile communication technology), LTE (Long Term Evolution, common mobile communication technology through long term evolution), and the like.
The communication module in the invention can support two network modes and can also support a plurality of network modes. For example, a dual stack card in the internet of things mode that can support NB-IoT (Narrow Band Internet of Things ) and GSM (Global System for Mobile Communications, global system for mobile communications) network protocols in 2G networks, or a GSM multimode card in the internet of things mode that can support NB-IoT, LTE-M (LTE-Machine-to-Machine, LTE evolution-based internet of things) and 2G networks simultaneously.
It should be noted that, although the above examples describe network modes that the communication module can support in the present invention, those skilled in the art can understand that the present disclosure is not limited thereto, and those skilled in the art can select a network mode according to the actual application scenario, that is, any mode of SIM card or a communication module that can support multiple modes can implement this scheme.
Specifically, the controller may establish communication connection with the communication module through a serial port, where the serial port may be an R232 serial port or a USB serial port. Before the controller sends an instruction for switching network modes to the communication module by using the interface, the network mode where the communication module is currently located needs to be queried, for example, the network mode may be NB-IoT network mode, and the controller configures the network mode to be switched inside the module while sending the switching instruction to the communication module, for example, the network mode may be GSM network mode.
Step 102, judging whether the network attachment of the communication module is successful, if so, executing step 103;
specifically, an instruction for network attachment verification, for example, an at+cereg verification instruction, or an at+creg verification instruction, may be sent to the communication module by using a 3GPP protocol (Generation Partnership Project, third generation partnership project) specification compilation, and the communication module receives the return value of the instruction to determine whether the network attachment of the communication module is successful, and if so, continues to the next operation.
Step 103, acquiring the IP address transmitted by the communication module, detecting whether the IP address changes, and executing step 104 if the IP address changes;
step 104, detecting whether the network mode in which the communication module is currently located is a new network mode, if so, determining that the network mode is successfully switched, and if not, determining that the network mode is failed to switch.
Specifically, if the network mode in which the communication module is currently located is an NB-IoT network mode, it needs to be switched to a GSM network mode. By determining whether the communication module has completed network attachment, i.e. has successfully accessed the network, based on receiving a return value for the communication module regarding network attachment. If the network access is successful, the communication module acquires the allocated IP address in the network state after the network access, and compares the acquired IP address with the last acquired IP address. If the two IP addresses are the same, the communication module is not switched between network modes. If the change occurs, the communication module is indicated to have the update of the network mode. Further, an instruction is sent to the communication module to check the current network mode, and a result code of the communication module about the corresponding network mode under the current IP address is received. And judging the network mode of the communication module according to the numerical value of the result code, and verifying whether the communication module is the network mode which is expected to be switched, namely the GSM network mode.
In this embodiment, by the network mode switching test method of the communication module, automatic detection of the switching network mode of the communication module is realized. The method solves the existing problems of manpower, time, resource waste and the like caused by resources such as manpower, time and the like occupied by the traditional test.
Example 2
The network mode switching test method of the communication module of the present embodiment is further expanded on the basis of embodiment 1, as shown in fig. 2, and after step 101, the network mode switching test method of the communication module of the present embodiment further includes the following steps:
step 1011, carrying out preset processing on the communication module; the preset processing comprises at least one of software restarting, hardware restarting, powering on and off and switching radio frequency;
in the preset processing of step 1011 on the communication module, the application scenario of the network switching mode is different, resulting in different preset processing. For example, some vendors need smooth handoff and do not need to set the settings of the communication module before network mode handoff. Some industries can perform power-down processing and then perform network mode switching of the communication module, such as a water meter, and the power-down operation of the communication module is required when meter reading data is not reported.
In one possible implementation manner, a switching instruction for switching from the current network mode to the new network mode is sent to the communication module, and after the new network mode is configured in the communication module, preset processing of other software restarting, hardware restarting, switching radio frequency and the like is performed.
Step 1012, verifying whether the network configuration of the communication module is correct, and if so, executing the step of judging whether the network attachment of the communication module is successful.
And comparing the configuration parameters returned after the network configuration mode is verified according to the received communication module with the original configuration parameters corresponding to the preset stored network configuration, and if the configuration parameters are identical to the original configuration parameters, judging that the network attachment of the communication module is successful.
In the implementation process of this embodiment, the network mode switching test method of the communication module further includes step 105; step 105, configured to select a test case to execute a data service operation under a specific network protocol on the communication module after determining that the network mode is successfully switched; among these specific network protocols are TCP (Transmission Control Protocol ), UDP (User Datagram Protocol, user datagram protocol), coap (Constrained Application Protocol, restricted application protocol), LWM2M (Lightweight Machine-To-Machine, lightweight internet of things protocol), MQTT (Message Queuing Telemetry Transport, message queue telemetry transport protocol), oneNET, HTTP (Hyper Text Transfer Protocol, hypertext transport protocol), FTP (File Transfer Protocol ).
Specifically, different communication modules are applied to different scenes, and derived test cases are also different. Different preset treatments, such as hardware restarting, software restarting, and powering up after power failure, are needed between different network mode switching operations. For example, network mode switching from GSM to NB-IoT corresponds to test case 1, and network mode switching from GSM to EMTC corresponds to test case 2. A tester can pre-write a plurality of test scripts through a script language with higher development efficiency, such as PERL, python, VBScript or TCL, and the test scripts are mainly used for carrying out corresponding tests on the communication module after different network modes are switched.
In one possible implementation manner, after the network mode is switched, the test case is selected to execute the data service under the specific network protocol on the communication module, and after the network mode is switched, the next mode can be directly switched without any action, or the data service can be switched after the data service is switched.
Example 3
The network mode switching test method of the communication module of this embodiment is further expanded on the basis of embodiment 2, as shown in fig. 3, step 1012, step 102, step 103, step 104 further include:
step 1012, if the network configuration of the communication module is verified to be incorrect, generating a new switching instruction, and returning to the step of sending the switching instruction to the communication module;
102, if the network attachment of the communication module is not successful, generating a new switching instruction, and returning to the step of sending the switching instruction to the communication module;
step 103, if the IP address is detected not to change, generating a new switching instruction, and returning to the step of sending the switching instruction to the communication module;
step 104, after the success or failure of the network mode switching is determined, a new switching instruction is generated, and the step of sending the switching instruction to the communication module is returned.
In this embodiment, through the detection and judgment of each step, if a negative proposition exists in any one step of detection result, a new switching instruction of the network mode is generated. The automatic detection of the switching operation of all network modes successfully configured in the communication module, which can be 2G, 3G, 4G, 5G, NB-IoT and eMTC, is sequentially completed.
In a specific implementation process of this embodiment, the network mode switching test method of the communication module further includes the following steps:
stopping the network mode switching test of the communication module when the preset condition is met, counting the test parameters, and calculating a corresponding test result according to the test parameters; the test parameters comprise total network mode switching times, successful network mode switching times, correct network configuration times and time required by successful network mode switching; the test result comprises a network switching configuration success rate, a network mode switching success rate and a network mode switching average time; the preset conditions comprise preset switching times and/or preset switching time.
Specifically, the configuration success rate is the success rate of writing parameters, and is mainly used for verifying the accuracy of software instructions in the communication module; the switching success rate is the success rate of mode switching, and is mainly used for verifying the stability of the communication module after the communication module performs various network mode switching functions.
In one possible implementation manner, the test results of the intermediate action success rate and the data service success rate may be obtained according to the obtained test parameters, such as the total number of network mode switching, the number of successful network mode switching, the correct number of network configuration, and the time required for successful network mode switching.
And each time the communication module is cycled for network mode switching, data statistics is carried out. The data statistics is used for calculating the success rate of each parameter, calculating a corresponding average value according to the success rate corresponding to each parameter, finally comparing all network modes configured in the communication module, generating test parameters after all switching is executed, calculating a corresponding test result according to the test parameters, and analyzing and comparing the test result with an expected result.
Example 4
The embodiment provides a network mode switching test system of a communication module, as shown in fig. 3, including: an instruction sending module 210, a network attachment judging module 220, an IP address detecting module 221, and a network mode detecting module 222.
The instruction sending module 210 is configured to send a switching instruction for switching from the current network mode to a new network mode to the communication module, and configure the new network mode in the communication module;
the network attachment judging module 220 is configured to judge whether the network attachment of the communication module is successful, and if so, call the IP address detecting module 221;
the IP address detection module 221 is configured to obtain an IP address transmitted by the communication module, detect whether the IP address changes, and if so, invoke the network mode detection module 222;
the network mode detection module 222 is configured to detect whether the network mode in which the communication module is currently located is a new network mode, if yes, determine that the current network mode is successfully switched, and if not, determine that the current network mode is switchedThe handover fails.
Specifically, when a communication module or a SIM card capable of supporting multiple network modes is selected to perform a network mode switching test, the instruction sending module 210 in the test system is used to send a network switching mode instruction, the network attachment determining module 220 is used to determine that if the network attachment of the communication module is successful, the IP address detecting module 221 is called, and the IP address detecting module 221 is used to obtain an IP address transmitted by the communication module and detect whether the IP address changes. If the network mode is changed, the network mode detection module 222 is invoked to detect the current network mode of the communication module, the network mode detection module 222 determines that the current network mode is the preset network mode to be switched, the network mode switching is determined to be successful, and otherwise, the network mode switching is determined to be failed.
In this embodiment, the above-mentioned test system solves the problems of low test efficiency, more test staff, high test cost and the like caused by the semiautomatic test system based on manual operation or more staff intervention in the prior art.
Example 5
The network mode switching test system of the communication module of this embodiment is further expanded on the basis of embodiment 4, as shown in fig. 4, where the network mode switching test system of the communication module of this embodiment further includes: a preprocessing module 211, a verification module 212;
the preprocessing module 211 is configured to perform a preset process on the communication module; the preset processing comprises at least one of software restarting, hardware restarting, powering on and off and switching radio frequency.
Specifically, if the communication module needs to perform switching between the NB-IoT and GSM network modes, the preset processing module 211 performs a preset processing operation on the communication module before performing the switching between the network modes, where the preset processing operation is a software restart, and the instruction for restarting the software may be an at+qrst instruction, and the switching between the network modes of different communication modules corresponds to different instructions for restarting the software.
The verification module 212 is configured to verify whether the network configuration of the communication module is correct, and if so, call the network attachment determination module 220.
Specifically, the verification module 212 sends a verification instruction to the network configuration of the communication module through the script, where the verification instruction is used to verify whether the network configuration of the communication module is correct, and if the network configuration is correct, the network attachment judgment module 220 is invoked to execute a step of judging whether the network attachment of the communication module is successful.
In the specific implementation process of this embodiment, the network mode switching test system of the communication module further includes a test module 230, where the test module 230 is configured to select a test case to execute a data service operation under a specific network protocol on the communication module after determining that the network mode switching is successful; wherein the specific network protocol is TCP, UDP, coap, LWM2M, MQTT, oneNET, HTTP or FTP.
Specifically, the test module 230 tests the communication module based on the test case, and it can be understood that other services that can be implemented by the network mode configured by the communication module can be selected according to actual requirements, and after the test module 230 completes testing the data service, the next cycle is entered to perform a new switching test of the network mode.
Example 6
The network mode switching test system of the communication module of this embodiment is further expanded on the basis of embodiment 5, and the network mode switching test system of this embodiment further includes:
the verification module 212 is further configured to generate a new handover instruction and invoke the instruction sending module 210 to send the new handover instruction when it is verified that the network configuration of the communication module is incorrect;
specifically, if the verification module 212 verifies that the network configuration of the communication module is incorrect, no subsequent action is performed, a new switching instruction is directly generated, and the switching instruction may be to directly jump to the next network mode. For example, the network requiring authentication is configured as a GSM network mode, and if the configuration fails to be checked, a handover to the next NB-IoT mode is entered.
The network attachment determining module 220 is further configured to generate a new switching instruction and call the instruction sending module 210 to send the new switching instruction when it is determined that the network attachment of the communication module is unsuccessful;
specifically, if the network attachment determination module 220 determines that the network attachment of the communication module is unsuccessful, it automatically enters the switching of the next network mode, generates a switching instruction corresponding to the network mode, and invokes the instruction sending module 210 to send the instruction.
The IP address detection module 221 is further configured to generate a new switching instruction and invoke the instruction sending module 210 to send the new switching instruction when it is detected that the IP address is unchanged;
specifically, the IP address detection module 221 obtains the IP address module and compares the IP address module with the last recorded IP address, if the IP addresses are different, it indicates that there is a possible switching of the network mode, if the IP addresses are the same, it indicates that there is no switching of the network mode, and generates a new switching instruction and invokes the instruction sending module 210 to send the new switching instruction.
The network mode detection module 222 is further configured to generate a new switching instruction and invoke the instruction sending module 210 to send the new switching instruction after determining that the current network mode switching is successful or failed.
Specifically, after each successful or failed network mode switching, the network mode detection module 222 generates a switching instruction of the next network mode, and the sending module 210 calls the instruction sending module 210 to send a new switching instruction according to the switching instruction.
In this embodiment, by automatically detecting the network mode configuration, the network attachment and the IP address of the communication module, the whole test process is integrated in the network mode switching test system of one communication module, so that tedious manual operation is avoided, time cost and labor cost of the network mode switching test process of the communication module are greatly saved, and efficiency of the network mode switching test of the communication module is improved.
The network mode switching test system of the communication module of the embodiment further includes:
the statistics module 240 is configured to stop the network mode switching test of the communication module when a preset condition is satisfied, count test parameters, and calculate a corresponding test result according to the test parameters; the test parameters comprise total network mode switching times, successful network mode switching times, correct network configuration times and time required by successful network mode switching; the test result comprises a network switching configuration success rate, a network mode switching success rate and a network mode switching average time; the preset conditions comprise preset switching times and/or preset switching time.
Specifically, according to the network configuration result of the communication module, the number of network mode switching is determined, the number of switching is used as a preset switching number, and the preset switching time is set according to the time required by each network mode switching, for example, 20s, 40s or 60s can be set, which represents that the switching time of the network mode is 20s, 40s or 60s, and meanwhile, the tester can also customize the preset switching number and/or the preset switching time.
It can be understood that, according to the preset switching times, the network mode switching test system of the communication module is utilized to circularly perform the switching test of the network mode, after a certain network mode is successfully switched, the statistical module 240 is utilized to perform data statistics, test parameters are analyzed, and corresponding test results are calculated according to the test parameters; the test parameters comprise total network mode switching times, successful network mode switching times, correct network configuration times, time required by successful network mode switching and the like, and the test results of the network switching configuration success rate, the network mode switching success rate and the network mode switching average time are correspondingly output according to the test parameters, and finally the test results are compared with the expected results.
Example 7
The present embodiment provides an electronic device, which may be expressed in the form of a computing device (for example, may be a server device), including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor may implement the steps of a network mode switching test method for a communication module provided in any one of embodiments 1 to 3 when the processor executes the computer program.
Fig. 7 shows a schematic diagram of the hardware structure of the present embodiment, and as shown in fig. 7, the electronic device 7 specifically includes:
at least one processor 71, at least one memory 72, and a bus 73 for connecting the different system components (including the processor 71 and the memory 72), wherein:
bus 73 includes a data bus, an address bus, and a control bus.
Memory 72 includes volatile memory such as Random Access Memory (RAM) 721 and/or cache memory 722, and may further include Read Only Memory (ROM) 723.
Memory 72 also includes program/utility 725 having a set (at least one) of program modules 724, such program modules 724 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The processor 71 executes various functional applications and data processing, such as the steps of the network mode switching test method of the communication module provided in any one of embodiments 1 to 3 of the present invention, by running a computer program stored in the memory 72.
The electronic device 7 may further communicate with one or more external devices 74 (e.g., keyboard, pointing device, etc.). Such communication may occur through an input/output (I/O) interface 75. Also, the electronic device 7 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 77. The network adapter 77 communicates with other modules of the electronic device 7 via the bus 73. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in connection with the electronic device 7, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, data backup storage systems, and the like.
It should be noted that although several units/modules or sub-units/modules of an electronic device are mentioned in the above detailed description, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more units/modules described above may be embodied in one unit/module according to embodiments of the present application. Conversely, the features and functions of one unit/module described above may be further divided into ones that are embodied by a plurality of units/modules.
Example 8
The present embodiment provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the network mode switching test method of a communication module provided by any one of the embodiments 1 to 3 of the present invention.
More specifically, among others, readable storage media may be employed including, but not limited to: portable disk, hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible implementation manner, the present invention may also be implemented in the form of a program product, which comprises program code for causing a terminal device to carry out the steps of implementing the network mode switching test method of the communication module provided in any one of the embodiments 1 to 3 of the present invention, when said program product is run on the terminal device.
Wherein the program code for carrying out the invention may be written in any combination of one or more programming languages, which program code may execute entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on the remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the principles and spirit of the invention, but such changes and modifications fall within the scope of the invention.

Claims (8)

1. A network mode switching test method of a communication module, the communication module supporting at least two network modes, the method comprising:
transmitting a switching instruction for switching from a current network mode to a new network mode to the communication module, and configuring the new network mode in the communication module;
judging whether the network attachment of the communication module is successful, if so, acquiring an IP address transmitted by the communication module, detecting whether the IP address is changed, if so, detecting whether the current network mode of the communication module is the new network mode, if so, determining that the network mode is successfully switched, and if not, determining that the network mode is failed to be switched;
after the step of configuring the new network mode in the communication module, the method further comprises:
verifying whether the network configuration of the communication module is correct, and if so, executing the step of judging whether the network attachment of the communication module is successful;
the method further comprises the steps of:
if the network configuration of the communication module is verified to be incorrect, generating a new switching instruction, and returning to the step of sending the switching instruction to the communication module;
if the network attachment of the communication module is judged to be unsuccessful, generating a new switching instruction, and returning to the step of sending the switching instruction to the communication module;
if the IP address is detected not to change, generating a new switching instruction, and returning to the step of sending the switching instruction to the communication module;
after the success or failure of the network mode switching is determined, a new switching instruction is generated, and the step of sending the switching instruction to the communication module is returned;
the method further comprises the steps of:
stopping the network mode switching test of the communication module when the preset condition is met, counting test parameters, and calculating a corresponding test result according to the test parameters;
the test parameters comprise total network mode switching times, successful network mode switching times, correct network configuration times and time required by successful network mode switching;
the test result comprises a network switching configuration success rate, a network mode switching success rate and a network mode switching average time;
the preset conditions comprise preset switching times and/or preset switching time;
the network switching configuration success rate is used for representing the success rate of the writing parameters of the communication module, and the network mode switching success rate is used for representing the success rate of the network mode switching;
the method further comprises the steps of:
based on the test parameters, obtaining a test result of the success rate of the intermediate action and the success rate of the data service;
acquiring corresponding statistical data when the communication module performs network mode switching circulation each time, calculating the success rate of each parameter based on the statistical data, and calculating an average value corresponding to the success rate of each parameter to obtain an expected result;
and after switching each network mode configured in the communication module, generating the test parameters, calculating the test result, and analyzing and comparing the test result with the expected result.
2. The method for testing network mode switching of a communication module according to claim 1, further comprising:
after the network mode switching success is determined, selecting a test case to execute data service operation under a specific network protocol on the communication module; wherein the specific network protocol is TCP, UDP, coap, LWM2M, MQTT, oneNET, HTTP or FTP.
3. The method for testing network mode switching of a communication module according to claim 1, further comprising, before the step of verifying whether the network configuration of the communication module is correct:
the communication module is subjected to preset processing; the preset processing comprises at least one of software restarting, hardware restarting, powering on and off and switching radio frequency.
4. A network mode switching test system for a communication module, comprising:
the instruction sending module is used for sending a switching instruction for switching from a current network mode to a new network mode to the communication module and configuring the new network mode in the communication module;
the network attachment judging module is used for judging whether the network attachment of the communication module is successful, and if so, the IP address detecting module is called;
the IP address detection module is used for acquiring the IP address transmitted by the communication module, detecting whether the IP address changes, and calling the network mode detection module if the IP address changes;
the network mode detection module is used for detecting whether the network mode in which the communication module is currently located is the new network mode, if yes, determining that the network mode is successfully switched, and if not, determining that the network mode is failed to switch;
the system further comprises:
the verification module is used for verifying whether the network configuration of the communication module is correct, and if so, the network attachment judgment module is called;
the verification module is also used for generating a new switching instruction and calling the instruction sending module to send the new switching instruction when the network configuration of the communication module is verified to be incorrect;
the network attachment judging module is also used for generating a new switching instruction and calling the instruction sending module to send the new switching instruction when judging that the network attachment of the communication module is unsuccessful;
the IP address detection module is also used for generating a new switching instruction and calling the instruction sending module to send the new switching instruction when detecting that the IP address is unchanged;
the network mode detection module is also used for generating a new switching instruction and calling the instruction sending module to send the new switching instruction after determining that the network mode is successfully switched or failed;
the system further comprises:
the statistics module is used for stopping the network mode switching test of the communication module when the preset condition is met, counting the test parameters and calculating the corresponding test result according to the test parameters;
the test parameters comprise total network mode switching times, successful network mode switching times, correct network configuration times and time required by successful network mode switching;
the test result comprises a network switching configuration success rate, a network mode switching success rate and a network mode switching average time;
the preset conditions comprise preset switching times and/or preset switching time;
the network switching configuration success rate is used for representing the success rate of the writing parameters of the communication module, and the network mode switching success rate is used for representing the success rate of the network mode switching;
the statistics module is also used for obtaining test results of the success rate of the intermediate action and the success rate of the data service based on the test parameters;
the statistical module is further used for acquiring statistical data corresponding to each time the communication module performs network mode switching circulation, calculating the success rate of each parameter based on the statistical data, and calculating an average value corresponding to the success rate of each parameter to be used as an expected result;
the statistical module is further configured to generate the test parameters and calculate the test results after switching is performed on each network mode configured in the communication module, and analyze and compare the test results with the expected results.
5. The network mode switch test system of a communication module of claim 4, wherein the system further comprises:
the test module is used for selecting a test case to execute data service operation under a specific network protocol on the communication module after the network mode detection module determines that the network mode is successfully switched; wherein the specific network protocol is TCP, UDP, coap, LWM2M, MQTT, oneNET, HTTP or FTP.
6. The network mode switch test system of a communication module of claim 4, wherein the system further comprises:
the preprocessing module is used for carrying out preset processing on the communication module; the preset processing comprises at least one of software restarting, hardware restarting, powering on and off and switching radio frequency.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements a network mode switching test method of a communication module according to any of claims 1-3 when executing the computer program.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements a network mode switching test method of a communication module according to any of claims 1-3.
CN201911063275.9A 2019-10-31 2019-10-31 Network mode switching test method, system, equipment and medium of communication module Active CN110784879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911063275.9A CN110784879B (en) 2019-10-31 2019-10-31 Network mode switching test method, system, equipment and medium of communication module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911063275.9A CN110784879B (en) 2019-10-31 2019-10-31 Network mode switching test method, system, equipment and medium of communication module

Publications (2)

Publication Number Publication Date
CN110784879A CN110784879A (en) 2020-02-11
CN110784879B true CN110784879B (en) 2023-05-26

Family

ID=69388644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911063275.9A Active CN110784879B (en) 2019-10-31 2019-10-31 Network mode switching test method, system, equipment and medium of communication module

Country Status (1)

Country Link
CN (1) CN110784879B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111459794B (en) * 2020-02-25 2024-03-15 西安广和通无线软件有限公司 Communication network testing method, device, computer equipment and storage medium
CN111601320B (en) * 2020-05-21 2021-07-06 湖南华诺科技有限公司 Network signal detector supporting multiple NB-IOT modules and detection method
CN112162759B (en) * 2020-09-29 2023-11-07 上海移远通信技术股份有限公司 Loading method and system of radio frequency software board card, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11205444A (en) * 1998-01-13 1999-07-30 Fujitsu Ltd Communication controller having operation mode switching function and operation mode switching method in communication system
CN104065541A (en) * 2014-07-14 2014-09-24 上海斐讯数据通信技术有限公司 Method and system for automatically performing network mode testing
CN104144454A (en) * 2014-08-18 2014-11-12 重庆邮电大学 Method for switching cellular network and Ad-hoc network in mobile P2P system
CN105636086A (en) * 2014-10-28 2016-06-01 中兴通讯股份有限公司 Network mode switching processing method, network mode switching processing device and terminal comprising network mode switching processing device
CN107547468A (en) * 2016-06-23 2018-01-05 广州市动景计算机科技有限公司 Switching of network protocol device, method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11205444A (en) * 1998-01-13 1999-07-30 Fujitsu Ltd Communication controller having operation mode switching function and operation mode switching method in communication system
CN104065541A (en) * 2014-07-14 2014-09-24 上海斐讯数据通信技术有限公司 Method and system for automatically performing network mode testing
CN104144454A (en) * 2014-08-18 2014-11-12 重庆邮电大学 Method for switching cellular network and Ad-hoc network in mobile P2P system
CN105636086A (en) * 2014-10-28 2016-06-01 中兴通讯股份有限公司 Network mode switching processing method, network mode switching processing device and terminal comprising network mode switching processing device
CN107547468A (en) * 2016-06-23 2018-01-05 广州市动景计算机科技有限公司 Switching of network protocol device, method and terminal

Also Published As

Publication number Publication date
CN110784879A (en) 2020-02-11

Similar Documents

Publication Publication Date Title
US10609575B2 (en) Method and apparatus for monitoring and adjusting multiple communication services at a venue
CN110784879B (en) Network mode switching test method, system, equipment and medium of communication module
US8019333B2 (en) Apparatus and methods for product acceptance testing on a wireless device
CN102143523B (en) Service delivery platform and application testing method based on service delivery platform
CN112333057B (en) Intelligent household equipment distribution network testing method and device, executive machine and storage medium
CN103973858B (en) The Auto-Test System of mobile terminal
CN106776346B (en) Test method and device of CCMTS (China center testing System) equipment
CN111858336B (en) Automatic software testing method and system
CN113312064A (en) Installation configuration method and device of physical machine and computer readable medium
KR102162024B1 (en) Apparatus and method for checking problem of mobile communication network using operational logic modeling and comparative analysis
KR100758850B1 (en) Appaturus and method for test using test script in mobile communication system
CN113407469B (en) Parameter configuration method and device, storage medium and electronic device
CN108307414B (en) Wi-Fi connection abnormity processing method and device of application program, terminal and storage medium
CN115114141A (en) Method, device and equipment for testing performance of application program and storage medium
KR20070104202A (en) Automation test service system for view software of portable telephone and method thereof
CN103019927B (en) A kind of performance test methods and system
CN115437865A (en) Method, device, equipment and medium for testing abnormal power failure of hard disk
CN105243015B (en) Method and system for automatically testing software
CN111541589B (en) Method, device and equipment for testing expansion module interface of intelligent terminal
CN113986263A (en) Code automation test method, device, electronic equipment and storage medium
CN109960657B (en) Test environment deployment method and related device
CN111026651A (en) Test method, test device, storage medium and electronic equipment
Díaz-Zayas et al. Remote control and instrumentation of Android devices
CN115268971B (en) Updating method, device, equipment and storage medium of signal processing system
CN113434364B (en) Method and device for detecting memory of screen terminal equipment, storage medium and electronic device

Legal Events

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