[go: up one dir, main page]

CN111698709A - Method, system, medium, and electronic device for testing communication function of wireless module - Google Patents

Method, system, medium, and electronic device for testing communication function of wireless module Download PDF

Info

Publication number
CN111698709A
CN111698709A CN201911364384.4A CN201911364384A CN111698709A CN 111698709 A CN111698709 A CN 111698709A CN 201911364384 A CN201911364384 A CN 201911364384A CN 111698709 A CN111698709 A CN 111698709A
Authority
CN
China
Prior art keywords
module
wireless module
communication function
testing
test instrument
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.)
Granted
Application number
CN201911364384.4A
Other languages
Chinese (zh)
Other versions
CN111698709B (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.)
Chongqing Simcom Wireless Solutions Co ltd
Original Assignee
Chongqing Simcom 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 Chongqing Simcom Wireless Solutions Co ltd filed Critical Chongqing Simcom Wireless Solutions Co ltd
Priority to CN201911364384.4A priority Critical patent/CN111698709B/en
Publication of CN111698709A publication Critical patent/CN111698709A/en
Application granted granted Critical
Publication of CN111698709B publication Critical patent/CN111698709B/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
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)

Abstract

The invention discloses a method, a system, a medium and an electronic device for testing the communication function of a wireless module, wherein the testing method comprises the following steps: receiving configuration parameters set by a user; configuring a test instrument according to the configuration parameters; controlling the test instrument to transmit signals to the wireless module; automatically sending an inquiry instruction to the wireless module, wherein the inquiry instruction is used for inquiring the current signal intensity of the wireless module; reading the signal strength returned by the wireless module; and determining whether the communication function of the wireless module is abnormal according to the signal strength. According to the technical scheme, the wireless module is automatically tested, so that the testing time is effectively saved, and particularly for the test of a large batch of wireless modules, a large amount of human resource cost can be saved.

Description

