CN111756597B - Wireless module testing system, method and device applied to gateway - Google Patents

Wireless module testing system, method and device applied to gateway Download PDF

Info

Publication number
CN111756597B
CN111756597B CN202010578502.8A CN202010578502A CN111756597B CN 111756597 B CN111756597 B CN 111756597B CN 202010578502 A CN202010578502 A CN 202010578502A CN 111756597 B CN111756597 B CN 111756597B
Authority
CN
China
Prior art keywords
test
wireless module
tested
serial port
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
CN202010578502.8A
Other languages
Chinese (zh)
Other versions
CN111756597A (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.)
Beijing Ziroom Information Technology Co Ltd
Original Assignee
Beijing Ziroom Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ziroom Information Technology Co Ltd filed Critical Beijing Ziroom Information Technology Co Ltd
Priority to CN202010578502.8A priority Critical patent/CN111756597B/en
Publication of CN111756597A publication Critical patent/CN111756597A/en
Application granted granted Critical
Publication of CN111756597B publication Critical patent/CN111756597B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/065Generation of reports related to network devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Abstract

The invention discloses a wireless module test system, method and device applied to a gateway, wherein the test system comprises: the test firmware is arranged in the gateway and connected with the wireless modules to be tested through serial ports, and the test firmware sends serial port detection commands to the wireless modules to be tested; and the wireless module to be tested and the accompanying equipment complete the performance test of the wireless module through data interaction according to the serial port detection command to obtain a test result. According to the wireless module testing system, method and device applied to the gateway, the wireless module to be tested of the gateway can be rapidly tested through the arrangement of the testing firmware and the accompanying testing equipment, professional instruments and complex manual operation are not needed, the cost is saved, and the testing efficiency is improved.

Description

