CN113114387B - Automatic test method, device, medium and electronic equipment - Google Patents

Automatic test method, device, medium and electronic equipment Download PDF

Info

Publication number
CN113114387B
CN113114387B CN202110406171.4A CN202110406171A CN113114387B CN 113114387 B CN113114387 B CN 113114387B CN 202110406171 A CN202110406171 A CN 202110406171A CN 113114387 B CN113114387 B CN 113114387B
Authority
CN
China
Prior art keywords
task
target vehicle
mounted equipment
target
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110406171.4A
Other languages
Chinese (zh)
Other versions
CN113114387A (en
Inventor
王欣
孙启民
周宇晖
郑志雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRSC Research and Design Institute Group Co Ltd
Original Assignee
CRSC Research and Design Institute Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRSC Research and Design Institute Group Co Ltd filed Critical CRSC Research and Design Institute Group Co Ltd
Priority to CN202110406171.4A priority Critical patent/CN113114387B/en
Publication of CN113114387A publication Critical patent/CN113114387A/en
Application granted granted Critical
Publication of CN113114387B publication Critical patent/CN113114387B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application discloses an automatic testing method, an automatic testing device, an automatic testing medium and electronic equipment. The method comprises the following steps: under the condition that a target test task of target vehicle-mounted equipment is monitored, acquiring state information of the target vehicle-mounted equipment; determining a target test task state according to the target vehicle-mounted equipment state information; and if the target test task state is an issuing state, entering a target test task issuing process, and issuing the target test task to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can execute the target test task. By executing the scheme, the test automation of the drive test system based on the GSM-R network is realized, and the test efficiency is improved.

Description

Automatic test method, device, medium and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of communication information, in particular to an automatic testing method, an automatic testing device, an automatic testing medium and electronic equipment.
Background
The GSM-R (Global System for Mobile Communications-Railway) is an international wireless communication standard for Railway communication and application, a GSM-R network provides a communication channel between trains and the ground for a train operation control System, and a GSM-R network drive test System is a necessary means for optimizing the GSM-R network. The system provides data support required by network optimization during the construction period of a GSM-R network; after the GSM-R network is built, providing index basis required by network acceptance; in the operation maintenance period of the GSM-R network, an auxiliary means for daily detection and fault diagnosis of equipment is provided so as to ensure high-quality operation and normal use of the GSM-R network.
The existing GSM-R network drive test system is divided into vehicle-mounted equipment, ground equipment and comprehensive analysis equipment, when the vehicle-mounted equipment is tested, most test items need to be initiated by the vehicle-mounted equipment, and basic parameter setting, test item selection, test starting and stopping and other operations are finished manually through an operation interface equipped by the vehicle-mounted test equipment. The method requires that each train needing the GSM-R network test needs to be equipped with testers, the existing test method has high labor cost, errors are easily caused by manual operation, and in addition, the feasibility of large-scale test is low, and the test efficiency is low.
Disclosure of Invention
The embodiment of the application provides an automatic test method, an automatic test device, an automatic test medium and electronic equipment, which can realize the test automation of a drive test system based on a GSM-R network and achieve the aim of improving the test efficiency.
In a first aspect, an embodiment of the present application provides an automatic testing method, where the method includes:
under the condition that a target test task of target vehicle-mounted equipment is monitored, state information of the target vehicle-mounted equipment is obtained;
determining a target test task state according to the target vehicle-mounted equipment state information;
and if the target test task state is an issuing state, entering a target test task issuing process, and issuing the target test task to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can execute the target test task.
In a second aspect, an embodiment of the present application provides an automatic test apparatus, including:
the target vehicle-mounted equipment state acquisition module is used for acquiring the state information of the target vehicle-mounted equipment under the condition that a target test task of the target vehicle-mounted equipment is monitored;
the target test task state determining module is used for determining a target test task state according to the target vehicle-mounted equipment state information;
and the target test task issuing module is used for entering a target test task issuing flow if the target test task state is an issuing state, and issuing the target test task to the target vehicle-mounted equipment so as to enable the target vehicle-mounted equipment to execute the target test task.
In a third aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements an automatic testing method according to embodiments of the present application.
In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable by the processor, where the processor executes the computer program to implement the automatic test method according to the embodiment of the present application.
According to the technical scheme provided by the embodiment of the application, under the condition that a target test task of the target vehicle-mounted equipment is monitored, state information of the target vehicle-mounted equipment is obtained; determining a target test task state according to the target vehicle-mounted equipment state information; and if the target test task state is a delivery state, entering a target test task delivery flow, and delivering the target test task to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can execute the target test task. By executing the scheme provided by the embodiment of the application, the test automation of the drive test system based on the GSM-R network is realized, so that the labor cost is reduced, the misoperation probability of personnel is reduced, the scale deployment test is realized, and the test efficiency is improved.
Drawings
Fig. 1 is a flowchart of an automatic testing method according to an embodiment of the present application;
FIG. 2 is a flow chart of another automatic testing method provided in the second embodiment of the present application;
FIG. 3 is a flow chart of another automatic testing method provided in the third embodiment of the present application;
fig. 4 is a schematic structural diagram of an automatic test apparatus according to a fourth embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures associated with the present application are shown in the drawings, not all of them.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently, or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, subprograms, and the like.
Example one
Fig. 1 is a flowchart of an automatic testing method according to an embodiment of the present application, where the embodiment is applicable to a situation of testing a ground device and a vehicle-mounted device in a GSM-R network drive test system. The GSM-R network drive test system comprises vehicle-mounted test equipment and ground test equipment. The vehicle-mounted test equipment is used for simulating the mobile user to send test data to the ground test equipment or initiate a voice call, receiving interactive information returned by the ground equipment, and analyzing and processing the test data and counting indexes according to the interactive information. The ground test equipment is used for completing the data receiving and sending or voice calling process in cooperation with the vehicle-mounted test equipment, and analyzing and processing the test data and counting indexes. And testing ground equipment and vehicle-mounted equipment in the GSM-R network drive test system, and optimizing the GSM-R network drive test system according to a test result so as to ensure that a test index is close to the actual operation condition of a service system.
The automatic testing method provided by the embodiment of the present application can be executed by the automatic testing apparatus provided by the embodiment of the present application, and the apparatus can be implemented by software and/or hardware, and can be configured in a ground device and integrated in an electronic device running the system.
As shown in fig. 1, the automatic test method includes:
s110, acquiring the state information of the target vehicle-mounted equipment under the condition that the target test task of the target vehicle-mounted equipment is monitored.
The target vehicle-mounted equipment is vehicle-mounted equipment which is registered and is in a non-test period, when the vehicle-mounted test equipment is in the test period, the vehicle-mounted equipment and the ground test equipment are in a communication connection state, and the ground test equipment can directly update the state of the vehicle-mounted test equipment in real time.
The target test task refers to a task executed by the target in-vehicle device. Illustratively, the target test task may be a packet loss rate test. And under the condition that a target test task of the target vehicle-mounted equipment is monitored, acquiring the state information of the target vehicle-mounted equipment to determine whether the target vehicle can receive the test task at the current moment of the equipment.
And S120, determining the state of the target test task according to the state information of the target vehicle-mounted equipment.
The target vehicle-mounted device state is used for indicating whether the target vehicle-mounted device is in a connectable state at the current moment or not, and indicating whether the current vehicle-mounted device can receive the target test task or not. The target test task state is used for indicating whether the current target test task can be issued or not, and the target test state directly depends on the state of the target vehicle-mounted equipment.
The state of the target vehicle-mounted equipment comprises registered state and unregistered state; accordingly, the target test task state includes: a issued state and an undelivered state. The registered state of the target vehicle-mounted equipment indicates that the current target vehicle-mounted equipment can receive the target test task, and the target test task state is a distributed state; otherwise, the target test task state is set to be a non-issued state.
And determining the state of the target test task according to the state information of the target vehicle-mounted equipment, so that the target vehicle-mounted equipment can be ensured to issue the test task when receiving the target test task, and the condition that the test task is lost due to blind issuing of the test task is avoided.
S130, if the target test task state is a delivery state, entering a target test task delivery process, and delivering the target test task to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can execute the target test task.
And if the target test task state is the issued state, the current target vehicle-mounted equipment is in the registered state, and the target vehicle-mounted equipment is in the connectable state at the moment and can receive the target test task. And at the moment, entering a target test task issuing flow, issuing the target test task to the target vehicle-mounted equipment, and executing the task after the target vehicle-mounted equipment receives the target test task.
According to the technical scheme provided by the embodiment of the application, the state information of the target vehicle-mounted equipment is acquired under the condition that the target test task of the target vehicle-mounted equipment is monitored; determining a target test task state according to the target vehicle-mounted equipment state information; and if the target test task state is an issuing state, entering a target test task issuing process, and issuing the target test task to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can execute the target test task. By executing the scheme provided by the embodiment of the application, the test automation of the drive test system based on the GSM-R network is realized, so that the labor cost is reduced, the misoperation probability of personnel is reduced, the scale deployment test is realized, and the test efficiency is improved.
Example two
Fig. 2 is a flowchart of another automatic testing method provided in the second embodiment of the present application. The present embodiment is further optimized on the basis of the above-described embodiments. Specifically, the optimization method is that the target test task state is determined according to the target vehicle-mounted device state information, and comprises the following steps: if the target vehicle-mounted equipment state is cancelled, setting the target test task state as an undelivered state; and when the target vehicle-mounted equipment is detected to be registered, setting the target test task state as a delivery state, and entering the target test task delivery flow.
As shown in fig. 2, the automatic test method includes:
s210, acquiring the state information of the target vehicle-mounted equipment under the condition that the target test task of the target vehicle-mounted equipment is monitored.
And S220, if the target vehicle-mounted equipment state is logged off, setting the target test task state to be a non-issued state.
When the target vehicle-mounted equipment is cancelled, the target vehicle-mounted equipment is in an unconnected state at the moment, the target vehicle-mounted equipment cannot receive the target test task at the moment, the issuing of the target test task is delayed at the moment, and the state of the target test task is set to be in an undelivered state.
In an optional embodiment, determining the target test task state according to the target vehicle-mounted device state information includes: and if the target vehicle-mounted equipment state is registered, setting the target test task state as a delivery state.
If the state of the target vehicle-mounted equipment is registered, the target vehicle-mounted equipment is in a connectable state at the moment, the target test task can be received, and the target test task can be issued at the moment.
And S230, when the target vehicle-mounted equipment is detected to be registered, setting the target test task state as a delivery state, and entering the target test task delivery process.
And when the state of the target vehicle-mounted equipment is detected to be changed from the logged-out state to the logged-in state, the ground equipment checks whether a test task which is not issued to the target vehicle-mounted equipment exists. If the target test task exists, the state of the target test task is changed into a sending state, and the target test task is sent. In doing so, the test tasks can be automatically received or synchronized without manual intervention.
In an optional embodiment, entering a target test task issuing process, and issuing the target test task to the target vehicle-mounted device includes: generating a task issuing starting frame, and sending the task issuing starting frame to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can feed back a task issuing starting confirmation frame; responding to the received task issuing starting confirmation frame, generating a task issuing data frame according to the target test task information, and sending the task issuing data frame to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can feed back the task data confirmation frame; responding to the received task data confirmation frame, generating a task issuing end frame, and sending the task issuing end frame to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can feed back the task issuing end confirmation frame; the task issuing system comprises a task issuing starting frame, a task issuing starting confirmation frame, a task issuing data frame, a task data confirmation frame, a task issuing ending frame and a task issuing ending confirmation frame, wherein the task issuing starting frame, the task issuing starting confirmation frame, the task issuing data frame, the task data confirmation frame, the task issuing ending frame and the task issuing ending confirmation frame are all generated based on a preset communication protocol.
The ground test equipment sends the test task issuing starting frame; the vehicle-mounted test equipment receives and replies a task issuing starting confirmation frame; if the ground equipment does not receive the task issuing starting confirmation frame sent by the vehicle-mounted test equipment, the ground equipment can repeatedly send the test task issuing starting frame with set times, and if the task issuing starting confirmation frame is not received yet, the ground equipment generates prompt information of target test task issuing failure. The set number of times may be 3, which is determined according to actual conditions, and is not limited herein.
Illustratively, the format of the test task delivery start frame is shown in table 1:
TABLE 1
Figure BDA0003022430420000081
For example, the format of the task issuing start acknowledgement frame is shown in table 2:
TABLE 2
Figure BDA0003022430420000082
If the ground test equipment receives a task issuing starting acknowledgement frame (ACK), the ground test equipment sends a test task issuing data frame; the task issuing data frame is generated according to the target test task information. The target test task information comprises information such as task type, target test task date and target test task identification. Wherein the task type includes a one-time task or a periodic task. And the target vehicle-mounted test equipment receives and replies the task data confirmation frame and updates the local test task at the same time. If the ground equipment does not receive the task data confirmation frame sent by the vehicle-mounted equipment, if the task data confirmation frame is not received yet, the ground equipment generates prompt information indicating that the target test task fails to be issued. And if the ground test equipment receives the task data confirmation frame, marking that the task is issued.
Illustratively, the format of the task delivery data frame is shown in table 3:
TABLE 3
Figure BDA0003022430420000091
Illustratively, the format of the task issuing data acknowledgement frame is shown in table 4:
TABLE 4
Figure BDA0003022430420000101
After receiving the task issuing data confirmation frame sent by the vehicle-mounted equipment, the ground test equipment generates and sends a task issuing end frame to the vehicle-mounted equipment, and the vehicle-mounted test equipment receives the task issuing end frame and replies the task issuing end confirmation frame. If the ground test equipment receives the task issuing end confirmation frame, the ground equipment is disconnected with the vehicle-mounted equipment; if not, the ground equipment repeatedly sends the task issuing end frame with the set times to the vehicle-mounted equipment and then disconnects the connection.
Illustratively, the format of the task delivery end frame is shown in table 5:
TABLE 5
Figure BDA0003022430420000102
For example, the format of the task delivery end acknowledgement frame is shown in table 6:
TABLE 6
Figure BDA0003022430420000111
S240, if the target test task state is a delivery state, entering a target test task delivery process, and delivering the target test task to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can execute the target test task.
It should be noted that step S220 and step S230 do not have a sequential logical relationship, and the target vehicle-mounted devices of the step S220 and the step S230 may have two states, and in the execution process, one of the step S220 and the step S230 needs to be determined according to the actual state of the target vehicle-mounted device.
According to the technical scheme, the target test task state is determined according to the target vehicle-mounted equipment state, the target test task state is set to be the issuing state under the condition that the target vehicle-mounted equipment state is registered, the target test task is issued to the target vehicle-mounted equipment, if the target vehicle-mounted equipment state is cancelled, and the target test task is issued to the target vehicle-mounted equipment synchronously when the target vehicle-mounted equipment state is registered. The embodiment of the application provides a target test task issuing scheme under the condition that the target vehicle-mounted equipment is in a logout state, the scheme is executed to avoid the condition that the test task is lost due to blind issuing of the test task, and the robustness of the automatic test method is improved.
EXAMPLE III
Fig. 3 is a flowchart of another automatic testing method provided in the third embodiment of the present application. The present embodiment is further optimized on the basis of the above-described embodiments. Specifically, the method comprises the following steps that before the state information of the target vehicle-mounted device is acquired under the condition that the target test task of the target vehicle-mounted device is monitored, the method further comprises the following steps: responding to a registration request sent by the target vehicle-mounted equipment, and generating registration feedback information according to the target vehicle-mounted equipment identifier in the registration request; and sending the registration feedback information to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can initialize according to the registration feedback information and update the state of the target vehicle-mounted equipment to be registered.
As shown in fig. 3, the automatic test method includes:
s310, responding to a registration request sent by the target vehicle-mounted equipment, and generating registration feedback information according to the target vehicle-mounted equipment identification in the registration request.
The registration request is a request sent by the target vehicle-mounted device for the ground device to perform identity authentication on the vehicle-mounted device and record the vehicle-mounted device. The registration request comprises a target vehicle-mounted device identification, wherein the target vehicle-mounted device identification is used for distinguishing different vehicle-mounted devices. Specifically, the target vehicle-mounted device is identified as a calling number of the target vehicle.
The target vehicle-mounted device may generate a registration request upon powering on the vehicle, and specifically, the target vehicle-mounted device sends the registration request in a manner of sending a registration request frame to the ground device. Wherein the registration request frame is generated based on a preset communication protocol. Illustratively, the format of the registration request frame is shown in table 7:
TABLE 7
Figure BDA0003022430420000121
Figure BDA0003022430420000131
And the ground equipment generates registration feedback information according to the target vehicle-mounted equipment identifier in the registration request, wherein the registration feedback information comprises the locomotive code and the subsequent operation instruction of the target vehicle-mounted equipment. Specifically, after the ground test equipment receives the registration request, the locomotive number corresponding to the number is identified according to the calling number of the vehicle-mounted test equipment, and the locomotive code is fed back to the target vehicle-mounted equipment. The locomotive code number is the only identification of the target vehicle, and the locomotive code numbers of different vehicle-mounted devices are different.
And the subsequent operation instruction is determined by the ground equipment according to the target vehicle-mounted equipment identifier in the registration request to generate registration feedback information, and checking whether an undelivered test task belonging to the target vehicle-mounted equipment exists or not. If the ground equipment does not have the test task which belongs to the target vehicle-mounted equipment and is not issued, the registration is finished; and if the ground equipment has the test task which belongs to the target vehicle-mounted equipment and is not issued, the subsequent operation instruction is a synchronous test task.
Specifically, the ground device sends registration feedback information to the target vehicle-mounted device in the form of a registration response frame, and if the ground device has a test task belonging to the target vehicle-mounted device and not issued, the operation type of the registration response frame is set to 0x10; after receiving the registration response frame, the vehicle-mounted test equipment sends a test task receiving request frame; and after receiving the test data, the ground test equipment enters a test task issuing process. If the ground equipment does not have the test tasks which belong to the target vehicle-mounted equipment and are not issued, the operation type of the registration response frame is set to be 0x00, and then the registration is finished.
S320, sending the registration feedback information to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can initialize according to the registration feedback information and update the state of the target vehicle-mounted equipment to be registered.
And the target vehicle-mounted equipment receives the registration feedback information and initializes according to the registration feedback information. By doing so, initialization can be automatically performed after the target on-board device is powered on, even though initial configuration is not required when the test device is installed or a train is replaced.
Wherein the registration request frame is generated based on a preset communication protocol. Illustratively, the format of the registration request frame is shown in table 8:
TABLE 8
Figure BDA0003022430420000141
S330, acquiring the state information of the target vehicle-mounted equipment under the condition that the target test task of the target vehicle-mounted equipment is monitored.
In order to monitor the state of the target vehicle-mounted device so as to find abnormality in time, when a task is issued to the target vehicle-mounted device, the ground device needs to synchronize the state of the vehicle-mounted device, in an optional embodiment, the acquiring the state information of the target vehicle-mounted device when the target test task of the target vehicle-mounted device is monitored includes:
under the condition that a target test task of target vehicle-mounted equipment is monitored, establishing communication connection with the target vehicle-mounted equipment; if the communication connection is failed to be established, updating the state of the target vehicle-mounted equipment to be cancelled; and if the communication connection is successfully established, time synchronization is carried out on the target vehicle-mounted equipment and the ground equipment, and the state of the target vehicle-mounted equipment is updated to be registered.
Optionally, after a communication connection is failed to be established, the connection with the target vehicle-mounted test device is retried at a set time interval, such as 30 seconds. And if the communication connection establishment failure times exceed the set times, updating the state of the target vehicle-mounted equipment to be logged out.
After the ground-based target vehicle-mounted device successfully establishes the communication connection, the ground-based device and the target vehicle-mounted device perform time synchronization, and specifically, the ground-based device performs time synchronization by sending a synchronization frame to the target vehicle-mounted device. The ground test equipment sends a synchronization frame to target vehicle-mounted test equipment; the target vehicle-mounted test equipment receives and replies the synchronous confirmation frame, and if the vehicle-mounted test equipment does not have a clock source, the time in the synchronous frame can be adopted; and after receiving the synchronization confirmation frame, the ground test equipment disconnects and updates the state of the target vehicle-mounted equipment to be registered. If the synchronization confirmation frame is not received within a set time, such as 30 seconds, the synchronization frame is repeatedly sent for a set number of times, such as 3 times.
Wherein the synchronization frame and the synchronization confirmation frame are generated based on a preset communication protocol. Illustratively, the formats of the synchronization frame and the synchronization confirmation frame are shown in table 9 and table 10, respectively:
TABLE 9
Figure BDA0003022430420000151
TABLE 10
Figure BDA0003022430420000161
And S340, determining the state of a target test task according to the state information of the target vehicle-mounted equipment.
And S350, if the target test task state is a delivery state, entering a target test task delivery process, and delivering the target test task to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can execute the target test task.
In an optional embodiment, after entering a target test task issuing process and issuing the target test task to the target vehicle-mounted device, the method further includes: re-determining target vehicle-mounted device state information in response to a state confirmation request sent from the target vehicle-mounted device before execution of a target test task; if the re-determined state of the target vehicle-mounted equipment is cancelled, generating an equipment re-registration instruction; and sending the equipment re-registration instruction to the target vehicle-mounted equipment so that the target vehicle-mounted equipment generates a registration request for re-registration and executes the target test task according to a re-registration result.
After receiving the target test task and before executing the target test task, the target vehicle-mounted device sends a state confirmation request to the ground device, so that the ground device can obtain the current state of the target ground device again according to the state confirmation request and re-determine the state information of the target vehicle-mounted device. And if the re-determined state of the target vehicle-mounted equipment is cancelled, indicating that the target vehicle-mounted equipment is in an unconnected state at the moment, generating an equipment re-registration instruction, sending the equipment re-registration instruction to the target vehicle-mounted equipment, and after receiving the equipment re-registration instruction, generating a registration request and sending the registration request to the ground equipment for re-registration by the target vehicle-mounted equipment. For the process of registering the target vehicle-mounted device, refer to step S310 and step S320 in this embodiment specifically, which is not described herein again.
Specifically, the ground device generates a device re-registration instruction, specifically, a re-registration request frame is generated, and the re-registration request frame is sent to the target vehicle-mounted device. Wherein the re-registration request frame is generated based on a preset communication protocol. Illustratively, the format of the test task issue start frame is shown in table 11:
TABLE 11
Figure BDA0003022430420000171
According to the technical scheme, the initialization process of the target vehicle-mounted device is completed through the registration process of the target vehicle-mounted device in the whole actual test process, the re-registration process of the target vehicle-mounted device is set, the re-initialization process of the target vehicle-mounted device is realized, in addition, the synchronization process of the target vehicle-mounted device and the ground device is also set, and the synchronization of the state of the target vehicle-mounted device and the ground device is realized, so that the test automation of a GSM-R network-based drive test system is realized, the labor cost is reduced, the misoperation probability of personnel is reduced, the large-scale deployment test is realized, and the test efficiency is improved.
Example four
Fig. 4 is an automatic testing apparatus provided in the fourth embodiment of the present application, which is applicable to a case where the present embodiment is applicable to testing ground devices and vehicle-mounted devices in a GSM-R network drive test system. The device can be realized by software and/or hardware, and can be integrated in electronic equipment such as an intelligent terminal.
As shown in fig. 4, the apparatus may include: the system comprises a target vehicle-mounted device state acquisition module 410, a target test task state determination module 420 and a target test task issuing module 430.
A target vehicle-mounted device state obtaining module 410, configured to obtain state information of a target vehicle-mounted device when a target test task of the target vehicle-mounted device is monitored;
the target test task state determining module 420 is configured to determine a target test task state according to the target vehicle-mounted device state information;
and the target test task issuing module 430 is configured to enter a target test task issuing process if the target test task state is an issuing state, and issue the target test task to the target vehicle-mounted device, so that the target vehicle-mounted device executes the target test task.
According to the technical scheme provided by the embodiment of the application, under the condition that a target test task of the target vehicle-mounted equipment is monitored, state information of the target vehicle-mounted equipment is obtained; determining a target test task state according to the target vehicle-mounted equipment state information; and if the target test task state is an issuing state, entering a target test task issuing process, and issuing the target test task to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can execute the target test task. By executing the scheme provided by the embodiment of the application, the test automation of the drive test system based on the GSM-R network is realized, so that the labor cost is reduced, the misoperation probability of personnel is reduced, the scale deployment test is realized, and the test efficiency is improved.
Optionally, the apparatus further comprises: the system comprises a registration feedback information generation module, a registration feedback information generation module and a registration feedback information generation module, wherein the registration feedback information generation module is used for responding to a registration request sent by target vehicle-mounted equipment and generating registration feedback information according to the identification of the target vehicle-mounted equipment in the registration request before acquiring the state information of the target vehicle-mounted equipment under the condition of monitoring a target test task of the target vehicle-mounted equipment;
and the registration feedback information sending module is used for sending the registration feedback information to the target vehicle-mounted equipment so as to initialize the target vehicle-mounted equipment according to the registration feedback information and update the state of the target vehicle-mounted equipment to be registered.
Optionally, the registration feedback information generating module includes: the communication connection sub-module is used for establishing communication connection with the target vehicle-mounted equipment under the condition that a target test task of the target vehicle-mounted equipment is monitored;
the first updating submodule of the state of the target vehicle-mounted equipment is used for updating the state of the target vehicle-mounted equipment into a cancelled state if the communication connection is failed to establish;
and the second update submodule of the state of the target vehicle-mounted equipment is used for carrying out time synchronization on the target vehicle-mounted equipment and the ground equipment and updating the state of the target vehicle-mounted equipment into the registered state if the communication connection is successfully established.
Optionally, the target test task status determining module 420 includes: and the first target test task state setting submodule is used for setting the target test task state as a delivery state if the target vehicle-mounted equipment state is registered.
Optionally, the target test task status determining module 420 includes: the second target test task state setting submodule is used for setting the target test task state to be a non-issued state if the target vehicle-mounted equipment state is cancelled; and the target test task state updating submodule is used for setting the target test task state as a delivery state and entering the target test task delivery process when the target vehicle-mounted equipment state is detected to be registered.
Optionally, the target test task issuing module 430 includes: the task issuing starting frame generating submodule is used for generating a task issuing starting frame and sending the task issuing starting frame to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can feed back a task issuing starting confirmation frame; the task issuing data frame generation submodule is used for responding to the received task issuing starting confirmation frame, generating a task issuing data frame according to the target test task information, and sending the task issuing data frame to the target vehicle-mounted equipment so as to enable the target vehicle-mounted equipment to feed back the task data confirmation frame; the task issuing end frame generation sub-module is used for responding to the received task data confirmation frame, generating a task issuing end frame and sending the task issuing end frame to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can feed back the task issuing end confirmation frame;
the task issuing method comprises the following steps that a task issuing starting frame, a task issuing starting confirmation frame, a task issuing data frame, a task data confirmation frame, a task issuing ending frame and a task issuing ending confirmation frame are generated on the basis of a preset communication protocol.
Optionally, the apparatus further comprises: after entering a target test task issuing process and issuing the target test task to the target vehicle-mounted equipment, a target vehicle-mounted equipment state re-determination module is used for re-determining the state information of the target vehicle-mounted equipment in response to a state confirmation request sent by the target vehicle-mounted equipment before the target test task is executed;
the equipment re-registration instruction generating module is used for generating an equipment re-registration instruction if the re-determined state of the target vehicle-mounted equipment is cancelled;
and the device re-registration instruction sending module is used for sending the device re-registration instruction to the target vehicle-mounted device so that the target vehicle-mounted device generates a registration request to re-register and executes the target test task according to a re-registration result.
The automatic testing device provided by the embodiment of the invention can execute the automatic testing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the automatic testing method.
EXAMPLE five
A storage medium containing computer-executable instructions for performing a method of automated testing when executed by a computer processor, the method comprising:
under the condition that a target test task of target vehicle-mounted equipment is monitored, state information of the target vehicle-mounted equipment is obtained;
determining a target test task state according to the target vehicle-mounted equipment state information;
and if the target test task state is an issuing state, entering a target test task issuing process, and issuing the target test task to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can execute the target test task.
Storage media refers to any of various types of memory electronics or storage electronics. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network (such as the internet). The second computer system may provide the program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different contexts (e.g., in different computer systems connected by a network). The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the automatic test operation described above, and may also perform related operations in the automatic test method provided in any embodiments of the present application.
EXAMPLE six
An embodiment of the present invention provides an electronic device, where the automatic test apparatus provided in the embodiment of the present invention may be integrated in the electronic device, and the electronic device may be configured in a system, or may be a device that performs part or all of functions in the system. Fig. 5 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present application. As shown in fig. 5, the present embodiment provides an electronic device 500, which includes: one or more processors 520; the storage 510 is configured to store one or more programs, and when the one or more programs are executed by the one or more processors 520, the one or more processors 520 implement the automatic testing method provided in the embodiment of the present application, the method includes:
under the condition that a target test task of target vehicle-mounted equipment is monitored, acquiring state information of the target vehicle-mounted equipment;
determining a target test task state according to the target vehicle-mounted equipment state information;
and if the target test task state is an issuing state, entering a target test task issuing process, and issuing the target test task to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can execute the target test task.
Of course, those skilled in the art can understand that the processor 520 also implements the technical solution of the automatic testing method provided in any embodiment of the present application.
The electronic device 500 shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 5, the electronic device 500 includes a processor 520, a storage device 510, an input device 530, and an output device 540; the number of the processors 520 in the electronic device may be one or more, and one processor 520 is taken as an example in fig. 5; the processor 520, the storage 510, the input device 530, and the output device 540 in the electronic apparatus may be connected by a bus or other means, and are exemplified by a bus 550 in fig. 5.
The storage device 510 is a computer-readable storage medium, and can be used to store software programs, computer-executable programs, and module units, such as program instructions corresponding to the automatic test method in the embodiment of the present application.
The storage device 510 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage 510 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, storage 510 may further include memory located remotely from processor 520, which may be connected via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 530 may be used to receive input numbers, character information, or voice information, and to generate key signal inputs related to user settings and function control of the electronic apparatus. The output device 540 may include a display screen, speakers, etc. of electronic equipment.
The automatic testing device, the medium and the electronic equipment provided in the above embodiments can execute the automatic testing method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in the above embodiments, reference may be made to the automatic test method provided in any of the embodiments of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (7)

1. An automated testing method, performed by surface equipment, the method comprising:
under the condition that a target test task of target vehicle-mounted equipment is monitored, acquiring state information of the target vehicle-mounted equipment;
determining a target test task state according to the target vehicle-mounted equipment state information;
if the target test task state is a delivery state, entering a target test task delivery flow, and delivering the target test task to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can execute the target test task;
the target vehicle-mounted equipment state is used for indicating whether the target vehicle-mounted equipment is in a connectable state at the current moment and indicating whether the current vehicle-mounted equipment can receive a target test task;
the target vehicle-mounted equipment state information is used for determining the state of a target test task, and comprises the following steps:
if the target vehicle-mounted equipment state is registered, setting the target test task state as a delivery state;
if the target vehicle-mounted equipment state is cancelled, setting the target test task state as an undelivered state;
when the target vehicle-mounted equipment is detected to be registered, setting the target test task state as a delivery state, and entering the target test task delivery flow;
the entering of the target test task issuing process and the issuing of the target test task to the target vehicle-mounted equipment comprise:
generating a task issuing starting frame, and sending the task issuing starting frame to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can feed back a task issuing starting confirmation frame;
responding to the received task issuing starting confirmation frame, generating a task issuing data frame according to the target test task information, and sending the task issuing data frame to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can feed back the task data confirmation frame;
responding to the received task data confirmation frame, generating a task issuing end frame, and sending the task issuing end frame to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can feed back the task issuing end confirmation frame;
the task issuing system comprises a task issuing starting frame, a task issuing starting confirmation frame, a task issuing data frame, a task data confirmation frame, a task issuing ending frame and a task issuing ending confirmation frame, wherein the task issuing starting frame, the task issuing starting confirmation frame, the task issuing data frame, the task data confirmation frame, the task issuing ending frame and the task issuing ending confirmation frame are all generated based on a preset communication protocol.
2. The method according to claim 1, wherein in a case where a target test task of a target vehicle-mounted device is monitored, before the target vehicle-mounted device state information is acquired, the method further comprises:
responding to a registration request sent by the target vehicle-mounted equipment, and generating registration feedback information according to the target vehicle-mounted equipment identification in the registration request;
and sending the registration feedback information to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can initialize according to the registration feedback information and update the state of the target vehicle-mounted equipment to be registered.
3. The method according to claim 1, wherein the acquiring of the state information of the target vehicle-mounted device in the case that the target test task of the target vehicle-mounted device is monitored comprises:
under the condition that a target test task of target vehicle-mounted equipment is monitored, establishing communication connection with the target vehicle-mounted equipment;
if the communication connection is failed to be established, updating the state of the target vehicle-mounted equipment to be logged off;
and if the communication connection is successfully established, time synchronization is carried out on the target vehicle-mounted equipment and the ground equipment, and the state of the target vehicle-mounted equipment is updated to be registered.
4. The method of claim 1, wherein after entering a target test task issuing process and issuing the target test task to the target vehicle-mounted device, the method further comprises:
re-determining target vehicle-mounted equipment state information in response to a state confirmation request sent from the target vehicle-mounted equipment before executing a target test task;
if the re-determined state of the target vehicle-mounted equipment is logged off, generating an equipment re-registration instruction;
and sending the equipment re-registration instruction to the target vehicle-mounted equipment so that the target vehicle-mounted equipment generates a registration request for re-registration and executes the target test task according to a re-registration result.
5. An automatic test apparatus, characterized in that the apparatus comprises:
the target vehicle-mounted equipment state acquisition module is used for acquiring the state information of the target vehicle-mounted equipment under the condition that a target test task of the target vehicle-mounted equipment is monitored;
the target test task state determining module is used for determining a target test task state according to the target vehicle-mounted equipment state information;
the target test task issuing module is used for entering a target test task issuing flow if the target test task state is an issuing state, and issuing the target test task to the target vehicle-mounted equipment so as to enable the target vehicle-mounted equipment to execute the target test task;
the target vehicle-mounted equipment state is used for indicating whether the target vehicle-mounted equipment is in a connectable state at the current moment and indicating whether the current vehicle-mounted equipment can receive a target test task;
the target test task state determination module comprises: the first target test task state setting submodule is used for setting the target test task state as a distribution state if the target vehicle-mounted equipment state is registered;
the second target test task state setting submodule is used for setting the target test task state to be a non-issued state if the target vehicle-mounted equipment state is cancelled; the target test task state updating submodule is used for setting the target test task state as a delivery state when the target vehicle-mounted equipment state is detected to be registered, and entering a target test task delivery flow;
the target test task issuing module comprises: the task issuing starting frame generation submodule is used for generating a task issuing starting frame and sending the task issuing starting frame to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can feed back a task issuing starting confirmation frame;
the task issuing data frame generating submodule is used for responding to the received task issuing starting confirmation frame, generating a task issuing data frame according to the target test task information, and sending the task issuing data frame to the target vehicle-mounted equipment so as to enable the target vehicle-mounted equipment to feed back the task data confirmation frame;
the task issuing end frame generating submodule is used for responding to the received task data confirmation frame, generating a task issuing end frame and sending the task issuing end frame to the target vehicle-mounted equipment so that the target vehicle-mounted equipment can feed back the task issuing end confirmation frame;
the task issuing system comprises a task issuing starting frame, a task issuing starting confirmation frame, a task issuing data frame, a task data confirmation frame, a task issuing ending frame and a task issuing ending confirmation frame, wherein the task issuing starting frame, the task issuing starting confirmation frame, the task issuing data frame, the task data confirmation frame, the task issuing ending frame and the task issuing ending confirmation frame are all generated based on a preset communication protocol.
6. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the automatic test method according to any one of claims 1 to 4.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the automatic test method according to any one of claims 1-4 when executing the computer program.
CN202110406171.4A 2021-04-15 2021-04-15 Automatic test method, device, medium and electronic equipment Active CN113114387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110406171.4A CN113114387B (en) 2021-04-15 2021-04-15 Automatic test method, device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110406171.4A CN113114387B (en) 2021-04-15 2021-04-15 Automatic test method, device, medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113114387A CN113114387A (en) 2021-07-13
CN113114387B true CN113114387B (en) 2023-03-14

Family

ID=76717300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110406171.4A Active CN113114387B (en) 2021-04-15 2021-04-15 Automatic test method, device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113114387B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111323238A (en) * 2020-01-21 2020-06-23 北京百度网讯科技有限公司 Method, device, equipment and storage medium for testing vehicle
CN111913884A (en) * 2020-07-30 2020-11-10 百度在线网络技术(北京)有限公司 Distributed test method, device, equipment, system and readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111836233B (en) * 2019-04-17 2022-04-19 中车大连电力牵引研发中心有限公司 Data transmission method, communication device, and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111323238A (en) * 2020-01-21 2020-06-23 北京百度网讯科技有限公司 Method, device, equipment and storage medium for testing vehicle
CN111913884A (en) * 2020-07-30 2020-11-10 百度在线网络技术(北京)有限公司 Distributed test method, device, equipment, system and readable storage medium

Also Published As

Publication number Publication date
CN113114387A (en) 2021-07-13

Similar Documents

Publication Publication Date Title
CN110069053B (en) Remote vehicle detection system and method based on TSP cloud deck
CN110086664B (en) Access equipment fault processing method and device
CN113115350B (en) Offline detection method for T-BOX
CN111031115A (en) Electronic controller version updating system and method based on Internet of vehicles
CN109347590B (en) Synchronization method of DoIP entity in vehicle-mounted Ethernet and DoIP entity
CN103347048A (en) Automatic updating method of urban railway traffic signal system
EP4339725A1 (en) Diagnosis system and method for vehicle central controller
CN112260883A (en) Satellite test report generation method, device, equipment and storage medium
CN113114387B (en) Automatic test method, device, medium and electronic equipment
CN114281675A (en) Test environment configuration method and device of CBTC (communication based train control) system and electronic equipment
CN110198222B (en) Plug-and-play test method and test master station for power distribution automation terminal
CN112118600B (en) Flow traction system under 5G independent networking SA architecture
CN110941252A (en) Vehicle-mounted equipment testing method and system
CN112134946A (en) Test method, device, storage medium, terminal and system of elevator Internet of things
CN104915291B (en) Terminal restarts verification method and system
CN111338767B (en) PostgreSQL master-slave database automatic switching system and method
CN115118577B (en) Remote upgrade abnormality cause determination method, device, electronic equipment and storage medium
CN112154491A (en) Method of setting an imaging sensor, computer program product for setting an imaging sensor, sensor setting system and facility
CN107294791B (en) Abnormal maintenance method and device for vehicle-mounted WIFI equipment
CN114157350B (en) Optical fiber misconnection detection method and system
CN113127032A (en) System updating method of train controller
CN114090050A (en) Robot software remote automatic updating method, system and related products
CN105808418B (en) Test machine register method, apparatus and system
US20180027346A1 (en) Automating repairs to audio systems
TW202218909A (en) Fault diagnosis and troubleshooting systems of charging devices and automatic fault diagnosis and troubleshooting methods and computer program products thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant