A device testing method, computer program product, and electronic device

By using mobile storage devices to synchronize identification information and establishing connections with servers during equipment production testing, the problem of low testing efficiency when equipment is located in different local area networks is solved, enabling efficient parallel testing of multiple production lines.

CN116264557BActive Publication Date: 2025-11-18SHENZHEN XINRUISHI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211429357.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-15
Publication Date
2025-11-18
Estimated Expiration
2042-11-15

AI Technical Summary

Technical Problem

In existing technologies, the equipment and testing tools are located on different local area networks during equipment production testing, resulting in low testing efficiency and difficulty in achieving parallel testing of multiple production lines.

Method used

The identification information of the test device is synchronized to the device under test through a mobile storage device, and a connection is established using a server to associate the device under test with the test device. The test is performed directly using the P2P connection ID number or by forwarding test commands through the server.

Benefits of technology

It improves the efficiency of equipment production testing, supports parallel testing of multiple production lines, and solves the problem of difficulty in connecting equipment located in different local area networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116264557B_ABST
    Figure CN116264557B_ABST
Patent Text Reader

Abstract

The application provides a device testing method, a computer program product and an electronic device, wherein the device testing method applied to a device under test comprises the following steps: after being connected with a server in a mobile communication mode, reading identification information corresponding to a testing device stored in a mobile storage device; and sending the identification information and device information corresponding to the local device to the server, so that the testing device queries the device information corresponding to the identification information, and tests the device under test according to the device information. In the above scheme, the identification information of the testing device can be synchronized to the device under test by using an external mobile storage device, so that the connection relationship can be quickly established through the identification information, and production testing can be realized. Therefore, the device testing method provided by the embodiment of the application can improve the testing efficiency. In addition, the device testing method provided by the embodiment of the application also facilitates parallel testing of multiple production lines.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of equipment testing technology, and more specifically, to an equipment testing method, a computer program product, and an electronic device. Background Technology

[0002] In existing technologies, when conducting production testing on devices that can only connect to the internet via 4G / 5G, the devices cannot be connected via Ethernet cable, while the computer running the production testing software is on a local area network (LAN). Therefore, the production testing tool and the device under test (DUT) are located on different LANs. Because the production testing tool and the DUT are on different LANs, it is difficult for the production testing software to find and connect to the device for production testing, resulting in low testing efficiency. Summary of the Invention

[0003] The purpose of this application is to provide a device testing method, a computer program product, and an electronic device to solve the technical problem of low efficiency in the production testing of devices in the prior art.

[0004] In a first aspect, embodiments of this application provide a device testing method applied to a device under test. The method includes: after connecting to a server via mobile communication, reading identification information corresponding to the test device stored in a mobile storage device; sending the identification information and device information corresponding to the local device to the server, so that the test device can query the device information corresponding to the identification information and then test the device under test according to the device information.

[0005] In the above scheme, the identification information of the test device can be synchronized to the device under test (DUT) using an external mobile storage device; the server can then associate the DUT and the test device based on the synchronized identification information. Therefore, even if the DUT connects to the server via mobile communication, resulting in the DUT and the test device being located on different local area networks, they can quickly establish a connection through the aforementioned identification information, thereby enabling production testing. Therefore, compared to existing technologies where test devices are not easily searchable and connect to the DUT for production testing, the device testing method provided in this application embodiment can improve testing efficiency. Furthermore, the device testing method provided in this application embodiment also facilitates parallel testing across multiple production lines.

[0006] In an optional implementation, the device information includes a P2P connection ID number; after sending the identification information and the device information corresponding to the local machine to the server, the method further includes: receiving a connection request sent by the test device according to the P2P connection ID number, so as to establish a connection with the test device according to the connection request. In the above scheme, the test device can directly connect with the device under test according to the P2P connection ID number in the device information, thereby directly testing the device under test. Therefore, since the test device and the device under test can quickly and directly establish a connection after synchronizing the identification information of the test device to the device under test using an external mobile storage device, the device testing method provided by the embodiments of this application can improve the testing efficiency. In addition, the device testing method provided by the embodiments of this application also facilitates parallel testing of multiple production lines.

[0007] Secondly, embodiments of this application provide a device testing method applied to a testing device. The method includes: sending a query request to a server to query a device under test; wherein the query request includes identification information corresponding to the local device, and the device under test is connected to the server via mobile communication; receiving device information of the device under test corresponding to the identification information returned by the server; wherein the identification information stored in the server is read by the device under test from a mobile storage device; and testing the device under test based on the device information.

