Signal testing method, device, equipment and storage medium
By collaboratively controlling the signal control device by the server and the test end to adjust the wireless signal strength, the problem of low signal testing efficiency in the existing technology is solved, and efficient signal testing and wireless connection simulation are achieved.
Patent Information
- Application Number
- CN202310666323.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-06
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2043-06-06
AI Technical Summary
The conventional technology for testing terminal wireless connection signals has low efficiency and cannot effectively simulate wireless connection conditions at different distances.
Through the collaborative work of the server and the test end, after obtaining the signal test request, the signal control device is controlled to adjust the wireless signal strength to achieve wireless connection between the test device and the signal control device, and after the connection is successful, the signal strength is adjusted to perform signal testing.
It improves the efficiency of signal testing, can quickly simulate wireless connection conditions at different distances, and improves the intelligence and efficiency of signal testing.
Smart Images

Figure CN116647870B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of testing, and in particular to a signal testing method, apparatus, device, and storage medium. Background Art
[0002] With the development of network technology, users use various terminals to connect to the Internet through wireless connections to obtain the content they want to view. The quality of the terminal's wireless connection will greatly affect the user experience of the terminal.
[0003] In the prior art, manufacturers test the performance of wireless connections before terminals leave the factory. This involves manually varying the distance between the terminal and the wireless signal source, while recording the wireless connection status at different distances. However, this signal testing method is inefficient. Summary of the Invention
[0004] The embodiments of the present application provide a signal testing method, apparatus, device, and storage medium, which can improve the efficiency of signal testing. The technical solution is as follows:
[0005] In one aspect, a signal testing method is provided, which is performed by a server, and the method includes:
[0006] Obtaining a signal test request sent by a test end, where the test end is connected to at least one test device, the signal test request being used to request calling a signal control device to perform a signal test on the at least one test device, the signal control device being used to transmit wireless signals of different signal strengths;
[0007] If the signal control device can be called, sending a signal test response to the test end, so that the test end controls the at least one test device to attempt to establish a wireless connection with the signal control device, the signal test response being used to indicate that the signal control device can be called;
[0008] When the at least one test device successfully establishes a wireless connection with the signal control device, based on the signal test request, the signal control device is controlled to adjust the signal strength of the transmitted wireless signal to implement signal testing of the at least one test device.
[0009] In one aspect, a signal testing method is provided, which is performed by a test end connected to at least one test device, and includes:
[0010] Sending a signal test request to the server, wherein the signal test request is used to request calling a signal control device to perform a signal test on the at least one test device, wherein the signal control device is used to transmit wireless signals with different signal strengths;
[0011] controlling the at least one test device to attempt to establish a wireless connection with the signal control device when a signal test response sent by the server is obtained, wherein the signal test response is used to indicate that the signal control device can be called;
[0012] In a case where the at least one test device successfully establishes a wireless connection with the signal control device, a signal test is performed on the at least one test device.
[0013] In one aspect, a signal testing device is provided, which is disposed in a server and includes:
[0014] a request acquisition module, configured to acquire a signal test request sent by a test end, the test end being connected to at least one test device, the signal test request being used to request a signal control device to perform a signal test on the at least one test device, the signal control device being configured to transmit wireless signals of different signal strengths;
[0015] a test response sending module, configured to send a signal test response to the test end, if the signal control device can be called, so that the test end controls the at least one test device to attempt to establish a wireless connection with the signal control device, wherein the signal test response is used to indicate that the signal control device can be called;
[0016] A signal strength control module is used to control the signal control device to adjust the signal strength of the transmitted wireless signal based on the signal test request when the at least one test device successfully establishes a wireless connection with the signal control device, so as to realize signal testing of the at least one test device.
[0017] In one possible implementation, the signal strength control module is used to obtain a signal test parameter from the signal test request, where the signal test parameter is used to indicate how the signal strength changes; and based on the signal test parameter, control the signal control device to adjust the signal strength of the transmitted wireless signal.
[0018] In one possible embodiment, the signal control device includes a router and a signal attenuator, the router is used to generate a wireless signal, the signal attenuator is used to adjust the signal strength, and the signal strength control module is used to control the signal attenuator to adjust the signal strength of the wireless signal generated by the router based on the signal test parameters.
[0019] In a possible implementation, the device further includes:
[0020] A waiting response sending module is used to send a waiting response to the test end when the signal control device cannot be called, so that the test end sends the signal test request again after a first time length. The waiting response is used to indicate that the signal control device cannot be called, and the first time length is associated with the calling status of the signal control device.
[0021] In one possible implementation, the waiting response sending module is used to add the signal test request to a message queue when the signal control device cannot be called, and the message queue is used to store signal test requests that have not yet been executed; determine the first duration for executing the signal test request in the message queue, the first duration being the sum of the durations of the reference signal test requests in the message queue calling the signal control device, and the reference signal test request is ranked before the signal test request in the message queue; and send the waiting response to the test end based on the first duration.
[0022] In a possible implementation, the device further includes any of the following:
[0023] a deleting module, configured to delete the signal test request in the message queue in response to receiving a deletion request for the signal test request sent by the test end;
[0024] A query module is used to determine a second duration for executing the signal test request in the message queue in response to receiving a query request for the signal test request sent by the test end; based on the second duration, send the query response to the test end, and the query response carries the second duration.
[0025] In one aspect, a signal testing device is provided, wherein the device is disposed in a test terminal connected to at least one test device, and comprises:
[0026] a request sending module, configured to send a signal test request to the server, wherein the signal test request is used to request a signal control device to perform a signal test on the at least one test device, wherein the signal control device is configured to transmit wireless signals of different signal strengths;
[0027] a connection control module, configured to control the at least one test device to attempt to establish a wireless connection with the signal control device upon obtaining a signal test response sent by the server, wherein the signal test response is used to indicate that the signal control device can be called;
[0028] The signal testing module is configured to perform a signal test on the at least one testing device when the at least one testing device successfully establishes a wireless connection with the signal control device.
[0029] In a possible implementation, the request sending module is also used to send the signal test request again after a first time period when a waiting response is obtained from the server. The waiting response is used to indicate that the signal control device cannot be called, and the first time period is associated with the calling status of the signal control device.
[0030] In a possible implementation, the device further includes any of the following:
[0031] a deletion request sending module, configured to send a deletion request for the signal test request to the server in response to a deletion operation on the signal test request, wherein the deletion request is used to request deletion of the signal test request;
[0032] A query request sending module is used to send a query request for the signal test request to the server in response to a query instruction for the signal test request, where the query request is applied to request the query execution to the second duration of the signal test request; and obtain a query response returned by the server in response to the query request, where the query response carries the second duration.
[0033] In a possible embodiment, the device also includes a server determination module for determining the load rates of multiple candidate server terminals, where one candidate server is used to control a signal control device; and determining the server terminal whose load rate meets preset conditions from the multiple candidate server terminals.
[0034] On the one hand, a computer device is provided, which includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the computer program is loaded and executed by the one or more processors to implement the signal testing method.
[0035] In one aspect, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the signal testing method.
[0036] On the one hand, a computer program product or computer program is provided, which includes program code, which is stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the computer device performs the above-mentioned signal testing method.
[0037] Through the technical solution provided by the embodiment of the present application, the server obtains a signal test request sent by the test end, and the signal test request is used to request to call the signal control device to perform a signal test on at least one test device. When the signal control device can be called, the server sends a signal test response to the test end, so that the test end controls at least one test device to attempt to establish a wireless connection with the signal control device. When the at least one test device successfully establishes a wireless connection with the signal control device, based on the signal test request, the signal control device is controlled to adjust the signal strength of the transmitted wireless signal, thereby realizing intelligent signal testing of the at least one test device and improving the efficiency of the signal test. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0039] Figure 1 is a schematic diagram of an implementation environment of a signal testing method provided in an embodiment of the present application;
[0040] Figure 2 This is a flow chart of a signal testing method provided by an embodiment of the present application;
[0041] Figure 3 is a flowchart of another signal testing method provided in an embodiment of the present application;
[0042] Figure 4 This is a flow chart of another signal testing method provided in an embodiment of the present application;
[0043] Figure 5 This is a flow chart of another signal testing method provided in an embodiment of the present application;
[0044] Figure 6 This is a flow chart of another signal testing method provided in an embodiment of the present application;
[0045] Figure 7 This is a schematic structural diagram of a signal testing device provided in an embodiment of the present application;
[0046] Figure 8 This is a schematic structural diagram of a signal testing device provided in an embodiment of the present application;
[0047] Figure 9 This is a structural diagram of a test terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0049] In this application, the terms "first", "second", etc. are used to distinguish identical or similar items with substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there any limitation on the quantity and execution order.
[0050] In order to more clearly illustrate the embodiments of the present application, the nouns involved in the embodiments of the present application are first introduced.
[0051] Router: A router is a network device responsible for routing. It searches multiple paths within an interconnected network for the path with the least traffic and provides communication to users. Routers are used to connect multiple logically separate networks. To provide users with the best communication path, routers use routing tables to select data transmission paths. Routing tables contain a list of network addresses and the distances between them. Routers use routing tables to find the correct path for data packets from their current location to their destination. Routers use minimum time algorithms or optimal path algorithms to adjust information transmission paths. If a network path fails or is blocked, the router can select an alternative path to ensure smooth information transmission. Routers can convert data formats, making them essential for interconnecting networks with different protocols.
[0052] Signal Attenuator: A signal attenuator is an electronic device that reduces the power of a signal without noticeably distorting its waveform.
[0053] Shielding box: A shielding box is a metal body made of conductive or magnetic materials in various shapes. It limits electromagnetic energy to a certain spatial range and is used to suppress radiation interference. It also processes both conduction and radiation to provide an interference-free test environment for the wireless communication device under test.
[0054] Test Case: A test case is a description of a test task for a specific software product, embodying the test plan, methods, techniques, and strategies. It includes the test objectives, test environment, input data, test steps, expected results, and test scripts, ultimately documented. Simply put, a test case is a set of test inputs, execution conditions, and expected results compiled for a specific purpose, used to verify whether a specific software requirement is met.
[0055] Message queue: A message queue is a container that stores messages during their transmission.
[0056] After introducing the nouns involved in the embodiments of the present application, the implementation environment of the embodiments of the present application is introduced below.
[0057] Figure 1 This is a schematic diagram of an implementation environment of a signal testing method provided in an embodiment of the present application, see Figure 1 The implementation environment may include a test end 110 and a service end 140.
[0058] The test terminal 110 is connected to the server 140 via a wireless network or a wired network. In some embodiments, the test terminal 110 and the server 140 are in the same local area network. Optionally, the test terminal 110 is a tablet computer, a laptop computer, a desktop computer, etc., but is not limited to this. The test terminal 110 has an application installed and running that supports signal testing. The test terminal 110 is connected to at least one test device 120, which is the target of the signal test. The test device 120 is a device that has the ability to connect to a wireless network, such as a tablet computer, a mobile phone, a laptop computer, a desktop computer, a smart watch, and a smart speaker.
[0059] The server 140 is a tablet computer, a laptop computer, a desktop computer, etc., but is not limited to these. The server 140 installs and runs an application that supports signal testing. The server 140 is connected to the signal control device 150, and the server 140 is capable of controlling the signal control device. In some embodiments, the signal control device 150 includes a router 151 and a signal attenuator 152, the router is used to generate a wireless signal, and the signal attenuator is used to adjust the signal strength. When performing a signal test on the at least one test device 120, the test end 110 controls the at least one test device 120 to connect to the wireless signal transmitted by the signal control device 150, and the server 140 controls the signal control device 150 to change the strength of the transmitted wireless signal, thereby achieving a signal test on the at least one test device 120.
[0060] Those skilled in the art will appreciate that the number of the test terminals 110 and the server terminals 140 may be greater or lesser. For example, there may be only one test terminal 110 and the server terminal 140, or there may be dozens, hundreds, or even more test terminals 110 and the server terminal 140. In this case, the implementation environment may also include other test terminals. The present embodiment does not limit the number or device type of the test terminals.
[0061] After introducing the implementation environment of the embodiment of the present application, the application scenario of the embodiment of the present application will be introduced in combination with the above-mentioned implementation environment. In the following description, the test end is the test end 110 in the above-mentioned implementation environment, the server end is the server end 140 in the above-mentioned implementation environment, the test device is the test device 120 in the above-mentioned implementation environment, and the signal control device is the signal control device 150 in the above-mentioned implementation environment.
[0062] The technical solution provided by the embodiment of the present application can be applied in the scenario of performing a signal test on at least one test device, and the signal test is used to test the performance of the wireless connection. Using the technical solution provided by the embodiment of the present application, the test end sends a signal test request to the server end, and the signal test request is used to request to call a signal control device to perform a signal test on the at least one test device, and the signal control device is controlled by the server end. In the case that the signal control device can be called, the server end sends a signal test response to the test end, and the signal test response is used to indicate that the signal control device can be called. The test end receives the signal test response, and in response to the signal test response, controls the at least one test device to connect to the wireless signal transmitted by the signal control device. Based on the signal test request, the server end controls the signal control device to adjust the signal strength of the transmitted wireless signal, so that the test end can implement the signal test of the at least one test device.
[0063] After introducing the implementation environment and application scenarios of the embodiment of the present application, the signal testing method provided by the embodiment of the present application is described below. Figure 2 Taking the execution subject as the server as an example, the method includes the following steps.
[0064] 201. The server obtains a signal test request sent by a test end, where the test end is connected to at least one test device. The signal test request is used to request a signal control device to perform a signal test on the at least one test device. The signal control device is used to transmit wireless signals with different signal strengths.
[0065] Among them, the test end is a terminal that performs signal testing on the test equipment, and the signal test refers to testing the performance of the wireless connection to determine the quality of the wireless connection under different signal strengths. The test equipment is connected to the test end, and the test end can control the connected test equipment. The signal control device is controlled by the server, and the signal control device can transmit wireless signals with different signal strengths. Accordingly, the signal strength of the wireless signal sent by the signal control device is controlled by the server. In some embodiments, the at least one test device and the signal control device are in the same space, or the distance between the at least one test device and the signal control device is less than or equal to a preset distance threshold, or the at least one test device can connect to the wireless signal transmitted by the signal control device. The preset distance threshold is set by technical personnel according to actual conditions, and the embodiments of the present application do not limit this.
[0066] 202. When the signal control device can be called, the server sends a signal test response to the test end, so that the test end controls the at least one test device to attempt to establish a wireless connection with the signal control device. The signal test response is used to indicate that the signal control device can be called.
[0067] The fact that the signal control device can be called indicates that it is in a normal and idle state and can cooperate with the signal test steps. Correspondingly, the fact that the signal control device cannot be called indicates that it is abnormal or occupied, and cannot promptly perform the signal test steps. A signal test response indicates that the signal control device can be called. After receiving this signal test response, the test end can perform subsequent signal test steps.
[0068] 203. When the at least one test device successfully establishes a wireless connection with the signal control device, the server controls the signal control device to adjust the signal strength of the transmitted wireless signal based on the signal test request to implement signal testing of the at least one test device.
[0069] Among them, adjusting the signal strength of the wireless signal can simulate the process of changing the distance between the signal source of the wireless signal and the test equipment, so that the test end can quickly obtain the wireless connection status of the test equipment at different distances, thereby realizing signal testing of the test equipment.
[0070] Through the technical solution provided by the embodiment of the present application, the server obtains a signal test request sent by the test end, and the signal test request is used to request to call the signal control device to perform a signal test on at least one test device. When the signal control device can be called, the server sends a signal test response to the test end, so that the test end controls at least one test device to attempt to establish a wireless connection with the signal control device. When the at least one test device successfully establishes a wireless connection with the signal control device, based on the signal test request, the signal control device is controlled to adjust the signal strength of the transmitted wireless signal, thereby realizing intelligent signal testing of the at least one test device and improving the efficiency of the signal test.
[0071] The above steps 201-203 are used as an example to illustrate the signal testing method provided in the embodiment of the present application by taking the execution subject as the server. The following is used as an example to illustrate the signal testing method provided in the embodiment of the present application by taking the execution subject as the test end. Figure 3 , the method includes the following steps.
[0072] 301. A test end sends a signal test request to a service end. The signal test request is used to request a signal control device to perform a signal test on at least one test device. The signal control device is used to transmit wireless signals with different signal strengths.
[0073] The change in signal strength can simulate the change in distance between the test device and the signal source of the wireless signal.
[0074] 302. Upon obtaining a signal test response sent by the server, the test end controls the at least one test device to attempt to establish a wireless connection with the signal control device. The signal test response is used to indicate that the signal control device can be called.
[0075] The controlling the test device to attempt to establish a wireless connection with the signal control device refers to the controlling the test device to attempt to establish a wireless connection with the signal control device through a wireless signal transmitted by the signal control device.
[0076] 303. When the at least one test device successfully establishes a wireless connection with the signal control device, the test end performs a signal test on the at least one test device.
[0077] The signal test of the test device refers to determining the wireless network connection status of the test device under different signal strengths.
[0078] Through the technical solution provided by the embodiment of the present application, the test end sends a signal test request to the server, and the signal test request is used to request to call the signal control device to perform a signal test on at least one test device. When the signal test response sent by the server is obtained, the test end controls the at least one test device to attempt to establish a wireless connection with the signal control device. When the at least one test device successfully establishes a wireless connection with the signal control device, a signal test is performed on the at least one test device, thereby realizing intelligent signal testing of the at least one test device and improving the efficiency of the signal test.
[0079] The above steps 201-203 and 301-303 are a brief description of the signal testing method provided in the embodiment of the present application. The signal testing method provided in the embodiment of the present application will be described in more detail below with reference to some examples. Figure 4 , the method includes the following steps.
[0080] 401. The test end sends a signal test request to the service end. The signal test request is used to request calling the signal control device to perform a signal test on the at least one test device. The signal control device is used to transmit wireless signals with different signal strengths.
[0081] Wherein, the test end is connected to the at least one test device. The test end is a terminal that performs signal testing on the test device. Signal testing refers to testing the performance of the wireless connection to determine the quality of the wireless connection under different signal strengths. The test device is connected to the test end, and the test end can control the connected test device. The signal control device is controlled by the server, and the signal control device can transmit wireless signals with different signal strengths. The change in signal strength can simulate the change in the distance between the test device and the signal source of the wireless signal. Accordingly, the signal strength of the wireless signal sent by the signal control device is controlled by the server. In some embodiments, the at least one test device and the signal control device are in the same space, or the distance between the at least one test device and the signal control device is less than or equal to a preset distance threshold, or the at least one test device can connect to the wireless signal transmitted by the signal control device, and the preset distance threshold is set by a technician according to actual conditions, and the embodiments of the present application are not limited to this. In some embodiments, a TCP connection (Transmission Control Protocol) is established between the test end and the server. Wireless signals are also called hotspots.
[0082] In some embodiments, the test end is connected to the at least one test device by a wired mode, and the service end is also connected to the signal control device by a wired mode. The stability of the wired connection is strong, and it will not interfere with the signal test performed on the test device. For example, the test end is connected to the at least one test device by a USB (Universal SerialBus, Universal Serial Bus) line, and the service end is connected to the signal control device by a network cable, and the service end transmits the control instructions to the signal control device by the network cable. The at least one test device can be connected to the wireless network provided by the signal control device. In some embodiments, the test end and the service end are both connected to the network, and data exchange can be performed between the test end and the service end. For example, the test end and the service end are both connected to an internal network (same local area network) or an external network, and the embodiments of the present application are not limited to this.
[0083] In a possible implementation, in response to a signal test instruction for the at least one test device, the test end sends a signal test request to the service end.
[0084] The signal test instruction is triggered by a signal test operation executed on the test terminal or is periodically triggered by the test terminal to trigger the signal test process. The signal test request is used to instruct the server to call the signal control device.
[0085] In this implementation, the signal test instruction is triggered to control the test end to trigger the signal test process, that is, to send a signal test request to the service end, and the signal test is more efficient.
[0086] The above implementation is described below through two examples.
[0087] Example 1: A test end displays a signal test interface, wherein the signal test interface displays at least one candidate test device for signal testing and a test start control. The at least one candidate test device includes the at least one test device, and the at least one candidate test device is connected to the test end. When the at least one test device among the at least one candidate test device is selected, in response to a click on the test start control, the test end sends a signal test request to the server. In some embodiments, a test device is selected from the at least one candidate test device by clicking on the test device in the signal test interface.
[0088] Example 2: When the current time reaches the signal triggering period, the test end triggers a signal test instruction. In response to the signal test instruction, the test end sends a signal test request to the service end.
[0089] Among them, the signal trigger period is set by technical personnel according to actual conditions, and the embodiments of this application do not limit this.
[0090] For example, if the current time reaches the signal trigger period, the test end determines the connection status of the test device. If at least one test device is connected to the test end, the test end triggers a signal test instruction for the at least one test device. In response to the signal test instruction, the test end sends a signal test request for the at least one test device to the service end.
[0091] In some embodiments, the process of the test end sending the signal test request to the server end is that the test end sends the signal test request to the server end based on the IP (Internet Protocol) address and port of the server end.
[0092] Optionally, before step 401, the test end can also perform the following steps.
[0093] In one possible implementation, the test end determines load rates of multiple candidate servers, where one candidate server is used to control one signal control device, and determines a server whose load rate meets a preset condition from the multiple candidate servers.
[0094] Among them, multiple candidate servers are all servers that are connected to the signal control device and can provide signal testing functions. The load rate refers to the number of tasks and workload being processed by the server. The higher the load rate of the server, the more requests and tasks the server is carrying, which will cause the server to respond more slowly or crash. In an embodiment of the present application, the load rate is positively correlated with the number of signal test tasks that have not been executed by the server. That is, the more signal test tasks that have not been executed by the server, the higher the load rate of the server; the fewer signal test tasks that have not been executed by the server, the lower the load rate of the server. The signal test task is a task that performs a signal test on the test equipment.
[0095] Under this implementation, before the test end sends a signal test request, it can determine the load rates of multiple candidate server ends, and determine the server end whose load rate meets the preset conditions from the multiple candidate server ends as the server end to be used for subsequent signal testing, which can improve the efficiency of signal testing.
[0096] For example, the test end sends a load rate query request to multiple candidate server ends, and the load rate query request is used to request the load rate of the query server end. Multiple candidate server ends receive the load rate query request and return load information to the test end, and the load information includes the identifier of the server end and the load rate. The test end obtains the load information of the multiple candidate server ends, and determines the load rates of the multiple candidate server ends based on the load information of the multiple candidate server ends. The test end determines a server end whose load rate is lower than a load rate threshold from multiple candidate server ends, or determines a server end with the lowest load rate from multiple candidate server ends, wherein the load rate threshold is set by technical personnel according to actual conditions, and is not limited in the embodiments of the present application. The test end sends a signal test request to the determined server end. The sending method is described in the above description of step 401 and will not be repeated here.
[0097] 402. The server obtains the signal test request sent by the test end and determines whether the signal control device can be called.
[0098] Among them, determining whether the signal control device can be called means determining whether the signal control device is in a normal and idle state. Normal means that the working state of the signal control device is normal, and idle state means that the signal control device is not currently performing other signal test tasks.
[0099] In one possible implementation, the server receives a signal test request sent by the test terminal. In response to the signal test response, the server determines the operating status and task execution status of the signal control device. If the signal control device is operating normally and is not executing other signal test tasks, the server determines that the signal control device is callable. If the signal control device is operating abnormally or is executing other signal test tasks, the server determines that the signal control device is not callable.
[0100] In this implementation, the server can determine whether the signal control device can be called based on the working status and task execution status, with high accuracy and efficiency.
[0101] For example, the server obtains a signal test request sent by the test end. In response to the signal test response, the server obtains the working status flag and task execution flag of the signal control device. The working status flag is used to reflect the working status of the signal control device, and the task execution flag is used to reflect the task execution status of the signal control device. When the working status flag is a first value and the task execution flag is a second value, the server determines that the signal control device can be called. When the working status flag is a third value or the task execution flag is a fourth value, the server determines that the signal control device cannot be called.
[0102] Among them, the working status flag bit is a first value indicating that the working status of the signal control device is normal, the working status flag bit is a third value indicating that the working status of the signal control device is abnormal, and the first value and the third value are different; the task execution flag bit is a second value indicating that the signal control device has not executed other signal test tasks, and the task execution flag bit is a fourth value indicating that the signal control device has executed other signal test tasks, and the second value and the fourth value are different. In some embodiments, the working status flag bit and the task execution flag bit can be obtained after obtaining the signal test request, or can be uploaded to the server in real time by the signal control device, and this embodiment of the application is not limited to this.
[0103] 403. If the signal control device can be called, send a signal test response to the test end, where the signal test response indicates that the signal control device can be called.
[0104] The fact that the signal control device can be called indicates that it is in a normal and idle state and can cooperate with the signal test steps. Correspondingly, the fact that the signal control device cannot be called indicates that it is abnormal or occupied, and cannot promptly perform the signal test steps. A signal test response indicates that the signal control device can be called. After receiving this signal test response, the test end can perform subsequent signal test steps.
[0105] 404. When the signal test response sent by the server is obtained, the test end controls the at least one test device to attempt to establish a wireless connection with the signal control device.
[0106] The controlling the test device to attempt to establish a wireless connection with the signal control device refers to the controlling the test device to attempt to establish a wireless connection with the signal control device through a wireless signal transmitted by the signal control device.
[0107] In a possible implementation, upon obtaining a signal test response from the server, the test end sends a network connection instruction to the at least one test device, where the network connection instruction is used to instruct the at least one test device to attempt to establish a wireless connection with the signal control device.
[0108] Wherein, when the at least one test device is connected to the test end via a USB cable, the network connection instruction is sent via the USB cable.
[0109] In this embodiment, when the signal test response is obtained, the test end sends a network connection instruction to at least one connected test device, and controls the at least one test device to attempt to establish a wireless connection with the signal control device through the network connection instruction, which is more efficient.
[0110] For example, the signal test response carries the network identifier of the wireless network provided by the signal control device and the password for joining the wireless network. Upon receiving the signal test response from the server, the test end obtains the network identifier and password from the signal test response. The test end then sends a network connection instruction to the at least one test device, the network connection instruction carrying the network identifier and password, to cause the at least one test device to attempt to establish a wireless connection with the signal control device based on the network identifier and password.
[0111] 405. When the at least one test device successfully establishes a wireless connection with the signal control device, the server controls the signal control device to adjust the signal strength of the transmitted wireless signal based on the signal test request.
[0112] Among them, adjusting the signal strength of the wireless signal can simulate the process of changing the distance between the signal source of the wireless signal and the test equipment, so that the test end can quickly obtain the wireless connection status of the test equipment at different distances, thereby realizing signal testing of the test equipment.
[0113] In one possible implementation, when the at least one test device successfully establishes a wireless connection with the signal control device, the server obtains a signal test parameter from the signal test request, where the signal test parameter indicates how the signal strength changes. Based on the signal test parameter, the server controls the signal control device to adjust the signal strength of the transmitted wireless signal.
[0114] The signal strength change pattern refers to the pattern of signal strength change over time. For example, the signal test parameters include multiple signal strength-duration pairs, each of which represents the duration of a signal strength. For example, [100, 10] is a signal strength-duration pair, where 100 represents the signal strength and 10 represents the duration. Alternatively, the signal test parameters include multiple signal attenuation-duration pairs, each of which represents the duration of a signal attenuation value. For example, [20, 15] is a signal attenuation-duration pair, where 20 represents the signal attenuation value and 15 represents the duration of the signal attenuation.
[0115] In this embodiment, when the at least one test device successfully establishes a wireless connection with the signal control device, a signal test parameter representing the manner in which the signal strength changes is obtained from the signal test request, and the signal control device is controlled to adjust the signal strength of the transmitted wireless signal based on the signal test parameter.
[0116] For example, the signal control device includes a router and a signal attenuator. The router is used to generate a wireless signal, and the signal attenuator is used to adjust the signal strength. When the at least one test device successfully establishes a wireless connection with the signal control device, the server controls the signal attenuator to adjust the signal strength of the wireless signal generated by the router based on the signal test parameters.
[0117] The router is a router with its antenna removed, and is therefore unable to transmit wireless signals. The router is connected to the input port of a signal attenuator via a wiring harness (Cabel), and the output port of the signal attenuator is connected to the antenna, thereby transmitting wireless signals. Alternatively, when a signal shielding box is used for signal testing, the at least one test device is placed within the shielding box, and the output port of the signal attenuator is no longer connected to the antenna, but is directly connected to the shielding box.
[0118] For example, the signal control device includes a router and a signal attenuator. When the at least one test device successfully establishes a wireless connection with the signal control device, the server sends a signal strength control instruction to the signal control device. The signal strength control instruction carries the signal test parameter, so that the signal control device responds to the signal strength control instruction and controls the signal strength of the wireless signal based on the signal test parameter.
[0119] The following describes a method for determining whether the at least one test device successfully establishes a wireless connection with the signal control device.
[0120] In one possible implementation, the signal test request also carries the device identification of the at least one test device. The server determines that at least one device has successfully established a wireless connection with the signal control device. If the device identification of the at least one device matches the device identification of the at least one test device, the server determines that the at least one test device has successfully established a wireless connection with the signal control device, wherein the match is also the same. If the device identification of the at least one device does not match the device identification of the at least one test device, the server determines that the at least one test device has not established a wireless connection with the signal control device.
[0121] On the basis of the above-mentioned implementation mode, optionally, after the server determines that the at least one test device has not established a wireless connection with the signal control device, the server can also send a connection prompt message to the test end, and the connection prompt message is used to indicate that the at least one test device has not established a wireless connection with the signal control device. In some embodiments, the connection prompt message carries the device identification of the test device that has not established a wireless connection with the signal control device. Alternatively, the server determines again whether the at least one test device has successfully established a wireless connection with the signal control device after a preset time period. The preset time period is set by the technician according to the actual situation, and the embodiment of the present application does not limit this. In the case where it is determined that the at least one test device has not established a wireless connection with the signal control device after the preset time period, the above-mentioned step of sending the connection prompt message is performed.
[0122] In one possible implementation, upon obtaining connection success information sent by the test end, the server determines that the at least one test device has successfully established a wireless connection with the signal control device, wherein the connection success information is sent by the test end when determining that the at least one test device has successfully established a wireless connection with the signal control device. If the server does not obtain connection success information sent by the test end, the server determines that the at least one test device has not established a wireless connection with the signal control device.
[0123] The following describes a method in which the test end determines whether the at least one test device successfully establishes a wireless connection with the signal control device in the above embodiment.
[0124] In one possible implementation, upon obtaining feedback information from each test device indicating that a wireless connection has been successfully established with the signal control device, the test end determines that the at least one test device has successfully established a wireless connection with the signal control device. Upon failing to obtain feedback information from any test device indicating that a wireless connection has been successfully established with the signal control device, the test end determines that the at least one test device has not yet established a wireless connection with the signal control device.
[0125] 406. The test end performs a signal test on the at least one test device.
[0126] The signal test of the test device refers to determining the wireless network connection status of the test device under different signal strengths.
[0127] In a possible implementation, the test end controls the at least one test device to perform a signal test task and obtains a test result of the at least one test device.
[0128] A signal test task is a task related to testing the quality of a wireless network connection. For example, a signal test task involves downloading or uploading a file during the task duration. Accordingly, the test result represents the speed of the file download or upload. Because the server controls the signal control device to adjust the signal strength of the transmitted wireless signal, the test result can reflect the at least one test device's performance of the signal test task under different signal strengths.
[0129] All of the above optional technical solutions can be combined in any way to form optional embodiments of the present application, and will not be described in detail here.
[0130] Through the technical solution provided by the embodiment of the present application, the server obtains a signal test request sent by the test end, and the signal test request is used to request to call the signal control device to perform a signal test on at least one test device. When the signal control device can be called, the server sends a signal test response to the test end, so that the test end controls at least one test device to attempt to establish a wireless connection with the signal control device. When the at least one test device successfully establishes a wireless connection with the signal control device, based on the signal test request, the signal control device is controlled to adjust the signal strength of the transmitted wireless signal, thereby realizing intelligent signal testing of the at least one test device and improving the efficiency of the signal test.
[0131] In addition to the above steps 401-406, the present embodiment also provides another signal testing method, see Figure 5 , the method includes the following steps.
[0132] 501. The test end sends a signal test request to the service end. The signal test request is used to request to call the signal control device to perform a signal test on the at least one test device. The signal control device is used to transmit wireless signals with different signal strengths.
[0133] Among them, step 501 and step 401 belong to the same inventive concept. The implementation process refers to the relevant description of the above step 401 and will not be repeated here.
[0134] 502. The server obtains the signal test request sent by the test end and determines whether the signal control device can be called.
[0135] Among them, step 502 and step 402 belong to the same inventive concept. The implementation process can be found in the relevant description of step 402 above, which will not be repeated here.
[0136] 503. When the signal control device cannot be called, the server sends a waiting response to the test end, so that the test end sends the signal test request again after the first time length. The waiting response is used to indicate that the signal control device cannot be called, and the first time length is associated with the calling status of the signal control device.
[0137] Among them, in addition to the test end, the signal control device may also be requested to be called by other test ends to perform signal testing. During the execution of the signal test task, the signal control device is in an occupied state, and the calling status is used to reflect the situation of the signal control device executing other signal test tasks.
[0138] In one possible implementation, if the signal control device cannot be invoked, the server adds the signal test request to a message queue, which is used to store unexecuted signal test requests. The server determines a first duration for executing the signal test request in the message queue. This first duration is the sum of the durations of invoking the signal control device with reference signal test requests in the message queue, which precede the reference signal test request in the message queue. Based on this first duration, the server sends the waiting response to the test terminal.
[0139] Among them, the message queue is a queue container, and the signal test request stored in the message queue carries the device identifier of the test end that sends the signal test request and the request identifier of the signal test request. Based on the device identifier and request identifier of the test end, the signal test requests from different test ends can be determined.
[0140] In this embodiment, if the signal control device cannot be called, the signal test request is added to a message queue. A first duration for executing the signal test request in the message queue is determined. Based on the first duration, the wait response is sent to the test end to ensure orderly execution of the signal test.
[0141] For example, if the signal control device cannot be called, the server determines whether the signal test request exists in the message queue. If the signal test request does not exist in the message queue, the server adds the signal test request to the message queue; if the signal test request exists in the message queue, the server does not respond to the signal test request.
[0142] In some embodiments, in addition to carrying the first duration, the waiting response also carries at least one of the following: the signal test task currently being executed by the server, the next signal test task to be executed by the server, the execution time of the signal test task being executed, the order of the signal test request sent by the test end in the message queue, whether the signal test request sent by the test end is in the message queue, and the signal strength of the wireless signal currently transmitted by the signal control device. The contents carried by the waiting response are shown in Table 1 below.
[0143] Table 1
[0144] Accordingly, the signal test request sent by the test device carries, in addition to the signal test parameters, the IP address of the test end, the signal test request identifier, the duration of the signal test task, and the request type, which includes add, delete, and query. The contents of the signal test request are shown in Table 2 below.
[0145] Table 2
[0146] In a possible implementation, in response to a deletion operation on the signal test request, the test end sends a deletion request for the signal test request to the service end, where the deletion request is used to request deletion of the signal test request.
[0147] The deletion request is a signal test request with a request type of deletion.
[0148] In this implementation, the test end can delete the signal test request sent previously, thereby improving the autonomy of the signal test request.
[0149] Accordingly, in response to receiving a delete request for the signal test request from the test end, the server deletes the signal test request from the message queue. For example, in response to receiving a delete request for the signal test request from the test end, the server determines whether the signal test request exists in the message queue. If the signal test request exists in the signal queue, the server deletes the signal test request from the message queue; if the signal test request does not exist in the signal queue, the server does not respond to the delete request.
[0150] In one possible implementation, in response to a query instruction regarding the signal test request, the test end sends a query request regarding the signal test request to the server, where the query request is used to request that the query be executed until a second duration of the signal test request. The test end then obtains a query response returned by the server in response to the query request, where the query response carries the second duration.
[0151] The query request is a signal test request with a request type of query.
[0152] In one possible implementation, in response to receiving a query request for the signal test request from the test end, the server determines a second duration for executing the signal test request in the message queue, and based on the second duration, sends the query response to the test end, the query response carrying the second duration.
[0153] 504. When receiving the waiting response sent by the server, the test end sends the signal test request again after the first time period.
[0154] 505. When a signal test response is obtained from the server, the test end controls the at least one test device to attempt to establish a wireless connection with the signal control device.
[0155] Among them, step 505 and step 404 belong to the same inventive concept. The implementation process can be found in the relevant description of step 404 above, which will not be repeated here.
[0156] 506. When the at least one test device successfully establishes a wireless connection with the signal control device, the server controls the signal control device to adjust the signal strength of the transmitted wireless signal based on the signal test request.
[0157] Among them, step 506 and step 405 belong to the same inventive concept. The implementation process refers to the relevant description of the above step 405 and will not be repeated here.
[0158] 507. The test end performs a signal test on the at least one test device.
[0159] Among them, step 507 and step 406 belong to the same inventive concept. The implementation process can be found in the relevant description of the above step 406, which will not be repeated here.
[0160] All of the above optional technical solutions can be combined in any way to form optional embodiments of the present application, and will not be described in detail here.
[0161] Through the technical solution provided by the embodiment of the present application, the server obtains a signal test request sent by the test end, and the signal test request is used to request to call the signal control device to perform a signal test on at least one test device. In the case that the signal control device cannot be called, the server sends a waiting response to the test end, so that the test end sends the signal test request again after the first time period. In the case of obtaining the signal test response sent by the server, the test end controls at least one test device to attempt to establish a wireless connection with the signal control device. In the case that the at least one test device successfully establishes a wireless connection with the signal control device, based on the signal test request, the signal control device is controlled to adjust the signal strength of the transmitted wireless signal, thereby realizing intelligent signal testing of the at least one test device and improving the efficiency of signal testing.
[0162] Through steps 401-406 and 501-507, the test terminals and signal control equipment are decoupled. Adding new test terminals eliminates the need for adding new signal control equipment, significantly reducing test expansion costs. Furthermore, adding a new server for signal testing can also serve more test terminals, improving server utilization.
[0163] The above steps 401-406 and 501-507 are described with the test end as an example. Figure 6 , taking three test terminals as an example, the signal testing method provided in the embodiment of the present application is described.
[0164] See also Figure 6Taking three test terminals, test terminal A, test terminal B, and test terminal C, as an example, test terminals A and test terminal B simultaneously send signal test requests, and test terminal C requests to delete the previous task, that is, to delete the previously sent signal test request. Based on the above, test terminal A sends a request data packet requestBodyA to the server. The server obtains the request data packet requestBodyA, parses the request data packet requestBodyA, and generates a response data packet responseBodyA. When the request data packet requestBodyA is at the head of the message queue, the server sends the response data packet responseBodyA to test terminal A and simultaneously executes the signal test task indicated by the request data packet requestBodyA. During the execution of the signal test task, the server executes the attenuation list (signal test parameters), records the signal attenuation value (signal strength), and records the signal attenuation duration. When the signal test request at the head of the message queue is completed, the signal test request at the head of the queue is deleted. Test terminal A obtains the response data packet responseBodyA and performs corresponding actions based on the response data packet responseBodyA. Correspondingly, test end B sends a request data packet requestBodyB to the server. The server obtains the request data packet requestBodyB, parses the request data packet requestBodyB, and generates a response data packet responseBodyB. The server sends the response data packet responseBodyB to test end B, and the response data packet responseBodyB carries the first duration. Test end B receives the response data packet responseBodyB, and resends the request data packet requestBodyB after the first duration. Test end C sends a request data packet requestBodyC to the server. The server obtains the request data packet requestBodyC, parses the request data packet requestBodyC, and deletes the request data packet indicated by the request data packet requestBodyC in the message queue. After deletion, a response data packet responseBodyC is generated. The server sends the response data packet responseBodyC to test end C. Test end C receives the response data packet responseBodyC, and thus knows that the execution of requestBodyC is complete.
[0165] For example, the requestBodyA request packet is in the form of:
[0166]
[0167] The corresponding response data packet responseBodyA is in the form of:
[0168]
[0169] The requestBodyB request packet is in the form of:
[0170]
[0171] The corresponding response data packet responseBodyB is in the form of:
[0172]
[0173]
[0174] The requestBodyC request packet is in the form of:
[0175]
[0176] The corresponding response data packet responseBodyC is in the form of:
[0177]
[0178] In addition to the above method, an embodiment of the present application also provides a signal testing system, which includes: a test end, at least one test device connected to the test end, a service end, and a signal control device, which is used to transmit wireless signals with different signal strengths.
[0179] The test end is used to send a signal test request to the service end, and the signal test request is used to request to call the signal control device to perform a signal test on the at least one test device.
[0180] The server is used to obtain a signal test request sent by the test end, and when the signal control device can be called, send a signal test response to the test end, where the signal test response is used to indicate that the signal control device can be called.
[0181] The test end is further configured to control the at least one test device to attempt to establish a wireless connection with the signal control device when a signal test response sent by the service end is obtained.
[0182] The server is further configured to control the signal control device to adjust the signal strength of the transmitted wireless signal based on the signal test request when the at least one test device successfully establishes a wireless connection with the signal control device.
[0183] The test end is also used to perform signal testing on the at least one test device.
[0184] Among them, the process of executing the steps on the test end and the server end belongs to the same inventive concept as the description of the above method. The implementation process can be found in the above description of the method and will not be repeated here.
[0185] Figure 7 This is a schematic diagram of the structure of a signal testing device provided in an embodiment of the present application. Figure 7 The device includes: a request obtaining module 701, a test response sending module 702 and a signal strength control module 703.
[0186] The request acquisition module 701 is used to obtain a signal test request sent by a test end, where the test end is connected to at least one test device. The signal test request is used to request a signal control device to perform a signal test on the at least one test device, where the signal control device is used to transmit wireless signals with different signal strengths.
[0187] The test response sending module 702 is used to send a signal test response to the test end when the signal control device can be called, so that the test end controls at least one test device to attempt to establish a wireless connection with the signal control device. The signal test response is used to indicate that the signal control device can be called.
[0188] The signal strength control module 703 is used to control the signal control device to adjust the signal strength of the transmitted wireless signal based on the signal test request when the at least one test device successfully establishes a wireless connection with the signal control device to implement signal testing of the at least one test device.
[0189] In one possible implementation, the signal strength control module 703 is configured to obtain a signal test parameter from the signal test request, the signal test parameter being used to indicate a change in signal strength, and to control the signal control device to adjust the signal strength of the transmitted wireless signal based on the signal test parameter.
[0190] In one possible embodiment, the signal control device includes a router and a signal attenuator, the router is used to generate a wireless signal, the signal attenuator is used to adjust the signal strength, and the signal strength control module 703 is used to control the signal attenuator to adjust the signal strength of the wireless signal generated by the router based on the signal test parameters.
[0191] In one possible implementation, the device further includes:
[0192] A waiting response sending module is used to send a waiting response to the test end when the signal control device cannot be called, so that the test end sends the signal test request again after a first time length. The waiting response is used to indicate that the signal control device cannot be called, and the first time length is associated with the calling status of the signal control device.
[0193] In one possible implementation, the waiting response sending module is configured to, if the signal control device cannot be called, add the signal test request to a message queue, which is used to store unexecuted signal test requests. The module then determines a first duration for executing the signal test request in the message queue, where the first duration is the sum of the durations of calling the signal control device by a reference signal test request in the message queue, the reference signal test request being queued before the signal test request in the message queue. Based on the first duration, the waiting response is sent to the test terminal.
[0194] In a possible implementation, the device further includes any of the following:
[0195] The deleting module is configured to delete the signal test request in the message queue in response to receiving a deletion request for the signal test request sent by the test end.
[0196] The query module is configured to, in response to receiving a query request for the signal test request sent by the test end, determine a second duration for executing the signal test request in the message queue, and send the query response to the test end based on the second duration, the query response carrying the second duration.
[0197] It should be noted that the signal testing device provided in the above embodiment, when demonstrating signal testing, only uses the division of the above functional modules as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above. In addition, the signal testing device provided in the above embodiment and the signal testing method embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0198] Through the technical solution provided by the embodiment of the present application, the server obtains a signal test request sent by the test end, and the signal test request is used to request to call the signal control device to perform a signal test on at least one test device. When the signal control device can be called, the server sends a signal test response to the test end, so that the test end controls at least one test device to attempt to establish a wireless connection with the signal control device. When the at least one test device successfully establishes a wireless connection with the signal control device, based on the signal test request, the signal control device is controlled to adjust the signal strength of the transmitted wireless signal, thereby realizing intelligent signal testing of the at least one test device and improving the efficiency of the signal test.
[0199] Figure 8 This is a schematic diagram of the structure of a signal testing device provided in an embodiment of the present application. Figure 8The device includes: a request sending module 801, a connection control module 802 and a signal testing module 803.
[0200] The request sending module 801 is used to send a signal test request to the server, where the signal test request is used to request calling a signal control device to perform a signal test on the at least one test device, where the signal control device is used to transmit wireless signals with different signal strengths.
[0201] The connection control module 802 is used to control the at least one test device to attempt to establish a wireless connection with the signal control device when a signal test response sent by the server is obtained. The signal test response is used to indicate that the signal control device can be called.
[0202] The signal testing module 803 is configured to perform a signal test on the at least one testing device when the at least one testing device successfully establishes a wireless connection with the signal control device.
[0203] In one possible implementation, the request sending module 801 is also used to resend the signal test request after a first time period when a waiting response is received from the server. The waiting response is used to indicate that the signal control device cannot be called, and the first time period is associated with the calling status of the signal control device.
[0204] In a possible implementation, the device further includes any of the following:
[0205] The deletion request sending module 801 is configured to send a deletion request for the signal test request to the server in response to a deletion operation on the signal test request, wherein the deletion request is used to request deletion of the signal test request.
[0206] The query request sending module 801 is configured to, in response to a query instruction regarding the signal test request, send a query request regarding the signal test request to the server, wherein the query request is applied to request execution of the query until a second duration of the signal test request. The query response returned by the server in response to the query request carries the second duration.
[0207] In a possible embodiment, the apparatus further includes a server determination module configured to determine load rates of multiple candidate servers, one of which is configured to control a signal control device, and to determine a server whose load rate meets a preset condition from among the multiple candidate servers.
[0208] It should be noted that the signal testing device provided in the above embodiment, when demonstrating signal testing, only uses the division of the above functional modules as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above. In addition, the signal testing device provided in the above embodiment and the signal testing method embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0209] Through the technical solution provided by the embodiment of the present application, the server obtains a signal test request sent by the test end, and the signal test request is used to request to call the signal control device to perform a signal test on at least one test device. When the signal control device can be called, the server sends a signal test response to the test end, so that the test end controls at least one test device to attempt to establish a wireless connection with the signal control device. When the at least one test device successfully establishes a wireless connection with the signal control device, based on the signal test request, the signal control device is controlled to adjust the signal strength of the transmitted wireless signal, thereby realizing intelligent signal testing of the at least one test device and improving the efficiency of the signal test.
[0210] The present application provides a computer device for executing the above method. The computer device can be implemented as a test end or a server. The structure of the computer device is described below using the test end as an example.
[0211] Figure 9 9 is a schematic diagram of a test terminal structure provided by an embodiment of the present application. Generally, the test terminal 900 includes: one or more processors 901 and one or more memories 902.
[0212] The processor 901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 901 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 901 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 901 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0213] The memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 902 is used to store at least one computer program, which is executed by the processor 901 to implement the signal testing method provided in the method embodiment of the present application.
[0214] In some embodiments, the test end 900 may optionally include a peripheral device interface 903 and at least one peripheral device. The processor 901, memory 902, and peripheral device interface 903 may be connected via a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 903 via a bus, signal lines, or circuit boards. Specifically, the peripheral device may include at least one of a radio frequency circuit 904, a display screen 905, a camera assembly 906, an audio circuit 907, and a power supply 908.
[0215] The peripheral device interface 903 can be used to connect at least one I / O (Input / Output)-related peripheral device to the processor 901 and the memory 902. In some embodiments, the processor 901, the memory 902, and the peripheral device interface 903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 901, the memory 902, and the peripheral device interface 903 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0216] The RF circuit 904 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 904 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 904 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the RF circuit 904 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like.
[0217] The display screen 905 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 905 is a touch screen display, the display screen 905 also has the ability to collect touch signals on or above the surface of the display screen 905. The touch signals can be input as control signals to the processor 901 for processing. In this case, the display screen 905 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards.
[0218] The camera assembly 906 is used to capture images or videos. Optionally, the camera assembly 906 includes a front camera and a rear camera. Typically, the front camera is set on the front panel of the test end, and the rear camera is set on the back of the test end.
[0219] The audio circuit 907 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input to the processor 901 for processing, or input to the radio frequency circuit 904 for voice communication.
[0220] The power supply 908 is used to supply power to various components in the test end 900. The power supply 908 can be alternating current, direct current, a disposable battery, or a rechargeable battery.
[0221] In some embodiments, the test end 900 further includes one or more sensors 909 , including but not limited to: an acceleration sensor 910 , a gyroscope sensor 911 , a pressure sensor 912 , an optical sensor 913 , and a proximity sensor 914 .
[0222] The acceleration sensor 910 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the test end 900 .
[0223] The gyroscope sensor 911 can measure the body direction and rotation angle of the test terminal 900 . The gyroscope sensor 911 can cooperate with the acceleration sensor 910 to collect the user's 3D movements on the test terminal 900 .
[0224] The pressure sensor 912 can be installed on the side frame of the test terminal 900 and / or the lower layer of the display screen 905. When the pressure sensor 912 is installed on the side frame of the test terminal 900, it can detect the user's grip signal on the test terminal 900, and the processor 901 can perform left and right hand recognition or shortcut operations based on the grip signal collected by the pressure sensor 912. When the pressure sensor 912 is installed on the lower layer of the display screen 905, the processor 901 controls the operable controls on the UI interface based on the user's pressure operation on the display screen 905.
[0225] The optical sensor 913 is used to collect ambient light intensity. In one embodiment, the processor 901 can control the display brightness of the display screen 905 according to the ambient light intensity collected by the optical sensor 913.
[0226] The proximity sensor 914 is used to collect the distance between the user and the front of the test end 900 .
[0227] Those skilled in the art will understand that Figure 9 The structure shown in the figure does not constitute a limitation on the test end 900, and the test end 900 may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0228] The structure of the server side and the test side 900 are of the same inventive concept and will not be described in detail here.
[0229] In an exemplary embodiment, a computer-readable storage medium is further provided, such as a memory including a computer program. The computer program can be executed by a processor to perform the signal testing method in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, or the like.
[0230] In an exemplary embodiment, a computer program product or computer program is also provided, which includes program code, which is stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the computer device performs the above-mentioned signal testing method.
[0231] In some embodiments, the computer program involved in the embodiments of the present application may be deployed and executed on a computer device, or on multiple computer devices located at one location, or on multiple computer devices distributed at multiple locations and interconnected through a communication network. Multiple computer devices distributed at multiple locations and interconnected through a communication network may constitute a blockchain system.
[0232] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0233] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A signal testing method, characterized in that: Executed by the server, the method includes: Obtaining a signal test request sent by a test end, where the test end is connected to at least one test device, the signal test request being used to request calling a signal control device to perform a signal test on the at least one test device, the signal control device being used to transmit wireless signals of different signal strengths; If the signal control device can be called, send a signal test response to the test end, so that the test end controls the at least one test device to attempt to establish a wireless connection with the signal control device, and the signal test response is used to indicate that the signal control device can be called; if the at least one test device successfully establishes a wireless connection with the signal control device, control the signal control device to adjust the signal strength of the transmitted wireless signal based on the signal test request to implement signal testing of the at least one test device; When the signal control device cannot be called, the signal test request is added to a message queue, and the message queue is used to store signal test requests that have not been executed; the first duration of execution of the signal test request in the message queue is determined, and the first duration is the sum of the durations of the reference signal test requests in the message queue to call the signal control device, and the reference signal test request is arranged before the signal test request in the message queue; based on the first duration, a waiting response is sent to the test end, so that the test end sends the signal test request again after the first duration, and the waiting response is used to indicate that the signal control device cannot be called, and the first duration is associated with the calling status of the signal control device.
2. The method according to claim 1, characterized in that The controlling the signal control device to adjust the signal strength of the transmitted wireless signal based on the signal test request includes: Acquire a signal test parameter from the signal test request, where the signal test parameter is used to indicate a change manner of signal strength; Based on the signal test parameter, the signal control device is controlled to adjust the signal strength of the transmitted wireless signal.
3. The method according to claim 2, characterized in that The signal control device includes a router and a signal attenuator, the router is used to generate a wireless signal, and the signal attenuator is used to adjust the signal strength. Controlling the signal control device to adjust the signal strength of the transmitted wireless signal based on the signal test parameter includes: Based on the signal test parameter, the signal attenuator is controlled to adjust the signal strength of the wireless signal generated by the router.
4. The method according to claim 1, wherein After sending the waiting response to the test end based on the first duration, the method further includes any one of the following: In response to receiving a deletion request for the signal test request sent by the test end, deleting the signal test request in the message queue; In response to receiving a query request for the signal test request sent by the test end, determining a second time duration for executing the signal test request in the message queue; Based on the second duration, a query response is sent to the test end, where the query response carries the second duration.
5. A signal testing method, characterized in that: The method is performed by a test terminal connected to at least one test device, and includes: Sending a signal test request to the server, wherein the signal test request is used to request calling a signal control device to perform a signal test on the at least one test device, wherein the signal control device is used to transmit wireless signals with different signal strengths; Upon obtaining a signal test response sent by the server, controlling the at least one test device to attempt to establish a wireless connection with the signal control device, wherein the signal test response is used to indicate that the signal control device can be called; and upon successfully establishing a wireless connection between the at least one test device and the signal control device, performing a signal test on the at least one test device; When a waiting response is obtained from the server, the signal test request is sent again after a first time period. The waiting response is used to indicate that the signal control device cannot be called. The first time period is associated with the calling status of the signal control device. The method for the server to determine the first time period includes: when the signal control device cannot be called, adding the signal test request to a message queue, the message queue is used to store signal test requests that have not been executed; determining the first time period for executing the signal test request in the message queue, the first time period being the sum of the time periods of the reference signal test requests in the message queue to call the signal control device, and the reference signal test request is ranked before the signal test request in the message queue.
6. The method according to claim 5, characterized in that After sending the signal test request to the server, the method further includes any of the following: In response to a deletion operation on the signal test request, sending a deletion request for the signal test request to the server, where the deletion request is used to request deletion of the signal test request; In response to a query instruction for the signal test request, sending a query request for the signal test request to the server, wherein the query request is applied to request the query execution to a second duration of the signal test request; Obtain a query response returned by the server in response to the query request, where the query response carries the second duration.
7. The method according to claim 5, characterized in that Before sending the signal test request to the server, the method further includes: determining load rates of a plurality of candidate servers, one of the candidate servers being used to control a signal control device; The server whose load rate meets the preset condition is determined from the multiple candidate servers.
8. A signal testing system, characterized in that: The system includes: a test end, at least one test device connected to the test end, a service end, and a signal control device, wherein the signal control device is used to transmit wireless signals with different signal strengths; The test end is used to send a signal test request to the service end, wherein the signal test request is used to request calling the signal control device to perform a signal test on the at least one test device; The server is used to obtain a signal test request sent by the test end, and if the signal control device can be called, send a signal test response to the test end, where the signal test response is used to indicate that the signal control device can be called; The test end is further configured to control the at least one test device to attempt to establish a wireless connection with the signal control device when a signal test response sent by the service end is obtained; The server is further configured to control the signal control device to adjust the signal strength of the transmitted wireless signal based on the signal test request when the at least one test device successfully establishes a wireless connection with the signal control device; The test end is further used to perform signal testing on the at least one test device; The server is further configured to, when the signal control device cannot be called, add the signal test request to a message queue, the message queue being configured to store signal test requests that have not yet been executed; determine a first duration for executing the signal test request in the message queue, the first duration being the sum of the durations of the reference signal test requests in the message queue for calling the signal control device, the reference signal test request being ranked before the signal test request in the message queue; and send a waiting response to the test end based on the first duration, the waiting response being configured to indicate that the signal control device cannot be called, the first duration being associated with the calling status of the signal control device; The test end is further configured to resend the signal test request after the first time period.
9. A signal testing device, characterized in that: The device is provided in the server, and includes: a request acquisition module, configured to acquire a signal test request sent by a test end, the test end being connected to at least one test device, the signal test request being used to request a signal control device to perform a signal test on the at least one test device, the signal control device being configured to transmit wireless signals of different signal strengths; a test response sending module, configured to send a signal test response to the test end, if the signal control device can be called, so that the test end controls the at least one test device to attempt to establish a wireless connection with the signal control device, wherein the signal test response is used to indicate that the signal control device can be called; a signal strength control module, configured to control the signal control device to adjust the signal strength of the transmitted wireless signal based on the signal test request when the at least one test device successfully establishes a wireless connection with the signal control device, so as to implement a signal test on the at least one test device; A waiting response sending module is used to add the signal test request to a message queue when the signal control device cannot be called, and the message queue is used to store signal test requests that have not been executed; determine a first duration for executing the signal test request in the message queue, the first duration being the sum of the durations of the reference signal test requests in the message queue to call the signal control device, and the reference signal test request is ranked before the signal test request in the message queue; based on the first duration, send a waiting response to the test end so that the test end sends the signal test request again after the first duration, the waiting response is used to indicate that the signal control device cannot be called, and the first duration is associated with the calling status of the signal control device.
10. A signal testing device, characterized in that: The device is provided in a test terminal, the test terminal is connected to at least one test device, and the device comprises: a request sending module, configured to send a signal test request to the server, wherein the signal test request is used to request a signal control device to perform a signal test on the at least one test device, wherein the signal control device is configured to transmit wireless signals of different signal strengths; a connection control module, configured to control the at least one test device to attempt to establish a wireless connection with the signal control device upon obtaining a signal test response sent by the server, wherein the signal test response is used to indicate that the signal control device can be called; a signal testing module, configured to perform a signal test on the at least one test device if the at least one test device successfully establishes a wireless connection with the signal control device; The connection control module is also used to resend the signal test request after a first time period when a waiting response sent by the server is obtained. The waiting response is used to indicate that the signal control device cannot be called. The first time period is associated with the calling status of the signal control device. The method for the server to determine the first time period includes: when the signal control device cannot be called, adding the signal test request to a message queue, the message queue is used to store signal test requests that have not been executed; determining the first time period for executing the signal test request in the message queue, the first time period being the sum of the time periods of the reference signal test requests in the message queue to call the signal control device, and the reference signal test request is arranged before the signal test request in the message queue.
11. A computer device, characterized in that: The computer device includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the computer program is loaded and executed by the one or more processors to implement the signal testing method according to any one of claims 1 to 7.
12. A computer-readable storage medium, characterized in that At least one computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by the processor to implement the signal testing method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Throughput test method, apparatus and device of user wireless device, and storage medium
CN108418726A