Wireless module testing system, method and device applied to gateway
Technical Field
The invention relates to the technical field of Internet of things, in particular to a wireless module testing system, method and device applied to a gateway.
Background
The Internet of things is an important component of a new generation of information technology, and The English name of The Internet of things is. As the name implies, the Internet of things is the Internet with connected objects. This has two layers: firstly, the core and the foundation of the internet of things are still the internet, and the internet is an extended and expanded network on the basis of the internet; second, the user end extends and extends to any article to article for information exchange and communication. The gateway of the internet of things plays a very important role in the age of the internet of things, and becomes a link for connecting a sensing network and a traditional communication network. As gateway equipment, the gateway of the Internet of things can realize protocol conversion between the sensing network and the communication network and between different types of sensing networks, thereby realizing wide area interconnection and local area interconnection.
At present, in the field of internet of things, especially in the field of smart homes, a lot of terminal devices with wireless protocols appear, and the terminal devices adopt wireless protocols such as WIFI, Zigbee and BLe. For different wireless protocols, the method has respective advantages in different application scenes; in practical application, the intelligent gateway can select different wireless protocols to communicate with the terminal equipment. However, due to the fact that the performances of different wireless protocols are not consistent, the respective calibration standards are different, and the testing instruments are also different; with more protocols docked in the intelligent gateway, more wireless modules are in the gateway, and the verification of the wireless modules in the intelligent gateway production is more and more complex.
Disclosure of Invention
In view of this, embodiments of the present invention provide a system, a method, and a device for testing a wireless module applied to a gateway, so as to solve the technical problem in the prior art that different instruments are required to be used for testing different wireless protocols.
The technical scheme provided by the invention is as follows:
a first aspect of an embodiment of the present invention provides a wireless module testing system applied to a gateway, where the testing system includes: the test firmware is arranged in the gateway and connected with the wireless modules to be tested through serial ports, and the test firmware sends serial port detection commands to the wireless modules to be tested; and the wireless module to be tested and the accompanying equipment complete the performance test of the wireless module through data interaction according to the serial port detection command to obtain a test result.
Further, the wireless module testing system applied to the gateway further comprises: and the microprocessor is connected with the test firmware and is used for sending a test instruction to the test firmware, and the test firmware sends a serial port detection command to the wireless module to be detected according to the test instruction.
Further, the test firmware receives the test result and sends the test result to the microprocessor for display.
A second aspect of the embodiments of the present invention provides a method for testing a wireless module applied to a gateway, where the method includes: sending a serial port detection command to the wireless module to be detected through the serial port; and receiving a test result of the wireless module to be tested performing performance test with the accompanying equipment according to the serial port detection command and the corresponding wireless protocol.
Further, before receiving a test result of the wireless module to be tested performing performance test with the accompanying device according to the serial port detection command and the corresponding wireless protocol, the method further includes: receiving software information fed back by the wireless module to be tested according to the serial port detection command; judging whether the wireless module to be tested is a test module according to the software information; and when the wireless module to be tested is determined to be a testing module, sending a testing command to the wireless module to be tested.
Further, receiving a test result of the wireless module to be tested performing performance test with the accompanying device according to the serial port detection command and the corresponding wireless protocol, the method includes: carrying out network access and network exit tests on the wireless module to be tested and the accompanying equipment through a corresponding wireless protocol according to the serial port detection command; and receiving a test result obtained by calculating the wireless module to be tested and the accompanying equipment according to the test parameters in the network access test and the network quitting test.
Further, the method for testing the wireless module applied to the gateway further comprises the following steps: obtaining a test result generated by the wireless module to be tested; and sending the test result to a microprocessor for display.
Further, before sending a serial port detection command to the wireless module to be detected through the serial port, the method further includes: detecting whether serial port communication connected with a wireless module to be detected is normal or not; and when the serial port communication is normal, sending a serial port detection command to the wireless module to be detected.
A third aspect of the embodiments of the present invention provides a wireless module testing apparatus applied to a gateway, where the testing apparatus includes: the command sending module is used for sending a serial port detection command to the wireless module to be detected through a serial port; and the result receiving module is used for receiving the test result of the performance test of the wireless module to be tested and the accompanying equipment according to the serial port detection command and the corresponding wireless protocol.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, where computer instructions are stored, and the computer instructions are configured to cause the computer to execute the method for testing a wireless module applied to a gateway according to any one of the second aspect and the second aspect of the embodiments of the present invention.
A fifth aspect of an embodiment of the present invention provides an electronic device, including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the method for testing a wireless module applied to a gateway according to any one of the second aspect and the second aspect of the embodiments of the present invention.
The technical scheme provided by the invention has the following effects:
according to the wireless module test system applied to the gateway, provided by the embodiment of the invention, the test firmware is arranged in the gateway and is connected to the plurality of wireless modules to be tested through the serial ports to perform test control; the wireless module to be tested and the accompanying equipment can complete the performance test of the wireless module under the serial port detection command. Meanwhile, the accompanying equipment can be set to be in a test waiting state when not working, and can be restored to the test waiting state after the test is finished. Therefore, the test system based on the wireless module provided by the embodiment of the invention can rapidly complete the test of the wireless module to be tested of the gateway through the arrangement of the test firmware and the accompanying equipment, does not need professional instruments and complicated manual operation, saves the cost and improves the test efficiency.
According to the wireless module testing method applied to the gateway, provided by the embodiment of the invention, the testing firmware is arranged in the gateway, and the testing firmware is adopted to send a serial port detection command to the wireless module to be tested for testing control; the wireless module to be tested can perform network access and network withdrawal testing with the accompanying equipment according to the serial port detection command, so that a testing structure is obtained. Therefore, the wireless module testing method applied to the gateway provided by the embodiment of the invention can be used for controlling the test by sending the detection command through the test firmware and calculating the test parameters by adopting the accompanying equipment, so that the test of the wireless module to be tested of the gateway can be quickly completed, professional instruments and complicated manual operation are not needed, the cost is saved and the test efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a block diagram of a wireless module testing system applied to a gateway according to an embodiment of the present invention;
fig. 2 is a block diagram of a wireless module test system applied to a gateway according to another embodiment of the present invention;
fig. 3 is a flowchart of a wireless module testing method applied to a gateway according to an embodiment of the present invention;
fig. 4 is a flowchart of a wireless module testing method applied to a gateway according to another embodiment of the present invention;
fig. 5 is a flowchart of a wireless module testing method applied to a gateway according to another embodiment of the present invention;
fig. 6 is a block diagram of a wireless module testing apparatus applied to a gateway according to an embodiment of the present invention;
fig. 7 is a block diagram of a wireless module testing apparatus applied to a gateway according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a computer-readable storage medium provided in accordance with an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a wireless module testing system applied to a gateway, and as shown in fig. 1, the testing system includes: the system comprises a test firmware 1 and an accompanying device 2, wherein the test firmware 1 is arranged in a gateway and is connected with a plurality of wireless modules to be tested 3 through serial ports, and the test firmware 1 sends serial port detection commands to the wireless modules to be tested 3; and the wireless module 3 to be tested and the accompanying equipment 2 complete the performance test of the wireless module through data interaction according to the serial port detection command to obtain a test result.
According to the wireless module test system applied to the gateway, provided by the embodiment of the invention, the test firmware is arranged in the gateway and is connected to the plurality of wireless modules to be tested through the serial ports to perform test control; the wireless module to be tested and the accompanying equipment can complete the performance test of the wireless module under the serial port detection command. Meanwhile, the accompanying equipment can be set to be in a test waiting state when not working, and can be restored to the test waiting state after the test is finished. Therefore, the test system based on the wireless module provided by the embodiment of the invention can rapidly complete the test of the wireless module to be tested of the gateway through the arrangement of the test firmware and the accompanying equipment, does not need professional instruments and complicated manual operation, saves the cost and improves the test efficiency.
In an embodiment, as shown in fig. 2, the wireless module testing system applied to the gateway may further include: and the microprocessor 4 is connected with the test firmware 1 and used for sending a test instruction to the test firmware 1. And the test firmware 1 receives the test result and sends the test result to the microprocessor 4 for display. Specifically, when the wireless module 3 to be tested needs to be tested, the test can be implemented by sending a test instruction to the test firmware 1 by the microprocessor 4; meanwhile, the test firmware 1 can be set, so that the test firmware 1 sends a serial port detection command to the wireless module to be tested 3 at preset intervals to perform testing. In addition, after the wireless module to be tested 3 generates the test result according to the calculation result, the test firmware 1 may collect the test result and feed the test result back to the state display list of the microprocessor 4 through the test tool for display, so that the user can obtain the test result conveniently.
An embodiment of the present invention further provides a method for testing a wireless module applied to a gateway, as shown in fig. 3, the method includes the following steps:
step S101: sending a serial port detection command to the wireless module to be detected through the serial port; specifically, the test firmware can be run in the gateway, and can be set at the same time, so that the test firmware sends a serial port detection command to the wireless module to be tested at preset intervals for testing. In addition, the microprocessor can be used for sending a test instruction to the test firmware according to the user requirement, and the test firmware sends a serial port detection command to the wireless module to be detected according to the test instruction. Moreover, the test firmware can be connected to a plurality of wireless modules to be tested through the serial port, and when the plurality of wireless modules need to be tested, a plurality of commands can be sent to the plurality of wireless modules to be tested simultaneously.
In one embodiment, before sending the serial port detection command to the wireless module to be detected, whether the serial port communication connected with the wireless module to be detected is normal or not can be detected; when the serial port communication is normal, sending a serial port detection command to the wireless module to be detected; when the serial port connection is in a problem, the test firmware can send an error prompt, the serial port communication is repaired, and then the test firmware detects the serial port communication again until the serial port communication is normal and sends a serial port detection command to the wireless module to be tested.
Step S102: and receiving a test result of the wireless module to be tested performing performance test with the accompanying equipment according to the serial port detection command and the corresponding wireless protocol.
In an embodiment, after the wireless module to be tested receives the serial port detection command, the wireless module to be tested can perform network access and network exit tests with the accompanying equipment through the corresponding wireless protocol according to the serial port detection command, and in the network access and network exit test process, the accompanying equipment can acquire relevant parameters in the test process, so that the signal strength calculation, the configuration parameter acquisition, the communication packet loss rate and the communication timeliness test are realized, and the test result of the wireless module to be tested is obtained.
In an embodiment, after the wireless module to be tested and the accompanying device calculate the test result, the test result can be obtained, and the obtained test result is sent to a state display list of the microprocessor for display. The user can judge whether the performance of the wireless module to be tested is normal according to the displayed test result, and can carry out targeted repair on the part with the problem in the test result according to the test result.
According to the wireless module testing method applied to the gateway, provided by the embodiment of the invention, the testing firmware is arranged in the gateway, and the testing firmware is adopted to send a serial port detection command to the wireless module to be tested for testing control; the wireless module to be tested can perform network access and network withdrawal testing with the accompanying equipment according to the serial port detection command, so that a testing structure is obtained. Therefore, the wireless module testing method applied to the gateway provided by the embodiment of the invention can be used for controlling the test by sending the detection command through the test firmware and calculating the test parameters by adopting the accompanying equipment, so that the test of the wireless module to be tested of the gateway can be quickly completed, professional instruments and complicated manual operation are not needed, the cost is saved and the test efficiency is improved.
In an embodiment, as shown in fig. 4, before receiving a test result of a performance test performed between a wireless module to be tested and an accessory device according to a serial port detection command and a corresponding wireless protocol, the method further includes the following steps:
step S201: receiving software information fed back by the wireless module to be tested according to the serial port detection command; specifically, after the wireless module to be tested receives the serial port detection command sent by the test firmware, the wireless module to be tested may feed back software information of the wireless module to be tested to the test firmware, where the software information may include a software version of the wireless module to be tested and other related information of the wireless module.
Step S202: and judging whether the wireless module to be tested is a test module according to the software information.
Step S203: and when the wireless module to be tested is determined to be the testing module, sending a testing command to the wireless module to be tested. Specifically, when the test firmware receives the software information fed back by the wireless module to be tested, the version of the wireless module to be tested can be judged according to the software information, and when the version belongs to the version to be tested, the wireless performance test is started, that is, the wireless module test mode is started, and a test command is sent to the wireless module to be tested.
According to the wireless module testing method applied to the gateway, provided by the embodiment of the invention, the testing firmware judges whether the wireless module to be tested is the testing version or not by acquiring the software information, such as version information and the like, of the wireless module to be tested, and then starts the wireless performance test after the wireless module to be tested is determined as the testing version, so that the testing accuracy is improved.
In an embodiment, the method for testing a wireless module applied to a gateway according to the embodiment of the present invention may be implemented according to a test flow shown in fig. 5: the microprocessor sends a test starting instruction to the test firmware; the test firmware detects serial port communication of the wireless module to be tested and sends a serial port detection command; the wireless module to be tested receives the serial port detection command and feeds back the software information of the wireless module; and the test firmware starts a wireless performance test according to the software information, starts a wireless performance test mode and sends a test command to the wireless module to be tested.
The wireless module to be tested performs network access test according to the test command, and simultaneously performs network access and network withdrawal test with the accompanying equipment in a waiting state; the accompanying equipment obtains a network access result according to the network access and network exit test and feeds the network access result back to the wireless module to be tested; the wireless module to be tested judges whether the radio frequency transmission and reception are normal or not according to the network access result; then, a signal test can be carried out, the accompanying equipment carries out signal threshold calculation according to the network access and network exit test, and the wireless module to be tested can judge the signal test according to the signal threshold calculation result; and finally, a packet loss rate test can be carried out, the accompanying equipment can carry out packet loss rate calculation according to the data packet transmission condition in the network access and network exit tests for multiple times, and the wireless module to be tested can carry out packet loss rate judgment according to the packet loss rate calculation result. In addition, the wireless module to be tested can also perform other performance tests, which is not limited by the invention.
After the wireless module to be tested completes the performance test, the test firmware may obtain the judgment results in the wireless module to be tested, such as the network access judgment result, the signal judgment result, the packet loss rate judgment result, and the like, and feed back the test results to the state display list of the microprocessor through the test tool for display. In addition, the test firmware can also obtain the test result of the wireless module to be tested in real time, so that a user can know the test result of the wireless module to be tested in time.
An embodiment of the present invention further provides a wireless module testing apparatus applied to a gateway, as shown in fig. 6, the testing apparatus includes:
the command sending module 10 is used for sending a serial port detection command to the wireless module to be detected through a serial port; specifically, the test firmware can be run in the gateway, and can be set at the same time, so that the test firmware sends a serial port detection command to the wireless module to be tested at preset intervals for testing. In addition, the microprocessor can be used for sending a test instruction to the test firmware according to the user requirement, and the test firmware sends a serial port detection command to the wireless module to be detected according to the test instruction. Moreover, the test firmware can be connected to a plurality of wireless modules to be tested through the serial port, and when the plurality of wireless modules need to be tested, a plurality of commands can be sent to the plurality of wireless modules to be tested simultaneously.
In one embodiment, before sending the serial port detection command to the wireless module to be detected, whether the serial port communication connected with the wireless module to be detected is normal or not can be detected; when the serial port communication is normal, sending a serial port detection command to the wireless module to be detected; when the serial port connection is in a problem, the test firmware can send an error prompt, the serial port communication is repaired, and then the test firmware detects the serial port communication again until the serial port communication is normal and sends a serial port detection command to the wireless module to be tested.
And the result receiving module 20 is configured to receive a test result of the performance test performed by the wireless module to be tested and the accompanying device according to the serial port detection command and the corresponding wireless protocol.
In an embodiment, after the wireless module to be tested receives the serial port detection command, the wireless module to be tested can perform network access and network exit tests with the accompanying equipment through the corresponding wireless protocol according to the serial port detection command, and in the network access and network exit test process, the accompanying equipment can acquire relevant parameters in the test process, so that the signal strength calculation, the configuration parameter acquisition, the communication packet loss rate and the communication timeliness test are realized, and the test result of the wireless module to be tested is obtained.
In an embodiment, after the wireless module to be tested and the accompanying device calculate the test result, the test result can be obtained, and the obtained test result is sent to a state display list of the microprocessor for display. The user can judge whether the performance of the wireless module to be tested is normal according to the displayed test result, and can carry out targeted repair on the part with the problem in the test result according to the test result.
According to the wireless module testing device applied to the gateway, provided by the embodiment of the invention, the testing firmware is arranged in the gateway, and the testing firmware is adopted to send a serial port detection command to the wireless module to be tested for testing control; the wireless module to be tested can perform network access and network withdrawal testing with the accompanying equipment according to the serial port detection command, so that a testing structure is obtained. Therefore, the wireless module testing device applied to the gateway provided by the embodiment of the invention can quickly complete the test of the wireless module to be tested of the gateway by sending the detection command through the test firmware for test control and simultaneously adopting the accompanying equipment for calculating the test parameters, so that professional instruments and complicated manual operation are not needed, the cost is saved and the test efficiency is improved.
In one embodiment, as shown in fig. 7, the wireless module testing apparatus applied to the gateway further includes: :
a software information receiving module 11; the software information is used for receiving the software information fed back by the wireless module to be tested according to the serial port detection command; specifically, after the wireless module to be tested receives the serial port detection command sent by the test firmware, the wireless module to be tested may feed back software information of the wireless module to be tested to the test firmware, where the software information may include a software version of the wireless module to be tested and other related information of the wireless module.
And the judging module 12 is configured to judge whether the wireless module to be tested is a testing module according to the software information.
And the command sending module 13 is configured to send a test command to the wireless module to be tested when it is determined that the wireless module to be tested is the test module. Specifically, when the test firmware receives the software information fed back by the wireless module to be tested, the version of the wireless module to be tested can be judged according to the software information, and when the version belongs to the version to be tested, the wireless performance test is started, that is, the wireless module test mode is started, and a test command is sent to the wireless module to be tested.
According to the wireless module testing device applied to the gateway, provided by the embodiment of the invention, the testing firmware judges whether the wireless module to be tested is the testing version or not by acquiring the software information, such as version information and the like, of the wireless module to be tested, and then starts the wireless performance test after the wireless module to be tested is determined as the testing version, so that the testing accuracy is improved.
An embodiment of the present invention further provides a storage medium, as shown in fig. 8, on which a computer program 601 is stored, and when the instructions are executed by a processor, the steps of the test method based on the wireless module in the foregoing embodiments are implemented. The storage medium is also stored with audio and video stream data, characteristic frame data, an interactive request signaling, encrypted data, preset data size and the like. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
An embodiment of the present invention further provides an electronic device, as shown in fig. 9, the electronic device may include a processor 51 and a memory 52, where the processor 51 and the memory 52 may be connected by a bus or in another manner, and fig. 9 takes the connection by the bus as an example.
The processor 51 may be a Central Processing Unit (CPU). The Processor 51 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 52, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as the corresponding program instructions/modules in the embodiments of the present invention. The processor 51 executes various functional applications and data processing of the processor by running non-transitory software programs, instructions and modules stored in the memory 52, that is, implements the wireless module based test method in the above method embodiments.
The memory 52 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 51, and the like. Further, the memory 52 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 52 may optionally include memory located remotely from the processor 51, and these remote memories may be connected to the processor 51 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 52 and when executed by the processor 51 perform the wireless module based testing method in the embodiment shown in fig. 3-5.
The details of the electronic device may be understood by referring to the corresponding descriptions and effects in the embodiments shown in fig. 3 to fig. 5, which are not described herein again.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (9)