[0008] In the above scheme, the identification information of the test device can be synchronized to the device under test (DUT) using an external mobile storage device. The test device can then quickly associate with the DUT by querying the device information corresponding to the identification information through the server. Therefore, even if the DUT connects to the server via mobile communication, resulting in the DUT and the test device being located on different local area networks, they can quickly establish a connection through the identification information, thereby enabling production testing. Therefore, compared to existing technologies where the test device is not easily searchable and connects to the DUT for production testing, the device testing method provided in this application embodiment can improve testing efficiency. Furthermore, the device testing method provided in this application embodiment also facilitates parallel testing across multiple production lines.

[0009] In an optional implementation, the device information includes a P2P connection ID number; testing the device under test (DUT) based on the device information includes: establishing a connection with the DUT based on the P2P connection ID number; sending a test command to the DUT; and receiving the test result returned by the DUT based on the test command. In the above scheme, after the test device queries the device information corresponding to the identification information through the server, it can directly connect with the DUT based on the P2P connection ID number in the device information, thereby directly testing the DUT. Therefore, since the test device and the DUT can quickly and directly establish a connection after synchronizing the identification information of the test device to the DUT using an external mobile storage device, the device testing method provided in this application can improve testing efficiency. In addition, the device testing method provided in this application also facilitates parallel testing on multiple production lines.

[0010] In an optional implementation, testing the device under test (DUT) based on the device information includes: sending a test instruction to the server, causing the server to forward the test instruction to the DUT; wherein the test instruction includes the device information; and receiving a test result returned by the DUT based on the test instruction from the server; wherein the test result includes the identification information. In the above scheme, after the test device retrieves the device information corresponding to the identification information through the server, it can perform testing on the DUT through server forwarding. Therefore, since the test device and the DUT can quickly establish a connection through the server after synchronizing the test device's identification information to the DUT using an external mobile storage device, the device testing method provided in this application can improve testing efficiency. Furthermore, the device testing method provided in this application also facilitates parallel testing across multiple production lines.

[0011] In an optional implementation, before sending a query request to the server, the method further includes: writing the local identification information into the removable storage device. In the above scheme, the test device can write its own identification information into the removable storage device, thereby enabling the test device to synchronize its identification information to the device under test using an external removable storage device, quickly achieving the purpose of the test device testing the device under test. Therefore, the device testing method provided in this application embodiment can improve testing efficiency. Furthermore, the device testing method provided in this application embodiment also facilitates parallel testing across multiple production lines.

[0012] Thirdly, embodiments of this application provide a device testing method applied to a server. The method includes: receiving identification information corresponding to the test device and device information corresponding to the test device sent by the device under test; wherein the device under test is connected to the server via mobile communication, and the identification information is read by the device under test from a mobile storage device; storing the correspondence between the identification information and the device information; receiving a query request sent by the test device for querying the device under test; wherein the query request includes the identification information corresponding to the test device; querying the device information corresponding to the identification information, and sending the queried device information to the test device.

[0013] In the above scheme, the identification information of the test device can be synchronized to the device under test (DUT) using an external mobile storage device; the server can then associate the DUT and the test device based on the synchronized identification information. Therefore, even if the DUT connects to the server via mobile communication, resulting in the DUT and the test device being located on different local area networks, they can quickly establish a connection through the aforementioned identification information, thereby enabling production testing. Therefore, compared to existing technologies where test devices are not easily searchable and connect to the DUT for production testing, the device testing method provided in this application embodiment can improve testing efficiency. Furthermore, the device testing method provided in this application embodiment also facilitates parallel testing across multiple production lines.

[0014] Fourthly, embodiments of this application provide a computer program product, including computer program instructions, which, when read and executed by a processor, perform the device testing method as described in the first, second, or third aspect.

[0015] Fifthly, embodiments of this application provide an electronic device, including: a processor, a memory, and a bus; the processor and the memory communicate with each other via the bus; the memory stores computer program instructions executable by the processor, and the processor can execute the device testing method as described in the first, second, or third aspects by calling the computer program instructions.

[0016] Sixthly, embodiments of this application provide a computer-readable storage medium storing computer program instructions that, when executed by a computer, cause the computer to perform the device testing method as described in the first, second, or third aspect.

[0017] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, embodiments of this application are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A flowchart illustrating a device testing method applied to a device under test, provided in an embodiment of this application;

[0020] Figure 2 A flowchart illustrating a device testing method applied to a testing device, as provided in this application embodiment;

[0021] Figure 3 A flowchart illustrating a device testing method applied to a server, as provided in this application embodiment;

[0022] Figure 4 An interactive diagram illustrating an equipment testing method applied to a production testing system, provided as an embodiment of this application;

[0023] Figure 5 This is a schematic diagram of information interaction provided for an embodiment of this application;

[0024] Figure 6 A structural block diagram of a device testing apparatus applied to a device under test, provided in an embodiment of this application;

[0025] Figure 7 A structural block diagram of a device testing apparatus applied to a testing equipment, provided in an embodiment of this application;

[0026] Figure 8 A structural block diagram of a device testing apparatus for a server provided in an embodiment of this application;

