CN115996410B - Method, device, equipment and storage medium for testing wireless communication protocol stack - Google Patents

Method, device, equipment and storage medium for testing wireless communication protocol stack Download PDF

Info

Publication number
CN115996410B
CN115996410B CN202310287203.2A CN202310287203A CN115996410B CN 115996410 B CN115996410 B CN 115996410B CN 202310287203 A CN202310287203 A CN 202310287203A CN 115996410 B CN115996410 B CN 115996410B
Authority
CN
China
Prior art keywords
test
wireless communication
protocol stack
communication protocol
hardware
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
CN202310287203.2A
Other languages
Chinese (zh)
Other versions
CN115996410A (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 CN202310287203.2A priority Critical patent/CN115996410B/en
Publication of CN115996410A publication Critical patent/CN115996410A/en
Application granted granted Critical
Publication of CN115996410B publication Critical patent/CN115996410B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Electric Propulsion And Braking For Vehicles (AREA)
  • Train Traffic Observation, Control, And Security (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for testing a wireless communication protocol stack. The method comprises the following steps: building a special test environment, wherein the special test environment comprises a train automatic protection system interface, a radio station interface, a simulation train control system and a simulation radio station; communication connection between the train automatic protection system interface and the wireless communication protocol stack test hardware and communication connection between the radio station interface and the wireless communication protocol stack test hardware are respectively established; and carrying out communication simulation test on the wireless communication protocol stack test hardware through the train automatic protection system interface and the radio station interface, and determining a communication test result of the CFM wireless communication protocol stack in the wireless communication protocol stack test hardware. The embodiment of the invention can reduce the difficulty of fault reproduction and fault point investigation.

Description

Method, device, equipment and storage medium for testing wireless communication protocol stack
Technical Field
The present invention relates to the field of train communication protocol testing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for testing a wireless communication protocol stack.
Background
In actual operation of the rail transit vehicle-mounted equipment, abnormal conditions such as data loss, retransmission, messy codes, radio station registration failure and the like occur due to fluctuation of network communication conditions, so that in the test before operation, the abnormal test of the radio communication control RCC software generated according to the CFM radio communication protocol stack is required.
In the existing test environment, on one hand, the network condition of the test environment is more stable than the actual working condition, and the fault reproduction and the fault point investigation are not facilitated; the wireless communication control software to be tested is on the other hand typically connected to a real station and a real train automatic protection system (Automatic Train Protection, ATP). During the interface between the test and the radio station, the abnormal simulation test can only be carried out by pulling out the radio station antenna, the radio station power supply or the RS422 serial port line between the radio station and the wireless communication control software. The testing mode has larger limitation, only 3 specific abnormal states can be manufactured, and the difficulty of fault reproduction and fault point investigation is further increased.
In addition, because the on-site operation environment of the vehicle-mounted system is more complex, the conditions such as data loss and messy codes are frequent; and the interface test between the wireless communication control software and the ATP can only be realized by clicking corresponding buttons on a vehicle-mounted operation console, so that the ATP sends different request messages to the wireless communication control software, the subsequent information interaction is controlled by the program itself and is not controlled by the outside, and the existing test method is more difficult to meet the requirement of reappearance of field problems.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for testing a wireless communication protocol stack, so as to reduce the difficulty of fault reproduction and fault point investigation.
According to an aspect of the present invention, there is provided a method for testing a wireless communication protocol stack, including:
building a special test environment, wherein the special test environment comprises a train automatic protection system interface, a radio station interface, a simulation train control system and a simulation radio station;
communication connection between the train automatic protection system interface and the wireless communication protocol stack test hardware and communication connection between the radio station interface and the wireless communication protocol stack test hardware are respectively established;
performing communication simulation test on the wireless communication protocol stack test hardware through the train automatic protection system interface and the radio station interface, and determining a communication test result of the CFM wireless communication protocol stack in the wireless communication protocol stack test hardware;
and the wireless communication control software obtained by combining the CFM wireless communication protocol stack and the adaptation layer is deployed on the wireless communication protocol stack test hardware.
According to another aspect of the present invention, there is provided a test apparatus for a wireless communication protocol stack, including:
the test environment building module is used for building a special test environment, wherein the special test environment comprises a train automatic protection system interface, a radio station interface, a simulation train control system and a simulation radio station;
the communication connection establishment module is used for respectively establishing communication connection between the train automatic protection system interface and the wireless communication protocol stack test hardware and between the radio station interface and the wireless communication protocol stack test hardware;
the communication simulation test module is used for testing the communication simulation test of the wireless communication protocol stack test hardware through the train automatic protection system interface and the radio station interface and determining the communication test result of the CFM wireless communication protocol stack in the wireless communication protocol stack test hardware;
and the wireless communication control software obtained by combining the CFM wireless communication protocol stack and the adaptation layer is deployed on the wireless communication protocol stack test hardware.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of testing a wireless communication protocol stack according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement a method for testing a wireless communication protocol stack according to any one of the embodiments of the present invention when executed.
According to the embodiment of the invention, the radio station and the ATP are simulated, so that the tested CFM protocol stack does not depend on other real physical environments except the necessary protocol stack test hardware, the test environment can simulate any protocol stack communication scene, the working conditions of the test protocol stack under different scenes can be conveniently simulated, and the difficulty of fault scene reproduction is greatly reduced.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1A is a flowchart of a method for testing a wireless communication protocol stack according to an embodiment of the present invention;
FIG. 1B is a schematic diagram of a testing workstation according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for testing a wireless communication protocol stack according to still another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a test device for a wireless communication protocol stack according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1A is a flowchart of a testing method of a wireless communication protocol stack according to an embodiment of the present invention, where the embodiment may be adapted to deploy RCC software on actually running hardware of a CFM protocol stack and connect the hardware with a testing workstation through a corresponding interface, so that a tester writes a test case in the testing workstation to perform an abnormal model test on the CFM protocol stack. As shown in fig. 1A, the method includes:
s110, building a special test environment which comprises a train automatic protection system interface, a radio station interface, a simulation train control system and a simulation radio station.
S120, communication connection between the train automatic protection system interface and the wireless communication protocol stack test hardware and communication connection between the radio station interface and the wireless communication protocol stack test hardware are respectively established.
The wireless communication protocol stack test hardware is provided with wireless communication control (Radio Communication Control, RCC) software which is obtained by combining a CFM (communication function module Communication Functional Module) wireless communication protocol stack and an adaptation layer, and the RCC software is used for bearing the function of the CFM wireless communication protocol stack in the subset-037 protocol. There are two total types of interfaces between CFM communication protocol stack software and the outside: one type of interface is an interface with a radio station (MT), which is connected through an RS422 serial port. The information interacted on the interface comprises serial port pin signals, AT instructions and data information, and as the vehicle-mounted radio stations generally have two, the CFM communication protocol stack needs to be respectively connected with the two radio stations through two serial ports of the type; another type of interface is an interface with the SFM module in the ATP program, which connects via an SBP (Serial Bus Protocol ) bus, and transfers data as T primitives specified in SubSet-037. Correspondingly, the main functions of the RCC software are to assist the ATP in establishing a wireless communication connection with the wireless occlusion center (Radio Block Center, RBC), to process the data of the ATP and send it to the station, to be forwarded to the RBC by the station via the network, and to collect information from the station from the RBC, and to forward it to the ATP after processing. Another main function of RCC software is to control and monitor station status via AT commands. The RCC has three interfaces with the outside, one is an interface with the ATP host, and the other two are interfaces respectively connected with two radio stations. In the test environment of the invention, all interfaces of the RCC software and the outside are connected with the test workstation, and the test workstation can realize the simulation of the radio station and the ATP at the same time so as to test the RCC software.
Specifically, the CFM wireless communication protocol stack to be tested is combined with an adaptation layer (realizing the function of adapting with hardware) to form RCC software, and the RCC software is deployed on the hardware actually used by the RCC software to be tested together, so that the wireless communication protocol stack test hardware is obtained. The test workstation simultaneously realizes the simulation of the radio station and the ATP, and is connected with the wireless communication protocol stack test hardware through an ATP interface and a radio station (MT) interface.
Fig. 1B is a schematic diagram illustrating a testing principle of a testing workstation according to an embodiment of the present invention. The wireless communication protocol stack test hardware is provided with a protocol stack consisting of a CFM and an adaptation layer, and the test workstation is provided with an ATP interface and an MT interface for respectively simulating a radio station and ATP and connecting with RCC software on the wireless communication protocol stack test hardware.
S130, performing communication simulation test on the wireless communication protocol stack test hardware through the train automatic protection system interface and the radio station interface, and determining a communication test result of the CFM wireless communication protocol stack in the wireless communication protocol stack test hardware.
Specifically, corresponding test scripts are deployed on the ATP interface and the MT interface, the test environment accurately controls the data input of the interface to the RCC software by executing the test scripts to carry out communication simulation test, and the actual data output of the RCC software received by the test script checking interface is used for determining the communication test result of the CFM protocol stack. The input data to the RCC software can be the normal communication data which exists actually, so as to carry out normal communication simulation test on the RCC software; the abnormal communication data can be intentionally distorted to perform abnormal communication simulation test on the RCC software. Compared with the prior art that only three real radio stations in different states can be manufactured and ATP can not be controlled, the test environment simulates the radio stations and ATP, so that the tested CFM protocol stack does not depend on other real physical environments except the necessary wireless communication protocol stack test hardware, the test environment can simulate any protocol stack communication scene, the working conditions of the test protocol stack under different scenes can be conveniently simulated, and the difficulty of fault scene reproduction is greatly reduced.
According to the embodiment of the invention, the radio station and the ATP are simulated, so that the tested CFM protocol stack does not depend on other real physical environments except the necessary protocol stack test hardware, the test environment can simulate any protocol stack communication scene, the working conditions of the test protocol stack under different scenes can be conveniently simulated, and the difficulty of fault scene reproduction is greatly reduced.
Fig. 2 is a flowchart of a testing method of a wireless communication protocol stack according to another embodiment of the present invention, where the embodiment is optimized and improved based on the foregoing embodiment. As shown in fig. 2, the method includes:
s210, building a special test environment which comprises a train automatic protection system interface, a radio station interface, a simulation train control system and a simulation radio station.
S220, communication connection between the train automatic protection system interface and the wireless communication protocol stack test hardware and communication connection between the radio station interface and the wireless communication protocol stack test hardware are respectively established.
S230, obtaining the test cases in the table format, and converting the test cases into test scripts through a conversion tool.
The table format may be an excel format.
Specifically, the test cases are written in an excel form of the test workstation, and a tester fills in messages line by line in the excel form to generate the test cases consisting of a plurality of lines of messages in an excel file format. The written test cases can be converted into test scripts through a conversion tool so that a test engine in the test environment can be read and executed.
Optionally, the test script is composed of each row of messages determined by a functional state, where the functional state is data sent to the wireless communication control software, data sent by the wireless communication control software is checked, or a reply of modifying an AT instruction.
Specifically, in a test script consisting of a plurality of lines of messages, each line of messages corresponds to a functional state, and each functional state is executed in turn according to execution logic of the functional state. The functional status may be further differentiated as data sent to the RCC software, verification of data sent by the RCC software, or reply to modify AT instructions.
S240, sending a test T primitive to the wireless communication protocol stack test hardware through the train automatic protection system interface; acquiring a first test processing result of the test T primitive by the wireless communication protocol stack test hardware through the train automatic protection system interface and the radio station interface; and verifying the first test processing result according to the first standard processing result, and determining a communication test result of the CFM wireless communication protocol stack in the wireless communication protocol stack test hardware according to the verification result.
In the communication information structure of the CFM protocol stack, a series of primitive definitions and primitive operation functions are used to perform data linking, and a primitive of a T-CONNECT type is used as one of the primitives, and is used for message delivery, where the primitive of the T-CONNECT type is called a T primitive for short. The test T primitive can be an intentionally made abnormal T primitive or an actually existing normal T primitive, and the former can test whether the RCC software can normally process the abnormal T primitive, thereby completing the communication simulation test of the CFM protocol stack.
Specifically, the test engine interprets and executes the test script, converts the message in the test case into a test T primitive and sends the test T primitive to the RCC software. After receiving the test T primitive, the RCC software processes the test T primitive and returns the corresponding message to the test environment, and the test environment determines the test processing result of the RCC software on the test T primitive. On the ATP interface, messages sent by the RCC software to simulate ATP in the test environment are also T primitives; on the MT interface, messages sent by the RCC software to the simulation stations in the test environment are AT commands or HDLC frames. After determining the test processing result of the RCC software on the test T primitive, the test engine can read and execute the test script again to obtain a standard processing message (result) for checking the test processing result sent by the RCC software in the test case, and compare and check the test processing result with the standard processing message, if the comparison and check result is the same, the test result of the running of the RCC software is considered to be in accordance with the expected, and the communication test result is the normal running of the CFM protocol stack; otherwise, if the comparison and verification results are different, the test result of the running of the RCC software is not expected, and the communication test result is abnormal running of the protocol stack.
Optionally, before the sending the test T primitive to the wireless communication protocol stack test hardware through the automatic train protection system interface, the method further includes:
interpreting and executing a target test script on the train automatic protection system interface to convert a first message in a target test case into a T primitive, and determining the T primitive as a test T primitive; correspondingly, if the first standard processing result is a T primitive, before the verifying the first test processing result according to the first standard processing result, the method further includes: and reading and executing the second message meeting the delay processing requirement in the target test case again, converting the second message into a T primitive, and determining the T primitive as a first standard processing result.
Specifically, the interface between the RCC software and the ATP performs information interaction through a T primitive (the T primitive carries a secure layer message, and different message types have different primitive values), and the test script on the interface sequentially executes a plurality of messages according to the execution sequence in the script, and a delay processing requirement can be set between each message to adjust the execution time of the script. These messages can be divided according to functions into messages that require the test environment to send to the RCC software (i.e., test T primitives) and messages that verify that the RCC software sent to the test environment (i.e., standard processing results).
Illustratively, the user writes in excel: AAA (first row); (second row) 50ms, BBB, a target test case is generated. The conversion tool converts the target test case into a message of a target test script, the test engine reads and executes the test script, converts AAA into a test T primitive and sends the test T primitive to RCC software, and reads and executes the test script again in 50ms, and the BBB is used as a standard processing result. If the test processing result obtained by the test environment from the RCC software is not the BBB, determining that the running state of the RCC is abnormal running.
On the basis of the above embodiment, the performing, by the train automatic protection system interface and the radio station interface, a communication simulation test on the wireless communication protocol stack test hardware, and determining a communication test result of the CFM wireless communication protocol stack in the wireless communication protocol stack test hardware includes:
receiving an original AT instruction from the wireless communication protocol stack test hardware from the radio station interface, and acquiring a replying AT instruction matched with the original AT instruction from a test case or a memory space; feeding back the AT replying instruction to the wireless communication protocol stack test hardware through the radio station interface; determining a communication test result of a CFM wireless communication protocol stack in the wireless communication protocol stack test hardware according to a second test processing result of the wireless communication protocol stack test hardware on the reply AT instruction;
the reply AT instruction is a normal reply AT instruction or an abnormal reply AT instruction. The RCC software and the radio stations interact through AT instructions and HDLC frames, and two test scripts are respectively corresponding to one MT and are respectively and independently operated on the interface because of the two radio stations. The station has two modes of operation, an idle state and an on-line state. In the idle state, the interaction between the RCC and the MT is carried out through the AT instruction, the interaction mode is that the RCC actively transmits the AT instruction to the MT, and the MT transmits an AT instruction to reply the RCC after receiving the AT instruction. The MT actively sends an AT command to the RCC is disabled, i.e., in practice the MT will not actively send an AT command to the RCC. Since the interaction of the RCC software with the station is periodic and the instructions of the interaction are generally unchanged, replies to AT instructions in the test environment may be set in a default configuration file.
Specifically, under normal conditions, after the test environment is started, the content in the default configuration file is read into the memory, after the original AT instruction from the RCC software is received, the data stored in the memory is matched to find a corresponding replying AT instruction, and the replying AT instruction AT this time is generally a normal replying AT instruction; when the test environment receives the original AT instruction, the test script can be interpreted to obtain the reply AT instruction in the test case, and the reply AT instruction replaces the reply AT instruction from the configuration file and is sent to the radio station, wherein the reply AT instruction is generally an abnormal reply AT instruction. And determining a communication test result of the CFM wireless communication protocol stack according to the test processing result of the radio station. For specific subsequent flow, reference may be made to the above embodiments, and redundant description is omitted here.
On the basis of the foregoing embodiment, optionally, the performing, by the automatic train protection system interface and the radio station interface, a communication simulation test on the wireless communication protocol stack test hardware, and determining a communication test result of the CFM wireless communication protocol stack in the wireless communication protocol stack test hardware includes:
transmitting a test advanced data link control frame to the wireless communication protocol stack test hardware through the station interface; acquiring a third test processing result of the test high-level data link control frame by the wireless communication protocol stack test hardware through the train automatic protection system interface and the radio station interface; and verifying the third test processing result according to the third standard processing result, and determining a communication test result of the CFM wireless communication protocol stack in the wireless communication protocol stack test hardware according to the verification result.
Specifically, in the online state of the radio station, the data interacted between the RCC and the MT interface is a High-level data link control (HDLC) frame, and the test environment simulates the radio station to send the HDLC frame to the RCC and verify the HDLC frame sent by the RCC through the MT interface according to the state sequence of the message in the test case, and the specific process may refer to the process flow of the test T primitive in the above embodiment, which is not described too much herein.
In the embodiment of the invention, all input information of the tested RCC software can be set through the test script and the corresponding test cases, so that the simulated scene is richer, more comprehensive and finer; and because the tested RCC software only has a CFM protocol stack and does not have SFM and ATP host computer programs, when the test script is manufactured, the data information forwarded by the required CFM only needs to pay attention to the data length, and the data content can be filled in at will, thereby reducing the writing difficulty of the script.
Fig. 3 is a schematic structural diagram of a testing apparatus for a wireless communication protocol stack according to another embodiment of the present invention. As shown in fig. 3, the apparatus includes:
the test environment construction module 310 is used for constructing a special test environment, wherein the special test environment comprises a train automatic protection system interface, a radio station interface, a simulation train control system and a simulation radio station;
the communication connection establishment module 320 is configured to respectively establish communication connection between the automatic train protection system interface and the wireless communication protocol stack test hardware, and between the radio station interface and the wireless communication protocol stack test hardware;
the communication simulation test module 330 is configured to test the communication simulation test on the wireless communication protocol stack test hardware through the train automatic protection system interface and the radio station interface, and determine a communication test result of the CFM wireless communication protocol stack in the wireless communication protocol stack test hardware;
and the wireless communication control software obtained by combining the CFM wireless communication protocol stack and the adaptation layer is deployed on the wireless communication protocol stack test hardware.
The test device of the wireless communication protocol stack provided by the embodiment of the invention can execute the test method of the wireless communication protocol stack provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method
Optionally, the communication simulation test module 330 module includes:
a first test message sending unit, configured to send a test T primitive to the wireless communication protocol stack test hardware through the automatic train protection system interface;
a first processing result obtaining unit, configured to obtain a first test processing result of the test T primitive by the wireless communication protocol stack test hardware through the automatic train protection system interface and the radio station interface;
and the first test result determining unit is used for checking the first test processing result according to a first standard processing result and determining a communication test result of the CFM wireless communication protocol stack in the wireless communication protocol stack test hardware according to the checking result.
Optionally, the communication simulation test module 330 module further includes:
the first test message determining unit is used for reading and executing a target test script on the automatic train protection system interface; converting a first target code which accords with a set function type in the target test script into a T primitive, and determining the T primitive as a test T primitive;
and the standard processing result acquisition unit is used for converting the second target code meeting the delay processing requirement in the target test script into a T primitive and determining the T primitive as a first standard processing result.
Optionally, the communication simulation test module 330 module includes:
the replying instruction determining unit is used for receiving an original AT instruction from the wireless communication protocol stack test hardware from the radio station interface and acquiring a replying AT instruction matched with the original AT instruction from a test case or a memory space;
a reply command feedback unit, configured to feed back the reply AT command to the wireless communication protocol stack test hardware through the radio station interface;
a second test result determining unit, configured to determine a communication test result of the CFM wireless communication protocol stack in the wireless communication protocol stack test hardware according to a second test processing result of the wireless communication protocol stack test hardware on the reply AT instruction;
the reply AT instruction is a normal reply AT instruction or an abnormal reply AT instruction.
Optionally, the communication simulation test module 330 module includes:
a third test information sending unit, configured to send a test advanced data link control frame to the wireless communication protocol stack test hardware through the radio interface;
a third processing result obtaining unit, configured to obtain a third test processing result of the test advanced data link control frame by the wireless communication protocol stack test hardware through the automatic train protection system interface and the radio station interface;
and the third test result determining unit is used for checking the third test processing result according to a third standard processing result and determining a communication test result of the CFM wireless communication protocol stack in the wireless communication protocol stack test hardware according to the check result.
Optionally, the apparatus further includes:
the test case conversion module is used for obtaining the test cases in the form format and converting the test cases into test scripts through the conversion tool.
Optionally, the test script is composed of each row of messages determined by a functional state, where the functional state is data sent to the wireless communication control software, data sent by the wireless communication control software is checked, or a reply of modifying an AT instruction.
The test device of the wireless communication protocol stack further can execute the test method of the wireless communication protocol stack provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Fig. 4 shows a schematic diagram of an electronic device 40 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 40 includes at least one processor 41, and a memory communicatively connected to the at least one processor 41, such as a Read Only Memory (ROM) 42, a Random Access Memory (RAM) 43, etc., in which the memory stores a computer program executable by the at least one processor, and the processor 41 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 42 or the computer program loaded from the storage unit 48 into the Random Access Memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 may also be stored. The processor 41, the ROM 42 and the RAM 43 are connected to each other via a bus 44. An input/output (I/O) interface 45 is also connected to bus 44.
Various components in electronic device 40 are connected to I/O interface 45, including: an input unit 46 such as a keyboard, a mouse, etc.; an output unit 47 such as various types of displays, speakers, and the like; a storage unit 48 such as a magnetic disk, an optical disk, or the like; and a communication unit 49 such as a network card, modem, wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 41 may be various general and/or special purpose processing components with processing and computing capabilities. Some examples of processor 41 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 41 performs the various methods and processes described above, such as the test method of the wireless communication protocol stack.
In some embodiments, the method of testing a wireless communication protocol stack may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 48. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 40 via the ROM 42 and/or the communication unit 49. When the computer program is loaded into RAM 43 and executed by processor 41, one or more steps of the test method of the wireless communication protocol stack described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to perform the test method of the wireless communication protocol stack in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for testing a wireless communication protocol stack, applied to a test workstation, the method comprising:
building a special test environment, wherein the special test environment comprises a train automatic protection system interface, a radio station interface, a simulation train control system and a simulation radio station;
communication connection between the train automatic protection system interface and the wireless communication protocol stack test hardware and communication connection between the radio station interface and the wireless communication protocol stack test hardware are respectively established;
performing communication simulation test on the wireless communication protocol stack test hardware through the train automatic protection system interface and the radio station interface, and determining a communication test result of the CFM wireless communication protocol stack in the wireless communication protocol stack test hardware;
and the wireless communication control software obtained by combining the CFM wireless communication protocol stack and the adaptation layer is deployed on the wireless communication protocol stack test hardware.
2. The method of claim 1, wherein the performing a communication simulation test on the wireless communication protocol stack test hardware through the train automatic protection system interface and the station interface, and determining a communication test result of a CFM wireless communication protocol stack in the wireless communication protocol stack test hardware comprises:
transmitting a test T primitive to the wireless communication protocol stack test hardware through the train automatic protection system interface;
acquiring a first test processing result of the test T primitive by the wireless communication protocol stack test hardware through the train automatic protection system interface and the radio station interface;
and verifying the first test processing result according to the first standard processing result, and determining a communication test result of the CFM wireless communication protocol stack in the wireless communication protocol stack test hardware according to the verification result.
3. The method of claim 2, wherein before sending a test T primitive to the wireless communication protocol stack test hardware through the train automatic protection system interface, further comprising:
reading and executing a target test script on the interface of the automatic train protection system;
converting a first target code which accords with a set function type in the target test script into a T primitive, and determining the T primitive as a test T primitive;
correspondingly, if the first standard processing result is a T primitive, before the verifying the first test processing result according to the first standard processing result, the method further includes:
and converting a second target code meeting the delay processing requirement in the target test script into a T primitive, and determining the T primitive as a first standard processing result.
4. The method of claim 2, wherein the performing a communication simulation test on the wireless communication protocol stack test hardware through the train automatic protection system interface and the station interface, and determining a communication test result of a CFM wireless communication protocol stack in the wireless communication protocol stack test hardware comprises:
receiving an original AT instruction from the wireless communication protocol stack test hardware from the radio station interface, and acquiring a replying AT instruction matched with the original AT instruction from a test case or a memory space;
feeding back the AT replying instruction to the wireless communication protocol stack test hardware through the radio station interface;
determining a communication test result of a CFM wireless communication protocol stack in the wireless communication protocol stack test hardware according to a second test processing result of the wireless communication protocol stack test hardware on the reply AT instruction;
the reply AT instruction is a normal reply AT instruction or an abnormal reply AT instruction.
5. The method of claim 2, wherein the performing a communication simulation test on the wireless communication protocol stack test hardware through the train automatic protection system interface and the station interface, and determining a communication test result of a CFM wireless communication protocol stack in the wireless communication protocol stack test hardware comprises:
transmitting a test advanced data link control frame to the wireless communication protocol stack test hardware through the station interface;
acquiring a third test processing result of the test high-level data link control frame by the wireless communication protocol stack test hardware through the train automatic protection system interface and the radio station interface;
and verifying the third test processing result according to the third standard processing result, and determining a communication test result of the CFM wireless communication protocol stack in the wireless communication protocol stack test hardware according to the verification result.
6. The method of claim 1, wherein prior to said performing a communication simulation test on said wireless communication protocol stack test hardware via said train protection system interface and said station interface, further comprising:
and obtaining the test cases in the table format, and converting the test cases into test scripts through a conversion tool.
7. The method of claim 6, wherein the test script consists of lines of messages that are determined by a functional status, the functional status being data sent to the wireless communication control software, a reply that verifies data sent by the wireless communication control software, or a modify AT command.
8. A test apparatus for a wireless communication protocol stack, deployed at a test workstation, the apparatus comprising:
the test environment building module is used for building a special test environment, wherein the special test environment comprises a train automatic protection system interface, a radio station interface, a simulation train control system and a simulation radio station;
the communication connection establishment module is used for respectively establishing communication connection between the train automatic protection system interface and the wireless communication protocol stack test hardware and between the radio station interface and the wireless communication protocol stack test hardware;
the communication simulation test module is used for testing the communication simulation test of the wireless communication protocol stack test hardware through the train automatic protection system interface and the radio station interface and determining the communication test result of the CFM wireless communication protocol stack in the wireless communication protocol stack test hardware;
and the wireless communication control software obtained by combining the CFM wireless communication protocol stack and the adaptation layer is deployed on the wireless communication protocol stack test hardware.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of testing a wireless communication protocol stack of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the method of testing a wireless communication protocol stack of any one of claims 1-7 when executed.
CN202310287203.2A 2023-03-23 2023-03-23 Method, device, equipment and storage medium for testing wireless communication protocol stack Active CN115996410B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310287203.2A CN115996410B (en) 2023-03-23 2023-03-23 Method, device, equipment and storage medium for testing wireless communication protocol stack

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310287203.2A CN115996410B (en) 2023-03-23 2023-03-23 Method, device, equipment and storage medium for testing wireless communication protocol stack

Publications (2)

Publication Number Publication Date
CN115996410A CN115996410A (en) 2023-04-21
CN115996410B true CN115996410B (en) 2023-05-30

Family

ID=85995311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310287203.2A Active CN115996410B (en) 2023-03-23 2023-03-23 Method, device, equipment and storage medium for testing wireless communication protocol stack

Country Status (1)

Country Link
CN (1) CN115996410B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277505A (en) * 2008-05-09 2008-10-01 北京邮电大学 Method and apparatus for optimization of protocol stack of communication system based on subassembly
CN101945017A (en) * 2010-08-26 2011-01-12 北京交通大学 Testing platform for train-ground transmission protocol in train operation control system and construction method thereof
WO2019091073A1 (en) * 2017-11-13 2019-05-16 北京全路通信信号研究设计院集团有限公司 Rssp-i security protocol separate deployment method
CN113377058A (en) * 2021-07-08 2021-09-10 联科云创(北京)科技有限公司 Remote automatic management method of shipborne positioning terminal
CN114501379A (en) * 2022-01-27 2022-05-13 中国铁道科学研究院集团有限公司通信信号研究所 Train control vehicle-mounted wireless communication system compatible with circuit domain and multiple packet domain networks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277505A (en) * 2008-05-09 2008-10-01 北京邮电大学 Method and apparatus for optimization of protocol stack of communication system based on subassembly
CN101945017A (en) * 2010-08-26 2011-01-12 北京交通大学 Testing platform for train-ground transmission protocol in train operation control system and construction method thereof
WO2019091073A1 (en) * 2017-11-13 2019-05-16 北京全路通信信号研究设计院集团有限公司 Rssp-i security protocol separate deployment method
CN113377058A (en) * 2021-07-08 2021-09-10 联科云创(北京)科技有限公司 Remote automatic management method of shipborne positioning terminal
CN114501379A (en) * 2022-01-27 2022-05-13 中国铁道科学研究院集团有限公司通信信号研究所 Train control vehicle-mounted wireless communication system compatible with circuit domain and multiple packet domain networks

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于GPRS分组交换网络的CTCS-3级列控系统车地安全数据传输的可行性;丁建文等;中国铁道科学;第36卷(第3期);全文 *
面向西部铁路基于GSM—FI的车一地数据传输方案;孙斌等;铁道通信信号;第53卷(第Z1期);全文 *

Also Published As

Publication number Publication date
CN115996410A (en) 2023-04-21

Similar Documents

Publication Publication Date Title
CN116821001B (en) Verification method and device of input/output subsystem, electronic equipment and medium
CN113485881B (en) Test method and device of temporary speed limiting server, electronic equipment and medium
CN114064371A (en) Electronic interlocking simulation test method, system, equipment and storage medium
CN115391219A (en) Test case generation method and device, electronic equipment and storage medium
CN116756049B (en) Universal verification method and device for chip, electronic equipment and storage medium
CN115996410B (en) Method, device, equipment and storage medium for testing wireless communication protocol stack
CN115952561A (en) Data processing method, device, equipment and medium applied to rail transit system
CN116192534A (en) Train control data communication transmission method, device, equipment and storage medium
CN116089197A (en) Fault equipment switching exercise method, device, equipment and storage medium
CN115437865A (en) Method, device, equipment and medium for testing abnormal power failure of hard disk
CN108021459A (en) Striding course sends the method and device for getting daily record ready
CN113035267A (en) Semiconductor testing device, data processing method, equipment and storage medium
CN116774020B (en) Chip testing system, method, device and storage medium
CN111786842A (en) Data processing method and hardware-in-the-loop test system
CN116306400B (en) Integrated circuit verification method, system, device, equipment and medium
CN117827647A (en) Execution method, device, equipment and medium of test script
CN117850396A (en) Test method and device of vehicle-mounted platform, electronic equipment and storage medium
CN118784668A (en) Data transmission system, device, electronic equipment and storage medium
CN117330329A (en) Chassis testing method, system, device, electronic equipment and storage medium
CN117520200A (en) Object testing method based on test adaptation system
CN118764506A (en) Data communication method and device for vehicle controller, electronic equipment and storage medium
CN117527726A (en) Bidirectional path communication control system, method, electronic equipment and storage medium
CN118796743A (en) Data communication method, device, equipment and medium based on simplified pin bus
CN116819995A (en) Building equipment linkage method and system based on intelligent building controller
CN117667694A (en) Intersystem connection testing method, device, equipment and medium

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