1. A wireless module test system applied to a gateway, comprising: the firmware and the accompanying device are tested and,
the test firmware is arranged in the gateway and is connected with a plurality of wireless modules to be tested in the gateway through serial ports, the test firmware sends serial port detection commands to the wireless modules to be tested, and the test firmware starts a wireless performance test according to software version information fed back by the wireless modules to be tested; after the wireless performance test is started, the wireless module to be tested and the accompanying equipment complete the wireless module performance test through data interaction according to the serial port detection command and the corresponding wireless protocol to obtain a test result, the wireless module to be tested comprises a WIFI module to be tested, a Zigbee module to be tested and a BLe module to be tested, and the accompanying equipment is in a test waiting state before the test and after the test is completed; the test firmware detects whether the serial port communication connected with the wireless module to be tested is normal before sending a serial port detection command to the wireless module to be tested; when the serial port communication is normal, sending a serial port detection command to the wireless module to be detected; when the serial communication is in a problem, the test firmware sends out an error prompt, and after the serial communication is repaired, the test firmware detects the serial communication again until the serial communication is normal and then sends a serial detection command to the wireless module to be tested; the performance test comprises a network access and network exit test, and the test result comprises the results of signal intensity calculation, signal parameter acquisition, communication packet loss rate test and communication timeliness test;
the accompanying equipment is used for obtaining parameters in the network access and network exit tests to perform signal intensity calculation, obtaining configuration parameters, calculating communication packet loss rate and calculating communication timeliness.
2. The system for testing a wireless module applied to a gateway according to claim 1, further comprising: and the microprocessor is connected with the test firmware and is used for sending a test instruction to the test firmware, and the test firmware sends a serial port detection command to the wireless module to be detected according to the test instruction.
3. The system of claim 2, wherein the test firmware receives the test result and sends the test result to the microprocessor for display.
4. A wireless module testing method applied to a gateway is characterized by comprising the following steps:
sending a serial port detection command to a wireless module to be detected in a gateway through a serial port, wherein the wireless module to be detected comprises a WIFI module to be detected, a Zigbee module to be detected and a BLe module to be detected, and an accompanying device is in a test waiting state before testing and after testing is completed and is used for acquiring parameters in network access and network exit testing to perform signal intensity calculation, configuration parameters, communication packet loss rate calculation and communication timeliness calculation; the test firmware detects whether the serial port communication connected with the wireless module to be tested is normal before sending a serial port detection command to the wireless module to be tested; when the serial port communication is normal, sending a serial port detection command to the wireless module to be detected; when the serial communication is in a problem, the test firmware sends out an error prompt, and after the serial communication is repaired, the test firmware detects the serial communication again until the serial communication is normal and then sends a serial detection command to the wireless module to be tested;
receiving software version information fed back by the wireless module to be tested according to the serial port detection command;
judging whether the wireless module to be tested is a test module according to the software version information;
when the wireless module to be tested is determined to be a testing module, a serial port detection command is sent to the wireless module to be tested;
and receiving a test result of the wireless module to be tested performing performance test with the accompanying equipment according to the serial port detection command and the corresponding wireless protocol, wherein the test result comprises the results of signal intensity calculation, signal parameter acquisition, communication packet loss rate test and communication timeliness test.
5. The method for testing the wireless module applied to the gateway according to claim 4, wherein the step of receiving the test result of the performance test of the wireless module to be tested and the accompanying device according to the serial port test command and the corresponding wireless protocol comprises the following steps:
carrying out network access and network exit tests on the wireless module to be tested and the accompanying equipment through a corresponding wireless protocol according to the serial port detection command;
and receiving a test result obtained by calculating the wireless module to be tested and the accompanying equipment according to the test parameters in the network access and network quitting test.
6. The method for testing the wireless module applied to the gateway according to claim 4, further comprising:
obtaining a test result generated by the wireless module to be tested;
and sending the test result to a microprocessor for display.
7. A wireless module testing device applied to a gateway is characterized by comprising:
the command sending module is used for sending a serial port detection command to a wireless module to be detected in the gateway through a serial port and receiving software version information fed back by the wireless module to be detected according to the serial port detection command; judging whether the wireless module to be tested is a test module according to the software version information; when the wireless module to be tested is determined to be a testing module, a serial port detection command is sent to the wireless module to be tested, the wireless module to be tested comprises a WIFI module to be tested, a Zigbee module to be tested and a BLe module to be tested, the accompanying equipment is in a test waiting state before testing and after testing is completed, and the accompanying equipment is used for obtaining parameters in network access and network exit testing to perform signal intensity calculation, obtaining configuration parameters, calculating communication packet loss rate and calculating communication timeliness; the test firmware detects whether the serial port communication connected with the wireless module to be tested is normal before sending a serial port detection command to the wireless module to be tested; when the serial port communication is normal, sending a serial port detection command to the wireless module to be detected; when the serial communication is in a problem, the test firmware sends out an error prompt, and after the serial communication is repaired, the test firmware detects the serial communication again until the serial communication is normal and then sends a serial detection command to the wireless module to be tested;
and the result receiving module is used for receiving a test result of the performance test of the wireless module to be tested and the accompanying equipment according to the serial port detection command and the corresponding wireless protocol, wherein the test result comprises the results of signal strength calculation, signal parameter acquisition, communication packet loss rate test and communication timeliness test.
8. A computer-readable storage medium storing computer instructions for causing a computer to execute the method for testing a radio module applied to a gateway according to any one of claims 4 to 6.
9. An electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the method for testing a wireless module applied to a gateway according to any one of claims 4 to 6.
CN202010578502.8A 2020-06-22 2020-06-22 Wireless module testing system, method and device applied to gateway Active CN111756597B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010578502.8A CN111756597B (en) 2020-06-22 2020-06-22 Wireless module testing system, method and device applied to gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010578502.8A CN111756597B (en) 2020-06-22 2020-06-22 Wireless module testing system, method and device applied to gateway

Publications (2)

Publication Number Publication Date
CN111756597A CN111756597A (en) 2020-10-09
CN111756597B true CN111756597B (en) 2021-05-18

Family

ID=72676557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010578502.8A Active CN111756597B (en) 2020-06-22 2020-06-22 Wireless module testing system, method and device applied to gateway

Country Status (1)

Country Link
CN (1) CN111756597B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113453188A (en) * 2021-06-24 2021-09-28 国汽(北京)智能网联汽车研究院有限公司 Intelligent networking automobile wireless safety monitoring system, method and storage medium
CN113904954B (en) * 2021-08-27 2023-09-01 深圳市有方科技股份有限公司 System for testing wireless communication module
CN113890635A (en) * 2021-09-29 2022-01-04 四川虹美智能科技有限公司 Detection tool, detection device, detection method and medium for intelligent product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107197475A (en) * 2016-03-14 2017-09-22 重庆邮电大学 A kind of sensing node identifier resolution method of testing and system based on multithreading
US10033621B2 (en) * 2015-12-15 2018-07-24 At&T Intellectual Property I, L.P. Method and apparatus for initiating internet connection speed testing on a residential gateway
CN108924042A (en) * 2018-06-14 2018-11-30 芜湖康爱而电气有限公司 The things-internet gateway and implementation method of transparent transmission between a kind of multi-protocols
CN109618363A (en) * 2018-11-14 2019-04-12 青岛海信电子设备股份有限公司 Mobile gateway test macro and method
CN110430096A (en) * 2019-08-06 2019-11-08 深圳市同维通信技术有限公司 A kind of gateway test method and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10033621B2 (en) * 2015-12-15 2018-07-24 At&T Intellectual Property I, L.P. Method and apparatus for initiating internet connection speed testing on a residential gateway
CN107197475A (en) * 2016-03-14 2017-09-22 重庆邮电大学 A kind of sensing node identifier resolution method of testing and system based on multithreading
CN108924042A (en) * 2018-06-14 2018-11-30 芜湖康爱而电气有限公司 The things-internet gateway and implementation method of transparent transmission between a kind of multi-protocols
CN109618363A (en) * 2018-11-14 2019-04-12 青岛海信电子设备股份有限公司 Mobile gateway test macro and method
CN110430096A (en) * 2019-08-06 2019-11-08 深圳市同维通信技术有限公司 A kind of gateway test method and equipment