[0027] Figure 9 This is a structural block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0028] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0029] Before introducing the device testing method provided in the embodiments of this application, a production testing system is first introduced, which may include the device under test, the testing equipment, and the server.

[0030] The device under test (DUT) refers to a device that needs to undergo production testing. In one implementation, according to this application, the DUT can be a device that can only access the network via mobile communication (e.g., 4G, 5G, etc.). In another implementation, the DUT can be any device; when the DUT accesses the network via mobile communication, the device testing method provided in this application can be used to test it.

[0031] Test equipment refers to equipment used to test the device under test (DUT). As a type of implementation equipment, test equipment can be equipped with production test software, which can be used to perform tests on the DUT.

[0032] It is understood that the embodiments of this application do not specifically limit the number of devices under test and testing devices in the above-mentioned production testing system. The number of devices under test can be greater than or equal to 1, and the number of testing devices can also be greater than or equal to 1.

[0033] When the number of devices under test and the number of testing devices are both 1, the testing device can be used to test the device under test; when the number of devices under test is greater than 1 and the number of testing devices is equal to 1, the testing device can be used to test multiple devices under test; when the number of devices under test and the number of testing devices are both greater than 1, each testing device can test one or more of the multiple devices under test.

[0034] It should be noted that when a test device tests multiple devices under test, as one implementation method, the test device can test multiple devices under test in parallel; as another implementation method, the test device can test multiple devices under test sequentially. The embodiments of this application do not impose specific limitations on this, and those skilled in the art can make appropriate adjustments according to the actual situation.

[0035] Based on the aforementioned production testing system, this application also provides a device testing method. The device testing methods applied to the device under test, the testing equipment, and the server within the production testing system are described in detail below.

[0036] First, the equipment testing methods applied to the device under test are described in detail. Please refer to... Figure 1 , Figure 1 A flowchart of a device testing method for a device under test provided in this application embodiment, the device testing method may include the following steps:

[0037] Step S101: After connecting to the server via mobile communication, read the identification information corresponding to the test device stored in the mobile storage device.

[0038] Step S102: Send identification information and the corresponding device information of the local machine to the server so that the test device can query the device information corresponding to the identification information and then test the device under test according to the device information.

[0039] Specifically, as described in the above embodiments, the device under test can be a device that can only access the network via mobile communication, or, when the device under test accesses the network via mobile communication, it can be tested using the device testing method provided in this application embodiment. Therefore, after the device under test connects to the server via mobile communication, it can execute the above step S101.

[0040] In step S101 above, the specific implementation of the mobile storage device is not specifically limited in this application embodiment. For example, the mobile storage device can be a TF card (Trans-flash Card), SD card (Secure Digital Memory Card), or USB flash drive (Universal Serial Bus Flash Disk), etc.

[0041] It is understandable that those skilled in the art can determine the specific type of mobile storage device to use based on the structure of the device under test. For example, if the device under test has a TF card slot, the mobile storage device can use a TF card; or, if the device under test has an SD card slot, the mobile storage device can use an SD card; or, if the device under test has a USB interface, the mobile storage device can use a USB flash drive.

[0042] The identification information corresponding to the test equipment refers to the information used to identify the test equipment. This application does not specifically limit the implementation of the identification information corresponding to the test equipment; those skilled in the art can make appropriate adjustments according to the actual situation. For example, the identification information may include the test equipment's MAC address (Media Access Control Address), serial number, and ID (Unique Identifier, IdentityDocument), etc.

[0043] The mobile storage device can store the identification information corresponding to the test device. When the mobile storage device is connected to the device under test, the device under test can read the identification information stored on the mobile storage device. The test device corresponding to the identification information is the test device that performs the test on the device under test.

[0044] In step S102 above, the device information corresponding to the local machine is the same as the device information corresponding to the device under test. This application embodiment does not specifically limit the implementation of the device information corresponding to the device under test; those skilled in the art can make appropriate adjustments according to actual circumstances. For example, the device information may include the MAC address of the device under test, the serial number of the device under test, the P2P connection ID number of the device under test, etc.

[0045] The device under test (DUT) can connect to the server via mobile communication and send the read identification information and its own device information to the server. After receiving the identification information and device information, the server can query the device information corresponding to its own device and then perform tests on the DUT based on the retrieved device information.

[0046] In the above scheme, the identification information of the test device can be synchronized to the device under test (DUT) using an external mobile storage device; the server can then associate the DUT and the test device based on the synchronized identification information. Therefore, even if the DUT connects to the server via mobile communication, resulting in the DUT and the test device being located on different local area networks, they can quickly establish a connection through the aforementioned identification information, thereby enabling production testing. Therefore, compared to existing technologies where test devices are not easily searchable and connect to the DUT for production testing, the device testing method provided in this application embodiment can improve testing efficiency. Furthermore, the device testing method provided in this application embodiment also facilitates parallel testing across multiple production lines.

