Network distribution test method, system, computer equipment and medium for intelligent equipment
Through automated cycle traversal of the combination of routers and terminal devices in smart home appliance products, the problem of low manual testing efficiency is solved, and the efficient and comprehensive compatibility evaluation of smart device distribution network testing is achieved, which improves testing efficiency and accuracy.
Patent Information
- Application Number
- CN202111545368.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-16
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2041-12-16
AI Technical Summary
The compatibility testing of existing smart home appliances relies on manual operations, resulting in low testing efficiency and error-proneness, especially when it comes to version iteration, which greatly reduces the efficiency of distribution network testing.
Through automated cycles, the combination of routers and terminal devices of different models can be obtained and distribution network testing can be achieved to achieve one-click automatic testing of the distribution network compatibility of intelligent devices, and the connection between routers and terminal devices is controlled by computer programs, and automation Judge test results.
It greatly improves the efficiency of smart device distribution network testing, ensures the comprehensive integrity of the testing, reduces manual errors, and achieves fast and accurate compatibility assessment.
Smart Images

Figure CN114244759B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a network distribution test method, system, computer equipment and medium for intelligent devices. Background Art
[0002] Nowadays, the Internet of Things is everywhere in our lives, such as smart home appliances. The Internet of Things is still in its early stages of development. The theory is mature and smart products are initially commercialized. In this process, in addition to ensuring normal operation, the compatibility of smart products also reflects the key factors of performance. Therefore, how to design a method that can detect the compatibility capability indicators of smart home appliances is particularly important.
[0003] At present, the compatibility test of smart home appliances is still in the stage of manual verification. The compatibility of smart home appliances is mainly divided into mobile phone compatibility and router compatibility. The current main testing method is to manually operate different mobile phones and switch different routers to operate the network configuration. Not only is setting up the test environment time-consuming, labor-intensive and error-prone, but each version iteration also requires repeated testing, which greatly reduces the efficiency of network configuration testing. Summary of the invention
[0004] The embodiments of the present application provide a network configuration test method, system, computer device and medium for smart devices to solve the technical problem of low test efficiency caused by time-consuming, labor-intensive and error-prone manual testing.
[0005] On the one hand, the present application provides a network configuration test method for a smart device, comprising:
[0006] Select a router from N routers of different models as the current router, where N is a natural number;
[0007] Traverse various terminal devices of different models that establish connections with the current router to obtain corresponding network configuration information;
[0008] Performing a network configuration test on the smart device based on each corresponding network configuration information to obtain a corresponding network configuration result;
[0009] When the terminal device is traversed, the process returns to the step of selecting a router from the N routers of different models as the current router, until the N routers of different models are traversed;
[0010] Based on all the network configuration results, the compatibility test results between different models of routers and different models of terminal devices and the smart device are determined.
[0011] On the one hand, the present application provides a network configuration test system for a smart device, comprising:
[0012] A selection module is used to select a router from N routers of different models as the current router, where N is a natural number;
[0013] The first traversal module is used to traverse various terminal devices of different models connected to the current router to obtain corresponding network configuration information;
[0014] A network configuration module, used to perform a network configuration test on the smart device based on each corresponding network configuration information to obtain a corresponding network configuration result;
[0015] A second traversal module is used for returning to the step of selecting a router from N routers of different models as the current router when the traversal of the terminal device is completed, until the traversal of N routers of different models is completed;
[0016] A testing module is used to determine the compatibility test results between different models of routers and different models of terminal devices and the smart device based on all the network configuration results.
[0017] In one aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
[0018] Select a router from N routers of different models as the current router, where N is a natural number;
[0019] Traverse various terminal devices of different models that establish connections with the current router to obtain corresponding network configuration information;
[0020] Performing a network configuration test on the smart device based on each corresponding network configuration information to obtain a corresponding network configuration result;
[0021] When the terminal device is traversed, the process returns to the step of selecting a router from the N routers of different models as the current router, until the N routers of different models are traversed;
[0022] Based on all the network configuration results, the compatibility test results between different models of routers and different models of terminal devices and the smart device are determined.
[0023] In one aspect, the present application provides a computer-readable medium storing a computer program, wherein when the computer program is executed by a processor, the processor performs the following steps:
[0024] Select a router from N routers of different models as the current router, where N is a natural number;
[0025] Traverse various terminal devices of different models that establish connections with the current router to obtain corresponding network configuration information;
[0026] Performing a network configuration test on the smart device based on each corresponding network configuration information to obtain a corresponding network configuration result;
[0027] When the terminal device is traversed, the process returns to the step of selecting a router from the N routers of different models as the current router, until the N routers of different models are traversed;
[0028] Based on all the network configuration results, the compatibility test results between different models of routers and different models of terminal devices and the smart device are determined.
[0029] The embodiment of the present application provides a network configuration test method for smart devices, which first selects a router from N routers of different models as the current router, then traverses the terminal devices of different models connected to the current router, obtains the corresponding network configuration information, then performs network configuration test on the smart device based on the corresponding network configuration information, and obtains the corresponding network configuration result. When the terminal devices are traversed, the next current router is selected and the terminal devices of different models connected to the current router are traversed to obtain the corresponding network configuration information, and the network configuration test on the smart device based on the corresponding network configuration information is performed to obtain the corresponding network configuration result, until the traversal of N routers of different models is completed. Finally, the compatibility test results between the routers of different models and the terminal devices of different models and the smart device are determined based on all network configuration results. By automatically traversing the network configuration results of the combination of each current router and each terminal device, and automatically judging the test results according to the network configuration results, a one-key automatic test of the network configuration compatibility test of the smart device is realized. Compared with the traditional manual test, the efficiency of the network configuration test of the smart device is greatly improved, and the comprehensive integrity of the test is guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0031] in:
[0032] Figure 1 A flowchart of a network configuration test method for a smart device in one embodiment;
[0033] Figure 2A structural block diagram of a network distribution test system for smart devices in one embodiment;
[0034] Figure 3 FIG. 4 is a structural block diagram of a computer device in one embodiment. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] like Figure 1 As shown, in one embodiment, a network configuration test method for a smart device is provided. The network configuration test method for a smart device can be applied to both a terminal and a server. This embodiment is illustrated by applying to a server. The network configuration test method for a smart device specifically includes the following steps:
[0037] Step 102: Select a router from N routers of different models as the current router, where N is a natural number.
[0038] Among them, the current router refers to the router that needs to be tested for network configuration. Routers of different models can be routers of different brands and models, or routers of the same brand and models. N is the number of routers. In order to improve the compatibility performance of smart devices and routers, the value of N is as large as possible, such as N=80, that is, a large number of routers are tested for network configuration to improve the comprehensiveness of the test, so that the compatibility of smart devices can be improved by referring to the results of the comprehensive network configuration test in the future, and the compatibility performance between smart devices and routers can be improved. Specifically, a router can be randomly selected as the current router, or each router can be identified in advance, and a sequence table corresponding to the identification can be set and stored in the server, and the current router can be selected according to the identification in the read sequence table. Preferably, the current router is selected in the order of the sequence table to avoid repeated selection or missed selection caused by random selection, thereby ensuring that each different router is selected as the current router and improving the efficiency of subsequent network configuration testing.
[0039] Step 104, traverse various terminal devices of different models that are connected to the current router to obtain corresponding network configuration information.
[0040] Among them, the terminal device refers to a device used for network configuration, for example, mobile phones, tablets, smart phone watches and other devices of different types and systems (such as Android or IOS systems, etc.). Terminal devices of different models can be devices of different models of different brands, or devices of different models of the same brand. In order to improve the compatibility performance of smart devices and terminal devices, a large number of terminal devices can be pre-selected for network configuration testing to improve the comprehensiveness of the test, so that the compatibility of smart devices can be improved by referring to the results of comprehensive network configuration testing in the future, and the compatibility performance between smart devices and terminal devices can be improved. Network configuration information refers to information related to network configuration extracted from the terminal device connected to the current router, such as the name, password, connection time, etc. of the router. Traversal refers to accessing each terminal device one by one. Specifically, the terminal switching module can be used to implement traversal of each terminal device of different models, that is, each terminal device establishes a connection with the current router one by one, and obtains the network configuration information of the current router and each terminal device of different models. For example, if there are M terminal devices, there are M corresponding network configuration information. It can be understood that in this embodiment, by traversing each terminal device, automatic switching of the connection between each terminal device and the current router is achieved, avoiding the time-consuming, error-prone and omission-prone problems of manual traversal, and greatly improving the efficiency of obtaining distribution network information.
[0041] Step 106: Perform network configuration test on the smart device based on each corresponding network configuration information to obtain corresponding network configuration result.
[0042] Among them, the network configuration result is used to reflect whether the network configuration of the smart device is successful under the network configuration information of the current router and the device terminal. Network configuration test refers to the test of the network configuration information of the smart device. In this embodiment, it is a test of the network configuration effect between the smart device and the current router, and the smart device and the terminal device. Specifically, it is possible to simulate the manual network configuration test operation, pre-write the network configuration test script according to the network configuration information, and then execute the network configuration test script, for example, control the APP installed on the mobile terminal to realize the automated network configuration test, and through the automated test method, realize the network configuration test of each combination of the current router and different models of terminal devices.
[0043] Step 108, when the terminal devices are traversed, the process returns to the step of selecting a router from N routers of different models as the current router, until the traversal of N routers of different models is completed.
[0044] Specifically, when the terminal devices are traversed, a round of network configuration test process between the current router and each terminal device is completed, and then the process returns to step 102. Specifically, the router switching module can be used to continue selecting the next current router to perform the network configuration test process such as step 104-step 106. Taking the number of terminal devices in step 104 as M as an example, there are N×M combinations of routers and terminal devices. Therefore, when N routers of different models are traversed, N rounds of network configuration test process between the current router and each terminal device are completed. The number of network configuration results at this time is N×M, which means that the network configuration test of each router and terminal device is realized, thereby ensuring the integrity of the network configuration test of the smart device and improving the accuracy of the network configuration test.
[0045] Step 110: Determine the compatibility test results between different models of routers and different models of terminal devices and smart devices based on all network configuration results.
[0046] Among them, the test results are used to reflect whether the combination of each current router and each corresponding terminal device is compatible with the smart device. Specifically, according to the network configuration results of the combination of each current router and each corresponding terminal device, it is judged whether different models of routers and different models of terminal devices are compatible with the smart device. It can be understood that all network configuration nodes in this embodiment are obtained by automatically looping through the network configuration information of each current router and each terminal device. Therefore, the corresponding test results are automatically judged according to all network configuration results, realizing a one-click automatic test of the network configuration compatibility test of the smart device. Compared with the traditional manual testing method, the network configuration test efficiency is greatly improved, and the comprehensive integrity of the network configuration test is guaranteed.
[0047] The network configuration test method of the above-mentioned intelligent device first selects a router from N routers of different models as the current router, then traverses the terminal devices of different models connected to the current router to obtain the corresponding network configuration information, then performs network configuration test on the intelligent device based on the corresponding network configuration information to obtain the corresponding network configuration result, and when the terminal device is traversed, the next current router is selected and the terminal devices of different models connected to the current router are traversed to obtain the corresponding network configuration information, and the network configuration test on the intelligent device based on the corresponding network configuration information is performed to obtain the corresponding network configuration result, until the traversal of N routers of different models is completed, and finally, the test results of the compatibility between the routers of different models and the terminal devices of different models and the intelligent device are determined based on all network configuration results. By automatically traversing the network configuration results of the combination of each current router and each terminal device, and automatically judging the test results according to the network configuration results, the efficiency of the intelligent device network configuration test is greatly improved compared with the traditional manual test, and the comprehensive integrity of the test is guaranteed.
[0048] In one embodiment, the step of traversing various terminal devices of different models connected to the current router to obtain corresponding network configuration information includes: controlling the current router to be in a powered-on state; and determining corresponding network configuration information from various terminal devices connected to the current router.
[0049] Specifically, only one current router is controlled to be in a powered-on state each time. Specifically, it can be realized by controlling the opening or closing of the smart socket. For example, one current router is controlled to be in a powered-on state, and the remaining N-1 routers are in a powered-off state. More specifically, on the Arduino development board (an open source electronic platform), a program for controlling the level of the 5V power output pin is written, and communication can be carried out through the serial port protocol at the same time, which is convenient for docking with the network distribution test script in the server. After the main control program is completed, a household 220V relay is connected to its 5V pin, and the common end and long closed contact of the relay are respectively connected to the two ends of the neutral line of the household socket. After the above design, the power supply of the smart socket can be controlled to be turned on and off in the form of a serial port protocol by inputting a control instruction on the server. Then read the corresponding network distribution information from each terminal device connected to the current router, that is, the network distribution information of the combination of the current router and each terminal device. It can be understood that in this embodiment, by controlling the current router to be in a powered-on state, the network distribution information of the combination of the current router and each terminal device is automatically obtained, and the reading efficiency of the network distribution information is improved.
[0050] In one embodiment, before the step of determining the corresponding network configuration information from each terminal device connected to the current router, it also includes: setting the wireless names of routers of different models to the same name.
[0051] Specifically, the wireless names of each router are set to be the same so that when the terminal devices connected to them perform network configuration, they are unaware of changes in the network environment, thereby achieving router compatibility testing and facilitating the rapid determination of subsequent network configuration information, further improving the efficiency of subsequent network configuration testing.
[0052] In one embodiment, the steps of performing network configuration tests on smart devices based on the corresponding network configuration information to obtain corresponding network configuration results include: obtaining a preset network configuration test script; executing the preset network configuration test script based on the corresponding network configuration information to generate network configuration results, and the network configuration results include network configuration success and network configuration failure.
[0053] Specifically, the preset network configuration test script can be implemented through the Airtest UI automation framework. The implementation process is: first, manually perform a network configuration test to obtain the UI poco element in the Airtest IDE, and store the poco element of each network configuration step in the configuration file as the execution step of the network configuration automation test. Then, directly execute the preset network configuration test script on the APP of the terminal device to generate the network configuration result. In this embodiment, the preset network configuration test script is used to realize automatic network configuration, thereby improving the network configuration efficiency of smart devices.
[0054] In one embodiment, the step of determining the test results of the compatibility between different models of routers and different models of terminal devices and smart devices based on all network configuration results includes: if the network configuration result is successful, determining the test result is that the combination of the corresponding router and the device terminal is compatible with the smart device; if the network configuration result is a failed network configuration, determining the test result is that the combination of the corresponding router and the device terminal is incompatible with the smart device.
[0055] In this embodiment, when the smart device is successfully networked, the combination of the corresponding router and the device terminal is determined to be compatible with the smart device. When the smart device fails to be networked, the combination of the corresponding router and the device terminal is determined to be incompatible with the smart device. That is, the corresponding combination of the router and the device terminal and the smart device compatibility test result are automatically determined according to the network configuration result, thereby improving the automation and efficiency of the smart device network configuration test. It is worth noting that in order to ensure the intuitiveness of the test results, after obtaining the network configuration results, the identification information of each different model of router and terminal device is recorded so that further processing can be performed based on the test results to improve the performance indicators of the smart device.
[0056] In one embodiment, before the step of traversing various terminal devices of different models that establish connection with the current router, it also includes: configuring corresponding port numbers for various device terminals of different models; the step of traversing various terminal devices of different models that establish connection with the current router includes: traversing the terminal devices based on the port numbers.
[0057] Specifically, the corresponding port number is configured for each device terminal of different models, and then the terminal devices are traversed based on the port number, thereby realizing the automatic switching of each device terminal. In a specific implementation, taking the terminal device as a mobile phone as an example, the mobile phone switching module is divided into two parts: switching of Android phones and switching of iOS phones. For switching of Android phones, the mobile phone turns on the developer mode and connects to the computer, obtains the unique number of the mobile phone through the adb device command, and saves it in the test configuration. In the process of automatic test network configuration, different Android phones are specified through different configuration numbers to establish connections and perform automatic network configuration testing. For the switching of iOS phones, first compile WDA (Webdriveragent, a Facebook open source iOS automation technology framework) through xcode to package and generate an ipa package, install the ipaApp on all tested iOS phones, and put all iOS phones in standby state through tidevice (Alibaba open source automation testing tool). Different mobile phones can be distinguished by specifying different port numbers, such as mobile phone A: 127.0.0.1:8100, mobile phone B: 127.0.0.1:8200. When performing automated network configuration testing, different smart phones are controlled by specifying different port numbers to perform mobile phone compatibility network configuration testing, realizing the traversal of terminal devices, that is, automated switching, improving the switching efficiency of terminal devices, and thus helping to improve the efficiency of subsequent network configuration testing.
[0058] In one embodiment, a router is installed on a smart socket. Before returning to the step of selecting a router from N routers of different models as the current router until the N routers of different models are traversed, the method further includes: sending a power-on or power-off instruction to the smart socket in the form of a serial port protocol to traverse routers of different models.
[0059] Specifically, the server sends a power-on or power-off command to the smart socket in the form of a serial port protocol to control the power-on or power-off of different routers. Taking the compatibility test of two routers (router A and router B) as an example, when testing the compatibility of router A, the power of the smart sockets of other routers is all turned off. When testing the compatibility of router B, the power of the smart sockets of router A and other routers is all turned off. The compatibility test of all routers is finally completed through cyclic switching. The server is connected to the Arduino development board through a USB serial port cable, and relays A and B are connected to the 5V and GND pins on the Arduino, and are connected to different signal output pins respectively. The relays are connected to a household ordinary socket respectively, and the power plug of the current router is connected to the ordinary socket. The traversal of all current routers is completed through cyclic switching, thereby realizing the traversal of each router, improving the efficiency of router switching, and thus helping to improve the efficiency of subsequent network distribution tests.
[0060] like Figure 2 As shown, in one embodiment, a network configuration test system for smart devices is proposed, including:
[0061] A selection module 202 is used to select a router from N routers of different models as a current router, where N is a natural number;
[0062] The first traversal module 204 is used to traverse various terminal devices of different models connected to the current router to obtain corresponding network configuration information;
[0063] The network configuration module 206 is used to perform a network configuration test on the smart device based on each corresponding network configuration information to obtain a corresponding network configuration result;
[0064] The second traversal module 208 is used to return to the step of selecting a router from N routers of different models as the current router when the terminal device is traversed, until the N routers of different models are traversed;
[0065] The testing module 210 is used to determine the compatibility test results between different models of routers and different models of terminal devices and the smart device based on all the network configuration results.
[0066] In one embodiment, the first traversal module includes:
[0067] A control unit, used for controlling the current router to be in a powered-on state;
[0068] The determination unit is used to control the determination of corresponding network configuration information from each of the terminal devices connected to the current router.
[0069] In one embodiment, the network configuration test system for smart devices further includes: a setting module, configured to set the wireless names of the routers of different models to the same name.
[0070] In one embodiment, the network distribution module includes:
[0071] An acquisition unit, used to acquire a preset network configuration test script;
[0072] An execution unit is used to execute the preset network configuration test script based on each of the network configuration information to generate the network configuration result, wherein the network configuration result includes a network configuration success and a network configuration failure.
[0073] In one embodiment, the test module includes:
[0074] A first testing unit, configured to determine, if the network configuration result is successful, that the test result is that the combination of the corresponding router and the device terminal is compatible with the smart device;
[0075] The second testing unit is configured to determine that the test result is that the combination of the corresponding router and the device terminal is incompatible with the smart device if the network configuration result is a network configuration failure.
[0076] In one embodiment, the network configuration test system for smart devices further includes: a configuration module for configuring corresponding port numbers for the device terminals of different models; and a second traversal module includes: a traversal unit for traversing the terminal devices based on the port numbers.
[0077] In one embodiment, the router is installed on the smart socket, and the network distribution test system of the smart device further includes:
[0078] The second traversal module is used to send a power-on or power-off instruction to the smart socket in a serial port protocol manner to traverse routers of different models.
[0079] Figure 3 FIG. 1 shows an internal structure diagram of a computer device in an embodiment. The computer device may be a server, including but not limited to a high-performance computer and a high-performance computer cluster. Figure 3 As shown, the computer device includes a processor, a memory and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may implement a network configuration test method for a smart device. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor may execute a network configuration test method for a smart device. Those skilled in the art will appreciate that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0080] In one embodiment, the network configuration test method for the smart device provided in the present application can be implemented in the form of a computer program. Figure 3 The computer device shown in the figure is run. The memory of the computer device can store various program templates constituting the network distribution test system of the intelligent device. For example, the selection module 202, the first traversal module 204, the network distribution module 206, the second traversal module 208, and the test module 210.
[0081] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: selecting a router from N routers of different models as a current router, where N is a natural number; traversing various terminal devices of different models connected to the current router to obtain corresponding network configuration information; performing network configuration tests on the smart device based on the corresponding network configuration information to obtain corresponding network configuration results; when the terminal device is traversed, returning to the step of selecting a router from N routers of different models as the current router, until the traversal of N routers of different models is completed; and determining the test results of the compatibility between routers of different models and terminal devices of different models and the smart device based on all the network configuration results.
[0082] In one embodiment, the step of traversing various terminal devices of different models connected to the current router to obtain corresponding network configuration information includes: controlling the current router to be in a powered-on state; and determining corresponding network configuration information from each terminal device connected to the current router.
[0083] In one embodiment, before the step of determining the corresponding network configuration information from each of the terminal devices connected to the current router, the step further includes: setting the wireless names of the routers of different models to the same name.
[0084] In one embodiment, the step of performing a network configuration test on the smart device based on each corresponding network configuration information to obtain a corresponding network configuration result includes: obtaining a preset network configuration test script; executing the preset network configuration test script based on each network configuration information to generate the network configuration result, and the network configuration result includes network configuration success and network configuration failure.
[0085] In one embodiment, the step of determining the test result of the compatibility between different models of routers and different models of terminal devices and the smart device based on all the network configuration results includes: if the network configuration result is a successful network configuration, determining that the test result is that the combination of the corresponding router and the device terminal is compatible with the smart device; if the network configuration result is a failed network configuration, determining that the test result is that the combination of the corresponding router and the device terminal is incompatible with the smart device.
[0086] In one embodiment, before the step of traversing the terminal devices of different models that establish connection with the current router, it also includes: configuring corresponding port numbers for the device terminals of different models; the step of traversing the terminal devices of different models that establish connection with the current router includes: traversing the terminal devices based on the port numbers.
[0087] In one embodiment, a router is installed on a smart socket. Before the step of returning to the step of selecting a router from N routers of different models as the current router until the traversal of N routers of different models is completed, it also includes: sending a power-on or power-off instruction to the smart socket in the form of a serial port protocol to traverse routers of different models.
[0088] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented: selecting a router from N routers of different models as a current router, where N is a natural number; traversing various terminal devices of different models connected to the current router to obtain corresponding network configuration information; performing a network configuration test on the smart device based on each corresponding network configuration information to obtain a corresponding network configuration result; when the terminal device is traversed, returning to the step of selecting a router from N routers of different models as the current router, until the traversal of N routers of different models is completed; and determining the test result of the compatibility between routers of different models and terminal devices of different models and the smart device based on all the network configuration results.
[0089] In one embodiment, the step of traversing various terminal devices of different models connected to the current router to obtain corresponding network configuration information includes: controlling the current router to be in a powered-on state; and determining corresponding network configuration information from each terminal device connected to the current router.
[0090] In one embodiment, before the step of determining the corresponding network configuration information from each of the terminal devices connected to the current router, the step further includes: setting the wireless names of the routers of different models to the same name.
[0091] In one embodiment, the step of performing a network configuration test on the smart device based on each corresponding network configuration information to obtain a corresponding network configuration result includes: obtaining a preset network configuration test script; executing the preset network configuration test script based on each network configuration information to generate the network configuration result, and the network configuration result includes network configuration success and network configuration failure.
[0092] In one embodiment, the step of determining the test result of the compatibility between different models of routers and different models of terminal devices and the smart device based on all the network configuration results includes: if the network configuration result is a successful network configuration, determining that the test result is that the combination of the corresponding router and the device terminal is compatible with the smart device; if the network configuration result is a failed network configuration, determining that the test result is that the combination of the corresponding router and the device terminal is incompatible with the smart device.
[0093] In one embodiment, before the step of traversing the terminal devices of different models that establish connection with the current router, it also includes: configuring corresponding port numbers for the device terminals of different models; the step of traversing the terminal devices of different models that establish connection with the current router includes: traversing the terminal devices based on the port numbers.
[0094] In one embodiment, a router is installed on a smart socket. Before the step of returning to the step of selecting a router from N routers of different models as the current router until the traversal of N routers of different models is completed, it also includes: sending a power-on or power-off instruction to the smart socket in the form of a serial port protocol to traverse routers of different models.
[0095] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0096] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0097] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A network distribution test method for smart devices, characterized in that: The network configuration test method of the smart device comprises: Select a router from N routers of different models as the current router, where N is a natural number; Traverse various terminal devices of different models that establish connections with the current router to obtain corresponding network configuration information; Performing a network configuration test on the smart device based on each corresponding network configuration information to obtain a corresponding network configuration result; When the terminal device is traversed, the process returns to the step of selecting a router from the N routers of different models as the current router, until the N routers of different models are traversed; Determine the compatibility test results between different models of routers and different models of terminal devices and the smart device based on all the network configuration results; The terminal device is a mobile phone, and the traversal of the terminal devices of different models that are connected to the current router also includes: According to the system of the mobile phone, the corresponding strategies are respectively adopted to traverse the terminal devices of different models that are connected to the current router: For a target phone with an Android system, turn on the developer mode of the target phone and connect the target phone to a computer, obtain the unique number of the target phone through the adb device command, save the unique number to the test configuration, and specify the corresponding Android phone through the configuration number during the automated test network configuration process to establish a connection to achieve traversal; For the target mobile phone with iOS system, compile Webdriveragent through xcode to generate ipa package, install the corresponding ipa App on the target mobile phone, and put all mobile phones with iOS system including the target mobile phone in standby state through tidevice. Different mobile phones with iOS system are distinguished by specifying different port numbers to achieve traversal.
2. The network distribution test method of the intelligent device according to claim 1, characterized in that: The step of traversing various terminal devices of different models connected to the current router to obtain corresponding network configuration information includes: Controlling the current router to be in a powered-on state; The corresponding network configuration information is determined from each of the terminal devices connected to the current router.
3. The network distribution test method of the intelligent device according to claim 2, characterized in that: Before the step of determining corresponding network configuration information from each of the terminal devices connected to the current router, the method further includes: Set the wireless names of the routers of different models to the same name.
4. The network configuration test method for a smart device according to claim 1, characterized in that: The step of performing a network configuration test on the smart device based on each corresponding network configuration information to obtain a corresponding network configuration result includes: Get the preset network configuration test script; The preset network configuration test script is executed based on each of the network configuration information to generate the network configuration result, which includes network configuration success and network configuration failure.
5. The network configuration test method for a smart device according to claim 4, characterized in that: The step of determining the test results of the compatibility between different models of routers and different models of terminal devices and the smart device based on all the network configuration results includes: If the network configuration result is successful, determining that the test result is that the combination of the corresponding router and the device terminal is compatible with the smart device; If the network configuration result is a network configuration failure, it is determined that the test result is that the combination of the corresponding router and the device terminal is incompatible with the smart device.
6. The network configuration test method for a smart device according to claim 1, characterized in that: Before the step of traversing various terminal devices of different models connected to the current router, the method further includes: Configuring corresponding port numbers for the terminal devices of different models; The step of traversing various terminal devices of different models that are connected to the current router includes: The terminal devices are traversed based on the port numbers.
7. The network configuration test method for a smart device according to claim 6, characterized in that: The router is installed on the smart socket, and before the step of returning to select a router from N routers of different models as the current router until the traversal of N routers of different models is completed, it also includes: A power-on or power-off instruction is sent to the smart socket in the form of a serial port protocol to traverse routers of different models.
8. A network distribution test system for intelligent devices, characterized in that: The network distribution test system of the smart device includes: A selection module is used to select a router from N routers of different models as the current router, where N is a natural number; The first traversal module is used to traverse various terminal devices of different models connected to the current router to obtain corresponding network configuration information; A network configuration module, used to perform a network configuration test on the smart device based on each corresponding network configuration information to obtain a corresponding network configuration result; A second traversal module is used for returning to the step of selecting a router from N routers of different models as the current router when the traversal of the terminal device is completed, until the traversal of N routers of different models is completed; A testing module, used to determine the compatibility test results between different models of routers and different models of terminal devices and the smart device based on all the network configuration results; The first traversal module is also used for: The terminal device is a mobile phone, and the traversal of the terminal devices of different models that are connected to the current router also includes: According to the system of the mobile phone, the corresponding strategies are respectively adopted to traverse the terminal devices of different models that are connected to the current router: For a target phone with an Android system, turn on the developer mode of the target phone and connect the target phone to a computer, obtain the unique number of the target phone through the adb device command, save the unique number to the test configuration, and specify the corresponding Android phone through the configuration number during the automated test network configuration process to establish a connection to achieve traversal; For the target mobile phone with iOS system, compile Webdriveragent through xcode to generate ipa package, install the corresponding ipa App on the target mobile phone, and put all mobile phones with iOS system including the target mobile phone in standby state through tidevice. Different mobile phones with iOS system are distinguished by specifying different port numbers to achieve traversal.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the network configuration testing method for the smart device as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the network configuration test method for a smart device as claimed in any one of claims 1 to 7 are implemented.