Also Published As

Publication number Publication date
CN111756597A (en) 2020-10-09

Similar Documents

Publication Publication Date Title
CN111756597B (en) Wireless module testing system, method and device applied to gateway
CN108141385B (en) Cloud-based system and method for managing test configuration of cable test equipment
CN103841466B (en) Screen prjection method, computer terminal and mobile terminal
WO2021035634A1 (en) Remote diagnosis method and system for vehicles
CN111341090A (en) Bluetooth remote controller pressure measurement method, control device and computer readable storage medium
CN112087354A (en) Communication protocol testing method and device, electronic equipment and storage medium
CN111813622B (en) Equipment monitoring method and device
CN111338221B (en) Multi-device self-adaptive control method, device and system
CN113672441A (en) Method and device for testing intelligent equipment
CN108738059B (en) WIFI module testing method and device
CN108307414B (en) Wi-Fi connection abnormity processing method and device of application program, terminal and storage medium
CN106598793B (en) Test system and test method based on BIOS serial port log data
CN105549995A (en) Audio device upgrading method and apparatus
CN101793937A (en) Wire automatic control system for electric control cabinet and detection method thereof
CN111683012A (en) Information reporting method and device, electronic equipment and storage medium
CN110750088B (en) Data detection method and related product
CN112084076A (en) Test method, electronic device, and storage medium
CN110209142B (en) PLC module connection and detection method, device and detection equipment
CN102065316A (en) Automatic set top box level test device and method
CN101459919B (en) Network selecting method and apparatus
CN110865931A (en) Simulation method, simulation device, electronic device, and storage medium
CN109617626B (en) Bluetooth module testing method, device, terminal and storage medium
CN115396282B (en) Information processing method, system and device
CN115086214B (en) System and method for detecting set, electronic equipment and storage medium
CN115967660A (en) Method and device for testing CAN protocol conversion, terminal equipment and storage medium

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