Method, system, medium, and electronic device for testing communication function of wireless module
Technical Field
The invention relates to the technical field of module testing, in particular to a method, a system, a medium and electronic equipment for testing a communication function of a wireless module.
Background
Before the wireless module leaves the factory, it is usually necessary to test its communication function to detect whether the wireless module can receive signals sent by the base station, and to identify the signals of various levels.
In the prior art, when the wireless module is tested for the communication function, the wireless module is generally tested manually, namely, a testing instrument used for simulating a base station is manually adjusted, the signal strength fed back after the wireless module is connected with the testing instrument is observed and recorded, the testing mode is not only time-consuming and low in efficiency, but also the signal feedback time of the wireless module cannot be accurately estimated during manual testing, for a signal with certain strength sent by the testing instrument, the wireless module may not be able to completely respond, a tester can manually change the signal strength sent by the testing instrument, so that the wireless module passively enters the next signal strength test, and the accuracy of the whole testing process is influenced.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, a system, a medium, and an electronic device for testing a communication function of a wireless module, in order to overcome the defects of low efficiency and low accuracy in the manual testing of the communication function of the wireless module in the prior art.
The invention solves the technical problems through the following technical scheme:
the invention provides a test method of communication function of a wireless module, which comprises the following steps:
receiving configuration parameters set by a user;
configuring a test instrument according to the configuration parameters;
controlling the test instrument to transmit signals to the wireless module;
automatically sending an inquiry instruction to the wireless module, wherein the inquiry instruction is used for inquiring the current signal intensity of the wireless module;
reading the signal strength returned by the wireless module;
and determining whether the communication function of the wireless module is abnormal according to the signal strength.
Preferably, the step of receiving the configuration parameters set by the user includes: receiving configuration parameters set by a user at a PC (personal computer) end, wherein the PC end is connected with the test instrument in a GPIB (general purpose interface bus) mode;
the step of configuring the test instrument according to the configuration parameters further comprises: initializing the test instrument; judging whether the initialization is successful; if the initialization is successful, judging whether the serial port is successfully opened; and if the serial port is successfully opened, executing the step of configuring the test instrument according to the configuration parameters.
Preferably, the step of automatically sending the query instruction to the wireless module further comprises:
and judging whether the wireless module and the test instrument are in a communication connection state, if so, executing the step of automatically sending a query instruction to the wireless module.
Preferably, the configuration parameter includes a level value of RSSI (received signal strength indication value);
the step of reading the signal strength returned by the wireless module further comprises the following steps:
automatically reducing the level value of the RSSI by a first preset threshold value to obtain an adjusted level value;
judging whether the adjusted level value is smaller than a second preset threshold value or not;
and if not, executing the step of controlling the test instrument to transmit signals to the wireless module.
Preferably, the step of automatically decreasing the level value of the RSSI by a first preset threshold further comprises:
judging whether the read times are greater than preset times or not;
if yes, automatically reducing the level value of the RSSI by a first preset threshold value;
and if not, executing the step of reading the signal strength returned by the wireless module.
The invention also provides a test system for the communication function of the wireless module, which comprises:
the parameter receiving module is used for receiving configuration parameters set by a user;
the configuration module is used for configuring the test instrument according to the configuration parameters;
the control module is used for controlling the test instrument to transmit signals to the wireless module;
the instruction sending module is used for automatically sending an inquiry instruction to the wireless module, wherein the inquiry instruction is used for inquiring the current signal intensity of the wireless module;
the signal strength reading module is used for reading the signal strength returned by the wireless module;
and the abnormity confirmation module is used for determining whether the communication function of the wireless module is abnormal according to the signal strength.
Preferably, the parameter receiving module is configured to receive configuration parameters set by a user at a PC end, and the PC end is connected to the test instrument in a GPIB manner;
the test system also comprises an initialization module, a first judgment module and a second judgment module;
the initialization module is used for initializing the test instrument;
the first judging module is used for judging whether the initialization is successful;
if the initialization is successful, calling the second judgment module, wherein the second judgment module is used for judging whether the serial port is successfully opened;
and if the serial port is successfully opened, calling the configuration module, wherein the configuration module is used for configuring the test instrument according to the configuration parameters.
Preferably, the test system further includes a third determination module, where the third determination module is configured to determine whether the wireless module and the test instrument are in a communication connection state;
and if so, calling the instruction sending module.
Preferably, the configuration parameter includes a level value of RSSI, and the test system further includes an adjusting module and a fourth determining module;
the adjusting module is used for automatically reducing the level value of the RSSI by a first preset threshold value so as to obtain an adjusted level value;
the fourth judging module is used for judging whether the adjusted level value is smaller than a second preset threshold value;
if not, the control module is called.
Preferably, the test system further comprises a fifth judging module, and the fifth judging module is configured to judge whether the number of times of reading is greater than a preset number of times;
if yes, calling the adjusting module;
if not, the signal strength reading module is called.
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 executes the computer program to realize the steps of the method for testing the communication function of the wireless module.
The present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for testing a communication function of a wireless module as described above.
The positive progress effects of the invention are as follows: the method, the system, the medium and the electronic equipment for testing the communication function of the wireless module receive the configuration parameters set by a user, configure the testing instrument according to the configuration parameters, then control the testing instrument to transmit signals to the wireless module, and then automatically send an inquiry instruction to the wireless module, wherein the inquiry instruction is used for inquiring the current signal intensity of the wireless module, receiving the signal intensity returned by the wireless module and judging whether the communication function of the wireless module is abnormal or not according to the signal intensity. Therefore, the test time is effectively saved through the automatic test of the wireless module, and particularly for the test of a large batch of wireless modules, a large amount of human resource cost can be saved.
Furthermore, the level value of the testing instrument can be automatically adjusted to test the communication capacity of the wireless module under different levels of signal strength, so that the error of manual adjustment can be effectively reduced, and the communication function of the wireless module can be accurately and comprehensively tested.
Drawings
Fig. 1 is a flowchart of a method for testing a communication function of a wireless module according to embodiment 1 of the present invention.
Fig. 2 is a flowchart of a method for testing a communication function of a wireless module according to embodiment 2 of the present invention.
Fig. 3 is a flowchart of a method for testing a communication function of a wireless module according to embodiment 3 of the present invention.
Fig. 4 is a block diagram of a system for testing a communication function of a wireless module according to embodiment 4 of the present invention.
Fig. 5 is a block diagram of a system for testing a communication function of a wireless module according to embodiment 5 of the present invention.
Fig. 6 is a block diagram of a system for testing a communication function of a wireless module according to embodiment 6 of the present invention.
Fig. 7 is a schematic structural diagram of an electronic device implementing a method for testing a communication function of a wireless module according to embodiment 7 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
The embodiment provides a method for testing a communication function of a wireless module, as shown in fig. 1, the method includes the following steps:
step S0: receiving configuration parameters set by a user;
step S1: configuring a test instrument according to the configuration parameters;
in this embodiment, the test instrument may be configured to simulate a function of a base station to communicate with the wireless module.
Step S2: controlling the test instrument to transmit signals to the wireless module;
step S3: automatically sending an inquiry instruction to the wireless module, wherein the inquiry instruction is used for inquiring the current signal intensity of the wireless module; the inquiry instruction belongs to one of AT instructions, and the AT instruction is an instruction applied to connection and communication between the terminal equipment and the PC terminal.
Step S4: reading the signal strength returned by the wireless module;
step S5: and determining whether the communication function of the wireless module is abnormal according to the signal strength.
In this embodiment, whether the communication function of the wireless module is abnormal may be determined by determining whether the signal strength is greater than a preset signal strength threshold; if not, after the wireless module is connected with the test instrument (simulation base station), the strength of the received signal is very weak, and the situation that normal communication cannot be performed may occur, and at this time, it may be determined that the communication function of the wireless module is abnormal. If so, the wireless module is considered to be capable of correctly receiving the communication signal of the test instrument (the simulation base station) and capable of normally communicating, and the communication function of the wireless module is considered to be normal.
Furthermore, the test result (for example, the conclusion whether the signal strength and/or the communication function returned by the wireless module are abnormal) can be counted and displayed, and can also be output to a record file for storage.
In performing step S0, the configuration parameters may include the following parameter types:
(1) a GPIB (general purpose interface bus) address used to control the test instrument.
(2) The instrument model may be selected from the CMW500 model, CMU200 model, Agilent8960 model and MT8820C model.
(3) The standard selection can be selected from LTE (Long term evolution), WCDMA (wideband code division multiple Access), GSM (Global System for Mobile communications) and GPRS (general packet radio service).
(4) Status selection, optional items are Connect and Idle.
(5) The maximum value of the level value of RSSI, i.e., the initial value at which the test is started.
(6) The minimum value of the level value of the RSSI, i.e., one of the conditions for ending the test, i.e., when the RSSI is less than the RSSI minimum value, the test is stopped.
The method for testing the communication function of the wireless module effectively saves the testing time through the automatic testing of the wireless module, and particularly can save a large amount of human resource cost for the testing of a large batch of wireless modules.
Example 2
The embodiment provides a method for testing the communication function of a wireless module, as shown in fig. 2, which is a further improvement on embodiment 1.
Further, the step S0 may include:
step S01: receiving configuration parameters set by a user at a PC end, wherein the PC end is connected with the test instrument in a GPIB mode;
specifically, a human-computer interaction interface is arranged on the PC terminal, and a user can input or click various parameters on the human-computer interaction interface.
The step S1 may further include the following steps:
step S11: initializing the test instrument;
step S12: judging whether the initialization is successful;
if the initialization is not successful, execute step S6: the test is finished;
if the initialization is successful, go to step S13: judging whether the serial port is successfully opened;
if the serial port is successfully opened, executing step S1: and configuring the test instrument according to the configuration parameters.
If the serial port is not successfully opened, the foregoing step S6 is executed: the test is ended.
In this embodiment, the configuration parameters further include serial port parameters, and the serial port parameters include the following parameter types:
(1) the port number is used for setting a serial communication signal, for example: "5" represents that the current serial port is "com 5".
(2) The baud rate (i.e. the communication speed of the modem) is used for setting the baud rate during serial communication, the selectable option is the conventional baud rate from 110B (baud) to 750000B, and the default selected baud rate is 115200B.
(3) And the AT command is used for setting the AT command needing to inquire the signal strength. Typically, the instruction is "AT + CSQ".
(4) And the left character is set for dividing the left character of the return value of the AT instruction, and the character does not need to be modified if the format of the return value of the AT + CSQ instruction is not changed.
(5) And the middle character is set for dividing the return value of the AT command, and the middle character does not need to be modified if the format of the return value of the AT + CSQ command is not changed.
(6) And the right character is set for dividing the right character of the return value of the AT command, and the character does not need to be modified if the format of the return value of the AT + CSQ command is not changed.
(7) And testing the number of times, setting the maximum number of times of reading the AT instruction when the RSSI is a certain effective value, wherein the instruction is read once in 500ms (millisecond) by default, and if the number of times of reading is set to be 50, the maximum reading duration is 25 seconds.
(8) And the AT timeout time is used for setting the interval time from the sending of the AT command to the reading of the return value. This parameter of 100ms is sufficient to satisfy most of the tests of module AT commands. The return value of the AT command for a particular module is longer and needs to be modified to an appropriate value to ensure that the return value of the AT command is correctly received.
After the configuration parameters are set, the configuration parameters can be stored in a config.ini file under a software root directory, so that the parameters can be called conveniently when the software is opened next time.
Further, step S3 is preceded by:
step S31: judging whether the wireless module and the test instrument are in a communication connection state or not;
if so, go to step S3, otherwise, go to step S6.
According to the method for testing the communication function of the wireless module, the user can flexibly set various parameters through the human-computer interaction interface, the whole testing process can be automatically executed after the parameter setting is completed, the error of manual operation is reduced, and the testing accuracy and the testing efficiency are improved.
Example 3
The embodiment provides a method for testing the communication function of a wireless module, as shown in fig. 3, which is a further improvement on embodiment 2.
Specifically, the step S4 is followed by:
step S41: automatically reducing the level value of the RSSI by a first preset threshold value to obtain an adjusted level value;
step S42: judging whether the adjusted level value is smaller than a second preset threshold value or not;
if not, the aforementioned step S2 is executed.
If yes, the aforementioned step S5 is executed.
Further, step S41 is preceded by:
step S43: judging whether the read times are greater than preset times or not;
if yes, go to step S41; if not, the step S4 is executed.
In this embodiment, for each effective RSSI level value, the maximum reading frequency for reading the signal strength returned by the wireless module may be correspondingly set, and in actual application, if the actual reading frequency is greater than the set preset frequency, it is determined that the test procedure corresponding to the current RSSI level value is finished, the RSSI level value is automatically decreased by the first preset threshold, and then the test procedure corresponding to the adjusted RSSI level value is executed. For example, when the RSSI level value is a1, the maximum number of tests (i.e. the preset number) is set to 20 times on the human-computer interaction interface, when the number of readings exceeds 20 times, the RSSI level value is adjusted from a1 to a2, if a2 is not less than a second preset threshold, i.e. the minimum value of RSSI, the test flow when the RSSI level value is a2 is continuously executed, and if a2 is less than the second preset threshold, the state of the communication function of the wireless module is determined according to the read signal strength, and the test result can be saved.
Those skilled in the art can adaptively set specific values of the first preset threshold and the second preset threshold according to specific application requirements, which is not limited in the embodiment.
The method for testing the communication function of the wireless module provided by the embodiment can automatically adjust the level value of the testing instrument to test the communication capability of the wireless module under different levels of signal strength, so that the error of manual adjustment can be effectively reduced, and the communication function of the wireless module can be accurately and comprehensively tested.
Example 4
The present invention also provides a system for testing a communication function of a wireless module, as shown in fig. 4, where the test system 1 includes:
a parameter receiving module 101, configured to receive configuration parameters set by a user;
a configuration module 102, configured to configure the test instrument according to the configuration parameters;
the control module 103 is used for controlling the test instrument to transmit signals to the wireless module;
an instruction sending module 104, configured to automatically send an inquiry instruction to the wireless module, where the inquiry instruction is used to inquire the current signal strength of the wireless module;
a signal strength reading module 105, configured to read and receive the signal strength returned by the wireless module;
and an anomaly confirmation module 106, configured to determine whether the communication function of the wireless module is abnormal according to the signal strength.
In this embodiment, the anomaly determination module 106 may determine whether the communication function of the wireless module is abnormal by determining whether the signal strength is greater than a preset signal strength threshold; if not, the received signal strength is considered to be very weak after the wireless module is connected with the test instrument, and the situation that normal communication cannot be performed may occur, and at this time, it may be determined that the communication function of the wireless module is abnormal. If the communication function of the wireless module is normal, the wireless module is considered to be capable of correctly receiving the communication signal of the test instrument and capable of normally communicating.
Further, the test system 1 may further include a display module 107, where the display module 107 is configured to count and display a test result (for example, a conclusion that the signal strength and/or the communication function returned by the wireless module are abnormal), and may further output the test result to a record file for storage.
In this embodiment, the configuration parameters may include the following parameter types:
(1) GPIB (general purpose interface bus) address, which is used to control the instrument.
(2) The instrument model may be selected from the CMW500 model, CMU200 model, Agilent8960 model and MT8820C model.
(3) The standard selection can be selected from LTE (Long term evolution), WCDMA (wideband code division multiple Access), GSM (Global System for Mobile communications) and GPRS (general packet radio service).
(4) Status selection, optional items are Connect and Idle.
(5) The maximum value of the RSSI level value, i.e. the initial value at which the test is started.
(6) The minimum value of the RSSI level value, i.e., one of the conditions for ending the test, i.e., when the RSSI is less than the minimum value of the RSSI, the test is stopped.
The test system for the communication function of the wireless module provided by the embodiment can effectively save the test time through the automatic test of the wireless module when running, and especially can save a large amount of human resource cost for the test of a large batch of wireless modules.
Example 5
The invention also provides a test system for the communication function of the wireless module, which is a further improvement on the basis of the embodiment 4, as shown in fig. 5.
Specifically, the parameter receiving module 101 is configured to receive configuration parameters set by a user at a PC end, where the PC end is connected to the test instrument in a GPIB manner;
the test system 1 further includes an initialization module 109, a first judgment module 110, a second judgment module 111, and a shutdown module 108;
the initialization module 109 is configured to initialize the test instrument;
the first determining module 110 is configured to determine whether the initialization is successful;
if the initialization is successful, the second judging module 111 is called, and the second judging module 111 is used for judging whether the serial port is successfully opened; if the initialization is not successful, the shutdown module 108 is invoked to end the test.
If the serial port is successfully opened, the configuration module 102 is called, and the configuration module 102 is used for configuring the test instrument according to the configuration parameters. And if the serial port is not successfully opened, calling the closing module to finish the test.
Further, the test system 1 further includes a third determining module 112, where the third determining module 112 is configured to determine whether the wireless module and the test instrument are in a communication connection state;
if yes, the instruction sending module 104 is called.
If not, the shutdown module 108 is invoked.
In this embodiment, the configuration parameters further include serial port parameters, and the serial port parameters include the following parameter types:
(1) the port number is used for setting a serial communication signal, for example: "5" represents that the current serial port is "com 5".
(2) The baud rate (i.e. the communication speed of the modem) is used for setting the baud rate during serial communication, the selectable option is the conventional baud rate from 110B (baud) to 750000B, and the default selected baud rate is 115200B.
(3) And the AT command is used for setting the AT command needing to inquire the signal strength. Typically, the instruction is "AT + CSQ".
(4) And the left character is set for dividing the left character of the return value of the AT instruction, and the character does not need to be modified if the format of the return value of the AT + CSQ instruction is not changed.
(5) And the middle character is set for dividing the return value of the AT command, and the middle character does not need to be modified if the format of the return value of the AT + CSQ command is not changed.
(6) And the right character is set for dividing the right character of the return value of the AT command, and the character does not need to be modified if the format of the return value of the AT + CSQ command is not changed.
(7) And testing the number of times, setting the maximum number of times of reading the AT instruction when the RSSI is a certain effective value, defaulting to 500ms reading once, and if the number of times of reading is set to 50, setting the maximum reading duration to 25 seconds.
(8) And the AT timeout time is used for setting the interval time from the sending of the AT command to the reading of the return value. This parameter of 100ms is sufficient to satisfy most of the tests of module AT commands. The return value of the AT command for a particular module is longer and needs to be modified to an appropriate value to ensure that the return value of the AT command is correctly received.
After the configuration parameters are set, the configuration parameters can be stored in a config.ini file under a software root directory, so that the parameters can be called conveniently when the software is opened next time.
When the test system for the communication function of the wireless module provided by the embodiment operates, various parameters can be flexibly set by a user through the human-computer interaction interface, and after the parameter setting is completed, the whole test process can be automatically executed, so that the error of manual operation is reduced, and the test accuracy and the test efficiency are improved.
Example 6
This embodiment provides a method for testing the communication function of a wireless module, as shown in fig. 6, which is a further improvement on embodiment 5.
Specifically, the test system 1 further includes an adjusting module 113 and a fourth determining module 114;
the adjusting module 113 is configured to automatically reduce the level value of the RSSI by a first preset threshold to obtain an adjusted level value;
the fourth judging module 114 is configured to judge whether the adjusted level value is smaller than a second preset threshold;
if not, the control module 103 is called.
If so, the shutdown module 108 is invoked.
Further, the test system 1 further includes a fifth determining module 115, where the fifth determining module 115 is configured to determine whether the number of times of reading is greater than a preset number of times;
if yes, the adjusting module 113 is called;
if not, the signal strength reading module 105 is called.
In this embodiment, for each effective RSSI level value, the maximum reading frequency for reading the signal strength returned by the wireless module may be correspondingly set, and in actual application, if the actual reading frequency is greater than the set preset frequency, it is determined that the test procedure corresponding to the current RSSI level value is finished, the RSSI level value is automatically decreased by the first preset threshold, and then the test procedure corresponding to the adjusted RSSI level value is executed. For example, when the RSSI level value is a1, the maximum number of tests (i.e. the preset number) is set to 20 times on the human-computer interaction interface, when the number of readings exceeds 20 times, the RSSI level value is adjusted from a1 to a2, if a2 is not less than a second preset threshold, i.e. the minimum value of RSSI, the test flow when the RSSI level value is a2 is continuously executed, and if a2 is less than the second preset threshold, the state of the communication function of the wireless module is determined according to the read signal strength, and the test result can be saved.
Those skilled in the art can adaptively set the first preset threshold, the second preset threshold and the specific value of the preset number according to the specific application requirement, which is not limited in the embodiment.
When the test system for the communication function of the wireless module provided by the embodiment operates, the level value of the test instrument can be automatically adjusted to test the communication capability of the wireless module under different levels of signal strength, so that the error of manual adjustment can be effectively reduced, and the communication function of the wireless module can be accurately and comprehensively tested.
Example 7
This embodiment provides an electronic device, as shown in fig. 7, which may include a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the steps of the method for testing the communication function of the wireless module in any of embodiments 1 to 3 are implemented.
It should be understood that the electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments of the present invention.
As shown in fig. 7, the electronic device 2 may be embodied in the form of a general purpose computing device, such as: which may be a server device. The components of the electronic device 2 may include, but are not limited to: the at least one processor 3, the at least one memory 4, and a bus 5 connecting the various system components (including the memory 4 and the processor 3).
The bus 5 may include a data bus, an address bus, and a control bus.
The memory 4 may include volatile memory, such as Random Access Memory (RAM)41 and/or cache memory 42, and may further include Read Only Memory (ROM) 43.
The memory 4 may also include a program tool 45 (or utility tool) having a set (at least one) of program modules 44, such program modules 44 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The processor 3 executes various functional applications and data processing, such as the steps of the method for testing the communication function of the wireless module in any of embodiments 1 to 3 of the present invention, by running the computer program stored in the memory 4.
The electronic device 2 may also communicate with one or more external devices 6, such as a keyboard, pointing device, etc. Such communication may be via an input/output (I/O) interface 7. Also, the model-generated electronic device 2 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network) via the network adapter 8.
As shown in FIG. 7, the network adapter 8 may communicate with other modules of the model-generated electronic device 2 via the bus 5. It will be appreciated by those skilled in the art that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the model-generated electronic device 2, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module according to embodiments of the invention. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Example 8
The present embodiment provides a computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the steps of the method for testing the communication function of the wireless module according to any one of embodiments 1 to 3.
More specific ways in which the computer-readable storage medium may be employed may include, but are not limited to: a portable disk, a 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, the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps of the method for testing a communication function of a radio module according to any of embodiments 1-3, when the program product is run on the terminal device.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the 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 a 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 that 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 spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (12)

1. A method for testing a communication function of a wireless module, the method comprising:
receiving configuration parameters set by a user;
configuring a test instrument according to the configuration parameters;
controlling the test instrument to transmit signals to the wireless module;
automatically sending an inquiry instruction to the wireless module, wherein the inquiry instruction is used for inquiring the current signal intensity of the wireless module;
reading the signal strength returned by the wireless module;
and determining whether the communication function of the wireless module is abnormal according to the signal strength.
2. The method for testing the communication function of a wireless module according to claim 1,
the step of receiving the configuration parameters set by the user comprises the following steps: receiving configuration parameters set by a user at a PC end, wherein the PC end is connected with the test instrument in a GPIB mode;
the step of configuring the test instrument according to the configuration parameters further comprises: initializing the test instrument; judging whether the initialization is successful; if the initialization is successful, judging whether the serial port is successfully opened; and if the serial port is successfully opened, executing the step of configuring the test instrument according to the configuration parameters.
3. The method for testing the communication function of a wireless module according to claim 1, wherein the step of automatically sending the query command to the wireless module further comprises:
and judging whether the wireless module and the test instrument are in a communication connection state, if so, executing the step of automatically sending a query instruction to the wireless module.
4. A method for testing a communication function of a radio module according to any of claims 1-3, wherein the configuration parameter includes a level value of RSSI;
the step of reading the signal strength returned by the wireless module further comprises the following steps:
automatically reducing the level value of the RSSI by a first preset threshold value to obtain an adjusted level value;
judging whether the adjusted level value is smaller than a second preset threshold value or not;
and if not, executing the step of controlling the test instrument to transmit signals to the wireless module.
5. The method for testing a communication function of a wireless module according to claim 4, wherein the step of automatically decreasing the level value of the RSSI by a second preset threshold value further comprises:
judging whether the read times are greater than preset times or not;
if yes, automatically reducing the level value of the RSSI by a second preset threshold value;
and if not, executing the step of reading the signal strength returned by the wireless module.
6. A system for testing a communication function of a wireless module, the system comprising:
the parameter receiving module is used for receiving configuration parameters set by a user;
the configuration module is used for configuring the test instrument according to the configuration parameters;
the control module is used for controlling the test instrument to transmit signals to the wireless module;
the instruction sending module is used for automatically sending an inquiry instruction to the wireless module, wherein the inquiry instruction is used for inquiring the current signal intensity of the wireless module;
the signal strength reading module is used for reading the signal strength returned by the wireless module;
and the abnormity confirming module is used for determining whether the communication function of the wireless module is abnormal or not according to the signal intensity.
7. The system for testing the communication function of a wireless module according to claim 6,
the parameter receiving module is used for receiving configuration parameters set by a user at a PC end, and the PC end is connected with the test instrument in a GPIB mode;
the test system also comprises an initialization module, a first judgment module and a second judgment module;
the initialization module is used for initializing the test instrument;
the first judging module is used for judging whether the initialization is successful;
if the initialization is successful, calling the second judgment module, wherein the second judgment module is used for judging whether the serial port is successfully opened;
and if the serial port is successfully opened, calling the configuration module, wherein the configuration module is used for configuring the test instrument according to the configuration parameters.
8. The system for testing communication function of a wireless module according to claim 6, further comprising a third determining module, configured to determine whether the wireless module and the testing apparatus are in communication connection;
and if so, calling the instruction sending module.
9. The system for testing the communication function of a wireless module according to any of claims 6 to 8, wherein the configuration parameter comprises a level value of RSSI, the system further comprises an adjusting module and a fourth determining module;
the adjusting module is used for automatically reducing the level value of the RSSI by a first preset threshold value so as to obtain an adjusted level value;
the fourth judging module is used for judging whether the adjusted level value is smaller than a second preset threshold value;
if not, the control module is called.
10. The system for testing communication function of a wireless module according to claim 9, further comprising a fifth determining module, configured to determine whether the number of times of reading is greater than a preset number of times;
if yes, calling the adjusting module;
if not, the signal strength reading module is called.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method for testing the communication function of a wireless module according to any of claims 1 to 5 when executing the computer program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for testing the communication functionality of a radio module according to any one of claims 1 to 5.
CN201911364384.4A 2019-12-26 2019-12-26 Method, system, medium, and electronic device for testing communication function of wireless module Active CN111698709B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911364384.4A CN111698709B (en) 2019-12-26 2019-12-26 Method, system, medium, and electronic device for testing communication function of wireless module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911364384.4A CN111698709B (en) 2019-12-26 2019-12-26 Method, system, medium, and electronic device for testing communication function of wireless module

