CN113612659B - Device networking test method and device, electronic device and storage medium - Google Patents
Device networking test method and device, electronic device and storage medium Download PDFInfo
- Publication number
- CN113612659B CN113612659B CN202110882467.3A CN202110882467A CN113612659B CN 113612659 B CN113612659 B CN 113612659B CN 202110882467 A CN202110882467 A CN 202110882467A CN 113612659 B CN113612659 B CN 113612659B
- Authority
- CN
- China
- Prior art keywords
- test
- tested
- router
- state
- intelligent
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a device networking test method, a device, an electronic device and a storage medium, wherein the method comprises the following steps: determining a testing strategy corresponding to the intelligent device to be tested currently; controlling a switch working state of an intelligent switch based on the test strategy to adjust a router state of the router device based on the switch working state; and carrying out networking test on the intelligent equipment to be tested based on the router state. According to the technical scheme, the technical problems that when the networking test is carried out on the equipment to be tested in the prior art, the cost is high and the efficiency is low due to the fact that the equipment to be tested needs to be involved in a manual mode are solved, the technical problems that when the networking test is carried out on the equipment to be tested in the prior art, the working state of a router needs to be adjusted manually, the efficiency is low and the labor cost is high are solved, and the technical effect of automatically and conveniently carrying out the networking test on the equipment to be tested is achieved.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a device networking test method and device, electronic equipment and a storage medium.
Background
With the development of device intellectualization and network popularization, users have increasingly higher requirements on networking performance of intelligent devices. In order to ensure that the performance of the intelligent equipment used by the user is better, the intelligent equipment can be subjected to network disconnection reconnection test before the intelligent equipment leaves a factory, so that the intelligent equipment used by the user can be automatically connected with a corresponding network.
At present, the adopted disconnected network reconnection test mainly comprises the following steps: the method comprises the steps that a test user manually disconnects a power supply corresponding to a router so that the intelligent equipment is in a network disconnection state, then manually powers on the router so that a wifi network of the router covers a certain area, and further detects whether the intelligent equipment is successfully connected with the network or not so as to determine a networking test result of the intelligent equipment.
The inventors found that when implementing the present technical solution based on the above-described mode, the following problems exist:
at present, networking test of intelligent equipment is mainly realized by a manual mode, and when batch disconnection reconnection test is required for the intelligent equipment, more test users are required; further, if the test is performed for a long time, for example, a broken network reconnection test for more than one thousand times or 24 hours continuously, it is necessary to test that the user is always on duty and repeatedly perform the same operation, which has problems of high labor cost and low efficiency. And thirdly, due to the fact that the intelligent equipment is manually participated, the problem that the test result is unqualified due to misoperation exists, and at the moment, the intelligent equipment subjected to false detection needs to be operated again, so that the problem of test cost improvement is caused.
Based on the above, the currently adopted testing method has the problems of higher labor cost, lower testing efficiency and higher testing error rate.
Disclosure of Invention
The invention provides a device networking test method, a device, electronic equipment and a storage medium, so as to realize the technical effects of automatically and conveniently carrying out networking test on equipment to be tested.
In a first aspect, an embodiment of the present invention provides a device networking test method, including:
determining a testing strategy corresponding to the intelligent device to be tested currently;
controlling a switch working state of the intelligent switch based on the test strategy to adjust a router state of the router device based on the switch working state;
and carrying out networking test on the current intelligent equipment to be tested based on the router state.
In a second aspect, an embodiment of the present invention further provides a device networking test apparatus, including:
the test strategy determining module is used for determining a test strategy corresponding to the intelligent device to be tested currently;
the router state determining module is used for controlling the switch working state of the intelligent switch based on the test strategy so as to adjust the router state of the router equipment based on the switch working state;
and the testing module is used for carrying out networking test on the current intelligent equipment to be tested based on the router state.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the device networking test method as described in any of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a device networking test method according to any of the embodiments of the present invention.
According to the technical scheme, when the equipment to be tested is tested, the testing strategy corresponding to the equipment to be tested can be determined, the switch working state of the intelligent switch is controlled based on the testing strategy, and the router state of the router equipment is adjusted based on the switch working state, so that the current intelligent equipment to be tested is subjected to networking test based on the router state, the technical problems that labor cost is high, testing efficiency is low and a certain error rate exists in networking test of the equipment to be tested in the prior art are solved, the testing strategy matched with the intelligent equipment to be tested can be determined, networking test of the intelligent equipment to be tested is further carried out based on the corresponding testing strategy, testing accuracy and convenience are improved, and meanwhile, the technical effect of labor cost is reduced is achieved.
Drawings
In order to more clearly illustrate the technical solution of the exemplary embodiments of the present invention, a brief description is given below of the drawings required for describing the embodiments. It is obvious that the drawings presented are only drawings of some of the embodiments of the invention to be described, and not all the drawings, and that other drawings can be made according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for testing networking of devices according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a device networking test method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of another embodiment of a method for testing networking of devices according to the present invention;
FIG. 4 is a schematic diagram of a device networking testing apparatus according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a schematic flow chart of a device networking test method according to an embodiment of the present invention, where the method may be performed by a device networking test apparatus, and the apparatus may be implemented in software and/or hardware, and the hardware may be an electronic device, such as a mobile terminal or a PC, before the device leaves the factory.
Before the technical scheme of the embodiment of the invention is introduced, an application scene can be exemplified. In order to improve user experience, the intelligent devices used by users are generally tested before leaving factories. That is, before each intelligent device leaves the factory or is sold online, the intelligent device needs to be tested, and whether the intelligent device is a qualified product or not is determined according to a test result, so that the qualified product leaves the factory and is sold online. The test generally comprises a device performance test, and the device performance test comprises a disconnected network reconnection test. The disconnected network reconnection test can be understood as determining whether the intelligent device can be reconnected to the wifi network corresponding to a certain router when the router is updated from the disconnected network state to the networking state on the premise that the intelligent device is already connected to the wifi network corresponding to the certain router. Reference will now be made in detail to embodiments of the invention.
As shown in fig. 1, the method of this embodiment includes:
s110, determining a testing strategy corresponding to the intelligent device to be tested currently.
If networking test is to be performed on a certain intelligent device, the intelligent device can be used as the intelligent device to be tested currently. For example, if mobile terminal a is currently to be tested for networking, mobile terminal a may be considered the current smart device to be tested. The device to be tested can be any intelligent device which needs to be connected with wifi. A test policy may be understood as a policy how to test a current smart device to be tested. The test strategy may include a test period for testing the device under test. The test period can be understood as how often the switch operation state of the intelligent switch is adjusted every interval, for example, the test period is 10S, and the switch operation state of the intelligent switch can be adjusted every 10S.
It should be noted that, the test strategies corresponding to different intelligent devices to be tested may be the same or different, and the user may set the test strategy of each intelligent device to be tested according to the actual requirement; or automatically acquiring the device performance of the intelligent device to be tested, and determining the testing strategy based on the device performance, wherein at the moment, when the device performances of the two intelligent devices are different, the testing strategies corresponding to the two intelligent devices are different.
Specifically, after determining the intelligent device to be tested, a default testing strategy stored in the system in advance can be used as the testing strategy of the current intelligent device to be tested; the method comprises the steps of determining a testing strategy corresponding to the intelligent device to be tested, and storing the testing strategy into a database after the intelligent device to be tested is tested, wherein the testing strategy is stored into the database after the intelligent device to be tested is tested, so that when the intelligent device to be tested is required to be tested, the testing strategy corresponding to the intelligent device to be tested at present can be determined from the historical testing strategy stored in the database.
In this embodiment, the determining, from the historical test policies, the test policy corresponding to the current smart device to be tested may be: after the test of the to-be-tested equipment is finished each time, the test strategy can be stored in the database, and when the to-be-tested intelligent equipment is tested currently, one test can be randomly selected from the history test strategies to serve as the test strategy corresponding to the to-be-tested intelligent equipment currently. Or selecting one testing strategy which is most matched with the intelligent device to be tested from the historical testing strategies as the testing strategy of the intelligent device to be tested.
In this embodiment, the determining a test policy corresponding to the current smart device to be tested includes: and determining the testing strategy of the intelligent device to be tested currently according to the device performance of the intelligent device to be tested currently.
It should be noted that, the hardware performance of different intelligent devices is different, for example, the processor adopted by the intelligent device is different, the networking rate of the intelligent device with better processor is faster, and the networking rate of the intelligent device with general processor performance is slower, so that when the network disconnection reconnection test is performed on the intelligent device to be tested, the test strategy matched with the intelligent device to be tested can be determined.
The device performance may include at least one of a CPU, a graphics card, a memory, and a motherboard. There may be a certain device model of the current intelligent device to be tested, and the device performance of the intelligent device to be tested is determined based on the device model. For example, device performance of various models of devices of various brands may be stored in advance in a database, e.g., brand A as model P 1 Information such as cpu and memory used by the mobile terminal 1 is stored in a database. After the device model of the current intelligent device to be tested is obtained, the device performance corresponding to the device model can be determined according to the data stored in the database, and meanwhile, the testing strategy corresponding to the intelligent device to be tested can be determined.
For example, data corresponding to device models and device performances of different devices to be tested may be stored in advance in a database, and at least one to-be-selected test policy corresponding to the different device performances may be determined. When the method is applied specifically, after the equipment performance of the equipment to be tested is obtained, at least one testing strategy to be selected which is related to the equipment performance can be determined, and one testing strategy to be selected is selected from the at least one testing strategy to be selected as the testing strategy corresponding to the intelligent equipment to be tested currently.
In this embodiment, before determining the test policy corresponding to the current smart device to be tested, the method further includes: and establishing wireless communication between the current intelligent device to be tested and the router equipment so as to carry out networking test on the current intelligent device to be tested when the router state corresponding to the router equipment changes. It should be noted that, before the network connection test is performed on the intelligent device to be tested, wireless communication between the intelligent device to be tested and the router device needs to be established, that is, the network is accessed before the intelligent device to be tested is tested, and then the subsequent disconnected network reconnection test can be supported. Because the intelligent equipment only accesses the network, the intelligent equipment can be accessed again under the condition of network disconnection and networking, otherwise, the network disconnection reconnection test cannot be performed.
The router equipment is equipment for connecting local area network and wide area network in Internet, and can automatically select and set route according to channel condition, and can send signal according to optimum route and sequence. The router device is divided into a local router and a remote router, and the router mentioned in the embodiment of the present invention is mainly a local router. The local router is used to connect to network transmission media, such as optical, coaxial. The router device may establish a corresponding local area network. In this embodiment, the device to be tested may be connected to the wifi network of the router by means of a network configuration. After the wifi network is connected, the subsequent networking test, namely the disconnection reconnection test, can be performed.
S120, controlling the switch working state of the intelligent switch based on the test strategy so as to adjust the router state of the router equipment based on the switch working state.
The intelligent switch is connected with a power supply of the router device. The intelligent switch is used for controlling whether the power supply of the router device supplies power to the router device. Typically, the smart switch may be in two states, and the two states are a closed state and an open state, respectively. When the intelligent switch is in a closed state, a power supply corresponding to the router device can supply power to the router device, and correspondingly, the router device is also in a working state, namely, the router device can provide a wifi network state. When the intelligent switch is in an off state, a power supply corresponding to the router equipment cannot supply power to the router equipment, and correspondingly, the router equipment is also in an unoperated state, namely, the router equipment is in an off-network state, and the router equipment cannot provide a wifi network. The router states include an active state and an inactive state. The working state is a networking state, namely, a wifi network state can be provided; the inactive state is a disconnected network state, i.e. a state in which wifi networks cannot be provided.
Specifically, the switch working state of the intelligent switch can be controlled to be in a closed state or an open state based on the test strategy. When the working state of the switch is detected to be a closed state, the power supply can supply power to the router equipment, and the router state of the router equipment is a networking state, namely a wifi network providing state; when the working state of the switch is detected to be an off state, the power supply cannot supply power to the router equipment, and at the moment, the router state of the router equipment is in the off-network state, namely, the wifi network cannot be provided.
For example, referring to fig. 2, a control code corresponding to the test policy may be dynamically generated, and based on the control code, the on/off of the intelligent switch may be controlled, so as to adjust whether the router device may provide the wifi network. Referring to fig. 3, it is also possible to send a test policy to the smart switch, and execute the test policy based on a processor provided in the smart switch to determine a test result of the device to be tested.
It should be noted that the test strategy includes a switching duty cycle. A switching duty cycle may be understood as how often a switch closure is performed and how often a switch opening is performed. The switching duty cycle is also understood to be the frequency at which the switch is closed and opened.
Based on this, the switch operation state of the intelligent switch is controlled based on the test policy to adjust the router state of the router device based on the switch operation state, including: according to the switch working period in the test strategy, controlling the intelligent switch to be in a closed state and an open state periodically; and controlling a power supply corresponding to the router device to supply power to and cut off power from the router device according to the closing state and the opening state of the intelligent switch so as to adjust the router device to be in a network disconnection state and a network connection state.
For example, the switch duty cycle may be set to 5S, which may be once every five seconds to control the smart switch to close or open. If the interval time between the current time and the time when the last switch state is changed is detected to be 5S, the working state of the intelligent switch can be adjusted. When the intelligent switch is closed, the power supply corresponding to the router equipment can supply power to the router equipment, and the router state of the router equipment is a networking state at the moment, namely the state of the wifi network can be provided. The device to be tested may be connected to a network corresponding to the router device. Correspondingly, when the closing time reaches five seconds, the intelligent switch can be updated from the closing state to the opening state, the power supply corresponding to the router equipment cannot supply power to the router equipment, and at the moment, the router state of the router equipment is in a disconnected network state, namely, the state of the wifi network cannot be provided. The device to be tested cannot be connected to the network corresponding to the router.
And S130, networking test is conducted on the current intelligent equipment to be tested based on the router state.
It should be noted that, because the current intelligent device to be tested is already connected to the wifi network corresponding to the router device before the networking test is performed. Typically, the smart device to be tested may automatically connect to the wifi network when the router device is updated from a disconnected network state to a networked state.
Specifically, the router state can be controlled to carry out networking test on the current intelligent device to be tested, namely whether the intelligent device to be tested can be reconnected to a wifi network or not is determined through the disconnection and networking of the router device, so that the disconnected network reconnection test is realized.
In this embodiment, performing a network connection test on a current intelligent device to be tested based on a router state includes: if the router state is updated from the disconnected network state to the networking state, a reconnection test result of the current intelligent equipment to be tested is obtained, and the reconnection test result is used as the current test result; if the current test result is inconsistent with the preset test result and the inconsistent times reach a first preset time threshold, adjusting a test strategy corresponding to the current intelligent device to be tested so as to carry out networking test on the current intelligent device to be tested based on the adjusted test strategy.
The reconnection test result can be understood as a result of whether the intelligent device to be tested is connected with the wifi network currently. The reconnection test results may include one of a reconnected network and a non-reconnected network. The predetermined test result may be a result of reconnecting the network. The first preset number of times threshold may be preset, alternatively, the first preset number of times threshold may be set to five times. In this embodiment, the first preset number of times threshold may be set to be relatively smaller, and this setting mode has the following advantages: whether the testing strategy is matched with the current intelligent equipment to be tested or not can be rapidly determined, and the testing strategy corresponding to the intelligent equipment to be tested can be redetermined under the condition of no matching, so that the technical effect of testing efficiency is improved. Alternatively, if the number of networking tests for each smart device to be tested is 1000, the first preset number of times threshold may be 10.
Specifically, when the router state is detected to be updated from the disconnected network state to the networking state, it can be determined whether the current intelligent device to be tested is reconnected to the wifi network corresponding to the router device. And taking the obtained connection result as a reconnection test result. After the reconnection test result is determined, determining whether the current test result is consistent with the preset result, and if not, indicating that the current test result is not reconnection to the network. At this time, 1 may be accumulated in the number of times of non-reconnection to the network corresponding to the current smart device to be tested. Meanwhile, if the number of times of unconnected reconnection reaches a first preset number of times threshold, it is indicated that a certain fault exists in the current intelligent device to be tested, or that the test strategy is not matched with the current intelligent device to be tested, or that the network state of the current router device is unstable, so that reconnection cannot be successful, and the test strategy can be adjusted.
It can be understood that the reconnection failure times corresponding to different test strategies are the same, that is, if the number of times that the test result corresponding to the current test strategy is detected to be failure reaches the first preset number threshold, the current test strategy needs to be adjusted to continue to test the device to be tested based on the adjusted test strategy. ,
in order to further verify whether the current intelligent device to be tested can be reconnected successfully, a test strategy corresponding to the current intelligent device to be tested can be adjusted so as to carry out networking test on the intelligent device to be tested based on the adjusted test strategy.
In this embodiment, adjusting a test policy corresponding to the current smart device to be tested includes: and adjusting the working period of the switch in the test strategy.
It can be understood that in the practical application process, the switch working period is shorter, for example, the duration that the router device is in the networking state is shorter, the performance of the intelligent device to be tested is poor, the timeliness of the network connected is poor, and thus the problem of unsuccessful test results is caused. If the router device is in the networking state for a long time, the intelligent device to be tested can be successfully connected with the network, and the testing strategy can be adjusted at the moment, for example, the working period of a switch in the testing strategy is adjusted to be long, namely, the router device is in the networking state for a long time.
That is, to avoid the problem of inaccurate networking test results due to test cycles in the test strategy, the switch duty cycle in the test strategy may be dynamically adjusted, and optionally, the switch duty cycle may be adjusted to be longer, e.g., from 5S to 10S. And continuously carrying out networking test on the intelligent device to be tested based on the adjusted testing strategy.
It should be noted that if it is detected that the adjustment times of the test policy reach the preset adjustment times threshold and the networking times of the intelligent device to be tested do not reach the third times threshold, it is determined that the networking test of the intelligent device to be tested fails currently, and the method can be used for prompting.
Optionally, if the adjustment times corresponding to the test strategy are detected to reach a third preset times threshold, determining that the networking test result of the current intelligent device to be tested is unqualified.
That is, in practical application, the test strategy can be adjusted for multiple times to perform networking test on the intelligent device to be tested, if the adjusted times reach the preset times threshold, it is indicated that the disconnection reconnection test is still not successful after multiple times of adjustment, and it is indicated that the disconnection reconnection function of the intelligent device to be tested is insensitive, that is, the current intelligent device to be tested may have a certain fault, at this time, a user can be prompted, if the current intelligent device to be tested is failed in networking test, and re-inspection is needed.
On the basis of the technical scheme, the method further comprises the following steps: if the current test result is inconsistent with the preset test result and the inconsistent times reach a second preset time threshold, determining that the networking test of the current intelligent equipment to be tested is unqualified; the second preset times threshold is larger than the first preset times threshold.
It can be understood that, if the current test result is that the network is not reconnected, one can be accumulated on the times of unsuccessful reconnection, and when the accumulated times reach the second preset times threshold, optionally, 500 times, the probability of successful networking of the current intelligent device to be tested is lower, at this time, it can be determined that the current intelligent device to be tested is not passed, and the user can be prompted in a voice manner. The prompt content can be that the current test result of the intelligent device to be tested is failed, and the like.
According to the technical scheme, the power supply corresponding to the router equipment is connected to the intelligent switch, the intelligent switch equipment is remotely controlled, and the power supply of the router is operated for a plurality of times for a long time, so that the test efficiency of disconnecting and reconnecting the wifi network is improved.
According to the technical scheme, when the equipment to be tested is tested, the testing strategy corresponding to the equipment to be tested can be determined, the switch working state of the intelligent switch is controlled based on the testing strategy, and the router state of the router equipment is adjusted based on the switch working state, so that the current intelligent equipment to be tested is subjected to networking test based on the router state, the technical problems that labor cost is high, testing efficiency is low and a certain error rate exists in networking test of the equipment to be tested in the prior art are solved, the testing strategy matched with the intelligent equipment to be tested can be determined, networking test of the intelligent equipment to be tested is further carried out based on the corresponding testing strategy, testing accuracy and convenience are improved, and meanwhile, the technical effect of labor cost is reduced is achieved.
Example two
Fig. 4 is a schematic structural diagram of a device networking test apparatus according to a second embodiment of the present invention, where the apparatus includes: a test policy determination module 310, a router state determination module 320, and a test module 330.
The test policy determining module 310 is configured to determine a test policy corresponding to a current intelligent device to be tested; a router state determining module 320, configured to control a switch working state of the intelligent switch based on the test policy, so as to adjust a router state of the router device based on the switch working state; and the testing module 330 is configured to perform networking testing on the current intelligent device to be tested based on the router status.
On the basis of the technical scheme, the test strategy determining module is further used for, before being used for determining the test strategy corresponding to the intelligent device to be tested currently: and establishing wireless communication between the current intelligent device to be tested and the router equipment so as to carry out networking test on the current intelligent device to be tested when the router state corresponding to the router equipment changes. On the basis of the above technical solutions, the test policy determining module is further configured to: determining a testing strategy corresponding to the equipment performance of the intelligent equipment to be tested from at least one historical testing strategy according to the equipment performance of the intelligent equipment to be tested; or alternatively, the first and second heat exchangers may be,
and determining the equipment performance of the intelligent equipment to be tested currently, and generating the test strategy according to the equipment performance.
On the basis of the technical schemes, the working state of the switch comprises a closed state and an open state, the router state comprises a disconnected network state and a networking state, and the router state determining module comprises:
the switch state determining unit is used for controlling the intelligent switch to be in a closed state and an open state periodically according to the switch working period in the test strategy;
and the router state determining unit is used for controlling a power supply corresponding to the router device to supply power to and cut off power from the router device according to the closed state and the open state of the intelligent switch so as to adjust the router device to be in a network disconnection state and a network connection state.
On the basis of the technical scheme, the test module comprises:
the current test result determining unit is used for acquiring a reconnection test result of the current intelligent equipment to be tested and taking the reconnection test result as a current test result if the router state is updated from a disconnected network state to a networking state;
the adjusting unit is used for adjusting the testing strategy corresponding to the current intelligent equipment to be tested if the current testing result is inconsistent with the preset testing result and the inconsistent times reach a first preset times threshold value, so as to carry out networking testing on the current intelligent equipment to be tested based on the adjusted testing strategy.
Based on the above technical solutions, the test module is further configured to:
and (3) adjusting the working period of the switch in the test strategy.
On the basis of the technical schemes, the device further comprises: the prompt module is used for determining that the networking test of the current intelligent equipment to be tested is unqualified if the current test result is inconsistent with the preset test result and the inconsistent times reach a second preset time threshold; the second preset times threshold is larger than the first preset times threshold.
On the basis of the technical scheme, the device further comprises: the first detection module is used for determining that the networking test result of the current intelligent device to be tested is unqualified if the adjustment times corresponding to the test strategy reach a third preset times threshold.
According to the technical scheme, when the equipment to be tested is tested, the testing strategy corresponding to the equipment to be tested can be determined, the switch working state of the intelligent switch is controlled based on the testing strategy, and the router state of the router equipment is adjusted based on the switch working state, so that the current intelligent equipment to be tested is subjected to networking test based on the router state, the technical problems that labor cost is high, testing efficiency is low and a certain error rate exists in networking test of the equipment to be tested in the prior art are solved, the testing strategy matched with the intelligent equipment to be tested can be determined, networking test of the intelligent equipment to be tested is further carried out based on the corresponding testing strategy, testing accuracy and convenience are improved, and meanwhile, the technical effect of labor cost is reduced is achieved.
The device networking test device provided by the embodiment of the invention can execute the device networking test method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that each unit and module included in the above apparatus are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present invention.
Example III
Fig. 5 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention. Fig. 5 shows a block diagram of an exemplary electronic device 40 suitable for use in implementing the embodiments of the present invention. The electronic device 40 shown in fig. 5 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 5, the electronic device 40 is in the form of a general purpose computing device. Components of electronic device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, a bus 403 that connects the various system components (including the system memory 402 and the processing units 401).
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 404 and/or cache memory 405. Electronic device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard drive"). Although not shown in fig. 5, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 403 through one or more data medium interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored in, for example, memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The electronic device 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), one or more devices that enable a user to interact with the electronic device 40, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 40 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 411. Also, electronic device 40 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 412. As shown, network adapter 412 communicates with other modules of electronic device 40 over bus 403. It should be appreciated that although not shown in fig. 5, other hardware and/or software modules may be used in connection with electronic device 40, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 401 executes various functional applications and data processing by running programs stored in the system memory 402, for example, implements the device networking test method provided by the embodiment of the present invention.
Example IV
A fourth embodiment of the present invention also provides a storage medium containing computer-executable instructions for performing a device networking test method when executed by a computer processor.
The method comprises the following steps:
determining a testing strategy corresponding to the intelligent device to be tested currently;
controlling a switch working state of an intelligent switch based on the test strategy to adjust a router state of the router device based on the switch working state;
and carrying out networking test on the current intelligent equipment to be tested based on the router state.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (10)
1. A method of device networking testing, comprising:
determining a testing strategy corresponding to the intelligent device to be tested currently;
controlling a switch working state of the intelligent switch based on the test strategy to adjust a router state of the router device based on the switch working state;
networking test is carried out on the current intelligent equipment to be tested based on the router state;
the testing strategy is a strategy for testing the current intelligent equipment to be tested, the testing strategy comprises a testing period for testing the current intelligent equipment to be tested, and the testing period is a time interval for adjusting the switching working state of the intelligent switch every time; when the device performances of the two intelligent devices are different, the corresponding testing strategies are different;
before determining the testing strategy corresponding to the intelligent device to be tested currently, the method further comprises the following steps:
and establishing wireless communication between the current intelligent device to be tested and the router equipment so as to carry out networking test on the current intelligent device to be tested when the router state corresponding to the router equipment changes.
2. The method of claim 1, wherein the determining a test policy corresponding to a current smart device to be tested comprises:
determining a testing strategy corresponding to the equipment performance of the intelligent equipment to be tested from at least one historical testing strategy according to the equipment performance of the intelligent equipment to be tested; or alternatively, the first and second heat exchangers may be,
and determining the equipment performance of the intelligent equipment to be tested currently, and generating the test strategy according to the equipment performance.
3. The method of claim 1, wherein the switch operating states comprise a closed state and an open state, the router states comprise a disconnected state and a networked state, the controlling the switch operating states of the intelligent switch based on the test policy to adjust the router states of the router device based on the switch operating states comprises:
according to the switch working period in the test strategy, controlling the intelligent switch to be in a closed state or an open state periodically;
and controlling a power supply corresponding to the router device to supply power to or cut off power from the router device according to the closed state or the open state of the intelligent switch so as to adjust the router device to be in a networking state or a network disconnection state.
4. The method of claim 1, wherein the networking testing of the current smart device under test based on the router state comprises:
if the router state is updated from the disconnected network state to the networking state, a reconnection test result of the current intelligent equipment to be tested is obtained, and the reconnection test result is used as the current test result;
if the current test result is inconsistent with the preset test result and the inconsistent times reach a first preset time threshold, adjusting a test strategy corresponding to the current intelligent device to be tested, and carrying out networking test on the current intelligent device to be tested based on the adjusted test strategy.
5. The method of claim 4, wherein said adjusting a test policy corresponding to the current smart device under test comprises:
and (3) adjusting the working period of the switch in the test strategy.
6. The method as recited in claim 4, further comprising:
if the current test result is inconsistent with the preset test result and the inconsistent times reach a second preset time threshold, determining that the networking test of the current intelligent equipment to be tested is unqualified;
the second preset times threshold is larger than the first preset times threshold.
7. The method as recited in claim 4, further comprising:
and if the adjustment times corresponding to the test strategy reach a third preset times threshold, determining that the networking test result of the current intelligent equipment to be tested is unqualified.
8. A device networking test apparatus, comprising:
the test strategy determining module is used for determining a test strategy corresponding to the intelligent device to be tested currently;
the router state determining module is used for controlling the switch working state of the intelligent switch based on the test strategy so as to adjust the router state of the router equipment based on the switch working state;
the testing module is used for carrying out networking test on the current intelligent equipment to be tested based on the router state;
the testing strategy is a strategy for testing the current intelligent equipment to be tested, the testing strategy comprises a testing period for testing the current intelligent equipment to be tested, and the testing period is a time interval for adjusting the switching working state of the intelligent switch every time; when the device performances of the two intelligent devices are different, the corresponding testing strategies are different;
the test strategy determining module is used for determining a test strategy corresponding to the intelligent device to be tested, and is also used for: and establishing wireless communication between the current intelligent device to be tested and the router equipment so as to carry out networking test on the current intelligent device to be tested when the router state corresponding to the router equipment changes.
9. An electronic device, the electronic device comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the device networking test method of any of claims 1-7.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a device networking test method according to any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110882467.3A CN113612659B (en) | 2021-08-02 | 2021-08-02 | Device networking test method and device, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110882467.3A CN113612659B (en) | 2021-08-02 | 2021-08-02 | Device networking test method and device, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113612659A CN113612659A (en) | 2021-11-05 |
CN113612659B true CN113612659B (en) | 2023-05-12 |
Family
ID=78306529
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110882467.3A Active CN113612659B (en) | 2021-08-02 | 2021-08-02 | Device networking test method and device, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113612659B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115394071B (en) * | 2022-07-11 | 2023-11-24 | 佛山市厦欣科技有限公司 | WIFI module production control method for air conditioner |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104410549B (en) * | 2014-12-10 | 2018-09-28 | 上海斐讯数据通信技术有限公司 | The test system and method for router |
CN105337807B (en) * | 2015-11-30 | 2019-07-02 | 上海斐讯数据通信技术有限公司 | Router test macro and method |
CN106357477A (en) * | 2016-09-26 | 2017-01-25 | 美的智慧家居科技有限公司 | Distribution network test method and device |
CN111885679A (en) * | 2020-07-29 | 2020-11-03 | 宁波方太厨具有限公司 | Distribution network testing method and system of Internet of things equipment |
-
2021
- 2021-08-02 CN CN202110882467.3A patent/CN113612659B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113612659A (en) | 2021-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9704503B2 (en) | Command handling method, apparatus, and system | |
US20220053068A1 (en) | Methods, apparatuses and computer storage media for applet state synchronization | |
WO2021259013A1 (en) | Data processing method and apparatus, electronic device, and computer-readable medium | |
US20180295028A1 (en) | Method and apparatus of configuring and maintaining smart wifi device, device and computer storage medium | |
CN108768730A (en) | Method and apparatus for operating intelligent network adapter | |
CN111954240A (en) | Network fault processing method and device and electronic equipment | |
TW202013135A (en) | A computer-implemented method, computing device, and non-transitory computer-readable storage medium for managing a computing system | |
CN113612659B (en) | Device networking test method and device, electronic device and storage medium | |
CN114582333A (en) | Voice recognition method and device, electronic equipment and storage medium | |
CN111918236B (en) | Internet of things security sensor network searching method, device, equipment and storage medium | |
WO2021012741A1 (en) | Abnormal front-end operation reminder method based on experience library and related device | |
CN112017330B (en) | Intelligent lock parameter configuration method and device, intelligent lock and storage medium | |
CN110519258A (en) | Equipment accesses account control method, control device and readable storage medium storing program for executing | |
CN105163336A (en) | Method and system for optimizing stability of wireless network | |
CN114116343A (en) | Equipment testing method and device, electronic equipment and storage medium | |
CN110460642B (en) | Method and device for managing reading mode | |
CN113778798A (en) | Server control method, server control device, electronic device, and storage medium | |
CN113453376A (en) | Network configuration method, related device, equipment and storage medium | |
CN112615916A (en) | File deployment method and device, electronic equipment and storage medium | |
CN114785691B (en) | Network security control method and device, computer equipment and storage medium | |
CN110996374B (en) | Wireless network control method, device, equipment and medium | |
CN110716915A (en) | Method and device for operating database, electronic equipment and storage medium | |
CN114978895B (en) | Starting method, system, equipment and computer readable storage medium | |
CN113515461B (en) | Communication test method and device, electronic equipment and storage medium | |
CN117389594A (en) | Firmware upgrading method and device, electronic 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176 Applicant after: Jingdong Technology Information Technology Co.,Ltd. Address before: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176 Applicant before: Jingdong Shuke Haiyi Information Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |