Automatic test method and device for short-wave radio station and related equipment
Through the automated testing method, TCP connection and network parameter configuration are used to realize automated testing of shortwave radio stations, solving the problems of low traditional testing efficiency and high labor costs, and achieving the effect of improving testing efficiency and reducing costs.
Patent Information
- Application Number
- CN202410371889.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2024-09-10
AI Technical Summary
In the production process of traditional shortwave radio stations, the testing efficiency is low and labor costs are high. Manual function and performance testing is required, and versions are downloaded and default configurations are set according to delivery requirements.
Provides an automated testing method for shortwave radio stations by broadcasting discovery messages into the LAN, receiving response messages, allocating network parameters, establishing TCP connections, sending test requests, executing tests, receiving test results, and performing version upgrades when necessary.
It realizes automated testing without manual intervention, improves testing efficiency and reduces labor costs.
Smart Images

Figure CN118631355A
Abstract
Description
Technical Field
[0001] The present application relates to the field of shortwave technology, and in particular to a method and device for automatically testing a shortwave radio station and related equipment. Background Art
[0002] In recent years, with the continuous development of shortwave radio technology, various types of shortwave applications have become more and more extensive, and the market demand for shortwave radio has also increased. How to quickly and efficiently automate the production of shortwave radio is an important issue faced by every manufacturer. In the traditional shortwave radio production process, after the shortwave radio hardware is assembled, the production line workers need to conduct one-on-one shortwave radio function and performance tests, and finally download the version and set the default configuration according to the delivery requirements. The entire test is inefficient and has high labor costs. Summary of the invention
[0003] Based on this, it is necessary to provide a shortwave radio station automated testing method, device and related equipment that can improve test efficiency and reduce labor costs in response to the above technical problems.
[0004] In a first aspect, the present application provides a shortwave radio automatic testing method, which is applied to a control terminal, and the method includes:
[0005] Broadcast discovery messages to shortwave radio stations in the local area network;
[0006] Receive a response message returned by the shortwave radio station, carrying a first GUID (Globally Unique Identifier) generated by the shortwave radio station in response to the discovery message;
[0007] Allocate unique network parameters to the shortwave radio station and broadcast a network parameter setting message, the network parameter setting message is used to enable the shortwave radio station to determine whether the second GUID carried in the broadcast network parameter setting message is consistent with the first GUID, if consistent, the shortwave radio station uses the network parameters to configure, establish a TCP (Transmission Control Protocol) connection with the control terminal, and send a TCP link establishment request to the control terminal;
[0008] Establish a communication connection with the shortwave radio station based on the TCP link establishment request, and send a test request to the shortwave radio station, the test request is used to enable the shortwave radio station to perform a test under the control of the control terminal and obtain a test result;
[0009] Receive test results returned by shortwave radio stations.
[0010] In one embodiment, the method includes:
[0011] Sending a version upgrade request to the shortwave radio station, the version upgrade request is used to enable the shortwave radio station to perform a version upgrade and obtain a version upgrade result;
[0012] Receive the version upgrade result returned by the shortwave radio station.
[0013] In one embodiment, the method includes:
[0014] Control the test process of the shortwave radio until all test items are completed.
[0015] In a second aspect, the present application provides a shortwave radio automatic testing method, which is applied to a shortwave radio, and the method comprises:
[0016] Receive discovery messages broadcast by the control terminal;
[0017] Generate a first GUID according to the discovery message, and return a response message carrying the first GUID to the control terminal;
[0018] Receive the unique network parameters assigned by the control terminal and the network parameter setting message carrying the second GUID broadcast by the control terminal;
[0019] Determine whether the first GUID is consistent with the second GUID. If they are consistent, configure using network parameters, establish a TCP connection with the control terminal, and send a TCP link establishment request to the control terminal. The TCP link establishment request is used to enable the control terminal to establish a communication connection with the shortwave radio station, and send a test request to the shortwave radio station;
[0020] Execute production tests based on test requests and obtain test results;
[0021] Returns the test results to the control terminal.
[0022] In one embodiment, the method includes:
[0023] If the first GUID is inconsistent with the second GUID, the network parameter setting message is discarded.
[0024] In one embodiment, the method includes:
[0025] Receive a version upgrade request sent by a control terminal;
[0026] Execute the version upgrade based on the version upgrade request and obtain the version upgrade result;
[0027] Returns the version upgrade result to the control terminal.
[0028] In a third aspect, the present application also provides a shortwave radio station automatic testing method device, which is applied to the control terminal side, and the device includes:
[0029] The first broadcast module is used to broadcast the discovery message to the shortwave radio station in the local area network;
[0030] A first receiving module is used to receive a response message returned by the shortwave radio station, carrying a first globally unique identifier GUID generated by the shortwave radio station in response to the discovery message;
[0031] A second broadcast module is used to assign unique network parameters to the shortwave radio station and broadcast a network parameter setting message, wherein the network parameter setting message is used to enable the shortwave radio station to determine whether the second GUID carried in the broadcast network parameter setting message is consistent with the first GUID. If they are consistent, the shortwave radio station is configured using the network parameters, establishes a transmission control protocol TCP connection with the control terminal, and sends a TCP link establishment request to the control terminal;
[0032] Establishing module, used for TCP link establishment request to establish communication connection with shortwave radio station, and send test request to shortwave radio station, the test request is used to make shortwave radio station perform test under the control of control terminal, and obtain test result;
[0033] The second receiving module is used to receive the test result returned by the shortwave radio station.
[0034] In a fourth aspect, the present application also provides a shortwave radio station automatic testing method device, which is applied to the shortwave radio station side, and the device includes:
[0035] A third receiving module, used to receive the discovery message broadcast by the control terminal;
[0036] A first returning module, configured to generate a first GUID according to the discovery message, and return a response message carrying the first GUID to the control terminal;
[0037] A fourth receiving module, used for receiving a unique network parameter assigned by the control terminal and a network parameter setting message carrying a second GUID broadcasted by the control terminal;
[0038] A judgment module, used to judge whether the first GUID is consistent with the second GUID. If they are consistent, the judgment module uses the network parameters for configuration, establishes a TCP connection with the control terminal, and sends a TCP link establishment request to the control terminal. The TCP link establishment request is used to enable the control terminal to establish a communication connection with the shortwave radio station, and sends a test request to the shortwave radio station;
[0039] A first execution module, configured to execute a production test based on a test request and obtain a test result;
[0040] The second returning module is used to return the test result to the control terminal.
[0041] In a fifth aspect, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned shortwave radio station automatic testing method are implemented.
[0042] In a sixth aspect, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned shortwave radio station automatic testing method are implemented.
[0043] The above-mentioned shortwave radio station automatic testing method broadcasts a discovery message to the shortwave radio station in the local area network; receives a response message returned by the shortwave radio station, which carries the first globally unique identifier GUID generated by the shortwave radio station according to the discovery message; allocates unique network parameters to the shortwave radio station and broadcasts a network parameter setting message, the network parameter setting message is used to make the shortwave radio station determine whether the second GUID carried in the broadcast network parameter setting message is consistent with the first GUID, if consistent, the shortwave radio station uses the network parameters for configuration, establishes a transmission control protocol TCP connection with the control terminal, and sends a TCP link establishment request to the control terminal; establishes a communication connection with the shortwave radio station based on the TCP link establishment request, and sends a test request to the shortwave radio station, the test request is used to make the shortwave radio station perform a test under the control of the control terminal, obtain a test result, and receive the test result returned by the shortwave radio station. An automatic shortwave radio station testing method of the present invention can perform automatic testing on the shortwave radio station without manual intervention, thereby achieving the technical effect of improving test efficiency and reducing labor costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1A It is an application schematic diagram of a shortwave radio station automatic test system in one embodiment;
[0045] Figure 1B A schematic diagram of a flow chart of a shortwave radio station automatic testing method when applied to a control terminal in an embodiment;
[0046] Figure 2 A schematic diagram of a process of sending a version upgrade request to a shortwave radio station and receiving a test result returned by the shortwave radio station in one embodiment;
[0047] Figure 3 A schematic flow chart of a shortwave radio station automatic testing method when applied to a shortwave radio station in one embodiment;
[0048] Figure 4 A schematic diagram of a process for performing version upgrade in one embodiment;
[0049] Figure 5 An interactive diagram of a shortwave radio station automated testing method in one embodiment;
[0050] Figure 6 A structural block diagram of a shortwave radio automatic test device when applied to a control terminal in an embodiment;
[0051] Figure 7 A schematic diagram of a flow chart of a shortwave radio station automatic test device when applied to a shortwave radio station in an embodiment;
[0052] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0054] In recent years, with the continuous development of shortwave radio technology, various types of shortwave applications have become more and more extensive, and the market demand for shortwave radio has also increased. How to quickly and efficiently automate the production of shortwave radio is an important issue faced by every manufacturer. In the traditional shortwave radio production process, after the shortwave radio hardware is assembled, production line workers are required to conduct one-on-one shortwave radio function and performance tests. Finally, they need to download the version and set the default configuration according to the delivery requirements. The entire test efficiency is low and the labor cost is high. Based on this, the embodiment of the present application provides a shortwave radio automatic testing method to improve the above technical problems.
[0055] In one embodiment, Figure 1A It is a schematic diagram of a shortwave radio automatic test system provided according to an embodiment of the present application. The shortwave radio automatic test system includes a control terminal 1, a bus 2 and a shortwave radio 3 (one or more shortwave radios within the local area network where the control terminal 1 is located, and the number of shortwave radios is 3 in the embodiment of the present application). The control terminal 1 communicates with the three shortwave radios 3 via the bus 2.
[0056] Among them, the control terminal 1 broadcasts a discovery message to the shortwave radio station 3; the shortwave radio station 3 generates a corresponding GUID according to the discovery message; the shortwave radio station 3 returns a discovery response message carrying the first GUID of the shortwave radio station 3 to the control terminal 1; the control terminal 1 broadcasts a network parameter setting message carrying the second GUID, IP (Internet Protocol) address and subnet mask of the shortwave radio station 3 to the shortwave radio station 3; the shortwave radio station 3 determines whether the first GUID and the second GUID are consistent, and if they are consistent, sets its own network parameters according to the preset message requirements; the shortwave radio station 3 establishes a TCP connection with the control terminal 1 and sends a TCP link establishment request; the control terminal 1 establishes a communication connection with the shortwave radio station 3, and the control terminal 1 sends a test request to the shortwave radio station 3; the shortwave radio station 3 performs a production test based on the version upgrade request and obtains a test result; the shortwave radio station 3 returns a test level result to the control terminal 1.
[0057] The above-mentioned shortwave radio automatic testing method can automatically test the shortwave radio without manual intervention, thereby achieving the technical effect of improving testing efficiency and reducing labor costs.
[0058] In one embodiment, Figure 1B 1 is a flow chart of a shortwave radio station automatic testing method applied to a control terminal according to an embodiment of the present application, comprising the following steps:
[0059] S101, broadcast a discovery message to the shortwave radio station in the local area network.
[0060] The discovery message carries the IP address and MAC address information of the control terminal.
[0061] Optionally, the control terminal may be a terminal that can broadcast messages to shortwave radio stations in the local area network where the control terminal is located, that is, all shortwave radio stations in the local area network where the control terminal is located can receive the discovery message broadcast by the control terminal.
[0062] S102, receiving a response message returned by the shortwave radio station, the response message carrying a first globally unique identifier GUID generated by the shortwave radio station in response to the discovery message.
[0063] The GUID includes the IP address and subnet mask of the control terminal.
[0064] S103, assign unique network parameters to the shortwave radio station and broadcast a network parameter setting message, the network parameter setting message is used to enable the shortwave radio station to determine whether the second GUID carried in the broadcast network parameter setting message is consistent with the first GUID, if consistent, the shortwave radio station uses the network parameters for configuration, establishes a transmission control protocol TCP connection with the control terminal, and sends a TCP link establishment request to the control terminal.
[0065] The network parameter setting message carries the second GUID, IP address and subnet mask of the shortwave radio station.
[0066] Optionally, when the second GUID is inconsistent with the first GUID, the control terminal may control the shortwave radio station to discard the network parameter setting message.
[0067] S104, establishing a communication connection with the shortwave radio station based on the TCP link establishment request, and sending a test request to the shortwave radio station, the test request is used to enable the shortwave radio station to perform a test under the control of the control terminal to obtain a test result.
[0068] Optionally, the TCP link establishment request is to establish a communication connection with a shortwave radio station to communicate with the shortwave radio station. In the embodiment of the present application, the communication connection between the control terminal and the shortwave radio station is a wired connection.
[0069] S105, receiving the test result returned by the shortwave radio station.
[0070] Optionally, the test process of the shortwave radio station is controlled until all test items are tested. One or more test items from all test items can also be selected for testing as needed. The embodiment of the present application does not limit the type and quantity of test items to be tested.
[0071] The above-mentioned shortwave radio automatic test method, when applied to a control terminal, broadcasts a discovery message to a shortwave radio station in a local area network; receives a response message returned by the shortwave radio station, carrying a first globally unique identifier GUID generated by the shortwave radio station according to the discovery message; allocates unique network parameters to the shortwave radio station and broadcasts a network parameter setting message, the network parameter setting message is used to enable the shortwave radio station to determine whether the second GUID carried in the broadcast network parameter setting message is consistent with the first GUID, if consistent, the shortwave radio station is configured using the network parameters, establishes a transmission control protocol TCP connection with the control terminal, and sends a TCP link establishment request to the control terminal; establishes a communication connection with the shortwave radio station based on the TCP link establishment request, and sends a test request to the shortwave radio station, the test request is used to enable the shortwave radio station to perform a test under the control of the control terminal, obtain a test result, and receive the test result returned by the shortwave radio station. An automatic shortwave radio test method of the present invention can perform automatic testing on the shortwave radio station without manual intervention, thereby achieving the technical effect of improving test efficiency and reducing labor costs.
[0072] Based on the above embodiments, Figure 2 The steps of sending a version upgrade request to a shortwave radio station and receiving the test results returned by the shortwave radio station are broken down and refined. Figure 2 As shown, the implementation process includes the following:
[0073] S201, sending a version upgrade request to a shortwave radio station, where the version upgrade request is used to enable the shortwave radio station to perform a version upgrade and obtain a version upgrade result.
[0074] S202, receiving the version upgrade result returned by the shortwave radio station.
[0075] Optionally, in order to make the shortwave radio station have better performance, it is necessary to upgrade the version of the shortwave radio station regularly or irregularly.
[0076] It should be noted that, when the control terminal and the shortwave radio are disconnected, the control terminal may send a reset request to the shortwave radio, and the reset request is useful for the shortwave radio to re-establish a TCP connection with the control terminal after the reset.
[0077] When the shortwave radio station needs to reconfigure data, the control terminal sends a configuration information setting request to the shortwave radio station, which is used to enable the shortwave radio station to parse the message content to obtain a parsing result and update its own configuration data based on the parsing result.
[0078] It can be understood that this embodiment provides a possible implementation method for sending a version upgrade request to a shortwave radio station and receiving a test result returned by the shortwave radio station, which lays a foundation for subsequent automated testing of the shortwave radio station.
[0079] In one embodiment, Figure 3 1 is a flow chart of a shortwave radio station automatic testing method according to an embodiment of the present application, which is applied to a shortwave radio station, and includes the following steps:
[0080] S301, receiving a discovery message broadcast by a control terminal.
[0081] S302: Generate a first GUID according to the discovery message, and return a response message carrying the first GUID to the control terminal.
[0082] S303, receiving the unique network parameter allocated by the control terminal and the network parameter setting message carrying the second GUID broadcast by the control terminal.
[0083] S304, determine whether the first GUID is consistent with the second GUID. If they are consistent, use network parameters to configure, establish a TCP connection with the control terminal, and send a TCP link establishment request to the control terminal. The TCP link establishment request is used to enable the control terminal to establish a communication connection with the shortwave radio station and send a test request to the shortwave radio station.
[0084] Optionally, if the first GUID is inconsistent with the second GUID, the network parameter setting message is discarded.
[0085] S305, executing a production test based on the test request and obtaining a test result.
[0086] S306, returning the test result to the control terminal.
[0087] The above-mentioned shortwave radio automatic test method, when applied to a shortwave radio, receives a discovery message broadcast by a control terminal; generates a first GUID according to the discovery message, and returns a response message carrying the first GUID to the control terminal; receives a unique network parameter assigned by the control terminal and a network parameter setting message carrying a second GUID broadcast by the control terminal; determines whether the first GUID is consistent with the second GUID, and if consistent, configures the network parameters, establishes a TCP connection with the control terminal, and sends a TCP link establishment request to the control terminal, the TCP link establishment request is used to establish a communication connection between the control terminal and the shortwave radio, and sends a test request to the shortwave radio; performs a production test based on the test request, obtains a test result, and returns the test result to the control terminal. An automatic shortwave radio test method of the present invention can perform automatic testing on a shortwave radio without manual intervention, thereby achieving the technical effect of improving test efficiency and reducing labor costs.
[0088] Based on the above embodiments, Figure 4 The steps to perform a version upgrade are broken down and refined. Figure 4 As shown, the implementation process includes the following:
[0089] S401, receiving a version upgrade request sent by a control terminal.
[0090] S402: Execute version upgrade based on the version upgrade request to obtain a version upgrade result.
[0091] S403, returning the version upgrade result to the control terminal.
[0092] It can be understood that this embodiment provides a possible implementation method for executing version upgrade, which lays a foundation for subsequent automated testing of shortwave radio stations.
[0093] In one embodiment, Figure 5 It is an interactive diagram of a shortwave radio station automatic testing method provided according to an embodiment of the present application, comprising the following steps:
[0094] S501, the control terminal broadcasts a discovery message to the shortwave radio station, and the discovery message carries the IP address information and MAC address information of the control terminal.
[0095] S502, the shortwave radio station generates a corresponding GUID according to the discovery message.
[0096] S503, the shortwave radio station returns a discovery response message to the control terminal, and the discovery response message carries the first GUID of the shortwave radio station.
[0097] S504, the control terminal broadcasts a network parameter setting message to the shortwave radio station, wherein the network parameter setting message carries the second GUID, IP address and subnet mask of the shortwave radio station.
[0098] S505, the shortwave radio station determines whether the first GUID and the second GUID are consistent, and if they are consistent, sets its own network parameters according to the preset message requirements.
[0099] S506, the shortwave radio station establishes a TCP connection with the control terminal and sends a TCP link establishment request.
[0100] S507, the control terminal establishes a communication connection with the shortwave radio station, and the control terminal sends a test request to the shortwave radio station.
[0101] S508, the shortwave radio station performs a test based on the test request and obtains a test result.
[0102] S509, the shortwave radio station returns the test level result to the control terminal.
[0103] The above-mentioned shortwave radio automatic testing method can automatically test the shortwave radio without manual intervention, thereby achieving the technical effect of improving testing efficiency and reducing labor costs.
[0104] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0105] Based on the same inventive concept, the embodiment of the present application also provides a shortwave radio station automatic test method device for implementing the shortwave radio station automatic test method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more shortwave radio station automatic test method device embodiments provided below can refer to the above limitations on the shortwave radio station automatic test method, and will not be repeated here.
[0106] In one embodiment, by Figure 6 FIG. 1 shows a structural block diagram of an automated testing method and device applied to a control terminal in one embodiment. Figure 6 As shown, a shortwave radio station automatic testing method device 6 is provided, wherein the device 6 includes a first broadcasting module 60, a first receiving module 61, a second broadcasting module 62, a establishing module 63 and a second receiving module 64, wherein:
[0107] The first broadcast module 60 is used to broadcast the discovery message to the shortwave radio station in the local area network;
[0108] The first receiving module 61 is used to receive a response message returned by the shortwave radio station, carrying a first globally unique identifier GUID generated by the shortwave radio station according to the discovery message;
[0109] The second broadcast module 62 is used to assign unique network parameters to the shortwave radio station and broadcast a network parameter setting message, the network parameter setting message is used to enable the shortwave radio station to determine whether the second GUID carried in the broadcast network parameter setting message is consistent with the first GUID, if consistent, the shortwave radio station uses the network parameters to configure, establish a transmission control protocol TCP connection with the control terminal, and send a TCP link establishment request to the control terminal;
[0110] Establishing module 63, used for TCP link establishment request to establish communication connection with shortwave radio station, and send test request to shortwave radio station, the test request is used to make shortwave radio station perform test under the control of control terminal, and obtain test result,
[0111] The second receiving module 64 is used to receive the test result returned by the shortwave radio station.
[0112] The above-mentioned shortwave radio automatic test device, when applied to a control terminal, broadcasts a discovery message to a shortwave radio station in the local area network; receives a response message returned by the shortwave radio station, carrying a first global unique identifier GUID generated by the shortwave radio station according to the discovery message; allocates unique network parameters to the shortwave radio station and broadcasts a network parameter setting message, the network parameter setting message is used to make the shortwave radio station determine whether the second GUID carried in the broadcast network parameter setting message is consistent with the first GUID, if consistent, the shortwave radio station is configured using the network parameters, establishes a transmission control protocol TCP connection with the control terminal, and sends a TCP link establishment request to the control terminal; establishes a communication connection with the shortwave radio station based on the TCP link establishment request, and sends a test request to the shortwave radio station, the test request is used to make the shortwave radio station perform a test under the control of the control terminal, obtain a test result, and receive the test result returned by the shortwave radio station. An automatic shortwave radio test device of the present invention can perform automatic testing on the shortwave radio station without manual intervention, thereby achieving the technical effect of improving test efficiency and reducing labor costs.
[0113] In one embodiment, the device 6 further comprises:
[0114] A sending module, used for sending a version upgrade request to the shortwave radio station, the version upgrade request is used for causing the shortwave radio station to perform a version upgrade and obtain a version upgrade result;
[0115] The receiving module is used to receive the version upgrade result returned by the shortwave radio station.
[0116] In one embodiment, the device 6 further comprises:
[0117] The control module is used to control the test process of the shortwave radio station until all test items are completed.
[0118] In one embodiment, by Figure 7 FIG. 1 shows a structural block diagram of an automatic testing method and device for a shortwave radio station in one embodiment. Figure 7 As shown, a shortwave radio station automatic testing method device 7 is provided, wherein the device 7 includes a third receiving module 70, a first returning module 71, a fourth receiving module 72, a judging module 73, a first executing module 74 and a second returning module 75, wherein:
[0119] The third receiving module 70 is used to receive the discovery message broadcast by the control terminal;
[0120] A first returning module 71, configured to generate a first GUID according to the discovery message, and return a response message carrying the first GUID to the control terminal;
[0121] A fourth receiving module 72, configured to receive a unique network parameter assigned by the control terminal and a network parameter setting message broadcast by the control terminal with a second GUID;
[0122] The judging module 73 is used to judge whether the first GUID is consistent with the second GUID. If they are consistent, the network parameters are used for configuration, a TCP connection is established with the control terminal, and a TCP link establishment request is sent to the control terminal. The TCP link establishment request is used to establish a communication connection between the control terminal and the shortwave radio station, and a test request is sent to the shortwave radio station.
[0123] A first execution module 74, configured to execute a production test based on a test request and obtain a test result;
[0124] The second returning module 75 is used to return the test result to the control terminal.
[0125] The above-mentioned shortwave radio automatic test device, when applied to a shortwave radio, receives a discovery message broadcast by a control terminal; generates a first GUID according to the discovery message, and returns a response message carrying the first GUID to the control terminal; receives a unique network parameter assigned by the control terminal and a network parameter setting message carrying a second GUID broadcast by the control terminal; determines whether the first GUID is consistent with the second GUID, and if consistent, configures the network parameters, establishes a TCP connection with the control terminal, and sends a TCP link establishment request to the control terminal, the TCP link establishment request is used to enable the control terminal to establish a communication connection with the shortwave radio, and sends a test request to the shortwave radio; performs a production test based on the test request, obtains a test result, and returns the test result to the control terminal. An automatic shortwave radio test device of the present invention can perform automatic testing on a shortwave radio without manual intervention, thereby achieving the technical effect of improving test efficiency and reducing labor costs.
[0126] In one embodiment, the device 7 further comprises:
[0127] The discarding module is used to discard the network parameter setting message if the first GUID is inconsistent with the second GUID.
[0128] In one embodiment, the device 7 further comprises:
[0129] A third receiving module is used to receive a version upgrade request sent by the control terminal;
[0130] A second execution module is used to execute the version upgrade based on the version upgrade request and obtain the version upgrade result;
[0131] The second returning module is used to return the version upgrade result to the control terminal.
[0132] Each module in the above-mentioned shortwave radio station automatic test method device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0133] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a network interface and a transceiver connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The transceiver of the computer device is used to perform operations of receiving data or sending data under the control of the processor. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as sample data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a shortwave radio station automatic testing method is implemented.
[0134] Those skilled in the art will understand that Figure 8 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. Specifically, the computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0135] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the principles and specific processes in each embodiment are implemented. Please refer to the description in the embodiment of the shortwave radio automatic testing method in the aforementioned embodiment, which will not be repeated here.
[0136] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the principles and specific processes of implementing the embodiments can be found in the description of the shortwave radio station automatic testing method embodiment in the aforementioned embodiment, which will not be repeated here.
[0137] It should be noted that the information involved in this application (including but not limited to the data in the message in this application, etc.) is information or data that has been fully authorized by all parties.
[0138] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0139] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0140] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A shortwave radio station automatic testing method, characterized in that: Applied to a control terminal, the method comprises: Broadcast discovery messages to shortwave radio stations in the local area network; receiving a response message returned by the shortwave radio station, carrying a first globally unique identifier GUID generated by the shortwave radio station in response to the discovery message; Allocate unique network parameters to the shortwave radio station and broadcast a network parameter setting message, wherein the network parameter setting message is used to enable the shortwave radio station to determine whether the second GUID carried in the broadcast network parameter setting message is consistent with the first GUID. If they are consistent, the shortwave radio station is configured using the network parameters, establishes a transmission control protocol TCP connection with the control terminal, and sends a TCP link establishment request to the control terminal; Establishing a communication connection with the shortwave radio station based on the TCP link establishment request, and sending a test request to the shortwave radio station, wherein the test request is used to enable the shortwave radio station to perform a test under the control of the control terminal to obtain a test result; Receive the test result returned by the shortwave radio station.
2. The method according to claim 1, characterized in that: The method further comprises: Sending a version upgrade request to the shortwave radio station, wherein the version upgrade request is used to cause the shortwave radio station to perform a version upgrade and obtain a version upgrade result; Receive the version upgrade result returned by the shortwave radio station.
3. The method according to claim 1, characterized in that The method further comprises: Control the test process of the shortwave radio until all test items are completed.
4. A shortwave radio station automatic testing method, characterized in that: Applied to a shortwave radio station, the method comprises: Receive discovery messages broadcast by the control terminal; Generate a first GUID according to the discovery message, and return a response message carrying the first GUID to the control terminal; Receiving a unique network parameter assigned by the control terminal and a network parameter setting message carrying a second GUID broadcast by the control terminal; Determine whether the first GUID is consistent with the second GUID. If they are consistent, configure using the network parameters, establish a TCP connection with the control terminal, and send a TCP link establishment request to the control terminal, wherein the TCP link establishment request is used to enable the control terminal to establish a communication connection with the shortwave radio station, and send a test request to the shortwave radio station; Execute a production test based on the test request to obtain a test result; The test result is returned to the control terminal.
5. The method according to claim 4, characterized in that The method further comprises: If the first GUID is inconsistent with the second GUID, the network parameter setting message is discarded.
6. The method according to claim 4, characterized in that The method further comprises: Receive a version upgrade request sent by a control terminal; Execute the version upgrade based on the version upgrade request to obtain a version upgrade result; Return the version upgrade result to the control terminal.
7. A shortwave radio station automatic test device, characterized in that: Applied to the control terminal side, the device includes: The first broadcast module is used to broadcast the discovery message to the shortwave radio station in the local area network; A first receiving module is used to receive a response message returned by the shortwave radio station, carrying a first globally unique identifier GUID generated by the shortwave radio station according to the discovery message; A second broadcast module, used for allocating unique network parameters to the shortwave radio station and broadcasting a network parameter setting message, wherein the network parameter setting message is used for the shortwave radio station to determine whether a second GUID carried in the broadcast network parameter setting message is consistent with the first GUID, and if consistent, the shortwave radio station is configured using the network parameters, establishes a transmission control protocol TCP connection with the control terminal, and sends a TCP link establishment request to the control terminal; An establishing module, used for the TCP link establishment request to establish a communication connection with the shortwave radio station, and to send a test request to the shortwave radio station, wherein the test request is used to enable the shortwave radio station to perform a test under the control of the control terminal and obtain a test result; The second receiving module is used to receive the test result returned by the shortwave radio station.
8. A shortwave radio station automatic test device, characterized in that: Applied to the shortwave radio station side, the device comprises: A third receiving module, used to receive the discovery message broadcast by the control terminal; A first returning module, configured to generate a first GUID according to the discovery message, and return a response message carrying the first GUID to the control terminal; A fourth receiving module, configured to receive a unique network parameter assigned by the control terminal and a network parameter setting message carrying a second GUID broadcast by the control terminal; A judgment module, used for judging whether the first GUID is consistent with the second GUID, and if they are consistent, configuring by using the network parameters, establishing a TCP connection with the control terminal, and sending a TCP link establishment request to the control terminal, wherein the TCP link establishment request is used for enabling the control terminal to establish a communication connection with the shortwave radio station, and sending a test request to the shortwave radio station; A first execution module, configured to execute a production test based on the test request to obtain a test result; The second returning module is used to return the test result to the control terminal.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