Publications (2)

Publication Number Publication Date
CN111698709A true CN111698709A (en) 2020-09-22
CN111698709B CN111698709B (en) 2023-04-07

Family

ID=72476200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911364384.4A Active CN111698709B (en) 2019-12-26 2019-12-26 Method, system, medium, and electronic device for testing communication function of wireless module

Country Status (1)

Country Link
CN (1) CN111698709B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363187A (en) * 2020-12-01 2021-02-12 重庆芯讯通无线科技有限公司 Automatic testing method and system for communication module GNSS sensitivity
CN113904954A (en) * 2021-08-27 2022-01-07 深圳市有方科技股份有限公司 System for testing wireless communication module
CN114385496A (en) * 2022-01-10 2022-04-22 Tcl通讯科技(成都)有限公司 Test method, test device, electronic equipment and computer readable storage medium
CN114640403A (en) * 2022-03-29 2022-06-17 上海移远通信技术股份有限公司 Test method, device, terminal and storage medium for eSIM terminal

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2184941A2 (en) * 2006-09-15 2010-05-12 Itron, Inc. Method for compensating for drift in node device clocks in a metering system mesh network
US20100117801A1 (en) * 2008-11-10 2010-05-13 Kyocera Mita Corporation Wireless tag communication system and image forming apparatus
CN102300229A (en) * 2011-09-20 2011-12-28 北京富国鸿信科技有限公司 Self-organized wireless local area network and realization method thereof
CN103699464A (en) * 2013-12-18 2014-04-02 北京星河亮点技术股份有限公司 Communication terminal automatically testing method and device
CN103781102A (en) * 2014-01-17 2014-05-07 河海大学常州校区 Wireless signal coverage quality detection system and method based on aircraft
CN105974211A (en) * 2016-06-21 2016-09-28 广州视源电子科技股份有限公司 Method and device for testing equipment antenna
US20180103426A1 (en) * 2016-10-11 2018-04-12 Verizon Patent And Licensing Inc. Extending signal coverage and charge duration of a user equipment
CN108111236A (en) * 2017-12-28 2018-06-01 上海传英信息技术有限公司 A kind of computer readable storage medium and test system for antenna measurement
CN108199791A (en) * 2017-12-22 2018-06-22 广东欧珀移动通信有限公司 Received signal strength testing method, device and system and electronic equipment
CN108234045A (en) * 2017-12-22 2018-06-29 广东欧珀移动通信有限公司 Received signal strength method of adjustment, device, terminal test system and electric terminal
CN108418726A (en) * 2018-01-19 2018-08-17 广东小天才科技有限公司 Throughput testing method, apparatus, device and storage medium for user wireless device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2184941A2 (en) * 2006-09-15 2010-05-12 Itron, Inc. Method for compensating for drift in node device clocks in a metering system mesh network
US20100117801A1 (en) * 2008-11-10 2010-05-13 Kyocera Mita Corporation Wireless tag communication system and image forming apparatus
CN102300229A (en) * 2011-09-20 2011-12-28 北京富国鸿信科技有限公司 Self-organized wireless local area network and realization method thereof
CN103699464A (en) * 2013-12-18 2014-04-02 北京星河亮点技术股份有限公司 Communication terminal automatically testing method and device
CN103781102A (en) * 2014-01-17 2014-05-07 河海大学常州校区 Wireless signal coverage quality detection system and method based on aircraft
CN105974211A (en) * 2016-06-21 2016-09-28 广州视源电子科技股份有限公司 Method and device for testing equipment antenna
US20180103426A1 (en) * 2016-10-11 2018-04-12 Verizon Patent And Licensing Inc. Extending signal coverage and charge duration of a user equipment
CN108199791A (en) * 2017-12-22 2018-06-22 广东欧珀移动通信有限公司 Received signal strength testing method, device and system and electronic equipment
CN108234045A (en) * 2017-12-22 2018-06-29 广东欧珀移动通信有限公司 Received signal strength method of adjustment, device, terminal test system and electric terminal
CN108111236A (en) * 2017-12-28 2018-06-01 上海传英信息技术有限公司 A kind of computer readable storage medium and test system for antenna measurement
CN108418726A (en) * 2018-01-19 2018-08-17 广东小天才科技有限公司 Throughput testing method, apparatus, device and storage medium for user wireless device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
APIDET BOORANAWONG;: "A System for Detection and Tracking of Human Movements Using RSSI Signals", 《IEEE SENSORS JOURNAL》 *
任和等: "基于智能分析的视频质量检测系统实现", 《中国铁路》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363187A (en) * 2020-12-01 2021-02-12 重庆芯讯通无线科技有限公司 Automatic testing method and system for communication module GNSS sensitivity
CN112363187B (en) * 2020-12-01 2023-07-25 重庆芯讯通无线科技有限公司 Automatic testing method and system for GNSS sensitivity of communication module
CN113904954A (en) * 2021-08-27 2022-01-07 深圳市有方科技股份有限公司 System for testing wireless communication module
CN113904954B (en) * 2021-08-27 2023-09-01 深圳市有方科技股份有限公司 System for testing wireless communication module
CN114385496A (en) * 2022-01-10 2022-04-22 Tcl通讯科技(成都)有限公司 Test method, test device, electronic equipment and computer readable storage medium
CN114640403A (en) * 2022-03-29 2022-06-17 上海移远通信技术股份有限公司 Test method, device, terminal and storage medium for eSIM terminal
CN114640403B (en) * 2022-03-29 2024-04-26 上海移远通信技术股份有限公司 eSIM terminal testing method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN111698709B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN111698709B (en) Method, system, medium, and electronic device for testing communication function of wireless module
CN109274807B (en) Test method, device and system
CN110784879B (en) Network mode switching test method, system, equipment and medium of communication module
US20090036115A1 (en) System and method for testing gsm modules
CN101453373A (en) Near-end maintenance method, system and equipment for device
CN114281633A (en) Working parameter range testing method, system and related components
CN107193699A (en) One kind tests the wide time-delay method of HCA cassette tapes automatically by RDMA modes
CN115547396B (en) Test method and device for eMMC
WO2022127575A1 (en) Automatic testing method and system for wifi devices and readable storage medium
CN111814354A (en) Simulation test method, system, medium and electronic device for instrument performance
CN115827358A (en) Automatic test system, method and device for PFR function and storage medium
CN110334385B (en) Testing method, device and equipment for central controller of integrated energy system
CN113407469B (en) Parameter configuration method and device, storage medium and electronic device
CN108733561A (en) Application program launching duration test method, device, electronic equipment and storage medium
CN115394345A (en) Method, device, equipment and medium for testing performance of server hard disk
CN112216340A (en) Hard disk test method and device, storage medium and electronic equipment
CN114138312B (en) Upgrade testing method, device, electronic equipment and computer readable storage medium
CN114461470B (en) Memory power consumption testing method, system, equipment and storage medium
CN115903755A (en) Method, device and system for testing microcontroller chip and storage medium
CN111181790B (en) Method, device, equipment and storage medium for quickly generating automatic test script
CN111654878A (en) Test method, system, electronic device and medium for sensitivity of wireless communication module
CN109960657B (en) Test environment deployment method and related device
CN107360295A (en) A kind of test main frame and method
CN112380121A (en) Automatic testing method and system for Internet of things equipment
CN118964157A (en) Server operation performance testing method and 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