[0047] Furthermore, based on the above embodiments, the device information may include a P2P connection ID number. In this case, after step S102 above, the device testing method provided in this application embodiment may further include the following steps:

[0048] Receive connection requests sent by the test device based on the P2P connection ID number, and establish a connection with the test device according to the connection request.

[0049] Specifically, when the device information includes a P2P connection ID number, the test device can directly establish a connection with the device under test based on the aforementioned P2P connection ID number and achieve communication with the device under test through the P2P protocol.

[0050] In the above scheme, the test device can directly connect to the device under test (DUT) based on the P2P connection ID number in the device information, thereby enabling direct testing of the DUT. Therefore, since the test device's identification information is synchronized to the DUT using an external mobile storage device, the test device and the DUT can quickly establish a direct connection. Thus, the device testing method provided in this application embodiment can improve testing efficiency. Furthermore, the device testing method provided in this application embodiment also facilitates parallel testing across multiple production lines.

[0051] Secondly, the equipment testing methods applied to the testing equipment are described in detail. Please refer to... Figure 2 , Figure 2 A flowchart of a device testing method applied to a testing device is provided as an embodiment of this application. The device testing method may include the following steps:

[0052] Step S201: Send a query request to the server to query the device under test.

[0053] Step S202: Receive the device information of the device under test corresponding to the identification information returned by the server.

[0054] Step S203: Test the device under test according to the device information.

[0055] Specifically, in step S201 above, when the testing equipment needs to perform production testing on a certain device under test, it can send a query request to the server. This query request is used to query the device information of the device under test, and may include the identification information corresponding to the testing equipment.

[0056] As described in the above embodiments, the device under test is connected to the server via mobile communication; the identification information and the specific implementation of the information have been described in detail in the above embodiments, and will not be described here again.

[0057] Since the server stores the identification information read by the device under test from the mobile storage device and the corresponding device information, after receiving the above query request, the server can find the device information corresponding to the identification information in the query request and send the queried device information to the test device.

[0058] In steps S202-S203 above, after receiving the device information corresponding to the identification information, the test device can perform tests on the device under test corresponding to the device information based on the device information.

[0059] It should be noted that since there may be one or more device information corresponding to the identification information stored in the server, the device information received by the test device may also be one or more.

[0060] When the test equipment receives only one piece of device information, it can test the device under test corresponding to that piece of device information. It is understandable that the test equipment may also test the device under test corresponding to previously received device information. When the test equipment receives multiple pieces of device information, it can test the devices corresponding to multiple pieces of device information simultaneously, or it can test the devices corresponding to multiple pieces of device information sequentially.

[0061] Furthermore, this application does not specifically limit the implementation method of the test device testing the device under test based on the device information. Those skilled in the art can make appropriate adjustments according to the actual situation. For example, the test device can communicate directly with the device under test based on the device information to test the device under test; or, the test device can send test instructions to the server based on the device information to test the device under test through the server's relay, etc.

[0062] It should be noted that when the test equipment tests the devices corresponding to multiple device information received, it can use the same or different methods.

[0063] In the above scheme, the identification information of the test device can be synchronized to the device under test (DUT) using an external mobile storage device. The test device can then quickly associate with the DUT by querying the device information corresponding to the identification information through the server. Therefore, even if the DUT connects to the server via mobile communication, resulting in the DUT and the test device being located on different local area networks, they can quickly establish a connection through the identification information, thereby enabling production testing. Therefore, compared to existing technologies where the test device is not easily searchable and connects to the DUT for production testing, the device testing method provided in this application embodiment can improve testing efficiency. Furthermore, the device testing method provided in this application embodiment also facilitates parallel testing across multiple production lines.

[0064] Furthermore, based on the above embodiments, the device information may include a P2P connection ID number. In this case, step S203 may specifically include the following steps:

[0065] Step 1) Establish a connection with the device under test based on the P2P connection ID number.

[0066] Step 2) Send a test command to the device under test and receive the test results returned by the device under test according to the test command.

[0067] Specifically, when the device information stored in the server includes a P2P connection ID, the test device can directly establish a connection with the device under test based on the P2P connection ID and communicate with the device under test through the P2P protocol.

[0068] At this point, in step 2) above, the testing device can directly send test instructions to the device under test through the above P2P protocol; after receiving the test instructions, the device under test can perform the corresponding test operations and send the obtained test results to the testing device; the testing device can receive the test results sent by the device under test to complete the test of the device under test.

[0069] It should be noted that the embodiments of this application do not specifically limit the specific implementation of the above test instructions. Depending on the different functions that the device under test needs to be tested, those skilled in the art can make appropriate adjustments according to the actual situation. For example, the test instructions may include image test instructions, audio test instructions, etc.

[0070] In the above scheme, after the test device retrieves the device information corresponding to the identification information through the server, it can directly connect to the device under test (DUT) based on the P2P connection ID number in the device information, thereby enabling direct testing of the DUT. Therefore, since the test device's identification information is synchronized to the DUT using an external mobile storage device, the test device and the DUT can quickly establish a direct connection. Thus, the device testing method provided in this application embodiment can improve testing efficiency. Furthermore, the device testing method provided in this application embodiment also facilitates parallel testing across multiple production lines.

[0071] Furthermore, based on the above embodiments, as another implementation method, step S203 may specifically include the following steps:

[0072] Step 1) Send a test command to the server so that the server forwards the test command to the device under test.

[0073] Step 2) Receive the test results returned by the device under test according to the test instructions sent by the server.

[0074] Specifically, the testing equipment can use a server as an intermediary to perform tests on the device under test. In this case, the testing equipment does not establish a direct connection with the device under test.

[0075] The testing device can send test commands to the server; after receiving the test commands, the server can forward the test commands to the device under test; after receiving the test commands, the device under test can perform the corresponding test operations and send the obtained test results to the server; after receiving the test results, the server forwards the test results back to the testing device to complete the test of the device under test.

[0076] It should be noted that when the test equipment is currently testing multiple devices under test, the test command may include device information to associate the test command with the device under test; similarly, the test result may include identification information to associate the test result with the test equipment. When the test equipment is currently testing only one device under test, the test command may or may not include device information, and the test result may or may not include identification information.

[0077] In the above scheme, after the test device retrieves the device information corresponding to the identification information through the server, it can perform testing on the device under test (DUT) via server forwarding. Therefore, since the test device's identification information is synchronized to the DUT using an external mobile storage device, the test device and the DUT can quickly establish a connection through the server. Thus, the device testing method provided in this application embodiment can improve testing efficiency. Furthermore, the device testing method provided in this application embodiment also facilitates parallel testing across multiple production lines.

[0078] Furthermore, based on the above embodiments, prior to step S201, the device testing method provided in this application embodiment may further include the following steps:

[0079] Write the device's identification information to the removable storage device.

[0080] Specifically, similar to connecting a mobile storage device to the device under test (DUT), a mobile storage device can also be connected to a test device. Once connected, the test device can store its own identification information in the mobile storage device.

[0081] It is understandable that the identification information written by the test device is the same as the identification information read by the device under test.

[0082] In the above scheme, the testing equipment can write its own identification information into a mobile storage device, thereby enabling the testing equipment to synchronize its identification information to the device under test (DUT) using an external mobile storage device, quickly achieving the purpose of testing the DUT. Therefore, the equipment testing method provided in this application embodiment can improve testing efficiency. Furthermore, the equipment testing method provided in this application embodiment also facilitates parallel testing across multiple production lines.

[0083] Next, we will provide a detailed description of the device testing methods used in servers. Please refer to [link / reference]. Figure 3 , Figure 3 A flowchart of a device testing method for a server provided in this application embodiment is included. The device testing method may include the following steps:

[0084] Step S301: Receive the identification information corresponding to the test device and the device information corresponding to the test device sent by the device under test.

[0085] Step S302: Store the correspondence between identification information and device information.

[0086] Step S303: Receive a query request sent by the test device to query the device under test.

[0087] Step S304: Query the device information corresponding to the identification information and send the queried device information to the test device.

[0088] Specifically, in step S301 above, the server can receive identification information and device information sent by the device under test. As described in the above embodiment, the device under test connects to the server via mobile communication, and the identification information is read by the device under test from the mobile storage device.

[0089] It is understood that the specific implementation methods of the above-mentioned identification information and device information have been described in detail in the above embodiments, and will not be described again here.

[0090] In step S302 above, the server can store the received identification information and device information. During storage, the correspondence between the identification information and the device information can be stored simultaneously. It is understood that this application does not specifically limit the implementation method for storing the correspondence between identification information and device information, and those skilled in the art can make appropriate adjustments according to the actual situation.

[0091] For example, for each identification information, the server can create a device table corresponding to that identification information in memory. When the server receives the identification information and device information, it can store the device information in the device table corresponding to that identification information. It's understandable that this device table may store one or more device information entries. Alternatively, the server can store each received identification information and its corresponding device information as key-value pairs.

[0092] The testing equipment can query the server for device information corresponding to its own machine, and then test the device under test based on the queried device information.

[0093] In the above scheme, the identification information of the test device can be synchronized to the device under test (DUT) using an external mobile storage device; the server can then associate the DUT and the test device based on the synchronized identification information. Therefore, even if the DUT connects to the server via mobile communication, resulting in the DUT and the test device being located on different local area networks, they can quickly establish a connection through the aforementioned identification information, thereby enabling production testing. Therefore, compared to existing technologies where test devices are not easily searchable and connect to the DUT for production testing, the device testing method provided in this application embodiment can improve testing efficiency. Furthermore, the device testing method provided in this application embodiment also facilitates parallel testing across multiple production lines.

[0094] The following section provides a detailed description of the equipment testing methods used in production testing systems. Please refer to... Figure 4 , Figure 4 An interactive diagram illustrating a device testing method applied to a production testing system, provided as an embodiment of this application, is included. This device testing method may include the following steps:

[0095] Step S401: After the device under test connects to the server via mobile communication, it reads the identification information corresponding to the test device stored in the mobile storage device.

[0096] Step S402: The device under test sends identification information and corresponding device information to the server.

[0097] Step S403: The server receives the identification information corresponding to the test device and the device information corresponding to the test device sent by the device under test.

[0098] Step S404: The server stores the correspondence between identification information and device information.

[0099] Step S405: The test device sends a query request to the server to query the device under test.

[0100] Step S406: The server receives a query request sent by the test device to query the device under test.

[0101] Step S407: The server queries the device information corresponding to the identification information and sends the queried device information to the test device.

[0102] Step S408: The test device receives the device information of the device under test corresponding to the identification information returned by the server.

[0103] Step S409: Establish a connection with the device under test based on the P2P connection ID number.

[0104] Step S410: Send a test command to the device under test and receive the test results returned by the device under test according to the test command.

[0105] Please refer to Figure 5 , Figure 5 This is a schematic diagram of information interaction provided in an embodiment of this application. The device under test (DUT) can send identification information and its corresponding device information to the server, and can send test results to the test device; the server can send the retrieved device information to the test device; the test device can send a query request to the server to find the DUT to be tested, and can send the P2P connection ID number and test instructions to the DUT.

[0106] Please refer to Figure 6 , Figure 6 This application provides a structural block diagram of a device testing apparatus for a device under test. The device testing apparatus 600 may include: a reading module 601, used to read identification information corresponding to the test device stored in a mobile storage device after connecting to a server via mobile communication; and a first sending module 602, used to send the identification information and the device information corresponding to the local device to the server, so that the test device can query the device information corresponding to the identification information and then test the device under test according to the device information.

[0107] In the above scheme, the identification information of the test device can be synchronized to the device under test (DUT) using an external mobile storage device; the server can then associate the DUT and the test device based on the synchronized identification information. Therefore, even if the DUT connects to the server via mobile communication, resulting in the DUT and the test device being located on different local area networks, they can quickly establish a connection through the aforementioned identification information, thereby enabling production testing. Therefore, compared to existing technologies where test devices are not easily searchable and connect to the DUT for production testing, the device testing method provided in this application embodiment can improve testing efficiency. Furthermore, the device testing method provided in this application embodiment also facilitates parallel testing across multiple production lines.

[0108] Furthermore, based on the above embodiments, the device information includes a P2P connection ID number; the device testing device 600 may further include: a fourth receiving module, used to receive a connection request sent by the testing device according to the P2P connection ID number, so as to establish a connection with the testing device according to the connection request.

[0109] In the above scheme, the test device can directly connect to the device under test (DUT) based on the P2P connection ID number in the device information, thereby enabling direct testing of the DUT. Therefore, since the test device's identification information is synchronized to the DUT using an external mobile storage device, the test device and the DUT can quickly establish a direct connection. Thus, the device testing method provided in this application embodiment can improve testing efficiency. Furthermore, the device testing method provided in this application embodiment also facilitates parallel testing across multiple production lines.

[0110] Please refer to Figure 7 , Figure 7 This application provides a structural block diagram of a device testing apparatus 700 for use in testing equipment. The device testing apparatus 700 may include: a second sending module 701, configured to send a query request to a server for querying a device under test (DUT); wherein the query request includes identification information corresponding to the local device, and the DUT is connected to the server via mobile communication; a first receiving module 702, configured to receive device information of the DUT corresponding to the identification information returned by the server; wherein the identification information stored in the server is read by the DUT from a mobile storage device; and a testing module 703, configured to test the DUT based on the device information.

[0111] In the above scheme, the identification information of the test device can be synchronized to the device under test (DUT) using an external mobile storage device. The test device can then quickly associate with the DUT by querying the device information corresponding to the identification information through the server. Therefore, even if the DUT connects to the server via mobile communication, resulting in the DUT and the test device being located on different local area networks, they can quickly establish a connection through the identification information, thereby enabling production testing. Therefore, compared to existing technologies where the test device is not easily searchable and connects to the DUT for production testing, the device testing method provided in this application embodiment can improve testing efficiency. Furthermore, the device testing method provided in this application embodiment also facilitates parallel testing across multiple production lines.

[0112] Furthermore, based on the above embodiments, the device information includes a P2P connection ID number; the test module 703 is specifically used to: establish a connection with the device under test according to the P2P connection ID number; send a test command to the device under test, and receive the test result returned by the device under test according to the test command.

[0113] In the above scheme, after the test device retrieves the device information corresponding to the identification information through the server, it can directly connect to the device under test (DUT) based on the P2P connection ID number in the device information, thereby enabling direct testing of the DUT. Therefore, since the test device's identification information is synchronized to the DUT using an external mobile storage device, the test device and the DUT can quickly establish a direct connection. Thus, the device testing method provided in this application embodiment can improve testing efficiency. Furthermore, the device testing method provided in this application embodiment also facilitates parallel testing across multiple production lines.

[0114] Furthermore, based on the above embodiments, the test module 703 is specifically used for: sending a test instruction to the server, so that the server forwards the test instruction to the device under test; wherein the test instruction includes the device information; receiving the test result returned by the device under test according to the test instruction sent by the server; wherein the test result includes the identification information.

[0115] In the above scheme, after the test device retrieves the device information corresponding to the identification information through the server, it can perform testing on the device under test (DUT) via server forwarding. Therefore, since the test device's identification information is synchronized to the DUT using an external mobile storage device, the test device and the DUT can quickly establish a connection through the server. Thus, the device testing method provided in this application embodiment can improve testing efficiency. Furthermore, the device testing method provided in this application embodiment also facilitates parallel testing across multiple production lines.

[0116] Furthermore, based on the above embodiments, the device testing apparatus 700 further includes: a writing module, used to write the identification information of the local machine into the mobile storage device.

[0117] In the above scheme, the testing equipment can write its own identification information into a mobile storage device, thereby enabling the testing equipment to synchronize its identification information to the device under test (DUT) using an external mobile storage device, quickly achieving the purpose of testing the DUT. Therefore, the equipment testing method provided in this application embodiment can improve testing efficiency. Furthermore, the equipment testing method provided in this application embodiment also facilitates parallel testing across multiple production lines.

[0118] Please refer to Figure 8 , Figure 8This application provides a structural block diagram of a device testing apparatus for a server. The device testing apparatus 800 may include: a second receiving module 801, used to receive identification information corresponding to the device under test (DUT) and device information corresponding to the DUT sent by the DUT; wherein the DUT is connected to the server via mobile communication, and the identification information is read by the DUT from a mobile storage device; a storage module 802, used to store the correspondence between the identification information and the device information; a third receiving module 803, used to receive a query request sent by the test device for querying the DUT to be tested; wherein the query request includes the identification information corresponding to the test device; and a query module 804, used to query the device information corresponding to the identification information and send the queried device information to the test device.

[0119] In the above scheme, the identification information of the test device can be synchronized to the device under test (DUT) using an external mobile storage device; the server can then associate the DUT and the test device based on the synchronized identification information. Therefore, even if the DUT connects to the server via mobile communication, resulting in the DUT and the test device being located on different local area networks, they can quickly establish a connection through the aforementioned identification information, thereby enabling production testing. Therefore, compared to existing technologies where test devices are not easily searchable and connect to the DUT for production testing, the device testing method provided in this application embodiment can improve testing efficiency. Furthermore, the device testing method provided in this application embodiment also facilitates parallel testing across multiple production lines.

[0120] Please refer to Figure 9 , Figure 9 This application provides a structural block diagram of an electronic device 900, which includes at least one processor 901, at least one communication interface 902, at least one memory 903, and at least one communication bus 904. The communication bus 904 enables direct communication between these components, the communication interface 902 facilitates signaling or data communication with other node devices, and the memory 903 stores machine-readable instructions executable by the processor 901. When the electronic device 900 is running, the processor 901 communicates with the memory 903 via the communication bus 904, and when the machine-readable instructions are invoked by the processor 901, the aforementioned device testing method is executed.

[0121] It is understood that the device under test, the testing device, and the server provided in this application embodiment can all be implemented using the aforementioned electronic device 900. For example, the processor 901 in this application embodiment can read a computer program from the memory 903 via the communication bus 904 and execute the computer program to implement the following method: Step S101: After connecting to the server via mobile communication, read the identification information corresponding to the testing device stored in the mobile storage device. Step S102: Send the identification information and the device information corresponding to the local device to the server, so that the testing device can query the device information corresponding to the identification information and then test the device under test according to the device information.

[0122] The processor 901 comprises one or more, and can be an integrated circuit chip with signal processing capabilities. The processor 901 can be a general-purpose processor, including a Central Processing Unit (CPU), a Microcontroller Unit (MCU), a Network Processor (NP), or other conventional processors; it can also be a special-purpose processor, including a Neural-network Processing Unit (NPU), a Graphics Processing Unit (GPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. Furthermore, when there are multiple processors 901, some can be general-purpose processors, and others can be special-purpose processors.

[0123] The memory 903 includes one or more, which may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.

[0124] Understandable. Figure 9 The structure shown is for illustrative purposes only; the electronic device 900 may also include components that are more advanced than those shown. Figure 9 The more or fewer components shown, or having the same Figure 9 The different configurations shown. Figure 9 The components shown can be implemented using hardware, software, or a combination thereof. In the embodiments of this application, the electronic device 900 can be, but is not limited to, physical devices such as desktop computers, laptops, smartphones, smart wearable devices, and in-vehicle devices, or virtual devices such as virtual machines. Furthermore, the electronic device 900 is not necessarily a single device; it can be a combination of multiple devices, such as a server cluster, etc.

[0125] This application also provides a computer program product, including a computer program stored on a computer-readable storage medium. The computer program includes computer program instructions, and when the computer program instructions are executed by a computer, the computer is able to perform the steps of the device testing method described in the above embodiments.

[0126] It is understood that the device under test, the testing device, and the server provided in this application embodiment can all be implemented using the aforementioned computer program products. For example, the computer can perform the following steps: after connecting to the server via mobile communication, it reads the identification information corresponding to the testing device stored in the mobile storage device; it sends the identification information and the device information corresponding to its own device to the server, so that the testing device can query the device information corresponding to the identification information and then test the device under test according to the device information.

[0127] This application also provides a computer-readable storage medium that stores computer program instructions. When a computer is run, the computer program instructions cause the computer to perform the device testing method described in the foregoing method embodiments. It is understood that the device under test, testing equipment, and server provided in this application embodiment can all be implemented using the aforementioned computer-readable storage medium.

[0128] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0129] Furthermore, the units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0130] Furthermore, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0131] It should be noted that if the function is implemented as a software module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0132] In this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying any such actual relationship or order between these entities or operations.

[0133] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A device testing method, characterized in that, Applied to the device under test, the method includes: After connecting to the server via mobile communication, the identification information corresponding to the test device stored in the mobile storage device is read; The identification information and the device information corresponding to the local machine are sent to the server so that the test device can query the device information corresponding to the identification information and then test the device under test according to the device information. Wherein, the device under test is a device that can only access the network through the mobile communication method, or the device under test is any device. When the device under test accesses the network through the mobile communication method, the device under test executes the device testing method.

2. The equipment testing method according to claim 1, characterized in that, The device information includes the P2P connection ID number; After sending the identification information and the device information corresponding to the local machine to the server, the method further includes: Receive the connection request sent by the test device based on the P2P connection ID number, and establish a connection with the test device according to the connection request.

3. A method for testing equipment, characterized in that, Applied to a testing device, the method includes: A query request is sent to the server to query the device under test; wherein the query request includes the identification information corresponding to the local machine, and the device under test is connected to the server via mobile communication. The system receives device information of the device under test corresponding to the identification information returned by the server; wherein the identification information stored in the server is read by the device under test from a mobile storage device. The device under test is tested based on the device information. Wherein, the device under test is a device that can only access the network through the mobile communication method, or the device under test is any device. When the device under test accesses the network through the mobile communication method, the test device executes the device test method.

4. The equipment testing method according to claim 3, characterized in that, The device information includes the P2P connection ID number; The step of testing the device under test based on the device information includes: A connection is established with the device under test based on the P2P connection ID number; Send a test command to the device under test and receive the test results returned by the device under test according to the test command.

5. The equipment testing method according to claim 3, characterized in that, The step of testing the device under test based on the device information includes: A test command is sent to the server, so that the server forwards the test command to the device under test; wherein the test command includes the device information; The system receives test results returned by the device under test according to the test instructions, sent by the server; wherein the test results include the identification information.

6. The equipment testing method according to any one of claims 3-5, characterized in that, Before sending the query request to the server, the method further includes: Write the device's identification information into the removable storage device.

7. A method for testing equipment, characterized in that, Applied to a server, the method includes: The server receives identification information corresponding to the test device and device information corresponding to the test device sent by the device under test; wherein the device under test is connected to the server via mobile communication, and the identification information is read by the device under test from a mobile storage device. Store the correspondence between the identification information and the device information; The test device receives a query request from the test device for querying the device under test; wherein the query request includes the identification information corresponding to the test device. Query the device information corresponding to the identification information, and send the queried device information to the test device; Wherein, the device under test is a device that can only access the network through the mobile communication method, or the device under test is any device. When the device under test accesses the network through the mobile communication method, the server executes the device testing method.

8. A computer program product, characterized in that, It includes computer program instructions, which, when read and executed by a processor, perform the device testing method as described in any one of claims 1-7.

9. An electronic device, characterized in that, include: Processor, memory, and bus; The processor and the memory communicate with each other via the bus; The memory stores computer program instructions that can be executed by the processor, which can invoke the computer program instructions to perform the device testing method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which, when executed by a computer, cause the computer to perform the device testing method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Test method and system and storage medium

    CN110514925A